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

/*
 * Theme changes are captured as two complete page snapshots. This keeps the
 * many component-level dark-theme rules from becoming visible one by one.
 */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .22s;
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    animation-name: fiwork-theme-fade-out;
}

::view-transition-new(root) {
    animation-name: fiwork-theme-fade-in;
}

@keyframes fiwork-theme-fade-out {
    to { opacity: 0; }
}

@keyframes fiwork-theme-fade-in {
    from { opacity: 0; }
}

html.fiwork-theme-transitioning *,
html.fiwork-theme-transitioning *::before,
html.fiwork-theme-transitioning *::after {
    transition: none !important;
}

html.fiwork-theme-transition-fallback body,
html.fiwork-theme-transition-fallback body * {
    transition-property: color, background-color, border-color, box-shadow, fill, stroke !important;
    transition-duration: .2s !important;
    transition-timing-function: cubic-bezier(.2, .7, .2, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }

    html.fiwork-theme-transition-fallback body,
    html.fiwork-theme-transition-fallback body * {
        transition: none !important;
    }
}

.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 :is(
    .fiwork-theme-toggle__moon,
    .fiwork-theme-toggle__sun,
    .fiwork-theme-toggle__system
) {
    display: none;
}

html[data-theme-preference="light"] .fiwork-theme-toggle__sun,
html[data-theme-preference="dark"] .fiwork-theme-toggle__moon,
html[data-theme-preference="system"] .fiwork-theme-toggle__system {
    display: block;
}

.fiwork-theme-toggle--floating .fiwork-theme-toggle__system {
    display: none;
}

html[data-theme-preference="system"][data-theme="light"]
    .fiwork-theme-toggle--floating .fiwork-theme-toggle__sun,
html[data-theme-preference="system"][data-theme="dark"]
    .fiwork-theme-toggle--floating .fiwork-theme-toggle__moon {
    display: block;
}

.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"],
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-job-budget-edit-icon {
    color: var(--fi-text-secondary);
    background: #252b30;
}

html[data-theme="dark"] .client-job-create-form #budget_display:hover .client-job-budget-edit-icon,
html[data-theme="dark"] .client-job-create-form #budget_display:focus-within .client-job-budget-edit-icon {
    color: #72d990;
    background: #1d3828;
}

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"] .portfolio-page-digest.my-portfolio-block
    .portfolio-manager-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .portfolio-page-digest
    .portfolio-filter-card .vacancy-hirify-filter__input:focus-within {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, .16);
}

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__heading { 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__media {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}
html[data-theme="dark"] body.fiwork-page-blog .blog-compose__media-empty strong { color: var(--fi-text); }
html[data-theme="dark"] body.fiwork-page-blog .blog-compose__media-empty > span {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

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-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"] body.fiwork-page-category-hub .main-block,
html[data-theme="dark"] body.fiwork-page-category-hub .main-container {
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-hub {
    --category-app-surface: #17191d;
    --category-app-border: rgba(255, 255, 255, .08);
    --category-app-divider: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] body.fiwork-page-category-hub :is(
    .fi-category-hub-list,
    .fi-category-directory
) {
    border-color: var(--category-app-border);
    background: var(--category-app-surface);
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-hub-list__head {
    border-color: var(--category-app-divider);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-hub-list__group + .fi-category-hub-list__group {
    border-top-color: var(--category-app-divider);
}

html[data-theme="dark"] body.fiwork-page-category-hub :is(
    .fi-category-hub-list__head strong,
    .fi-category-hub-list__subtitle
) {
    color: var(--fi-text);
}

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

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__header h2,
html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card,
html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__assistant-toggle {
    color: var(--fi-text);
}

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

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card--1 {
    background: linear-gradient(135deg, #1b2b3d 0%, #1d344b 100%);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card--2 {
    background: linear-gradient(135deg, #26283c 0%, #3a2938 100%);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card--3 {
    background: linear-gradient(135deg, #1c2f3b 0%, #1f3a35 100%);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card--4 {
    background: linear-gradient(135deg, #382d24 0%, #30283d 100%);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card--5 {
    background: linear-gradient(135deg, #203833 0%, #1c3043 100%);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__card--6 {
    background: linear-gradient(135deg, #2d2942 0%, #213448 100%);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__arrow {
    color: var(--fi-text-secondary);
    background: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__assistant-toggle {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__assistant-toggle:hover,
html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__assistant-toggle:focus-visible,
html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__assistant-toggle[aria-expanded="true"] {
    background: #192b3a;
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__assistant-icon {
    color: #73b9f5;
    background: rgba(115, 185, 245, .12);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__ai-field {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__ai-field input {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-category-hub .fi-category-popular__ai-field input::placeholder {
    color: var(--fi-text-muted);
}

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: transparent;
}

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

html[data-theme="dark"] .category-services-digest .category-services-sidebar__head,
html[data-theme="dark"] .category-services-digest .services-subcategories-block,
html[data-theme="dark"] .category-services-digest .services-subcategories-block + .mobile-filter-content {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .category-services-digest .category-services-sidebar__head > span,
html[data-theme="dark"] .category-services-digest .category-services-empty__icon {
    color: #55d58c;
    background: rgba(35, 195, 102, .14);
}

html[data-theme="dark"] .category-services-digest :is(
    .category-services-sidebar__head strong,
    .services-subcategories-block__title,
    .category-services-header h1,
    .category-services-header__total strong,
    .category-services-empty h2
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .category-services-digest :is(
    .category-services-sidebar__head small,
    .category-services-empty p,
    .category-services-breadcrumbs
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .category-services-digest .category-services-header__total,
html[data-theme="dark"] .category-services-digest .more-filter {
    color: var(--fi-text-secondary);
}

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

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

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: var(--fi-surface);
}

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-surface);
}

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 .rubric-block__toggle,
html[data-theme="dark"] .category-services-digest .filter-header {
    color: var(--fi-text);
}

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

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

html[data-theme="dark"] .category-services-digest .category-services-skeleton-card {
    --category-skeleton-surface: #20252b;
    --category-skeleton-base: #30373f;
    --category-skeleton-soft: #293038;
    border-color: var(--fi-border);
}

html[data-theme="dark"] .category-services-digest .category-services-skeleton-card::after {
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%);
}

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 > li > a.tree-item {
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

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: rgba(33, 150, 243, .12);
}

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 .tree li.last-tree-child > a .tree-item__icon {
    color: transparent;
    background: var(--fi-text-muted);
}

html[data-theme="dark"] .category-services-digest .tree li.last-tree-child > a:is(.is-current,[aria-current="page"]) .tree-item__icon {
    background: 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,
html[data-theme="dark"] .category-services-digest .filter-choice-list label,
html[data-theme="dark"] .category-services-digest .filter-range-inputs span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .category-services-digest .filter-range-inputs label {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

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

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"] .main-block--service-create #catalog_parameters_mount:not(:empty) {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-catalog-parameters > .step-stage-form,
html[data-theme="dark"] .main-block--service-create .catalog-parameter-field--number input {
    border-color: var(--fi-border);
    background: var(--fi-surface);
}

html[data-theme="dark"] .main-block--service-create :is(
    .catalog-parameter-field > legend,
    .catalog-parameter-field--number > span,
    .catalog-parameter-field--number input
) {
    color: var(--fi-text);
}

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

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"] .add-work-modal-block .add-work-modal-container,
html[data-theme="dark"] .add-work-modal-block .add-work-modal-header,
html[data-theme="dark"] .add-work-modal-block .submit-form-button-container {
    background: var(--fi-surface);
}

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

html[data-theme="dark"] .add-work-modal-block .submit-form-button-container {
    border-top-color: var(--fi-border);
}

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

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

html[data-theme="dark"] .add-work-modal-block .portfolio-category-hint {
    color: var(--fi-text-secondary);
    background: transparent;
}

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 .profile-resume-trigger {
    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 .profile-resume-trigger: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 .profile-resume-trigger__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: transparent !important;
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none;
}

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: transparent !important;
}

html[data-theme="dark"] .project-preview-digest .my-services-promo {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .project-preview-digest .my-services-promo .freelancer-proposals-title,
html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-panel strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-intro__description,
html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-panel {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-panel {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-toggle {
    color: #75d9a0;
    background: rgba(35, 195, 102, .14);
}

html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-toggle:hover,
html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-toggle:focus-visible {
    color: #94e6b7;
    background: rgba(35, 195, 102, .2);
}

html[data-theme="dark"] .project-preview-digest .my-services-promo .fiwork-vacancy-why-panel li::before {
    color: #75d9a0;
    background: rgba(35, 195, 102, .15);
}

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 {
    border-color: var(--fi-border) !important;
    color: var(--fi-text);
    background: var(--fi-surface) !important;
}

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

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

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-color: transparent;
    background: rgba(35, 195, 102, .14);
}

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-service-card__media {
    background: var(--fi-bg-soft);
}

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

html[data-theme="dark"] .project-preview-digest a.my-service-card__title:hover {
    color: #73b9f5;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__meta,
html[data-theme="dark"] .project-preview-digest .my-service-card__price span,
html[data-theme="dark"] .project-preview-digest .my-service-card__draft-step {
    color: var(--fi-text-muted);
}

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

html[data-theme="dark"] .project-preview-digest :is(
    .my-service-card__action,
    .my-service-card__more > summary,
    .my-service-card__draft-delete
) {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .project-preview-digest :is(
    .my-service-card__action,
    .my-service-card__more > summary
):hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action--edit {
    border-color: #294c69;
    color: #73b9f5;
    background: #172a3a;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__menu {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__menu :is(a, button) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__menu :is(a, button):hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__menu .my-service-card__menu-delete,
html[data-theme="dark"] .project-preview-digest .my-service-card__draft-delete {
    color: #f08a93;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__menu .my-service-card__menu-delete:hover,
html[data-theme="dark"] .project-preview-digest .my-service-card__draft-delete:hover {
    border-color: #67333d;
    color: #ff9ca4;
    background: #371d23;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__meta,
html[data-theme="dark"] .project-preview-digest .my-service-card__draft-step {
    border-top-color: var(--fi-border);
}

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

html[data-theme="dark"] .project-preview-digest .my-service-card__metric-help {
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__metric-help:hover,
html[data-theme="dark"] .project-preview-digest .my-service-card__metric-help:focus-visible {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__metric-help::before {
    color: #171a1e;
    background: #f2f4f7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__metric-help::after {
    border-top-color: #f2f4f7;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__meta-row--competition strong.my-service-card__competition--low {
    color: #69d39a;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__meta-row--competition strong.my-service-card__competition--medium {
    color: #a8cf67;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__meta-row--competition strong.my-service-card__competition--high {
    color: #f3b65f;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__meta-row--competition strong.my-service-card__competition--very-high {
    color: #ff858f;
}

html[data-theme="dark"] .project-preview-digest .my-service:not(.draft) .my-service-card__body::after {
    background: var(--fi-border);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__sales-rating,
html[data-theme="dark"] .project-preview-digest .my-service-card__sales-rating small {
    color: var(--fi-text-muted);
}

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

html[data-theme="dark"] .project-preview-digest .my-service-card__sales-scale i {
    background: #3a4149;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__sales-scale i.is-filled {
    background: #36b875;
}

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

html[data-theme="dark"] .project-preview-digest .my-service-card__pin-link:hover,
html[data-theme="dark"] .project-preview-digest .my-service-card__pin-link:focus-visible,
html[data-theme="dark"] .project-preview-digest .my-service-card__pin-link.is-active {
    color: #f2c267;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action::before {
    color: #171a1e;
    background: #f2f4f7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action::after {
    border-top-color: #f2f4f7;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action,
html[data-theme="dark"] .project-preview-digest .my-service-card__action--edit {
    border-color: transparent;
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action:hover,
html[data-theme="dark"] .project-preview-digest .my-service-card__action:focus-visible {
    border-color: var(--fi-border);
    color: #73b9f5;
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action--delete:hover,
html[data-theme="dark"] .project-preview-digest .my-service-card__action--delete:focus-visible {
    border-color: #67333d;
    color: #ff858f;
    background: #371d23;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action--pin:hover,
html[data-theme="dark"] .project-preview-digest .my-service-card__action--pin:focus-visible {
    border-color: #66512a;
    color: #f2c267;
    background: #352b18;
}

html[data-theme="dark"] .project-preview-digest .my-service-card__action--pin.is-active {
    color: #f2c267;
}

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: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .settings-page-intro {
    border-color: var(--fi-border) !important;
    background: var(--fi-surface) !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: 0 !important;
    color: #ff858a !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest
    .settings-access.settings-part.settings-panel.is-active
    .delete-account:hover {
    border: 0 !important;
    color: #ffabb0 !important;
    background: transparent !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
    .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(
        .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-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"] .settings-workspace--cards .settings-verification :is(
    .radio-box.active,
    .identity-selfie-step.is-complete,
    .verification-page-status__icon.is-success
) {
    background: rgba(35, 195, 102, .14) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-verification .verification-status-card.is-failed {
    background: rgba(240, 68, 56, .13) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-verification :is(
    .verification-legal-details,
    .verification-consent-option,
    .identity-selfie-step,
    .radio-box
) {
    color: var(--settings-app-text) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-verification .verification-consent-option input {
    border-color: #5d626c;
    background: #25282d;
}

html[data-theme="dark"] .settings-workspace--cards .settings-verification .verification-consent-option input:checked {
    border-color: #3aaa72;
    background: #3aaa72;
}

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"] .settings-finance__fields label {
    color: var(--fi-text);
}

html[data-theme="dark"] .settings-finance__fields :is(input, select) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .settings-finance__fields input::placeholder {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .settings-finance__actions button:first-child {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

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"] .main-container:has(> .orders-workspace-page) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .orders-workspace-page.manage-orders-digest {
    background: transparent !important;
}

html[data-theme="dark"] .orders-workspace-page :is(
    .order-workspace-head,
    .order-filters-panel,
    .order-in-block,
    .order-list-toolbar
) {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .orders-workspace-page :is(
    .order-workspace-head h1,
    .order-workspace-head__total strong,
    .order-filters-panel__head strong,
    .order-list-toolbar__title strong
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .orders-workspace-page :is(
    .order-workspace-head p,
    .order-list-toolbar__title span,
    .order-filters-panel__head small,
    .order-filters-panel__hint
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__total {
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__icon {
    color: inherit;
    background: transparent;
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__toggle {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__toggle:hover,
html[data-theme="dark"] .orders-workspace-page .order-workspace-head__toggle:focus-visible {
    color: #8ee4b4;
    background: #214b36;
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__panel {
    border-color: var(--fi-border-soft);
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__panel strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .orders-workspace-page .order-workspace-head__panel li::before {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .orders-workspace-page .order-filters-panel__head,
html[data-theme="dark"] .orders-workspace-page .order-filters-panel__hint,
html[data-theme="dark"] .orders-workspace-page .order-list-toolbar {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .orders-workspace-page .order-filters-panel__icon {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .orders-workspace-page
    .order-filter-count .order-filter-option {
    border-color: transparent !important;
    color: var(--fi-text-secondary) !important;
    background: transparent !important;
}

html[data-theme="dark"] .orders-workspace-page
    .order-filter-count .order-filter-option:hover {
    color: var(--fi-text) !important;
    background: var(--fi-surface-hover) !important;
}

html[data-theme="dark"] .orders-workspace-page
    .order-filter-count .order-filter-option .count {
    color: var(--fi-text-secondary) !important;
    background: var(--fi-bg-soft) !important;
}

html[data-theme="dark"] .orders-workspace-page
    .order-filter-count .order-filter-option.selected {
    border-color: transparent !important;
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] .orders-workspace-page
    .order-filter-count .order-filter-option.selected .count {
    color: #8ee4b4 !important;
    background: #214b36 !important;
}

html[data-theme="dark"] .orders-workspace-page .order-search-field {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .orders-workspace-page .order-search-field .searchbar {
    color: var(--fi-text);
}

html[data-theme="dark"] .orders-workspace-page .order-search-field .searchbar::placeholder {
    color: var(--fi-text-muted);
}

@media (max-width: 900px) {
    html[data-theme="dark"] .orders-workspace-page .order-filters-panel {
        border-color: transparent;
        background: transparent;
    }

    html[data-theme="dark"] .orders-workspace-page
        .order-filter-count .order-filter-option {
        border-color: var(--fi-border) !important;
        background: var(--fi-surface-raised) !important;
    }

    html[data-theme="dark"] .orders-workspace-page
        .order-filter-count .order-filter-option.selected {
        border-color: #285b42 !important;
        background: #173426 !important;
    }
}

@media (max-width: 768px) {
    html[data-theme="dark"] .orders-workspace-page .order-in-block {
        border-color: transparent;
        background: transparent;
    }
}

/* /bookmarks workspace */
html[data-theme="dark"] .main-container:has(> .bookmarks-page--digest) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

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

html[data-theme="dark"] .bookmarks-page--digest :is(
    .bookmarks-sidebar__panel,
    .bookmarks-page__header,
    .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-page--digest :is(
    .bookmarks-sidebar__head,
    .bookmarks-service-card__data,
    .bookmarks-page__help-panel
) {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-service-card__data {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .bookmarks-page--digest :is(
    .bookmarks-sidebar__head strong,
    .bookmarks-page__title,
    .bookmarks-page__help-panel strong,
    .bookmarks-service-card__title,
    .bookmarks-seller-card__name,
    .bookmarks-empty__title
) {
    color: var(--fi-text);
}

html[data-theme="dark"] .bookmarks-page--digest :is(
    .bookmarks-sidebar__head small,
    .bookmarks-page__header-copy p,
    .bookmarks-page__help-panel,
    .bookmarks-service-card .freelancer-username,
    .bookmarks-seller-card__username,
    .bookmarks-empty__text
) {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-sidebar__head > span {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-page__help-toggle,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-page__help-panel li::before {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-page__help-toggle:hover,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-page__help-toggle:focus-visible {
    color: #83e0ac;
    background: #1d422f;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item {
    border-color: transparent;
    color: var(--fi-text-secondary);
    background: transparent;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__label svg {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__count {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:hover,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:focus-visible,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item.active {
    border-color: transparent;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:hover .bookmarks-tabs__label svg,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:focus-visible .bookmarks-tabs__label svg,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item.active .bookmarks-tabs__label svg,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:hover .bookmarks-tabs__count,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:focus-visible .bookmarks-tabs__count,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item.active .bookmarks-tabs__count {
    color: #69d39a;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:hover .bookmarks-tabs__count,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item:focus-visible .bookmarks-tabs__count,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item.active .bookmarks-tabs__count {
    background: #214b36;
}

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

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

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-category-filter__option b {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-category-filter__option:hover,
html[data-theme="dark"] .bookmarks-page--digest .bookmarks-category-filter__option:focus-visible {
    color: var(--fi-text);
    background: #303740;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-category-filter__option.active {
    border-color: #3ca7ff;
    color: #fff;
    background: #1976c9;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-category-filter__option.active b {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-seller-skeleton-card::before {
    background:
        radial-gradient(circle, #30373f 0 26px, transparent 27px) 14px 50% / 54px 54px no-repeat,
        linear-gradient(#30373f 0 0) 80px calc(50% - 13px) / 42% 11px no-repeat,
        linear-gradient(#293038 0 0) 80px calc(50% + 8px) / 29% 9px no-repeat,
        #20252b;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-seller-skeleton-card::after {
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%);
}

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

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-service-card .service-price-num {
    color: #69d39a;
}

html[data-theme="dark"] .bookmarks-page--digest .bookmarks-empty__icon {
    color: #69b7ff;
    background: #17324f;
}

@media (max-width: 900px) {
    html[data-theme="dark"] .bookmarks-page--digest .bookmarks-sidebar__panel {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item {
        border-color: var(--fi-border);
        background: var(--fi-surface-raised);
    }

    html[data-theme="dark"] .bookmarks-page--digest .bookmarks-tabs__item.active {
        border-color: #285b42;
        background: #173426;
    }
}

/* /tasks workspace */
html[data-theme="dark"] .main-container:has(> .client-tasks-digest) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

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

html[data-theme="dark"] .client-tasks-digest .client-tasks-hero,
html[data-theme="dark"] .client-tasks-digest .client-tasks-sidebar-panel,
html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item,
html[data-theme="dark"] .client-tasks-digest .client-tasks-type-select,
html[data-theme="dark"] .client-tasks-digest .order-in-table-wrapper {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-title h1,
html[data-theme="dark"] .client-tasks-digest .client-tasks-sidebar-panel__head strong,
html[data-theme="dark"] .client-tasks-digest .client-tasks-help-panel strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-title p,
html[data-theme="dark"] .client-tasks-digest .client-tasks-help-panel {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-type-filter__options label > span {
    border-color: transparent;
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-type-filter__options label:hover > span {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-type-filter__options input:checked + span {
    border-color: #2196f3;
    color: #fff;
    background: #2196f3;
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-help-panel,
html[data-theme="dark"] .client-tasks-digest .client-tasks-sidebar-panel__head,
html[data-theme="dark"] .client-tasks-digest .client-tasks-sidebar-panel__type {
    border-color: var(--fi-border);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-sidebar-panel__head > span,
html[data-theme="dark"] .client-tasks-digest .client-tasks-help-panel li::before,
html[data-theme="dark"] .client-tasks-digest .client-tasks-help-toggle {
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-help-toggle:hover,
html[data-theme="dark"] .client-tasks-digest .client-tasks-help-toggle:focus-visible {
    color: #83e0ac;
    background: #1d422f;
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item b {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item.active,
html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item:hover,
html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item:focus-visible {
    border-color: #285b42;
    color: #69d39a;
    background: #173426;
}

html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item.active b,
html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item:hover b,
html[data-theme="dark"] .client-tasks-digest .client-tasks-tabs__item:focus-visible b {
    color: #69d39a;
    background: #214b36;
}

@media (max-width: 900px) {
    html[data-theme="dark"] .client-tasks-digest .client-tasks-sidebar-panel {
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    html[data-theme="dark"] .client-tasks-digest .order-in-table-wrapper {
        border: 0;
        background: transparent;
        box-shadow: none;
    }
}

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);
}

/* /tasks App workspace: dark theme. */
html[data-theme="dark"] body.fiwork-client-tasks-page {
    --tasks-app-canvas: #101214;
    --tasks-app-surface: #17191d;
    --tasks-app-subtle: #23262c;
    --tasks-app-subtle-hover: #292d33;
    --tasks-app-text: #f2f4f7;
    --tasks-app-muted: #9ba3af;
    background: var(--tasks-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page > .main-block,
html[data-theme="dark"] body.fiwork-client-tasks-page > .main-block > .main-container.fiwork-layout-container,
html[data-theme="dark"] body.fiwork-client-tasks-page > .main-block > .main-container,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest {
    border-color: transparent !important;
    background: var(--tasks-app-canvas) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page > .main-block > .main-container.fiwork-layout-container,
html[data-theme="dark"] body.fiwork-client-tasks-page > .main-block > .main-container,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest {
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest :is(
    .client-tasks-sidebar,
    .client-tasks-content
) {
    border-color: rgba(255, 255, 255, .08) !important;
    background: var(--tasks-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest :is(
    .client-tasks-sidebar-panel,
    .client-tasks-panel-header,
    .client-tasks-content-toolbar
) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-panel-header h1,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-sidebar-panel__head strong {
    color: var(--tasks-app-text) !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-panel-header p,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-sidebar-panel__head small {
    color: var(--tasks-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-sidebar-panel__head > span,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-content-toolbar .client-tasks-tabs__item b {
    color: var(--tasks-app-muted) !important;
    background: var(--tasks-app-subtle) !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-type-filter__options label > span,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-content-toolbar .client-tasks-tabs__item {
    border-color: transparent !important;
    color: #c2c7d0 !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-type-filter__options label:hover > span,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-content-toolbar .client-tasks-tabs__item:hover {
    color: var(--tasks-app-text) !important;
    background: var(--tasks-app-subtle) !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-type-filter__options input:checked + span,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-content-toolbar .client-tasks-tabs__item.active {
    color: #69b7ff !important;
    background: #17324f !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-content-toolbar .client-tasks-tabs__item.active b {
    color: #8ac7ff !important;
    background: #244361 !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest :is(
    .order-in-table-wrapper,
    .fiwork-tasks-empty,
    .client-tasks-type-empty
) {
    border-color: transparent !important;
    background: var(--tasks-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest .client-tasks-table__header {
    border-color: rgba(255, 255, 255, .08) !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest .client-task-card {
    border-color: rgba(255, 255, 255, .08) !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-digest .client-task-card:hover {
    background: var(--tasks-app-subtle-hover) !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-pagination :is(
    .custom_pagination,
    nav,
    .pagination
) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-pagination .page-link {
    border-color: transparent !important;
    color: #c2c7d0 !important;
    background: var(--tasks-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-pagination .page-link:hover,
html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-pagination .page-link:focus-visible {
    color: #8ac7ff !important;
    background: #17324f !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-pagination .page-item.active .page-link {
    color: #fff !important;
    background: #0188ff !important;
}

html[data-theme="dark"] body.fiwork-client-tasks-page .client-tasks-pagination .page-item.disabled .page-link {
    color: #6f7783 !important;
    background: #1d2025 !important;
}

/* 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 {
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .computer-header--air {
    --header-text: var(--fi-text);
    --header-muted: var(--fi-text-secondary);
    --header-border: var(--fi-border);
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .computer-header--air::before {
    background: var(--fi-surface);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .computer-header--air .nav-part2-container {
    background: transparent;
}

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 .header-language-selector--market .header-language-selector__toggle:hover,
html[data-theme="dark"] .computer-header--air .header-language-selector--market[open] .header-language-selector__toggle {
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .computer-header--air .header-search-control {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .header-service-search-form {
    background: #0188ff;
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .header-service-search-form::before {
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .computer-header--air .header-search-control:hover,
html[data-theme="dark"] .computer-header--air .header-search-control:focus-within {
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .computer-header--air .header-search-scope {
    color: var(--fi-text-secondary);
    background: rgba(1, 136, 255, .12);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .header-service-search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(1, 136, 255, .16);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .search-container .search-service-input {
    color: var(--fi-text);
    background: transparent;
}

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 .logo-and-search-block .clear-search-button {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .computer-header--air .logo-and-search-block .clear-search-button:hover,
html[data-theme="dark"] .computer-header--air .logo-and-search-block .clear-search-button:focus-visible {
    color: var(--fi-text);
    background: var(--fi-bg-soft);
}

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: #69afff;
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-icon {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-path {
    fill: var(--fi-text-muted) !important;
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-menu-link:hover .header__user-icon,
html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-menu-link:focus-visible .header__user-icon {
    color: #69afff;
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-menu-link:hover .header__user-path,
html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-menu-link:focus-visible .header__user-path {
    fill: #69afff !important;
}

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-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 .header__user-summ {
    color: var(--fi-text);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-balance {
    background: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .fiwork-header-notification-trigger {
    color: var(--fi-text-secondary);
    background: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .fiwork-header-notification-trigger:hover,
html[data-theme="dark"] .computer-header--air .user-header--modern .fiwork-header-notification-trigger:focus-visible {
    color: #69afff;
    background: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .computer-header--air .user-header--modern .fiwork-header-notification-trigger .header__user-icon {
    color: inherit;
}

html[data-theme="dark"] .computer-header--air .user-header--modern button.header__user-balance:hover {
    background: rgba(255, 255, 255, .12);
}

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 .user-header--modern .header__user-logo {
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] .computer-header--air .user-header--modern .header__user-img {
    border-color: rgba(255, 255, 255, .16);
}

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"] .fiwork-brand-logo--light {
    display: none !important;
}

html[data-theme="dark"] .fiwork-brand-logo--dark {
    display: block !important;
}

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.selected {
    color: #fff;
    background: #247fc7;
    box-shadow: inset 0 0 0 1px #247fc7;
}

html[data-theme="dark"] .user-header--modern .user__list-role:not(.selected):hover,
html[data-theme="dark"] .user-header--modern .user__list-role:not(.selected):focus-visible {
    color: #69afff;
    background: transparent;
    box-shadow: inset 0 0 0 1px #4385bb;
}

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: 0 !important;
    color: var(--fi-text-secondary) !important;
    background: rgba(255, 255, 255, .06) !important;
}

html[data-theme="dark"] .user-header--modern .fiwork-account-context button:hover {
    color: #76bcf6 !important;
    background: rgba(118, 188, 246, .12) !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 :is(.contacts-block, .messages-container, .stickers-wrapper) {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .messenger-block :is(.contacts-block, .messages-container, .stickers-wrapper)::-webkit-scrollbar-track {
    background: transparent;
}

html[data-theme="dark"] .messenger-block :is(.contacts-block, .messages-container, .stickers-wrapper)::-webkit-scrollbar-thumb {
    background: #454b52;
}

html[data-theme="dark"] .messenger-block .contacts-block::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .messenger-block .contacts-block:hover::-webkit-scrollbar-thumb,
html[data-theme="dark"] .messenger-block .messages-container::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .messenger-block .messages-container:hover::-webkit-scrollbar-thumb,
html[data-theme="dark"] .messenger-block .stickers-wrapper::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .messenger-block .stickers-wrapper:hover::-webkit-scrollbar-thumb {
    background: #59616a;
}

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-field {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .messenger-block .search-in-message-container {
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .messenger-block .search-in-message-container:focus-within {
    border-color: #4e8fbe;
    background: var(--fi-surface-raised);
    box-shadow: 0 0 0 3px rgba(79, 160, 220, .12);
}

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, .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 .search-in-message-block .sound-control:hover,
html[data-theme="dark"] .messenger-block .search-in-message-block .sound-control:focus-visible,
html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .img-button:hover,
html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .img-button:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .search-button.active {
    color: #72b7ee;
    background: #183149;
}

html[data-theme="dark"] .messenger-block .chat-search-field:focus-within {
    border-color: #4e8fbe;
    box-shadow: 0 0 0 3px rgba(79, 160, 220, .12);
}

html[data-theme="dark"] .messenger-block .chat-search-container
    .close-chat-search:hover,
html[data-theme="dark"] .messenger-block .chat-search-container
    .close-chat-search:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .chat-search-field__icon,
html[data-theme="dark"] .messenger-block .chat-search-action {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .chat-search-action:hover,
html[data-theme="dark"] .messenger-block .chat-search-action:focus-visible,
html[data-theme="dark"] .messenger-block .chat-search-action.is-active {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .chat-search-action.is-active {
    color: #72b7ee;
}

html[data-theme="dark"] .messenger-block .chat-search-action:disabled {
    color: #555c65;
    background: transparent;
}

html[data-theme="dark"] .messenger-block .chat-search-results {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
    scrollbar-color: #555b66 transparent;
}

html[data-theme="dark"] .messenger-block .chat-search-results::-webkit-scrollbar-thumb {
    border-color: var(--fi-surface-raised);
    background: #555b66;
}

html[data-theme="dark"] .messenger-block .chat-search-result {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .chat-search-result:hover,
html[data-theme="dark"] .messenger-block .chat-search-result:focus-visible,
html[data-theme="dark"] .messenger-block .chat-search-result.is-active {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .chat-search-result__head strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .chat-search-result__head time,
html[data-theme="dark"] .messenger-block .chat-search-result__preview,
html[data-theme="dark"] .messenger-block .chat-search-results__empty {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block :is(.chat-search-result__mark, .search-highlight) {
    color: #f7e7a4;
    background: rgba(194, 151, 31, .28);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar-popover {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__header strong,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__header button {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__header button:hover,
html[data-theme="dark"] .messenger-block .chat-search-calendar__header button:focus-visible,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day:hover,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__header button:disabled,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day:disabled {
    color: #555c65;
    background: transparent;
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__weekdays span,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day.is-outside {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__day.is-today:not(.is-selected) {
    color: #72b7ee;
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__day.is-selected,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day.is-selected:hover,
html[data-theme="dark"] .messenger-block .chat-search-calendar__day.is-selected:focus-visible {
    color: #fff;
    background: #177de5;
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__footer {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__footer button {
    color: #72b7ee;
}

html[data-theme="dark"] .messenger-block .chat-search-calendar__footer button:hover,
html[data-theme="dark"] .messenger-block .chat-search-calendar__footer button:focus-visible {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .new-order {
    border-color: #23c366;
    color: #fff;
    background: #23c366;
}

html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .new-order .green-plus-icon {
    color: #fff;
}

html[data-theme="dark"] .messenger-block .message-content-header
    .contact-functional-panel .new-order:hover {
    border-color: #1eae5b;
    color: #fff;
    background: #1eae5b;
}

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 .inbox-archive-folder {
    border-color: var(--fi-border-soft);
    background: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder:has(> details[open]),
html[data-theme="dark"] .messenger-block .inbox-archive-folder > details[open] {
    background: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder > details > summary {
    color: var(--fi-text);
    background: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder > details > summary:hover,
html[data-theme="dark"] .messenger-block .inbox-archive-folder > details > summary:focus-visible {
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder > details[open] > summary {
    border-color: var(--fi-border-soft);
    background: var(--fi-surface);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder > details[open] > summary::before {
    border-color: var(--fi-text-secondary);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder__title {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder__preview {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder__icon {
    color: #f4f6f8;
    background: #66717c;
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder__count {
    color: #cbd1d7;
    background: #343b43;
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder__list {
    border-color: var(--fi-border-soft);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder > details[open]
    > .inbox-archive-folder__list {
    scrollbar-color: #454b52 transparent;
}

html[data-theme="dark"] .messenger-block .inbox-archive-folder > details[open]
    > .inbox-archive-folder__list::-webkit-scrollbar-thumb {
    background: #454b52;
}

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: 0;
    background: transparent !important;
}

html[data-theme="dark"] .dashboard-ai-digest:hover .img-container {
    border-color: transparent;
    background: transparent !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"] .client-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"] .client-dashboard-stats .client-dashboard-stat:hover,
html[data-theme="dark"] .client-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"] .client-dashboard-stats .client-dashboard-stat:focus-visible {
    outline-color: rgba(74, 168, 247, .42);
}

html[data-theme="dark"] .client-dashboard-stats .client-dashboard-stat__content strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .client-dashboard-stats .client-dashboard-stat__content span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .client-dashboard-stats .client-dashboard-stat__arrow {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .client-dashboard-stats .client-dashboard-stat:hover .client-dashboard-stat__arrow,
html[data-theme="dark"] .client-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"] .savings-goal-card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background:
        radial-gradient(circle at 92% 8%, rgba(70, 147, 221, .13), transparent 32%),
        linear-gradient(135deg, var(--fi-surface-raised) 0%, #171d24 100%);
}

html[data-theme="dark"] .savings-goal-card::after { border-color: rgba(91, 166, 234, .05); }
html[data-theme="dark"] .savings-goal-card__icon { color: #73b9f5; background: #172a3a; }
html[data-theme="dark"] .savings-goal-card__description,
html[data-theme="dark"] .savings-goal-card__numbers { color: var(--fi-text-secondary); }
html[data-theme="dark"] .savings-goal-card h2,
html[data-theme="dark"] .savings-goal-card__numbers strong { color: var(--fi-text); }
html[data-theme="dark"] .savings-goal-card__percent { color: #83c4fb; background: #172a3a; }
html[data-theme="dark"] .savings-goal-journey__line { background: #333d47; }
html[data-theme="dark"] .savings-goal-checkpoint { color: #818c98; }
html[data-theme="dark"] .savings-goal-checkpoint__node { border-color: #151c23; color: #9ba7b3; background: #303b46; box-shadow: 0 0 0 1px #3b4753; }
html[data-theme="dark"] .savings-goal-checkpoint small { color: #74808c; }
html[data-theme="dark"] .savings-goal-checkpoint.is-reached { color: #76baf2; }
html[data-theme="dark"] .savings-goal-checkpoint.is-reached small { color: #7996af; }
html[data-theme="dark"] .savings-goal-checkpoint.is-next .savings-goal-checkpoint__node { color: #83c4fb; background: #1b3144; }
html[data-theme="dark"] .savings-goal-button--secondary { color: var(--fi-text-secondary); background: var(--fi-surface-hover); }
html[data-theme="dark"] .savings-goal-button--secondary:hover { color: var(--fi-text); background: #333b44; }
html[data-theme="dark"] .savings-goal-card__delete { color: #e1929b; background: #3b2328; }

html[data-theme="dark"] .savings-goal-card--completed {
    border-color: #705b25;
    background:
        radial-gradient(circle at 89% 3%, rgba(221, 173, 53, .16), transparent 34%),
        linear-gradient(135deg, #211e17 0%, #2b2413 100%);
}

html[data-theme="dark"] .savings-goal-card--completed .savings-goal-card__icon,
html[data-theme="dark"] .savings-goal-card--completed .savings-goal-card__percent { color: #efc75f; background: #3d3218; }
html[data-theme="dark"] .savings-goal-card--completed .savings-goal-journey__line { background: #514522; }
html[data-theme="dark"] .savings-goal-card--completed .savings-goal-checkpoint.is-reached { color: #efc75f; }
html[data-theme="dark"] .savings-goal-card--completed .savings-goal-checkpoint.is-reached small { color: #b8a470; }

html[data-theme="dark"] .savings-goal-modal__dialog { border-color: var(--fi-border); background: var(--fi-surface-raised); }
html[data-theme="dark"] .savings-goal-modal__header { border-bottom-color: var(--fi-border); }
html[data-theme="dark"] .savings-goal-modal__header span,
html[data-theme="dark"] .savings-goal-form__hint { color: var(--fi-text-muted); }
html[data-theme="dark"] .savings-goal-modal__header h3,
html[data-theme="dark"] .savings-goal-form > label { color: var(--fi-text); }
html[data-theme="dark"] .savings-goal-modal__close { color: var(--fi-text-secondary); background: var(--fi-surface-hover); }
html[data-theme="dark"] .savings-goal-form > input,
html[data-theme="dark"] .savings-goal-form__amount { border-color: var(--fi-border); color: var(--fi-text); background: var(--fi-bg-soft); }
html[data-theme="dark"] .savings-goal-form > input,
html[data-theme="dark"] .savings-goal-form__amount input { color: var(--fi-text); }
html[data-theme="dark"] .savings-goal-form__amount > span { color: var(--fi-text-secondary); }

html[data-theme="dark"] .savings-goal-delete-modal .fill-balance-modal-block-header h3 { color: var(--fi-text); }
html[data-theme="dark"] .savings-goal-delete-modal__icon { color: #f17d89; background: #3c2227; }
html[data-theme="dark"] .savings-goal-delete-modal__cancel { color: var(--fi-text-secondary); background: var(--fi-surface-hover); }
html[data-theme="dark"] .savings-goal-delete-modal__cancel:hover { color: var(--fi-text); background: #333b44; }

html[data-theme="dark"] .client-dashboard-stat--vacancies .client-dashboard-stat__icon {
    color: #5fca91;
    background: #172b23;
}

html[data-theme="dark"] .client-dashboard-stat--quick .client-dashboard-stat__icon {
    color: #e4b457;
    background: #30291a;
}

html[data-theme="dark"] .client-dashboard-stat--projects .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"]
    .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 {
    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 {
    border: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
}

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
    .fiw-withdraw-finance-link {
    color: #9bc8f2;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-withdraw-finance-link:hover,
html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-withdraw-finance-link:focus-visible {
    color: #c0ddf8;
}

html[data-theme="dark"] .fiw-withdraw-method-dialog{
    border: 1px solid var(--fi-border);
    background: var(--fi-surface);
    color: var(--fi-text);
}

html[data-theme="dark"] .fiw-withdraw-method-dialog h3,
html[data-theme="dark"] .fiw-withdraw-method-fields label{
    color: var(--fi-text);
}

html[data-theme="dark"] .fiw-withdraw-method-dialog .phone-modal-subtitle{
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fiw-withdraw-method-fields :is(input, select){
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    color: var(--fi-text);
}

html[data-theme="dark"] .fiw-withdraw-method-close,
html[data-theme="dark"] .fiw-withdraw-method-actions button:first-child{
    background: var(--fi-surface-raised);
    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,
        .fiw-withdraw-field,
        .fiw-withdraw-search-select__button,
        .fiw-withdraw-search-select__search
    ) {
    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,
        .fiw-withdraw-field,
        .fiw-withdraw-search-select__search
    )::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,
        .fiw-withdraw-field,
        .fiw-withdraw-search-select__button,
        .fiw-withdraw-search-select__search
    ):hover {
    border-color: #48515a;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fill-balance-modal-form :is(
        .enter-sum,
        .fiwork-wallet-withdraw-select,
        .fiw-withdraw-field,
        .fiw-withdraw-search-select__button,
        .fiw-withdraw-search-select__search
    ):focus {
    border-color: #4aa8f7;
    background: var(--fi-surface);
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .12);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-withdraw-search-select__dropdown {
    border-color: var(--fi-border);
    background: var(--fi-surface-raised);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
}

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-tiles .payment-method-elem {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-bg-soft);
}

html[data-theme="dark"] .fiw-deposit-alternative-note {
    background: #263543;
    color: #d9e3ed;
}

html[data-theme="dark"] .fiw-deposit-alternative-note button {
    background: #284b67;
    color: #c8e5ff;
}

html[data-theme="dark"] .fiw-deposit-alternative-note button:hover {
    background: #315b7b;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem:hover {
    border-color: #48515a;
    color: var(--fi-text);
    background: var(--fi-surface-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem.selected {
    border-color: #4d86b7;
    color: #a9d3f5;
    background: #182734;
    box-shadow: 0 0 0 2px rgba(77, 134, 183, .16);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method {
    color: #aab5c0;
    background: #252b31;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="steam"] {
    background: #171d25;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="telegram"] {
    background: #dff4ff;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="sbp"] {
    background: #fff;
    box-shadow: inset 0 0 0 1px #d9dde3;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="mobile"] {
    color: #45c887;
    background: #173b2b;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="crypto"] {
    color: #ffad49;
    background: #3f2d18;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="card"] {
    color: #72aff4;
    background: #172f4b;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="foreign-card"] {
    color: #a99df8;
    background: #292444;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="bank"] {
    color: #66c4b4;
    background: #193832;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="paypal"] {
    color: #72aff4;
    background: #172f4b;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="wallet"] {
    color: #b8a7ed;
    background: #2d2644;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="manual"] {
    color: #c0a3ef;
    background: #302445;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="cash-on-delivery"] {
    color: #56c78f;
    background: #173b2b;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__icon--method[data-gateway-brand="other"] {
    color: #68c5cc;
    background: #19373a;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .payment-method-tiles .payment-method-elem__body small {
    color: var(--fi-text-muted);
}

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
    .fiw-withdraw-available {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .fiw-withdraw-available strong {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment {
    color: #fff;
    background: #2196f3;
    box-shadow: none;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment:hover {
    background: #048af8;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment:disabled,
html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment.is-disabled {
    color: #747f89;
    background: #2a3036;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment:disabled:hover,
html[data-theme="dark"] .fill-balance-modal-block-container
    .submit-payment.is-disabled:hover {
    background: #2a3036;
}

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 6px 20px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .messenger-block .individual-order-message .individual-order-message-header {
    border-bottom-color: var(--fi-border-soft);
    color: var(--fi-text);
    background: #1a2025;
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-card-icon {
    color: #73b9f5;
    background: #172a3a;
}

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: 0;
    background: var(--fi-surface);
}

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 .individual-order-details.active .individual-order-more-details-inner,
html[data-theme="dark"] .messenger-block .individual-order-message .offer-milestone {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-milestone .ms-top {
    color: var(--fi-text);
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-milestone .ms-top span {
    color: #8fe0aa;
}

html[data-theme="dark"] .messenger-block .individual-order-message .offer-milestone :is(.ms-mid, .ms-bot) {
    color: var(--fi-text-muted);
}

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-color: var(--fi-border-soft);
    color: var(--fi-text);
    background: #181d21;
}

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-color: var(--fi-border-soft);
    background: var(--fi-surface);
}

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: 0 !important;
    color: var(--fi-text-secondary);
    background: transparent !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 {
    color: #73b9f5;
    background: transparent !important;
}

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: 0 !important;
    background: transparent !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 {
    background: transparent !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: 0 !important;
    background: transparent !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: 0 !important;
    background: transparent !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 .inbox-stickers-header {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] .messenger-block .inbox-stickers-close {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .messenger-block .inbox-stickers-close:hover,
html[data-theme="dark"] .messenger-block .sticker-option:hover,
html[data-theme="dark"] .messenger-block .sticker-option:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover) !important;
}

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,
    .profile-resume-trigger,
    .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"] .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__email-verify.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__email-verify .modal__close {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] #modal__email-verify .modal__close path {
    fill: currentColor;
}

html[data-theme="dark"] #modal__email-verify .modal__form-title {
    color: var(--fi-text);
}

html[data-theme="dark"] #modal__email-verify .modal__form-subTitle {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] #modal__email-verify .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__email-verify .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__email-verify .fiwork-email-code-field.is-valid .modal__form-input {
    border-color: #42c96b !important;
    color: #75e096 !important;
    background: rgba(22, 163, 74, .14) !important;
}

html[data-theme="dark"] #modal__email-verify .fiwork-email-code-field.is-invalid .modal__form-input {
    border-color: #ff686d !important;
    color: #ff9296 !important;
    background: rgba(239, 68, 68, .14) !important;
}

html[data-theme="dark"] #modal__email-verify .fiwork-auth-inline-message {
    color: #ff9a9a;
    background: rgba(239, 68, 68, .13);
}

html[data-theme="dark"] #modal__email-verify .fiwork-auth-inline-message.is-success {
    color: #6ee7a0;
    background: rgba(22, 163, 74, .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: 0 !important;
    color: var(--fi-text);
    background: transparent !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: var(--fi-text-muted);
}

html[data-theme="dark"] .service-main-digest .main-content-header .mini-nav a:hover,
html[data-theme="dark"] .service-main-digest .main-content-header .mini-nav a:focus-visible {
    color: var(--fi-text-secondary);
}

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"] .service-purchase-panel .service-addons-help__trigger {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .service-purchase-panel .service-addons-help__trigger:hover,
html[data-theme="dark"] .service-purchase-panel .service-addons-help__trigger:focus-visible,
html[data-theme="dark"] .service-purchase-panel .service-addons-help.is-open .service-addons-help__trigger {
    color:#72d38e;
    background:rgba(35,195,102,.12);
}

html[data-theme="dark"] .service-purchase-panel .service-addons-help__tooltip {
    border-color:var(--fi-border);
    color:var(--fi-text-secondary);
    background:var(--fi-surface-raised);
    box-shadow:0 18px 42px rgba(0,0,0,.34);
}

html[data-theme="dark"] .service-purchase-panel .service-addons-help__tooltip::before {
    border-color:var(--fi-border);
    background:var(--fi-surface-raised);
}

html[data-theme="dark"] .service-purchase-panel .service-addons-help__tooltip .reviews-header-help__title {
    color:var(--fi-text);
}

html[data-theme="dark"] .service-purchase-panel .service-addons-help__tooltip .reviews-header-help__list {
    color:var(--fi-text-secondary);
}

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, .045);
}

html[data-theme="dark"] .aside-accordion-block .select-additional-services .additional-service-block.selected {
    background: rgba(35, 195, 102, .12);
}

html[data-theme="dark"] .aside-accordion-block .additional-service-block .additional-service-price {
    color: #72d38e;
    background: transparent;
}

html[data-theme="dark"] .aside-accordion-block .additional-service-block.selected .additional-service-price {
    color: #72d38e;
    background: transparent;
}

html[data-theme="dark"] .aside-accordion-block .additional-service-checkbox {
    border-color:#59626c;
    background:var(--fi-surface);
}

html[data-theme="dark"] .aside-accordion-block .additional-service-checkbox:checked {
    border-color:#23c366;
    background:#23c366;
}

html[data-theme="dark"] .aside-accordion-block .close-open-options div {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .aside-content-block .service-purchase-panel {
    color: var(--fi-text);
    background:transparent;
    border:0;
    box-shadow:none;
}

html[data-theme="dark"] .aside-content-block .service-purchase-panel .service-price-digest + .service-price-digest {
    border-color:var(--fi-border);
}

html[data-theme="dark"] .aside-content-block .service-purchase-panel .service-price-digest.service-price-wrapper {
    border-color:var(--fi-border) !important;
    background:var(--fi-surface) !important;
    box-shadow:0 2px 8px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-header {
    background:var(--fi-surface);
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-header:hover,
html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-header.active {
    background:var(--fi-bg-soft);
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-header .service-price {
    color:#23c366;
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-header .service-package-title {
    color:var(--fi-text);
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-header .plus {
    border:0;
    background:transparent;
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-body .order-details h3 {
    color:var(--fi-text-muted);
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .accordion-body .order-detail > svg {
    color:var(--fi-text-muted);
}

html[data-theme="dark"] .service-purchase-panel .service-package-feature {
    color:var(--fi-text-secondary);
}

html[data-theme="dark"] .service-purchase-panel .service-package-feature__icon {
    color:#72d38e;
}

html[data-theme="dark"] .service-purchase-panel .service-package-feature strong {
    color:var(--fi-text);
}

html[data-theme="dark"] .service-purchase-panel .service-cart-button {
    border-color:var(--fi-border);
    color:var(--fi-text-secondary);
    background:var(--fi-bg-soft);
}

html[data-theme="dark"] .service-purchase-panel .service-cart-button:hover,
html[data-theme="dark"] .service-purchase-panel .service-cart-button:focus-visible {
    border-color:rgba(114, 211, 142, .45);
    color:#72d38e;
    background:rgba(35, 195, 102, .1);
}

html[data-theme="dark"] .service-purchase-panel .service-cart-button:disabled {
    border-color:var(--fi-border);
    color:var(--fi-text-muted);
    background:var(--fi-bg-soft);
}

html[data-theme="dark"] .service-purchase-panel .service-price-digest .service-owner-order-state,
html[data-theme="dark"] .service-purchase-panel .service-price-digest .service-owner-order-state:hover,
html[data-theme="dark"] .service-purchase-panel .service-price-digest .service-owner-order-state:focus {
    border-color:var(--fi-border);
    color:var(--fi-text-muted);
    background:var(--fi-bg-soft);
}

html[data-theme="dark"] .service-purchase-panel .service-stage-payment {
    border-color:var(--fi-border);
    background:var(--fi-bg-soft);
}

html[data-theme="dark"] .service-stage-payment__head h3,
html[data-theme="dark"] .service-stage-payment__summary {
    color:var(--fi-text);
}

html[data-theme="dark"] .service-stage-payment__head p,
html[data-theme="dark"] .service-stage-payment__help,
html[data-theme="dark"] .service-stage-payment__schedule small,
html[data-theme="dark"] .service-stage-payment__details > p {
    color:var(--fi-text-muted);
}

html[data-theme="dark"] .service-stage-payment__options {
    background:#242a31;
}

html[data-theme="dark"] .service-stage-payment__options span {
    color:var(--fi-text-secondary);
}

html[data-theme="dark"] .service-stage-payment__options input:checked + span {
    color:var(--fi-text);
    background:var(--fi-surface-raised);
    box-shadow:0 1px 3px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .service-stage-payment__track span {
    background:#3c444d;
}

html[data-theme="dark"] .service-stage-payment__track span:first-child {
    background:#72d38e;
}

html[data-theme="dark"] .fiwork-order-track-page .fiwork-order-milestone-plan__number {
    background: #2a2e35;
    color: #aeb5c0;
}

html[data-theme="dark"] .fiwork-order-track-page .fiwork-order-milestone-plan__item.is-complete .fiwork-order-milestone-plan__number,
html[data-theme="dark"] .fiwork-order-track-page .fiwork-order-milestone-plan__item.is-active .fiwork-order-milestone-plan__number,
html[data-theme="dark"] .fiwork-order-track-page .fiwork-order-milestone-plan__item.is-paid .fiwork-order-milestone-plan__number {
    background: rgba(35, 195, 102, .15);
    color: #6ddc9b;
}

html[data-theme="dark"] .service-stage-payment__schedule strong {
    color:var(--fi-text-secondary);
}

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

html[data-theme="dark"] .service-recommendations__header h2 {
    color:var(--fi-text);
}

html[data-theme="dark"] .service-recommendations__controls button {
    color:var(--fi-text-secondary);
    background:var(--fi-surface-elevated);
}

html[data-theme="dark"] .service-recommendations__controls button:hover:not(:disabled),
html[data-theme="dark"] .service-recommendations__controls button:focus-visible:not(:disabled) {
    color:#72bdf3;
    background:rgba(33,150,243,.14);
}

html[data-theme="dark"] .service-media-loader::before {
    background:
        linear-gradient(110deg,#2d343c 8%,#39424b 18%,#2d343c 33%)
        0 0/220% 100%;
}

html[data-theme="dark"] .service-media-loader::after {
    background:rgba(24,28,32,.5);
}

/* 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__header .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-metrics__row dt
) {
    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-metrics,
html[data-theme="dark"] .service-details-page .freelancer-profile-metrics__row + .freelancer-profile-metrics__row {
    border-color: var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-metrics__row dd {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-metrics__rating svg {
    color: #f4b44e;
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest__mobile-rating {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest__mobile-rating strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest__toggle {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-digest__toggle:hover,
html[data-theme="dark"] .service-details-page .freelancer-profile-digest__toggle:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .service-details-page .freelancer-profile-metrics__reviews .is-positive i {
    background: #54d28d;
}

html[data-theme="dark"] .service-details-page .freelancer-profile-metrics__reviews .is-negative i {
    background: #ff7f90;
}

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);
}

/* 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__icon {
    color: #54d28d;
    background: rgba(35, 195, 102, .13);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest__content h3 {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest__content > p,
html[data-theme="dark"] .service-details-page .safe-deal-digest__details,
html[data-theme="dark"] .service-details-page .safe-deal-digest__details p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest__toggle {
    color: #69b7ff;
}

html[data-theme="dark"] .service-details-page .safe-deal-digest__toggle:hover {
    color: #91caff;
}

html[data-theme="dark"] .service-details-page .safe-deal-digest__details {
    border-top-color: var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .safe-deal-digest__details strong {
    color: var(--fi-text);
}

/* 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: 0 !important;
    border-top: 1px solid var(--fi-border-soft) !important;
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .about-service-digest.about-this-service-block > h2 {
    border: 0;
    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: 0;
    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: 0 !important;
    border-top: 1px solid var(--fi-border-soft) !important;
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .service-variant-digest.select-service-variant-block > h2 {
    border: 0;
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest--standalone {
    border-color: var(--fi-border) !important;
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest__header {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest__mobile-toggle {
    color: var(--fi-text-muted);
    background: transparent;
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest__mobile-toggle:hover,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest__mobile-toggle:focus-visible {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-tabs {
    border-bottom-color:var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-reviews::before,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-feedback:not(:last-of-type)::after {
    background:var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-tabs__item {
    color:var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-tabs__item:hover,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-tabs__item:focus-visible {
    color:var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-tabs__item--positive.is-active {
    color:#68c28d;
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-tabs__item--negative.is-active {
    color:#ef8b93;
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest__summary {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest__summary strong,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-feedback-contents-title,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-feedback-contents-para {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-reviews-help__trigger {
    color:var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-reviews-help__trigger:hover,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-reviews-help__trigger:focus-visible,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-reviews-help.is-open .service-reviews-help__trigger {
    color:#68c28d;
    background:rgba(104,194,141,.12);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-reviews-help__tooltip {
    border-color:var(--fi-border);
    color:var(--fi-text-secondary);
    background:var(--fi-surface-raised);
    box-shadow:0 18px 42px rgba(0,0,0,.34);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-reviews-help__tooltip::before {
    border-color:var(--fi-border);
    background:var(--fi-surface-raised);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .reviews-header-help__title {
    color:var(--fi-text);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .reviews-header-help__list {
    color:var(--fi-text-secondary);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-feedback {
    border-bottom-color: var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-feedback-contents {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .service-review-location,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .project-feedback-contents-time,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .freelancer-response-block .review-date {
    color:var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .freelancer-response-container {
    border-left:0 !important;
    background:transparent !important;
    box-shadow:none;
}

html[data-theme="dark"] .service-details-page .service-project-reviews-digest .freelancer-response-info .freelancer-response-username,
html[data-theme="dark"] .service-details-page .service-project-reviews-digest .freelancer-feedback .freelancer-response-text {
    color:var(--fi-text-secondary);
}

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

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: #23c366;
}

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;
}

/* The full-screen assistant keeps one branded chat canvas in both themes. */
html[data-theme="dark"] .fiwork-ai-modal.fiwork-ai-modal--fullscreen {
    background:
        radial-gradient(circle at 66% 72%, rgba(1,136,255,.22), transparent 36%),
        radial-gradient(circle at 12% 14%, rgba(111,102,255,.13), transparent 29%),
        radial-gradient(circle at 48% 108%, rgba(74,126,218,.12), transparent 38%),
        linear-gradient(125deg, #172033 0%, #1b2a46 50%, #172033 100%);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-dialog,
html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-body {
    border-color: transparent;
    color: #fff;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-header {
    border-bottom-color: rgba(255,255,255,.11);
    background: rgba(10,20,38,.38);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-close {
    border-color: rgba(255,255,255,.2);
    color: #fff;
    background: rgba(255,255,255,.11);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-title h2 {
    color: #fff;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-title p {
    color: rgba(239,245,255,.66);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action {
    border-color: rgba(255,255,255,.18);
    color: #fff;
    background: rgba(255,255,255,.1);
    box-shadow: none;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action:hover,
html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action:focus-visible {
    border-color: rgba(255,255,255,.32);
    color: #fff;
    background: rgba(255,255,255,.16);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action.is-active {
    border-color: rgba(255,255,255,.85);
    color: #1d3978;
    background: #fff;
    box-shadow: 0 8px 22px rgba(13,35,99,.14);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action__icon {
    background: rgba(255,255,255,.12);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action.is-active .fiwork-ai-action__icon {
    background: #edf5ff;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-action strong {
    color: inherit;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen :is(
    .fiwork-ai-message--assistant,
    .fiwork-ai-loader,
    .fiwork-ai-result,
    .fiwork-ai-composer
) {
    border-color: rgba(255,255,255,.62);
    color: #17233d;
    background: rgba(255,255,255,.97);
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-message--assistant strong,
html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-loader strong {
    color: #17233d;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen :is(
    .fiwork-ai-message--assistant p,
    .fiwork-ai-loader p
) {
    color: #66738a;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-result__header {
    border: 0;
    background: transparent;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-result__header span {
    color: #247fdd;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-result__header button {
    border: 0;
    color: #54708f;
    background: #eef4fa;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-result pre {
    color: #27344a;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-suggestions button {
    color: #277fd8;
    background: #edf5fd;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-suggestions button:first-child {
    color: #fff;
    background: #168cf1;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-field textarea,
html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-field textarea:focus {
    border: 0;
    color: #17233d;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-field textarea::placeholder {
    color: #8a95a7;
}

html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-run,
html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-run:hover:not(:disabled),
html[data-theme="dark"] .fiwork-ai-modal--fullscreen .fiwork-ai-run:focus-visible:not(:disabled) {
    border: 0;
    color: #fff;
    background: #168cf1;
}

/* 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 .input-with-icon-container .duration-select__trigger,
html[data-theme="dark"] #offer_modal_block .input-with-icon-container .duration-select__trigger:hover,
html[data-theme="dark"] #offer_modal_block .input-with-icon-container .duration-select__trigger:focus-visible,
html[data-theme="dark"] #offer_modal_block .input-with-icon-container .duration-select.is-open .duration-select__trigger {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-theme="dark"] #offer_modal_block .input-with-icon-container:focus-within {
    border-color: #4aa8f7;
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .16);
}

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 .offer-field-icon {
    color: #8f98a3;
}

html[data-theme="dark"] #offer_modal_block .offer-price-currency {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #offer_modal_block .input-with-icon-container:focus-within .offer-field-icon {
    color: #69b8ff;
}

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-package-picker__label,
html[data-theme="dark"] #offer_modal_block .offer-service-package-option small {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #offer_modal_block .offer-service-package-picker__options {
    background: #111a22;
}

html[data-theme="dark"] #offer_modal_block .offer-service-package-option {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] #offer_modal_block .offer-service-package-option:hover,
html[data-theme="dark"] #offer_modal_block .offer-service-package-option.is-active {
    color: var(--fi-text);
}

html[data-theme="dark"] #offer_modal_block .offer-service-package-option.is-active {
    background: var(--fi-surface-raised);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] #offer_modal_block .offer-service-summary__details > 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;
}

html[data-theme="dark"] #offer_modal_block .offer-modal-card,
html[data-theme="dark"] #offer_modal_block .offer-modal-footer {
    background: var(--fi-surface);
}

html[data-theme="dark"] #offer_modal_block .offer-modal-footer {
    border-top-color: var(--fi-border);
}

html[data-theme="dark"] #offer_modal_block .offer-modal-content {
    scrollbar-color: #4a5158 transparent;
}

html[data-theme="dark"] #offer_modal_block .offer-modal-content::-webkit-scrollbar-thumb {
    border-color: var(--fi-surface);
    background: #4a5158;
}

html[data-theme="dark"] #offer_modal_block .individual-order-suggestion-description {
    border-color: transparent;
    background: transparent;
}

@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-services__all {
        color: #85c7ff;
        background: #293641;
    }

    html[data-theme="dark"] .fiwork-mobile-services__empty {
        background: #293641;
    }

    html[data-theme="dark"] .fiwork-mobile-services__empty p {
        color: var(--fi-text-secondary);
    }

    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;
}

html[data-theme="dark"] .home-service-feed__heading > span {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .home-service-feed__heading h2,
html[data-theme="dark"] .home-service-feed .home-service-tile h3 {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .home-service-feed .home-service-tile .service-price-num {
    color: #52d98b !important;
}

html[data-theme="dark"] .home-service-feed__all {
    color: #85c7ff;
    background: rgba(61, 155, 239, .12);
}

html[data-theme="dark"] .home-service-feed__all:hover {
    color: #b4dcff;
    background: rgba(61, 155, 239, .18);
}

html[data-theme="dark"] .home-service-feed__empty {
    border-color: #343b43;
    color: var(--fi-text-secondary);
    background: #20252b;
}

html[data-theme="dark"] .home-service-feed .home-service-tile.ad-container {
    border-color: #343b43 !important;
    background: #20252b !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .16) !important;
}

html[data-theme="dark"] .home-service-feed .home-service-tile.ad-container:hover {
    border-color: #46515d !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .26) !important;
}

html[data-theme="dark"] .home-service-feed .home-service-tile::before {
    background:
        linear-gradient(#30373f 0 0) 0 0 / 100% 52% no-repeat,
        linear-gradient(#30373f 0 0) 14px calc(52% + 14px) / 78% 12px no-repeat,
        linear-gradient(#293038 0 0) 14px calc(52% + 34px) / 58% 12px no-repeat,
        radial-gradient(circle, #30373f 0 10px, transparent 11px) 13px calc(52% + 54px) / 22px 22px no-repeat,
        linear-gradient(#293038 0 0) 42px calc(52% + 60px) / 34% 9px no-repeat,
        linear-gradient(#293038 0 0) 14px calc(100% - 22px) / 32% 10px no-repeat,
        linear-gradient(#30373f 0 0) right 14px bottom 16px / 30% 12px no-repeat,
        #20252b;
}

html[data-theme="dark"] .home-service-feed .home-service-tile::after {
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%);
}

html[data-theme="dark"] .home-service-feed .home-service-tile .ad-banner {
    background: #20262d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

html[data-theme="dark"] .home-service-feed .home-service-tile .freelancer-username,
html[data-theme="dark"] .home-service-feed .home-service-tile .rating-stars p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .home-service-feed .home-service-tile .service-data-container {
    border-top-color: #343b43;
}

html[data-theme="dark"] .home-service-feed .home-service-tile__rating-separator {
    color: #697480;
}

html[data-theme="dark"] .home-service-feed .home-service-tile__rating-count {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .home-service-feed .home-service-tile .ad-banner .profile-wrapper-wishlist .white-like-icon,
html[data-theme="dark"] .home-service-feed .home-service-tile .ad-banner > a[href="#/"] .white-like-icon {
    border: 0;
    color: #111827;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .home-human-work-stage > .home-human-work {
    border-top-color: var(--fi-border);
    color: var(--fi-text);
}

html[data-theme="dark"] .home-human-work__header h2,
html[data-theme="dark"] .home-human-work__copy strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .home-human-work__header p,
html[data-theme="dark"] .home-human-work__copy > span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .home-human-work__card {
    border: 1px solid var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .home-human-work__card:hover {
    border-color: rgba(61, 155, 239, .3);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .home-human-work__more a {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__header,
html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__header h2,
html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__copy strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__header p,
html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__copy > span,
html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__more > span {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__card {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__card:hover {
    border-color: rgba(61, 155, 239, .3);
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .home-human-work-stage > .home-human-work .home-human-work__more a {
    border-color: var(--fi-border);
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .home-cost-estimator-stage {
    color: var(--fi-text);
}

html[data-theme="dark"] .home-cost-estimator__heading h2,
html[data-theme="dark"] .home-cost-estimator__field > label,
html[data-theme="dark"] .home-cost-estimator__deadline legend,
html[data-theme="dark"] .home-cost-estimator__empty > strong,
html[data-theme="dark"] .home-cost-estimator__loading > strong,
html[data-theme="dark"] .home-cost-estimator__result-head > div > strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .home-cost-estimator__heading p,
html[data-theme="dark"] .home-cost-estimator__field > small,
html[data-theme="dark"] .home-cost-estimator__empty > p,
html[data-theme="dark"] .home-cost-estimator__loading > p,
html[data-theme="dark"] .home-cost-estimator__result-head > div > span,
html[data-theme="dark"] .home-cost-estimator__recommended > span,
html[data-theme="dark"] .home-cost-estimator__disclaimer {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .home-cost-estimator__examples button {
    color: #b7c1ce;
    background: #2b3138;
}

html[data-theme="dark"] .home-cost-estimator__deadline-label {
    color: #c5cdd7;
}

html[data-theme="dark"] .home-cost-estimator__deadline-toggle input:checked ~ .home-cost-estimator__deadline-label {
    color: #e5eaf0;
}

html[data-theme="dark"] .home-cost-estimator__switch-track {
    background: #434b55;
}

html[data-theme="dark"] .home-cost-estimator__deadline-toggle input:checked + .home-cost-estimator__switch-track {
    background: #f16923;
}

html[data-theme="dark"] .home-cost-estimator__deadline-tooltip > button {
    color: #8f99a5;
}

html[data-theme="dark"] .home-cost-estimator__deadline-tooltip > button:hover,
html[data-theme="dark"] .home-cost-estimator__deadline-tooltip > button:focus-visible {
    color: #c4ccd6;
    background: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .home-cost-estimator__deadline-tooltip > span {
    color: #e9edf2;
    background: #303740;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .home-cost-estimator__tabs {
    background: #252a31;
}

html[data-theme="dark"] .home-cost-estimator__tab {
    color: #b9c2cd;
}

html[data-theme="dark"] .home-cost-estimator__tab:hover:not(.is-active) {
    color: #f3f5f8;
    background: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .home-cost-estimator__tab.is-active {
    color: #16191e;
    background: #f2f4f6;
}

html[data-theme="dark"] .home-cost-estimator__submit {
    color: #171a1f;
    background: #f0f2f4;
}

html[data-theme="dark"] .home-cost-estimator__submit:hover {
    color: #171a1f;
    background: #fff;
}

html[data-theme="dark"] .home-cost-estimator__calculator {
    background: #20252b;
}

html[data-theme="dark"] .home-cost-estimator__textarea-wrap textarea,
html[data-theme="dark"] .home-cost-estimator__result {
    color: var(--fi-text);
    background: #181c21;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

html[data-theme="dark"] .home-cost-estimator__textarea-wrap textarea::placeholder,
html[data-theme="dark"] .home-cost-estimator__counter,
html[data-theme="dark"] .home-cost-estimator__scale-labels {
    color: #7f8996;
}

html[data-theme="dark"] .home-cost-estimator__empty-icon {
    color: #62b4f7;
    background: #233546;
}

html[data-theme="dark"] .home-cost-estimator__empty ul,
html[data-theme="dark"] .home-cost-estimator__facts dt {
    color: #a4afbc;
}

html[data-theme="dark"] .home-cost-estimator__skeleton span {
    background: linear-gradient(90deg, #252b32 20%, #303740 50%, #252b32 80%);
    background-size: 240% 100%;
}

html[data-theme="dark"] .home-cost-estimator__recommended {
    background: #202d3a;
}

html[data-theme="dark"] .home-cost-estimator__recommended strong {
    color: #68b9fb;
}

html[data-theme="dark"] .home-cost-estimator__scale {
    background: #303740;
}

html[data-theme="dark"] .home-cost-estimator__facts {
    border-top-color: #30363e;
}

html[data-theme="dark"] .home-cost-estimator__facts > div {
    border-bottom-color: #30363e;
}

html[data-theme="dark"] .home-cost-estimator__facts dd,
html[data-theme="dark"] .home-cost-estimator__factors > strong {
    color: #d9e0e8;
}

html[data-theme="dark"] .home-cost-estimator__factors li,
html[data-theme="dark"] .home-cost-estimator__services {
    color: #b4bfcc;
    background: #282e35;
}

html[data-theme="dark"] .home-cost-estimator__confidence {
    color: #70d7a2;
    background: #1e382d;
}

html[data-theme="dark"] .fiwork-site-footer {
    --fiwork-footer-bg: #1f1f22;
    --fiwork-footer-card: #000;
    --fiwork-footer-text: #fff;
    --fiwork-footer-muted: rgba(255, 255, 255, .5);
    --fiwork-footer-subtle: rgba(255, 255, 255, .4);
    --fiwork-footer-border: rgba(255, 255, 255, .08);
    --fiwork-footer-hover: rgba(255, 255, 255, .72);
    --fiwork-footer-icon: rgba(255, 255, 255, .36);
    color: var(--fiwork-footer-muted);
    background: var(--fiwork-footer-bg) !important;
}

html[data-theme="dark"] .home-news-showcase {
    color: var(--fi-text);
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .home-news-showcase__footer {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] .home-news-showcase__header h2,
html[data-theme="dark"] .home-news-showcase__empty strong {
    color: var(--fi-text);
}

html[data-theme="dark"] .home-news-showcase__header p,
html[data-theme="dark"] .home-news-showcase__empty p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .home-news-card > a,
html[data-theme="dark"] .home-news-showcase__empty {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: rgba(31, 36, 43, .92);
    box-shadow: none;
}

html[data-theme="dark"] .home-news-card > a:hover {
    border-color: rgba(74, 168, 247, .34);
    box-shadow: none;
}

html[data-theme="dark"] .home-news-card--featured > a {
    border-color: #0188ff;
    color: #fff;
    background: linear-gradient(145deg, #0188ff 0%, #086bc9 100%);
}

html[data-theme="dark"] .home-news-card__meta {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .home-news-card__meta em {
    color: #9bcfff;
    background: rgba(1, 136, 255, .13);
}

html[data-theme="dark"] .home-news-card--featured .home-news-card__meta,
html[data-theme="dark"] .home-news-card--featured .home-news-card__action {
    color: rgba(255, 255, 255, .8);
}

html[data-theme="dark"] .home-news-showcase__all {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .home-news-showcase__all:hover {
    border-color: #0188ff;
    color: #fff;
    background: #0188ff;
}

html[data-theme="dark"] .home-news-showcase__navigation button {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
    box-shadow: none;
}

html[data-theme="dark"] .home-news-showcase__navigation button:hover:not(:disabled) {
    border-color: #0188ff;
    color: #fff;
    background: #0188ff;
}

html[data-theme="dark"] .home-news-showcase__navigation button:disabled {
    color: var(--fi-text-muted);
    background: var(--fi-surface-soft);
    box-shadow: none;
}

html[data-theme="dark"] .home-news-card--featured .home-news-card__meta em {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

/* 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;
    }
}

/* 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;
    }
}

@media (max-width: 768px) {
    html[data-theme="dark"] .project-preview-digest .my-services-mobile-add {
        border-color: #23c366;
        color: #fff;
        background: #23c366;
    }

    html[data-theme="dark"] .project-preview-digest .my-service-card__meta,
    html[data-theme="dark"] .project-preview-digest .my-service-card__sales-rating {
        border-color: var(--fi-border);
        background: var(--fi-bg-soft);
    }

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

    html[data-theme="dark"] .project-preview-digest .my-service-card__action,
    html[data-theme="dark"] .project-preview-digest .my-service-card__action--edit {
        border-color: var(--fi-border);
        color: var(--fi-text-secondary);
        background: var(--fi-bg-soft);
    }

    html[data-theme="dark"] .project-preview-digest .my-service-card__action--edit {
        border-color: #294c69;
        color: #73b9f5;
        background: #172a3a;
    }

    html[data-theme="dark"] .project-preview-digest .my-service-card__action--delete {
        border-color: #553039;
        color: #f08a93;
        background: #2b1b20;
    }

    html[data-theme="dark"] .project-preview-digest .my-service-card__pin-link {
        border-color: #55492f;
        color: #f2c267;
        background: #2a251b;
    }

    html[data-theme="dark"] .project-preview-digest
        .import-from-other-platforms .import-platform-description {
        color: var(--fi-text-secondary);
    }
}

html[data-theme="dark"] .project-preview-digest .my-services-skeleton {
    --my-services-skeleton-surface: #20252b;
    --my-services-skeleton-base: #30373f;
    --my-services-skeleton-soft: #293038;
    --my-services-skeleton-border: #343b43;
}

html[data-theme="dark"] .project-preview-digest .my-services-skeleton__card::after {
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .08) 50%, transparent 65%);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel__packages {
    border-color: var(--fi-border);
    background: var(--fi-bg-soft);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel__packages--1 {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .service-details-page .aside-content-block .service-purchase-panel .service-purchase-panel__packages--1 > .service-price-digest.service-price-wrapper {
    border-color: var(--fi-border) !important;
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest--single .service-price-digest__single-head.active,
html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest--single .service-price-digest__single-head.active:hover {
    background: var(--fi-surface);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest--single .service-price-digest__favorite .like-container {
    border-color: transparent;
    color: var(--fi-text);
    background: transparent;
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest--single .service-price-digest__favorite .like-container:hover,
html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest--single .service-price-digest__favorite .like-container.is-active {
    border-color: transparent;
    color: #ff8585;
    background: transparent;
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest--single .accordion-body {
    border-top-color: var(--fi-border-soft);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header,
html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header:hover {
    background: transparent;
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header.active {
    background: var(--fi-surface-raised);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header .service-package-title,
html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header .service-price {
    color: var(--fi-text-muted);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header.active .service-package-title {
    color: var(--fi-text);
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-header.active .service-price {
    color: #72d38e;
}

html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest .accordion-body {
    background: var(--fi-surface);
}

@media (max-width: 767px) {
    html[data-theme="dark"] body.service-details-page,
    html[data-theme="dark"] body.service-details-page > .main-block {
        background: var(--fi-bg) !important;
    }

    html[data-theme="dark"] .service-details-page .service-mobile-actions {
        border-bottom-color: var(--fi-border);
        background: rgba(26, 29, 32, .94);
        box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
    }

    html[data-theme="dark"] .service-details-page :is(
        .service-mobile-back-button,
        .service-mobile-search-button,
        .like-and-share-container--mobile .like-container
    ) {
        color: var(--fi-text-secondary);
        background: transparent;
    }

    html[data-theme="dark"] .service-details-page :is(
        .service-mobile-back-button,
        .service-mobile-search-button,
        .like-and-share-container--mobile .like-container
    ):active {
        background: var(--fi-surface-hover);
    }

    html[data-theme="dark"] .service-details-page :is(
        .service-main-digest .main-content-header,
        .service-main-digest .slider-screen-wrapper:not(.full-screen-wrapper),
        .service-main-digest .about-service-digest.about-this-service-block,
        .service-recommendations,
        .service-project-reviews-digest--standalone,
        .service-stage-payment
    ) {
        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"] .service-details-page .about-service-digest:is(.is-mobile-description-pending,.is-collapsible:not(.is-expanded))
        .service-mobile-description__viewport::after {
        background: linear-gradient(180deg, rgba(29, 32, 35, 0), var(--fi-surface) 78%);
    }

    html[data-theme="dark"] .service-details-page .ask-freelancer-digest .question-templates .question-template {
        border-color: 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 {
        color: var(--fi-text);
        background: var(--fi-surface-hover);
    }

    html[data-theme="dark"] .service-details-page .service-variant-digest .pricing-table :is(th, td):first-child {
        box-shadow: 1px 0 0 var(--fi-border);
    }

    html[data-theme="dark"] .service-details-page .service-purchase-panel .service-price-digest.open .order-now-container {
        border-top-color: var(--fi-border);
        background: rgba(26, 29, 32, .96);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .3);
    }

    html[data-theme="dark"] .service-details-page .service-purchase-panel .service-mobile-contact-button {
        border-color: var(--fi-border);
        color: #69b7ff;
        background: var(--fi-bg-soft);
    }

    html[data-theme="dark"] .service-details-page .service-purchase-panel .service-mobile-contact-button:hover,
    html[data-theme="dark"] .service-details-page .service-purchase-panel .service-mobile-contact-button:focus-visible {
        border-color: rgba(105, 183, 255, .42);
        color: #8bc8ff;
        background: var(--fi-surface-hover);
    }
}
html[data-theme="dark"] .duration-select__trigger {
    background: #191b20;
    border-color: #373a42;
    color: #f2f4f7;
}

html[data-theme="dark"] .duration-select__trigger:hover {
    border-color: #515660;
}

html[data-theme="dark"] .duration-select.is-disabled .duration-select__trigger {
    background: #22252b;
    color: #777d89;
}

html[data-theme="dark"] .duration-select__chevron {
    color: #aeb4bf;
}

html[data-theme="dark"] .duration-select__dropdown {
    background: #1b1e24;
    border-color: #383c45;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
    scrollbar-color: #555b66 transparent;
}

html[data-theme="dark"] .duration-select__dropdown::-webkit-scrollbar-thumb {
    background: #555b66;
    border-color: #1b1e24;
}

html[data-theme="dark"] .duration-select__search {
    background: #1b1e24;
}

html[data-theme="dark"] .duration-select__search-field {
    background: #15181d;
    border-color: #3a3f48;
    color: #9098a5;
}

html[data-theme="dark"] .duration-select__search-field:focus-within {
    border-color: #4aa8f7;
    box-shadow: 0 0 0 3px rgba(74, 168, 247, .14);
}

html[data-theme="dark"] .duration-select__search-input {
    color: #f2f4f7;
}

html[data-theme="dark"] .duration-select__search-input::placeholder {
    color: #777f8d;
}

html[data-theme="dark"] .duration-select__option {
    color: #d9dde5;
}

html[data-theme="dark"] .duration-select__option.is-highlighted {
    background: #252e3a;
    color: #8fc8ff;
}

html[data-theme="dark"] .duration-select__option.is-selected {
    color: #75baff;
}

html[data-theme="dark"] .duration-select__option.is-disabled {
    color: #777d89;
}

html[data-theme="dark"] .duration-select__option-meta,
html[data-theme="dark"] .duration-select__empty {
    color: #929aa7;
}

/* Inline profile editor keeps the same hierarchy as the public profile in dark mode. */
html[data-theme="dark"] .settings-page-digest .settings-profile-editor > :is(
    .information-about-you-container,
    .skills-container
) {
    color: var(--fiwork-color-text) !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor #settings-profile-form :is(
    .name-input,
    .specialty-input
),
html[data-theme="dark"] .settings-page-digest .settings-profile-editor > .information-about-you-container textarea {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor #settings-profile-form :is(
    .name-input,
    .specialty-input
):hover,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor > .information-about-you-container textarea:hover {
    border-color: var(--fiwork-color-border) !important;
    background: var(--fiwork-color-surface-subtle) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor #settings-profile-form :is(
    .name-input,
    .specialty-input
):focus-within,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor > .information-about-you-container textarea:focus {
    border-color: var(--fiwork-color-brand) !important;
    background: var(--fiwork-color-surface) !important;
    box-shadow: 0 0 0 3px var(--fiwork-focus-ring) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor #settings-profile-form :is(
    .name-input,
    .specialty-input
) input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editor__about > :is(
    .information-about-you-container,
    .skills-container
) {
    border-color: transparent !important;
    color: var(--fiwork-color-text) !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editor__about .information-about-you-container textarea {
    border: 0 !important;
    color: var(--fiwork-color-text-secondary) !important;
    background: transparent !important;
    box-shadow: none !important;
    outline-color: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editor__about .information-about-you-container textarea:hover {
    background: var(--fiwork-color-surface-subtle) !important;
    outline-color: var(--fiwork-color-border) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editor__about .information-about-you-container textarea:focus {
    background: var(--fiwork-color-surface) !important;
    outline-color: var(--fiwork-color-brand) !important;
    box-shadow: 0 0 0 3px var(--fiwork-focus-ring) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor.freelancer-main-info {
    border-color: var(--fiwork-color-border) !important;
    color: var(--fiwork-color-text) !important;
    background: var(--fiwork-color-surface) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .profile-community-main__edit {
    border-color: #23c366 !important;
    color: #fff !important;
    background: #23c366 !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .profile-community-main__edit:hover,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .profile-community-main__edit:focus-visible {
    border-color: #2bcf70 !important;
    color: #fff !important;
    background: #2bcf70 !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor
    .settings-profile-editor__avatar.user-avatar-container.freelancer-avatar-container {
    border-color: var(--fiwork-color-border) !important;
    background: var(--fiwork-color-surface-subtle) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input input,
    .specialty-input input
),
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editor__about h2 {
    color: var(--fiwork-color-text) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor #settings-profile-form .username-settings-input input {
    color: var(--fiwork-color-text-secondary) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editor__about .skills-wrapper .skill {
    border-color: var(--fiwork-color-border) !important;
    color: var(--fiwork-color-text-secondary) !important;
    background: var(--fiwork-color-surface-subtle) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input,
    .username-settings-input,
    .specialty-input
) {
    border: 0 !important;
    background: var(--fiwork-color-surface-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input,
    .username-settings-input,
    .specialty-input
):hover {
    background: var(--fiwork-color-surface-muted) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input,
    .username-settings-input,
    .specialty-input
):focus-within,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editable-about:focus-within {
    background: rgba(23, 125, 229, .14) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form .username-settings-input.is-username-valid,
html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form .username-settings-input.is-username-valid:hover,
html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form .username-settings-input.is-username-valid:focus-within {
    background: rgba(35, 195, 102, .12) !important;
    box-shadow: inset 0 0 0 1px rgba(82, 207, 134, .58) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form .username-settings-input.is-username-invalid,
html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form .username-settings-input.is-username-invalid:hover,
html[data-theme="dark"] .settings-page-digest .settings-profile.settings-profile-editor #settings-profile-form .username-settings-input.is-username-invalid:focus-within {
    background: rgba(220, 72, 72, .12) !important;
    box-shadow: inset 0 0 0 1px rgba(235, 101, 101, .58) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .username-settings-hint.is-ok {
    color: #64d79a !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .username-settings-hint.is-error {
    color: #f08b8b !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editable-about {
    border: 0 !important;
    background: var(--fiwork-color-surface-subtle) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-profile-editable-about:hover {
    background: var(--fiwork-color-surface-muted) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__heading h2 {
    color: var(--fiwork-color-text) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__heading p,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__field,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__hint {
    color: var(--fiwork-color-text-muted) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__duration {
    color: var(--fiwork-color-text-secondary);
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__input {
    border-color: var(--fiwork-color-border) !important;
    color: var(--fiwork-color-text-muted);
    background: var(--fiwork-color-surface-subtle) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__input:focus-within {
    border-color: #37698f !important;
    box-shadow: 0 0 0 3px rgba(105, 183, 255, .1) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__input:has(input[aria-invalid="true"]) {
    border-color: #7c4248 !important;
    background: rgba(220, 72, 72, .09) !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__input input[type="time"] {
    color: var(--fiwork-color-text) !important;
    background: transparent !important;
    color-scheme: dark;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule.is-incomplete .settings-work-schedule__duration,
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__hint.is-error {
    color: #f08b8b !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__clear {
    color: var(--fiwork-color-text-muted);
    background: transparent !important;
}

html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__clear:hover:not(:disabled),
html[data-theme="dark"] .settings-page-digest .settings-profile-editor .settings-work-schedule__clear:focus-visible {
    color: #f08b8b;
    background: rgba(220, 72, 72, .1) !important;
}

/* Settings workspace v3 */
html[data-theme="dark"] .settings-workspace--cards.profile-settings-block {
    color: var(--fi-text) !important;
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-page-intro.settings-workspace__promo {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards :is(
    .settings-page-intro h1,
    .settings-surface-card__header h2,
    .settings-profile-editor__about h2,
    .settings-work-schedule__heading h2,
    .privacy-settings-header h3
) {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .settings-workspace--cards :is(
    .settings-page-info,
    .settings-surface-card__header p,
    .settings-work-schedule__heading p,
    .settings-work-schedule__field,
    .settings-work-schedule__hint
) {
    color: var(--fi-text-secondary) !important;
}

html[data-theme="dark"] .settings-workspace--cards .aside-block .user-settings-block,
html[data-theme="dark"] .settings-workspace--cards .settings-surface-card,
html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor__identity,
html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor__about > .information-about-you-container,
html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor__about > .skills-container,
html[data-theme="dark"] .settings-workspace--cards .settings-work-schedule,
html[data-theme="dark"] .settings-workspace--cards .settings-language-currency > .privacy-settings-header,
html[data-theme="dark"] .settings-workspace--cards .settings-language-currency > .language-currency-form,
html[data-theme="dark"] .settings-workspace--cards .settings-privacy > .privacy-settings-header,
html[data-theme="dark"] .settings-workspace--cards .settings-privacy > .privacy-settings-form,
html[data-theme="dark"] .settings-workspace--cards .settings-verification > .banner-container,
html[data-theme="dark"] .settings-workspace--cards .settings-verification > .settings-container {
    border-color: transparent !important;
    background: var(--fi-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 12px 30px rgba(0, 0, 0, .08) !important;
}

html[data-theme="dark"] .settings-workspace--cards .aside-block .user-settings-tabs .user-setting.selected {
    color: var(--fiwork-color-text) !important;
    background: var(--fiwork-color-surface-muted) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-access :is(
    .phone-container,
    .email-container,
    .time-container
),
html[data-theme="dark"] .settings-workspace--cards .settings-access .change-password-container > div:not(.error_msg_container),
html[data-theme="dark"] .settings-workspace--cards .privacy-settings-option,
html[data-theme="dark"] .settings-workspace--cards .language-currency-field select,
html[data-theme="dark"] .settings-workspace--cards .settings-profile-editable-about {
    color: var(--fiwork-color-text) !important;
    background: var(--fiwork-color-surface-subtle) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-access .time-select {
    color: var(--fiwork-color-text) !important;
    background-color: var(--fiwork-color-surface) !important;
    color-scheme: dark;
}

html[data-theme="dark"] .settings-workspace--cards .settings-access .delete-account {
    color: #f08b8b !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-work-schedule__input {
    border-color: var(--fi-border) !important;
    color: var(--fi-text) !important;
    background: var(--fi-surface-raised) !important;
}

html[data-theme="dark"] .settings-page-digest.settings-workspace--cards
    .settings-profile-editor .settings-work-schedule__heading h2 {
    color: var(--fi-text) !important;
}

html[data-theme="dark"] .fiwork-ui-modal__button--secondary {
    color: var(--fi-text-secondary);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .fiwork-ui-modal__button--secondary:hover {
    color: var(--fi-text);
    background: var(--fi-surface-hover);
}

html[data-theme="dark"] .settings-delete-modal__message p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] .settings-delete-modal__field > span {
    color: var(--fi-text);
}

html[data-theme="dark"] .settings-delete-modal__field input {
    border-color: var(--fi-border);
    color: var(--fi-text);
    background: var(--fi-surface-raised);
}

html[data-theme="dark"] .settings-delete-modal__field input:focus {
    border-color: #0188ff;
    background: var(--fi-surface);
}

html[data-theme="dark"] .settings-workspace--cards .settings-language-currency .language-currency-form--app {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .profile-settings-content > .settings-language-currency.settings-panel.is-active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-language-currency .settings-surface-card {
    border: 0 !important;
    background: var(--settings-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-language-currency :is(
    .language-currency-row,
    .privacy-settings-option
) {
    border: 0 !important;
    color: var(--settings-app-text) !important;
    background: var(--settings-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-language-currency .language-currency-row__control select {
    border: 0 !important;
    color: var(--settings-app-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    color-scheme: dark;
}

html[data-theme="dark"] .settings-page-digest.settings-workspace--cards
    .settings-profile-editor :is(
        .settings-work-schedule__heading p,
        .settings-work-schedule__field,
        .settings-work-schedule__hint,
        .settings-work-schedule__duration
    ) {
    color: var(--fi-text-secondary) !important;
}

/* Settings workspace v4: application surfaces in dark mode. */
html[data-theme="dark"] .settings-workspace--cards.profile-settings-block {
    --settings-app-canvas: #232427;
    --settings-app-surface: #17181b;
    --settings-app-subtle: #242529;
    --settings-app-subtle-hover: #2b2d32;
    --settings-app-text: #f4f5f7;
    --settings-app-muted: #989bab;
    --settings-app-icon: #9295a6;
    background: transparent !important;
}

html[data-theme="dark"] .settings-workspace--cards .aside-block .user-settings-block {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-settings-page .settings-workspace--cards
    .aside-block .user-settings-block :is(.user-block, .user-settings-container),
html[data-theme="dark"] body.fiwork-settings-page .settings-workspace--cards :is(
    .settings-surface-card,
    .settings-profile-editor__identity,
    .settings-profile-editor__about > .information-about-you-container,
    .settings-profile-editor__about > .skills-container,
    .settings-profile-editor > .settings-work-schedule,
    .settings-profile-savebar,
    .settings-language-currency.settings-panel.is-active,
    .settings-privacy.settings-panel.is-active,
    .settings-verification > .settings-container
) {
    border-color: transparent !important;
    background: var(--settings-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .aside-block .user-settings-tabs .user-setting.selected,
html[data-theme="dark"] .settings-workspace--cards .aside-block .user-settings-tabs .user-setting:hover,
html[data-theme="dark"] .settings-workspace--cards .aside-block .user-settings-container > #open-logout-modal:hover,
html[data-theme="dark"] .settings-workspace--cards :is(
    .settings-app-row,
    .settings-profile-editable-about,
    .privacy-settings-option,
    .language-currency-field select,
    .settings-verification .radio-box,
    .settings-verification .loading-box,
    .settings-verification .verification-status-card
) {
    color: var(--settings-app-text) !important;
    background: var(--settings-app-subtle) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-app-row:hover {
    background: var(--settings-app-subtle-hover) !important;
}

html[data-theme="dark"] .settings-workspace--cards :is(.settings-language-currency, .settings-privacy) > :is(
    .privacy-settings-header,
    .language-currency-form,
    .privacy-settings-form
) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-access .settings-app-row :is(
    .phone-input,
    .email-input,
    .time-select
) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input,
    .username-settings-input,
    .specialty-input
),
html[data-theme="dark"] .settings-workspace--cards .settings-work-schedule__input,
html[data-theme="dark"] .settings-workspace--cards .settings-access .change-password-container > div:not(.error_msg_container) {
    color: var(--settings-app-text) !important;
    background: var(--settings-app-subtle) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input,
    .username-settings-input,
    .specialty-input
) {
    background: var(--settings-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor #settings-profile-form :is(
    .settings-profile-field .name-input,
    .username-settings-input,
    .specialty-input
):focus-within:not(.is-locked) {
    background: #202d3a !important;
    box-shadow: inset 0 0 0 1px #477ca8 !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor #settings-profile-form
    .username-settings-input.is-username-valid {
    background: #182d23 !important;
    box-shadow: inset 0 0 0 1px #347556 !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-profile-editor #settings-profile-form
    .username-settings-input.is-username-invalid {
    background: #332124 !important;
    box-shadow: inset 0 0 0 1px #8b4e56 !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-profile-savebar {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-field-lock {
    color: #8f93a0;
}

html[data-theme="dark"] .settings-workspace--cards .settings-field-lock:hover,
html[data-theme="dark"] .settings-workspace--cards .settings-field-lock:focus-visible {
    color: #c3c7d1;
    background: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .settings-workspace--cards :is(
    .settings-app-row__body > label,
    .settings-surface-card__header h2,
    .settings-profile-editor__about h2,
    .settings-work-schedule__heading h2,
    .privacy-settings-header h3,
    .settings-verification .description h2
) {
    color: var(--settings-app-text) !important;
}

/* Final privacy shell override for the card-based settings layout. */
html[data-theme="dark"] .settings-workspace--cards .profile-settings-content > .settings-privacy.settings-panel.is-active,
html[data-theme="dark"] .settings-workspace--cards .settings-privacy > .privacy-settings-form--app {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-privacy .settings-privacy__preferences {
    border: 0 !important;
    background: var(--settings-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .settings-surface-card > .settings-surface-card__header,
html[data-theme="dark"] .settings-workspace--cards .settings-surface-card > .settings-surface-card__header > div,
html[data-theme="dark"] .settings-workspace--cards .settings-surface-card > .settings-surface-card__header :is(h2, p) {
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Shared App-style dashboard shell. */
html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell {
    --dashboard-app-surface: #17191d;
    --dashboard-app-subtle: #23262b;
    --dashboard-app-subtle-hover: #2a2e34;
    --dashboard-app-text: #f3f4f6;
    --dashboard-app-muted: #9ba1ad;
    --dashboard-app-icon: #a2a8b5;
    --dashboard-app-card-border: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell :is(
    .client-dashboard-stats,
    .dashboard-blog-digest,
    .dashboard-market-digest,
    .dashboard-activity-digest,
    .dashboard-profile-digest > .freelancer-reviews-container,
    .dashboard-profile-digest > .dashboard-ai-digest,
    .dashboard-profile-digest > .dashboard-activities-digest,
    .dashboard-profile-digest > .dashboard-messages-digest
) {
    border-color: var(--dashboard-app-card-border) !important;
    background-color: var(--dashboard-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell :is(
    .dashboard-finance,
    .savings-goal-card
) {
    border-color: var(--dashboard-app-card-border) !important;
}

html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell .client-dashboard-stat {
    border-color: transparent !important;
    color: var(--dashboard-app-text);
    background: var(--dashboard-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell .client-dashboard-stat:hover,
html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell .client-dashboard-stat:focus-visible {
    border-color: transparent !important;
    background: var(--dashboard-app-subtle-hover) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell :is(
    .freelancer-avatar-name-container .freelancer-name
) {
    color: var(--dashboard-app-text) !important;
}

html[data-theme="dark"] .fiwork-dashboard-page .dashboard-app-shell :is(
    .freelancer-avatar-name-container .freelancer-username
) {
    color: var(--dashboard-app-muted) !important;
}

/* /manage-services App shell: dark theme. */
html[data-theme="dark"] body.fiwork-manage-services-page {
    --manage-app-canvas: #232427;
    --manage-app-surface: #17191d;
    --manage-app-subtle: #24272c;
    --manage-app-subtle-hover: #2c3036;
    --manage-app-text: #f3f4f6;
    --manage-app-muted: #9ba1ad;
    --manage-app-blue: #168ff5;
    --manage-app-card-border: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] body.fiwork-manage-services-page,
html[data-theme="dark"] body.fiwork-manage-services-page > .computer-header--air {
    background-color: var(--manage-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page > .main-block,
html[data-theme="dark"] body.fiwork-manage-services-page > .main-block > .main-container.fiwork-layout-container,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest {
    border-color: transparent !important;
    background: var(--manage-app-canvas) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest :is(
    .aside-container,
    .my-services-promo,
    .my-services-wrapper
) {
    border-color: var(--manage-app-card-border) !important;
    background: var(--manage-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest :is(
    .weekend-services-card,
    .my-services-wrapper-search,
    .my-services-wrapper-container .my-service,
    .my-services-skeleton__card
) {
    border-color: transparent !important;
    background: var(--manage-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest :is(
    .import-services,
    .my-services-wrapper-header
) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-wrapper-container .my-service:hover,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-wrapper-container .my-service:focus-within,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-wrapper-container .my-service:has(.my-service-card__more[open]) {
    border-color: transparent !important;
    background: var(--manage-app-subtle-hover) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-wrapper-nav-elem.active {
    color: #75bfff !important;
    background: rgba(1, 136, 255, .18) !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-wrapper-nav-elem.active .elem-count {
    color: #75bfff !important;
    background: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest :is(
    .freelancer-proposals-title,
    .weekend-services-card__title strong,
    .import-services h3
) {
    color: var(--manage-app-text) !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest :is(
    .fiwork-vacancy-intro__description,
    .weekend-services-card__content > p,
    .import-services p
) {
    color: var(--manage-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-skeleton {
    --my-services-skeleton-surface: var(--manage-app-subtle);
    --my-services-skeleton-base: #383c43;
    --my-services-skeleton-soft: #30343a;
    --my-services-skeleton-border: transparent;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest .my-services-wrapper-search {
    overflow: hidden;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input:hover,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input:focus,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input:focus-visible {
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    color: var(--manage-app-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    appearance: none;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input::placeholder {
    color: var(--manage-app-muted) !important;
    opacity: 1;
}

html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input:-webkit-autofill,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input:-webkit-autofill:hover,
html[data-theme="dark"] body.fiwork-manage-services-page .project-preview-digest input.my-services-wrapper-search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--manage-app-text) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--manage-app-subtle) inset !important;
    caret-color: var(--manage-app-text);
}

/* /manage_orders and /orders App shell: dark theme. */
html[data-theme="dark"] body.fiwork-orders-page {
    --orders-app-canvas: #232427;
    --orders-app-surface: #17191d;
    --orders-app-subtle: #24272c;
    --orders-app-subtle-hover: #2c3036;
    --orders-app-text: #f3f4f6;
    --orders-app-muted: #9ba1ad;
    --orders-app-blue: #168ff5;
    --orders-app-card-border: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] body.fiwork-orders-page,
html[data-theme="dark"] body.fiwork-orders-page > .computer-header--air,
html[data-theme="dark"] body.fiwork-orders-page > .main-block {
    border-color: transparent !important;
    background: var(--orders-app-canvas) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-orders-page .main-container.fiwork-layout-container,
html[data-theme="dark"] body.fiwork-orders-page .main-container.fiwork-layout-container:has(> .orders-workspace-page),
html[data-theme="dark"] body.fiwork-orders-page .main-block .main-container.fiwork-layout-container:has(> .orders-workspace-page),
html[data-theme="dark"] body.fiwork-orders-page .main-container.fiwork-layout-container > .orders-workspace-page {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-in-block {
    border-color: var(--orders-app-card-border) !important;
    background: var(--orders-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page :is(
    .order-workspace-simple-head,
    .order-workspace-simple-head > div,
    .order-workspace-simple-head h2,
    .order-workspace-simple-head p,
    .order-list-controls
) {
    background: transparent !important;
    background-image: none !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-workspace-simple-head h2 {
    color: var(--orders-app-text) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-workspace-simple-head p {
    color: var(--orders-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-list-controls,
html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-in-table .table-header,
html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-in-table .table-row {
    border-color: #292d32 !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-search-field,
html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-in-table .table-header {
    background: var(--orders-app-subtle) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-in-table .table-row {
    background: var(--orders-app-surface) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-in-table .table-row:hover {
    background: var(--orders-app-subtle-hover) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-filter-count .order-filter-option.selected {
    color: #64b5f6 !important;
    background: rgba(1, 136, 255, .18) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-filter-count .order-filter-option.selected .count {
    color: #8ac8fb !important;
    background: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-search-field .searchbar,
html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-search-field .searchbar:hover,
html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-search-field .searchbar:focus {
    color: var(--orders-app-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-orders-page .orders-workspace-page .order-search-field .searchbar::placeholder {
    color: var(--orders-app-muted) !important;
    opacity: 1;
}

/* /portfolio App shell: dark theme. */
html[data-theme="dark"] body.fiwork-page-portfolio {
    --portfolio-app-canvas: #232427;
    --portfolio-app-surface: #17191d;
    --portfolio-app-subtle: #24272c;
    --portfolio-app-subtle-hover: #2c3036;
    --portfolio-app-text: #f3f4f6;
    --portfolio-app-muted: #9ba1ad;
    --portfolio-app-blue: #168ff5;
    --portfolio-app-card-border: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] body.fiwork-page-portfolio,
html[data-theme="dark"] body.fiwork-page-portfolio > .computer-header--air,
html[data-theme="dark"] body.fiwork-page-portfolio > .main-block,
html[data-theme="dark"] body.fiwork-page-portfolio > .main-block > .main-container.fiwork-layout-container,
html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest {
    border-color: transparent !important;
    background: var(--portfolio-app-canvas) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio > .main-block > .main-container.fiwork-layout-container {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .main-container.fiwork-layout-container,
html[data-theme="dark"] body.fiwork-page-portfolio .main-container.fiwork-layout-container:has(> .portfolio-page-digest),
html[data-theme="dark"] body.fiwork-page-portfolio .main-block .main-container.fiwork-layout-container:has(> .portfolio-page-digest) {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .main-container.fiwork-layout-container > .portfolio-page-digest {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest :is(
    .portfolio-manager-sidebar,
    .portfolio-manager-content
) {
    border-color: var(--portfolio-app-card-border) !important;
    background: var(--portfolio-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .my-portfolio-container {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .my-portfolio-container::before,
html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .my-portfolio-container::after {
    content: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest.my-portfolio-block .portfolio-manager-content {
    padding: 30px 32px !important;
    border-radius: 26px !important;
    background: var(--portfolio-app-surface) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest :is(
    .portfolio-filter-card,
    .portfolio-summary-card,
    .portfolio-search-empty,
    .my-portfolio-empty-state
) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest :is(
    .portfolio-panel-header,
    .portfolio-panel-header > div,
    .portfolio-panel-header h2,
    .portfolio-panel-header p,
    .import-portfolio-block
) {
    background: transparent !important;
    background-image: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest :is(
    .portfolio-panel-header h2,
    .portfolio-filter-card__head strong,
    .portfolio-summary-card__title strong,
    .portfolio-summary-card dd,
    .import-portfolio-block h3,
    .portfolio-search-empty strong
) {
    color: var(--portfolio-app-text) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest :is(
    .portfolio-panel-header p,
    .portfolio-filter-card__head small,
    .portfolio-summary-card dt,
    .import-portfolio-block p,
    .portfolio-search-empty span
) {
    color: var(--portfolio-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card {
    --vacancy-ui-text: var(--portfolio-app-text);
    --vacancy-ui-label: var(--portfolio-app-text);
    --vacancy-ui-secondary: #c4c8d0;
    --vacancy-ui-tertiary: var(--portfolio-app-muted);
    --vacancy-ui-stroke: transparent;
    --vacancy-ui-surface: transparent;
    --vacancy-ui-surface-hover: rgba(255, 255, 255, .09);
    --vacancy-ui-input: var(--portfolio-app-subtle);
    --vacancy-ui-accent: var(--portfolio-app-blue);
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__input {
    border-color: transparent !important;
    background: var(--portfolio-app-subtle) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__options label > span {
    border-color: transparent !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__options label:hover > span {
    background: rgba(255, 255, 255, .07) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__input input,
html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__input input:hover,
html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__input input:focus {
    color: var(--portfolio-app-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__input input::placeholder {
    color: var(--portfolio-app-muted) !important;
    opacity: 1;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__options input:checked + span {
    color: #8ac8fb !important;
    background: rgba(1, 136, 255, .18) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-filter-card .vacancy-hirify-filter__divider {
    background: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .import-from-other-platforms .platform {
    border-color: rgba(255, 255, 255, .1) !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .import-from-other-platforms .platform:hover,
html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .import-from-other-platforms .platform:focus-visible {
    border-color: rgba(138, 200, 251, .38) !important;
    background: rgba(255, 255, 255, .07) !important;
}

html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest .portfolio-grid-skeleton {
    --portfolio-skeleton-surface: var(--portfolio-app-subtle);
    --portfolio-skeleton-base: #383c43;
    --portfolio-skeleton-soft: #30343a;
    --portfolio-skeleton-border: transparent;
}

@media (max-width: 680px) {
    html[data-theme="dark"] body.fiwork-page-portfolio .portfolio-page-digest.my-portfolio-block .portfolio-manager-content {
        padding: 18px 12px 12px !important;
        border-radius: 20px !important;
    }
}

/* /bookmarks on the shared /buyer App shell. */
html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page.bookmarks-page--digest {
    color: var(--dashboard-app-text) !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest :is(
    .bookmarks-page__header,
    .bookmarks-sidebar__panel,
    .bookmarks-page__content
) {
    border-color: var(--dashboard-app-card-border) !important;
    color: var(--dashboard-app-text) !important;
    background: var(--dashboard-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest :is(
    .bookmarks-page__title,
    .bookmarks-seller-card__name,
    .bookmarks-empty__title
) {
    color: var(--dashboard-app-text) !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest :is(
    .bookmarks-page__header-copy p,
    .bookmarks-seller-card__username,
    .bookmarks-empty__text
) {
    color: var(--dashboard-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-tabs__item,
html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-category-filter__option,
html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-seller-card {
    border-color: transparent !important;
    color: var(--dashboard-app-muted) !important;
    background: var(--dashboard-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest :is(
    .bookmarks-tabs__item,
    .bookmarks-category-filter__option,
    .bookmarks-seller-card
):hover,
html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest :is(
    .bookmarks-tabs__item,
    .bookmarks-category-filter__option,
    .bookmarks-seller-card
):focus-visible {
    border-color: transparent !important;
    color: var(--dashboard-app-text) !important;
    background: var(--dashboard-app-subtle-hover) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-tabs__item.active,
html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-category-filter__option.active {
    border-color: transparent !important;
    color: #75baf4 !important;
    background: rgba(1, 136, 255, .18) !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-tabs__item.active .bookmarks-tabs__count,
html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-category-filter__option.active b {
    color: #8ac8fb !important;
    background: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-category-filter {
    border-color: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-sidebar__panel {
    border: 1px solid var(--dashboard-app-card-border) !important;
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-bookmarks-page .bookmarks-page--digest .bookmarks-page__content {
    border-top: 0 !important;
}

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

/* /client/job/details App workspace: dark theme. */
html[data-theme="dark"] body.fiwork-client-job-details-page {
    --job-app-canvas: #101214;
    --job-app-surface: #17191d;
    --job-app-subtle: #23262c;
    --job-app-subtle-hover: #292d33;
    --job-app-text: #f2f4f7;
    --job-app-muted: #9ba3af;
    background: var(--job-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page > .main-block,
html[data-theme="dark"] body.fiwork-client-job-details-page > .main-block > .main-container,
html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-page {
    border-color: transparent !important;
    background: var(--job-app-canvas) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page > .main-block > .main-container,
html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-page {
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-card,
    .client-job-offers,
    .client-job-interview-modal-container
) {
    border-color: transparent !important;
    color: var(--job-app-text) !important;
    background: var(--job-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-card__side,
    .client-job-simple-info,
    .client-simple-task-review-bar,
    .client-offer-card,
    .client-content-submission,
    .client-content-submissions__empty,
    .client-offer-empty,
    .client-job-interview-modal__project,
    .client-job-interview-modal__field textarea
) {
    border-color: transparent !important;
    color: #c2c7d0 !important;
    background: var(--job-app-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-card__title,
    .client-job-price__hint span,
    .client-job-buyer__body a,
    .client-job-offers__header h2,
    .client-offer-card__title,
    .client-offer-card__orders strong,
    .client-simple-task-review-bar__stats strong,
    .client-content-submission__person strong,
    .client-offer-empty h3,
    .client-job-interview-modal-header h3,
    .client-job-interview-modal__project strong,
    .client-job-interview-modal__field label
) {
    color: var(--job-app-text) !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-card__eyebrow,
    .client-job-card__description,
    .client-job-price span,
    .client-job-price small,
    .client-job-price__hint,
    .client-job-buyer__body,
    .client-job-buyer__body span,
    .client-job-informers,
    .client-job-offers__lead,
    .client-job-sort,
    .client-offer-card__subtitle,
    .client-offer-card__orders,
    .client-offer-card__text,
    .client-offer-reviews,
    .client-simple-task-review-bar__stats,
    .client-content-submission p,
    .client-content-submission__person span,
    .client-offer-empty p,
    .client-job-interview-modal__id,
    .client-job-interview-modal__project span
) {
    color: var(--job-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-buyer,
html[data-theme="dark"] body.fiwork-client-job-details-page .client-offer-card__bottom,
html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-interview-modal-header {
    border-color: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-icon-button,
    .client-offer-icon-button,
    .client-offer-thumb-button,
    .client-job-button--outline,
    .client-simple-task-decision-form,
    .client-content-submission__note,
    .client-content-submission__payout
) {
    border-color: transparent !important;
    color: #c2c7d0 !important;
    background: #1d2025 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-icon-button,
    .client-offer-icon-button,
    .client-offer-thumb-button,
    .client-job-button--outline
):hover,
html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-icon-button,
    .client-offer-icon-button,
    .client-offer-thumb-button,
    .client-job-button--outline
):focus-visible {
    color: #8ac7ff !important;
    background: #17324f !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-filter-pill,
    .client-task-submission-tab
) {
    border-color: transparent !important;
    color: #c2c7d0 !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-filter-pill,
    .client-task-submission-tab
):hover,
html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-filter-pill.active,
    .client-task-submission-tab.active
) {
    color: #8ac7ff !important;
    background: #17324f !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-task-submission-tab span {
    color: #aab1bc !important;
    background: #30343a !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-task-submission-tab.active span {
    color: #8ac7ff !important;
    background: #244361 !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page :is(
    .client-job-tags span,
    .client-job-tags a,
    .client-content-submission__file,
    .client-offer-attachment
) {
    border-color: transparent !important;
    color: #8ac7ff !important;
    background: #17324f !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-status--blue {
    color: #8ac7ff !important;
    background: #17324f !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-status--green {
    color: #69d39a !important;
    background: #173426 !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-status--gray {
    color: #b1b8c2 !important;
    background: #30343a !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-status--orange {
    color: #f4bb68 !important;
    background: #3c2c17 !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-status--red {
    color: #ff949d !important;
    background: #3a2025 !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-review-badge {
    color: #e7c872 !important;
    background: #3b321b !important;
}

html[data-theme="dark"] body.fiwork-client-job-details-page .client-job-interview-modal__field textarea {
    color: var(--job-app-text) !important;
}

/* ========================================================================== */
/* Public user and company profiles — dark App surface                        */
/* ========================================================================== */

html[data-theme="dark"] body.fiwork-public-profile-page {
    --public-profile-canvas: #101214;
    --public-profile-surface: #17191d;
    --public-profile-subtle: #23262c;
    --public-profile-subtle-hover: #292d33;
    --public-profile-text: #f2f4f7;
    --public-profile-muted: #9ba3af;
    --public-profile-blue: #42a5ff;
    --public-profile-blue-soft: #17324f;
    --public-profile-service-card: #202328;
    --public-profile-service-card-hover: #25292f;
    --public-profile-service-card-border: rgba(255, 255, 255, .08);
    --public-profile-card-border: rgba(255, 255, 255, .08);
    --public-profile-skeleton-base: #25282e;
    --public-profile-skeleton-highlight: #343840;
    background: var(--public-profile-canvas) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .main-block,
    .main-container,
    .profile-details-page,
    .company-profile-page,
    .profile-main-shell,
    .profile-main-shell__container,
    .profile-reviews-shell,
    .profile-reviews-shell__container,
    .freelancer-info-block
) {
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .profile-community-main > .freelancer-main-info,
    .company-profile-info-block .freelancer-main-info,
    .profile-rating-digest,
    .profile-resume-digest,
    .profile-portfolio-digest,
    .profile-reviews-digest,
    .my-services-block,
    .company-profile-side-card
) {
    border-color: transparent !important;
    background: var(--public-profile-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-public-user-profile-page :is(
    .profile-community-main > .freelancer-main-info,
    .profile-rating-digest,
    .profile-resume-digest,
    .profile-portfolio-digest,
    .profile-reviews-digest,
    .my-services-block
) {
    border: 1px solid var(--public-profile-card-border) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .freelancer-name,
    .freelancer-name-string,
    .about-freelancer-container h2,
    .freelancer-rating h4,
    .profile-portfolio-digest .freelancer-portfolio-header h2,
    .profile-reviews-digest .reviews-about-freelancer-header h2,
    .my-services-block > h2,
    .company-profile-side-card h2,
    .company-owner a,
    .profile-resume-digest .profile-resume-trigger__text
) {
    color: var(--public-profile-text) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .freelancer-username,
    .freelancer-position,
    .about-freelancer-container p,
    .company-links p,
    .company-owner span,
    .company-owner small
) {
    color: var(--public-profile-muted) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .profile-community-main__edit,
    .profile-actions-container .like-container,
    .profile-actions-container .service-report-button,
    .profile-actions-container .share-icon-container,
    .profile-content-tabs,
    .freelancer-trophies-container,
    .freelancer-skills span,
    .profile-portfolio-digest .freelancer-portfolio-nav-elem,
    .profile-reviews-digest .reviews-filter-action,
    .profile-portfolio-digest .portfolio-elem,
    .my-services-block .ad-container,
    .profile-reviews-digest .reviewer-review,
    .profile-services-empty,
    .company-links a
) {
    border-color: transparent !important;
    background: var(--public-profile-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .profile-community-main__edit,
    .profile-actions-container .like-container,
    .profile-actions-container .service-report-button,
    .profile-actions-container .share-icon-container,
    .freelancer-skills span,
    .profile-portfolio-digest .freelancer-portfolio-nav-elem,
    .profile-reviews-digest .reviews-filter-action,
    .company-links a
) {
    color: #c2c7d0 !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page :is(
    .profile-community-main__edit,
    .profile-actions-container .like-container,
    .profile-actions-container .service-report-button,
    .profile-actions-container .share-icon-container,
    .company-links a
):hover {
    color: #8ac7ff !important;
    background: var(--public-profile-blue-soft) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-content-tabs .company-profile-tabs__list,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-portfolio-digest .freelancer-portfolio-header,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .reviews-about-freelancer-header,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-rating-digest .freelancer-rating-data-container {
    border-color: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-content-tabs .company-profile-tabs__item {
    color: var(--public-profile-muted) !important;
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-content-tabs .company-profile-tabs__item:hover,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-content-tabs .company-profile-tabs__item.is-active {
    color: var(--public-profile-text) !important;
    background: #30343a !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-portfolio-digest .freelancer-portfolio-nav-elem.active {
    color: #8ac7ff !important;
    background: var(--public-profile-blue-soft) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .reviewer-username,
    .review-order-title,
    .reviewer-review-text,
    .freelancer-response-text
) {
    color: #dfe3e8 !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .review-order-meta,
    .freelancer-response-container
) {
    border-color: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .freelancer-response-container {
    background: #1d2025 !important;
}

html[data-theme="dark"] body.fiwork-public-company-profile-page :is(
    .company-profile-private-notice,
    .edit-own-profile-block:not(.company-profile-banner)
) {
    border-color: transparent !important;
    background: var(--public-profile-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .profile-service-reviews__header,
    .profile-service-review-tabs,
    .profile-service-review-tabs__item,
    .reviewer-review,
    .freelancer-response-container
) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .profile-service-reviews__title h2,
    .profile-service-reviews__summary strong,
    .reviewer-username
) {
    color: var(--public-profile-text) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .profile-service-reviews__summary,
    .profile-service-review-tabs__item,
    .review-order-title,
    .review-date
) {
    color: var(--public-profile-muted) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .profile-service-review-tabs__item--positive.active {
    color: #69d39a !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .profile-service-review-tabs__item--negative.active {
    color: #ff949d !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .reviews-freelancer-container,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .review-freelancer-content:not(:last-of-type)::after {
    border-color: rgba(255, 255, 255, .08) !important;
    background-color: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .reviews-freelancer-container {
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .review-order-label {
    color: #aab1bc !important;
    background: var(--public-profile-subtle) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .profile-service-reviews__mobile-toggle:hover,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .profile-service-reviews__mobile-toggle:focus-visible {
    color: #dfe3e8 !important;
    background: var(--public-profile-subtle) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .project-feedback-contents,
    .project-feedback-contents .open-close-response-option,
    .project-feedback-contents .freelancer-response-container
) {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .project-feedback-contents-title,
    .project-feedback-contents-para,
    .freelancer-response-username,
    .freelancer-response-text
) {
    color: #dfe3e8 !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest :is(
    .service-review-meta,
    .project-feedback-contents-time,
    .service-review-location
) {
    color: var(--public-profile-muted) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-reviews-digest .project-feedback-contents .write-response-block {
    border-color: transparent !important;
    background: var(--public-profile-subtle) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-community-main .freelancer-info-content1 .freelancer-trophies-container,
html[data-theme="dark"] body.fiwork-public-profile-page .profile-achievement {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-achievement::after {
    color: #fff !important;
    background: #25282d !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .profile-achievement::before {
    border-top-color: #25282d !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .my-services-block .ad-container {
    border-color: var(--public-profile-service-card-border) !important;
    background: var(--public-profile-service-card) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .my-services-block .ad-container:hover {
    border-color: rgba(255, 255, 255, .13) !important;
    background: var(--public-profile-service-card-hover) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] body.fiwork-public-profile-page .my-services-block .ad-container .service-data-container {
    border-top-color: var(--public-profile-service-card-border) !important;
    background: transparent !important;
}

/* Create service App surface ------------------------------------------------ */
@media not all {
html[data-theme="dark"] .main-block--service-create .create-fiwork-app {
    --create-app-canvas: var(--fi-bg);
    --create-app-surface: var(--fi-surface);
    --create-app-subtle: var(--fi-surface-raised);
    --create-app-subtle-hover: var(--fi-surface-hover);
    --create-app-border: rgba(255, 255, 255, .08);
    --create-app-text: var(--fi-text);
    --create-app-muted: var(--fi-text-secondary);
    --create-app-primary: #168ff5;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .main-block--service-create:has(.create-fiwork-app),
html[data-theme="dark"] .main-block--service-create:has(.create-fiwork-app) > .main-container {
    background: var(--fi-bg) !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .create-fiwork-form-container {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .fiwork-app-surface {
    border-color: var(--create-app-border) !important;
    color: var(--create-app-text);
    background: var(--create-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .create-fiwork-app :is(
    .create-fiwork-intro h1,
    .create-fiwork-step-header__copy > span,
    .create-fiwork-step-stage .step-stage-name,
    #subcategory_steps_mount .subcat-stage .step-stage-name,
    .create-fiwork-catalog-parameters > .step-stage-name
) {
    color: var(--create-app-text) !important;
}

html[data-theme="dark"] .create-fiwork-app :is(
    .create-fiwork-intro > p,
    .client-job-create-back,
    .create-fiwork-step-header__copy > small
) {
    color: var(--create-app-muted) !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .create-fiwork-step-header .create-fiwork-step-num-container,
html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .create-fiwork-step.active .create-fiwork-step-header .create-fiwork-step-num-container,
html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .create-fiwork-step.filled .create-fiwork-step-header .create-fiwork-step-num-container {
    color: #fff;
    background: var(--create-app-primary);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .fiwork-app-surface.filled .create-fiwork-step-num-container {
    background: #23c366;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app :is(
    .create-fiwork-step-stage,
    #subcategory_steps_mount .subcat-stage,
    .create-fiwork-catalog-parameters
) {
    border-color: transparent !important;
    background: var(--create-app-subtle) !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app :is(
    .create-fiwork-step-enter-name .step-stage-form textarea,
    .create-fiwork-step-select-section .step-stage-form select,
    #subcategory_steps_mount .subcat-stage .step-stage-form,
    .create-fiwork-catalog-parameters > .step-stage-form,
    .upload-cover-container,
    .upload-cover-primary,
    .upload-cover-container .fiwork-gallery-upload-section,
    .fiwork-files-and-description-form .editor-container,
    .fiwork-files-and-description-form .toolbar,
    .fiwork-files-and-description-form .editor
) {
    border-color: transparent !important;
    color: var(--create-app-text) !important;
    background: var(--create-app-surface) !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .fiwork-files-and-description-form .toolbar {
    border-bottom-color: var(--create-app-border) !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .upload-cover-primary:hover {
    background: var(--create-app-subtle-hover) !important;
}

html[data-theme="dark"] .create-fiwork-app :is(
    .project-language-switch,
    .fiwork-in-three-variants-switch
) {
    border-color: transparent !important;
    background: var(--create-app-subtle) !important;
}

html[data-theme="dark"] .create-fiwork-app
    .project-language-switch .project-language-option.is-selected,
html[data-theme="dark"] .create-fiwork-app
    .project-language-more.is-selected summary {
    color: #72bfff;
    background: var(--create-app-surface);
    box-shadow: none;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .continue-to-next-step {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .continue-to-next-step-button {
    color: #fff;
    background: var(--create-app-primary);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .continue-to-next-step-button:hover {
    background: #0a82e8;
}

/* /login App workspace. */
html[data-theme="dark"] body.fiwork-login-app-page{
    --login-app-canvas: #232427;
    --login-app-surface: #17191d;
    --login-app-subtle: #24272c;
    --login-app-text: #f3f4f6;
    --login-app-muted: #9ba1ad;
    --login-app-border: rgba(255, 255, 255, .08);
    background: var(--login-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-login-app-page > .main-block.main-block--login-page,
html[data-theme="dark"] body.fiwork-login-app-page > .main-block > .main-container.fiwork-layout-container{
    background: var(--login-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-login-app-page .login-app-layout{
    border-color: var(--login-app-border);
    background: var(--login-app-surface);
}

html[data-theme="dark"] body.fiwork-login-app-page .login-app-layout .login-block{
    background: transparent;
}

html[data-theme="dark"] body.fiwork-login-app-page .login-form-heading h1,
html[data-theme="dark"] body.fiwork-login-app-page .personal-data-agreement-container label{
    color: var(--login-app-text);
}

html[data-theme="dark"] body.fiwork-login-app-page .login-form-heading p,
html[data-theme="dark"] body.fiwork-login-app-page .login-register-box,
html[data-theme="dark"] body.fiwork-login-app-page .fiwork-auth-captcha-note--page{
    color: var(--login-app-muted);
}

html[data-theme="dark"] body.fiwork-login-app-page .input-containers-wrapper .input-container,
html[data-theme="dark"] body.fiwork-login-app-page .input-containers-wrapper .input-container.filled,
html[data-theme="dark"] body.fiwork-login-app-page .input-containers-wrapper .input-container:focus-within{
    border-color: transparent;
    background: var(--login-app-subtle);
}

html[data-theme="dark"] body.fiwork-login-app-page .input-containers-wrapper .input-container:focus-within{
    box-shadow: 0 0 0 2px rgba(74, 168, 247, .24);
}

html[data-theme="dark"] body.fiwork-login-app-page .input-containers-wrapper .input-container.error{
    border-color: #e76c65;
}

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

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

html[data-theme="dark"] body.fiwork-login-app-page .login-by-social-sites-container a:hover{
    border-color: rgba(100, 181, 246, .2);
    background: #2c3540;
}

html[data-theme="dark"] body.fiwork-login-app-page .login-app-footer{
    border-color: #292d32;
    background: var(--login-app-subtle);
}

html[data-theme="dark"] body.fiwork-login-app-page .login-register-box,
html[data-theme="dark"] body.fiwork-login-app-page .alternative-container span{
    color: var(--login-app-text);
}

html[data-theme="dark"] body.fiwork-login-app-page .login-register-box a{
    border-color: var(--login-app-border);
    color: var(--login-app-text);
    background: var(--login-app-surface);
}

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

html[data-theme="dark"] body.fiwork-login-app-page .login-privacy-note{
    color: var(--login-app-muted);
}

html[data-theme="dark"] body.fiwork-login-app-page .login-privacy-note a:hover{
    color: var(--login-app-text);
}

html[data-theme="dark"] body.fiwork-register-app-page .role-card{
    border-color: var(--login-app-border);
    color: var(--login-app-text);
    background: var(--login-app-subtle);
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-register-app-page .role-card:hover{
    border-color: rgba(103, 181, 255, .32);
}

html[data-theme="dark"] body.fiwork-register-app-page .role-radio:checked + .role-card{
    border-color: rgba(103, 181, 255, .48);
    background: #203349;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-register-app-page .role-title{
    color: var(--login-app-text);
}

html[data-theme="dark"] body.fiwork-register-app-page .role-subtitle{
    color: var(--login-app-muted);
}

/* /lenta shares the quiet /manage-services workspace in dark mode. */
html[data-theme="dark"] body.fiwork-lenta-page {
    --lenta-canvas: #232427;
    --lenta-surface: #17191d;
    --lenta-subtle: #2c3036;
    --lenta-subtle-hover: #343940;
    --lenta-text: #f3f4f6;
    --lenta-muted: #bac1cb;
    --lenta-border: rgba(255, 255, 255, .08);
    --blog-bg: var(--lenta-canvas);
    --blog-card: var(--lenta-surface);
    --blog-text: var(--lenta-text);
    --blog-muted: var(--lenta-muted);
    --blog-line: var(--lenta-border);
    background: var(--lenta-canvas);
}

html[data-theme="dark"] body.fiwork-lenta-page > .main-block,
html[data-theme="dark"] body.fiwork-lenta-page > .main-block > .main-container.fiwork-layout-container {
    background: var(--lenta-canvas) !important;
}

html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__sidebar,
html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__stream {
    border-color: var(--lenta-border) !important;
    color: var(--lenta-text);
    background: var(--lenta-surface) !important;
    box-shadow: none !important;
}

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

html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__nav a,
html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__person strong {
    color: var(--lenta-text);
}

html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__nav a:hover,
html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__person:hover {
    color: var(--lenta-text);
    background: var(--lenta-subtle-hover);
}

html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__nav a.is-active {
    color: #a9ceff;
    background: #1e3556;
}

html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__people {
    border-top-color: var(--lenta-border);
}

html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__person small,
html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__people h2,
html[data-theme="dark"] body.fiwork-lenta-page .lenta-page__sidebar-note {
    color: var(--lenta-muted);
}

html[data-theme="dark"] body.fiwork-lenta-page .community-post__summary.is-collapsed::after {
    background: linear-gradient(90deg, rgba(44, 48, 54, 0), var(--lenta-subtle) 78%);
}

html[data-theme="dark"] body.fiwork-lenta-page .community-post__summary [style*="background"],
html[data-theme="dark"] body.fiwork-lenta-page .community-post__leading-image [style*="background"] {
    color: inherit !important;
}

html[data-theme="dark"] body.fiwork-lenta-page .community-post__subscribe,
html[data-theme="dark"] body.fiwork-lenta-page .community-post-action:not(.community-post-action--views) {
    border-color: transparent;
    color: var(--lenta-text);
    background: var(--lenta-surface);
}

html[data-theme="dark"] body.fiwork-lenta-page .community-post__subscribe:hover,
html[data-theme="dark"] body.fiwork-lenta-page .community-post-action:not(.community-post-action--views):hover {
    color: var(--lenta-text);
    background: var(--lenta-subtle-hover);
}

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

html[data-theme="dark"] body.fiwork-lenta-page .community-post-action.is-active:not(.community-post-action--like) {
    color: #a9ceff;
    background: #1e3556;
}

/* Unified publications feed and profile posts */
html[data-theme="dark"] body.fiwork-page-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);
    background: var(--fi-bg);
}

html[data-theme="dark"] body.fiwork-page-blog .lenta-page,
html[data-theme="dark"] body.fiwork-page-blog .lenta-page__header {
    color: var(--fi-text);
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] body.fiwork-page-blog .lenta-page__header {
    border: 0;
}

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

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

html[data-theme="dark"] body.fiwork-page-blog .community-author-card__identity :is(h1, span),
html[data-theme="dark"] body.fiwork-page-blog .community-author-card__stats strong,
html[data-theme="dark"] body.fiwork-page-blog .blog-manage__list h2 {
    color: var(--fi-text);
}

html[data-theme="dark"] body.fiwork-page-blog .community-author-card__identity small,
html[data-theme="dark"] body.fiwork-page-blog .community-author-card__content > p,
html[data-theme="dark"] body.fiwork-page-blog .community-author-card__stats,
html[data-theme="dark"] body.fiwork-page-blog .community-author-card__tabs a,
html[data-theme="dark"] body.fiwork-page-blog .blog-manage__list p {
    color: var(--fi-text-secondary);
}

html[data-theme="dark"] body.fiwork-page-blog .community-author-card__tabs,
html[data-theme="dark"] body.fiwork-page-blog .community-post__owner-actions {
    border-color: var(--fi-border);
}

html[data-theme="dark"] body.fiwork-page-blog .community-author-card__tabs a.is-active {
    color: var(--fi-text);
    border-bottom-color: var(--fi-text);
}

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

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

html[data-theme="dark"] body.fiwork-page-blog .blog-manage__list .is-draft {
    color: #eac779;
    background: rgba(234, 199, 121, .13);
}

html[data-theme="dark"] body.fiwork-page-blog .blog-manage__success {
    color: #8addae;
    background: rgba(35, 195, 102, .13);
}

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

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

}

/* /wallet app workspace. */
html[data-theme="dark"] body.fiwork-wallet-workspace-page {
    --wallet-app-canvas: var(--fi-page);
    --wallet-app-surface: var(--fi-surface);
    --wallet-app-subtle: var(--fi-bg-soft);
    --wallet-app-subtle-hover: var(--fi-surface-hover);
    --wallet-app-border: var(--fi-border-soft);
    --wallet-app-text: var(--fi-text);
    --wallet-app-muted: var(--fi-text-secondary);
    --wallet-app-blue: #168ff5;
    --wallet-app-blue-hover: #0a82e8;
    --wallet-app-blue-soft: rgba(22, 143, 245, .14);
    background: var(--wallet-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page > .main-block {
    background: var(--wallet-app-canvas) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-workspace {
    color: var(--wallet-app-text);
    background: transparent !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page :is(
    .wallet-workspace__sidebar,
    .wallet-history-panel
) {
    background: var(--wallet-app-surface) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page :is(
    .wallet-balance-panel__heading strong,
    .wallet-balance-panel__amount > strong,
    .wallet-balance-panel__stats dd,
    .wallet-business-note h2,
    .wallet-history-panel__header h1,
    .wallet-history-empty strong
) {
    color: var(--wallet-app-text) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page :is(
    .wallet-balance-panel__heading small,
    .wallet-balance-panel__amount > span,
    .wallet-balance-panel__stats dt,
    .wallet-business-note p,
    .wallet-history-panel__header p,
    .wallet-history-search,
    .wallet-history-empty
) {
    color: var(--wallet-app-muted) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page :is(
    .wallet-balance-panel__heading > span,
    .wallet-balance-panel__amount,
    .wallet-business-note__icon,
    .wallet-history-search,
    .wallet-history-export,
    .wallet-history-empty,
    .wallet-history-empty__icon
) {
    background: var(--wallet-app-subtle) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-history-search input {
    color: var(--wallet-app-text);
    color-scheme: dark;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-filter-tabs__item {
    color: var(--wallet-app-muted);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-filter-tabs__item:hover,
html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-filter-tabs__item:focus-visible {
    color: var(--wallet-app-text);
    background: var(--wallet-app-subtle);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-filter-tabs__item.is-active {
    color: #79bdff;
    background: var(--wallet-app-blue-soft);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-history-export {
    color: var(--wallet-app-muted);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-history-export:hover,
html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-history-export:focus-visible {
    color: #79bdff;
    background: var(--wallet-app-blue-soft) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-balance-panel__actions .fill-balance {
    border-color: transparent !important;
    color: #fff !important;
    background: var(--wallet-app-blue) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-balance-panel__actions .fill-balance:hover,
html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-balance-panel__actions .fill-balance:focus-visible {
    border-color: transparent !important;
    background: var(--wallet-app-blue-hover) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-balance-panel__actions .get-money {
    color: var(--wallet-app-text);
    background: var(--wallet-app-subtle);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-balance-panel__actions .get-money:hover:not(.is-disabled) {
    background: var(--wallet-app-subtle-hover);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-history-table-wrapper,
html[data-theme="dark"] body.fiwork-wallet-workspace-page .wallet-history-table {
    border-color: transparent;
    background: var(--wallet-app-subtle) !important;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .table-header {
    border-bottom-color: var(--wallet-app-border);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .table-header > div {
    color: var(--wallet-app-muted);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .table-row,
html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .table-row:nth-child(2n) {
    border-bottom-color: var(--wallet-app-border);
    color: var(--wallet-app-text);
    background: transparent;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .table-row:hover {
    background: var(--wallet-app-subtle-hover);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .date-cell {
    color: var(--wallet-app-muted);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .wallet-history-table .description-cell a {
    color: #79bdff;
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .deposit-history-pagination .page-link {
    border: 0;
    color: var(--wallet-app-muted);
    background: var(--wallet-app-subtle);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .deposit-history-pagination .page-link:hover,
html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .deposit-history-pagination .page-link:focus-visible {
    color: #79bdff;
    background: var(--wallet-app-blue-soft);
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page
    .deposit-history-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--wallet-app-blue);
}

@media (max-width: 680px) {
    html[data-theme="dark"] body.fiwork-wallet-workspace-page
        .wallet-history-table-wrapper,
    html[data-theme="dark"] body.fiwork-wallet-workspace-page
        .wallet-history-table {
        background: transparent !important;
    }

    html[data-theme="dark"] body.fiwork-wallet-workspace-page
        .wallet-history-table .table-row,
html[data-theme="dark"] body.fiwork-wallet-workspace-page
        .wallet-history-table .table-row:nth-child(2n) {
        background: var(--wallet-app-subtle);
    }
}

html[data-theme="dark"] body.fiwork-wallet-workspace-page :is(
    .wallet-workspace__sidebar,
    .wallet-history-panel
) {
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .settings-workspace--cards .aside-block :is(
    .user-block,
    .user-settings-container
),
html[data-theme="dark"] .settings-workspace--cards :is(
    .settings-surface-card,
    .settings-profile-editor__identity,
    .settings-profile-editor__about > .information-about-you-container,
    .settings-profile-editor__about > .skills-container,
    .settings-profile-editor > .settings-work-schedule,
    .settings-verification > .settings-container
) {
    border-color: rgba(255, 255, 255, .08) !important;
    box-shadow: none !important;
}

/* Publication create — App workspace dark palette. */
html[data-theme="dark"] body .main-block--publication-create:has(.publication-builder),
html[data-theme="dark"] body .main-block--publication-create:has(.publication-builder) > .main-container {
    border: 0 !important;
    background: var(--fi-bg, #101214) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder {
    --builder-surface: #17191d;
    --builder-subtle: #22252b;
    --builder-subtle-hover: #292d34;
    --builder-border: rgba(255, 255, 255, .075);
    --builder-divider: rgba(255, 255, 255, .08);
    --builder-field-border: #373a42;
    --builder-text: #f4f6f8;
    --builder-muted: #a0a6b2;
    --builder-icon: #a0a6b2;
    --builder-primary-soft: rgba(1, 136, 255, .16);
    color: var(--builder-text) !important;
    background: transparent !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .service-builder__rail,
    .fiwork-app-surface
) {
    color: var(--builder-text) !important;
    border-color: var(--builder-border) !important;
    background: var(--builder-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .publication-builder__workspace,
    .publication-builder__section-content,
    .setup-wrapper-contents-item,
    .setup-bank-form,
    .client-vacancy-fields
) {
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-type-switch {
    border: 0 !important;
    background: var(--builder-subtle) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-type-switch label:hover span {
    color: var(--builder-text) !important;
    background: var(--builder-subtle-hover) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-type-switch input:checked + span,
html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-type-switch label:hover input:checked + span {
    color: var(--builder-text) !important;
    background: #30343b !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .client-job-title-field #title,
    .form--control,
    .form-control,
    .form-message,
    #budget_display,
    .editor-container,
    .photo-uploaded
) {
    color: var(--builder-text) !important;
    border-color: transparent !important;
    background-color: var(--builder-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .client-job-title-field #title,
    .form--control,
    .form-control,
    .form-message,
    #budget_display,
    .editor-container
):focus,
html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .client-job-title-field #title,
    #budget_display,
    .editor-container
):focus-within {
    border-color: var(--builder-primary) !important;
    background-color: var(--builder-surface) !important;
    box-shadow: 0 0 0 3px rgba(1, 136, 255, .15) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .label-title,
    .client-job-audience-field__head strong,
    .client-vacancy-fields__heading > span,
    .client-vacancy-field-heading label,
    .client-vacancy-control > span,
    .client-job-create-payment-summary strong,
    .publication-attachment-card__content strong
) {
    color: var(--builder-text) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .client-job-audience-field__head small,
    .client-vacancy-fields__heading p,
    .client-vacancy-field-heading span,
    .client-vacancy-control small,
    .client-job-create-payment-summary span
) {
    color: var(--builder-muted) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-audience-field {
    border-color: var(--builder-divider) !important;
    background: transparent !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-audience-chip span {
    color: var(--builder-muted) !important;
    border-color: transparent !important;
    background: var(--builder-subtle) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-audience-chip input:checked + span {
    color: #75bcff !important;
    border-color: rgba(1, 136, 255, .22) !important;
    background: var(--builder-primary-soft) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .publication-attachment-card {
    color: var(--builder-text) !important;
    border-color: var(--builder-border) !important;
    background: var(--builder-subtle) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .client-job-create-actions.service-create-actions {
    border-color: var(--builder-divider) transparent transparent !important;
    background: transparent !important;
}

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

html[data-theme="dark"] body .main-block--publication-create .publication-builder .photo-uploaded.publication-upload {
    color: var(--builder-text) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    background: var(--builder-subtle) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .photo-uploaded.publication-upload:hover,
html[data-theme="dark"] body .main-block--publication-create .publication-builder .photo-uploaded.publication-upload.is-dragover {
    border-color: rgba(75, 168, 255, .62) !important;
    background: var(--builder-primary-soft) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .publication-upload__icon,
    .publication-upload__action,
    .publication-attachment-card__preview
) {
    background: var(--builder-surface) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .publication-upload__copy strong {
    color: var(--builder-text) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .publication-upload__heading small,
    .publication-upload__copy small,
    .publication-attachments-summary,
    .publication-attachment-card__content span
) {
    color: var(--builder-muted) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .publication-budget-heading small,
    .publication-budget-minimum
) {
    color: var(--builder-muted) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .publication-quantity-control button,
    .client-job-simple-task-payment__formula-icon
) {
    background: var(--builder-surface) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .publication-budget-control__context {
    color: var(--builder-muted) !important;
    background: transparent !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder :is(
    .publication-quantity-control,
    .client-job-simple-task-payment__formula
) {
    color: var(--builder-text) !important;
    border-color: transparent !important;
    background: var(--builder-subtle) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .publication-quantity-control:focus-within {
    border-color: var(--builder-primary) !important;
    background: var(--builder-surface) !important;
    box-shadow: 0 0 0 3px rgba(1, 136, 255, .15) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .publication-quantity-control #simple_task_execution_limit {
    color: var(--builder-text) !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-builder .publication-quantity-control button:hover {
    color: #75bcff !important;
    background: var(--builder-primary-soft) !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-edit-builder :is(
    .publication-budget-control.is-locked,
    .publication-budget-control.is-locked:focus-within,
    .publication-quantity-control.is-locked,
    .publication-quantity-control.is-locked:focus-within,
    .publication-edit-current-file
) {
    border-color: transparent !important;
    background: var(--builder-subtle) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .main-block--publication-create .publication-edit-builder
    .publication-edit-current-file .remove_attachment {
    color: var(--builder-text) !important;
    background: var(--builder-surface) !important;
}

/* Create service — stable dark App shell ---------------------------------- */
html[data-theme="dark"] .main-block--service-create .create-fiwork-app {
    --create-app-surface: var(--fi-surface);
    --create-app-border: rgba(255, 255, 255, .08);
    --create-app-text: var(--fi-text);
    --create-app-muted: var(--fi-text-secondary);
    --create-app-primary: #168ff5;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .create-fiwork-form-container {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .fiwork-app-surface {
    border-color: var(--create-app-border) !important;
    background: var(--create-app-surface) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .create-fiwork-app :is(
    .create-fiwork-intro h1,
    .create-fiwork-step-header__copy > span
) {
    color: var(--create-app-text) !important;
}

html[data-theme="dark"] .create-fiwork-app :is(
    .create-fiwork-intro > p,
    .client-job-create-back,
    .create-fiwork-step-header__copy > small
) {
    color: var(--create-app-muted) !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .continue-to-next-step {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .continue-to-next-step-button {
    color: #fff;
    background: var(--create-app-primary);
}

html[data-theme="dark"] .main-block--service-create .create-fiwork-app
    .continue-to-next-step-button:hover {
    background: #0a82e8;
}
