:root
{
    --preference-surface: #fffef9;
    --preference-text: #233e30;
    --preference-muted: #617568;
    --preference-line: #dce7df;
}
.site-preferences
{
    position: relative;
    flex-shrink: 0;
}
.header-preferences
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 22px;
    color: var(--action-text);
    background: var(--action-background);
    font: 600 12px 'DM Sans', sans-serif;
    cursor: pointer;
    list-style: none;
}
.header-preferences::-webkit-details-marker
{
    display: none;
}
.header-preferences svg
{
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.preferences-panel
{
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: 310px;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 130px);
    overflow: auto;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid var(--preference-line);
    border-radius: 24px;
    background: var(--preference-surface);
    color: var(--preference-text);
    box-shadow: 0 16px 48px #10281c26;
    scrollbar-width: thin;
    scrollbar-color: var(--preference-muted) transparent;
}
.preferences-label
{
    margin: 0 0 10px;
    color: var(--preference-muted);
    font-size: 12px;
    font-weight: 600;
}
.theme-options
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border-radius: 18px;
    background: var(--action-background);
}
.theme-options button
{
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--preference-text);
    font: 500 12px/1.3 'DM Sans', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.theme-options button[aria-pressed="true"]
{
    background: var(--preference-surface);
    box-shadow: 0 2px 6px #132c2212;
}
.language-options
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}
.language-options a
{
    padding: 10px 9px;
    border-radius: 12px;
    color: var(--preference-text);
    font: 500 13px/1.4 'DM Sans', sans-serif;
    text-decoration: none;
}
.language-options a:hover, .language-options a[aria-current]
{
    background: var(--action-background);
}
.header-preferences:focus-visible, .preferences-panel :focus-visible
{
    outline: 2px solid var(--preference-muted);
    outline-offset: 3px;
}
.site-header__actions, .site-navigation a
{
    white-space: nowrap;
}

/* Keep the mint and cream palette while using darker reading surfaces. */
html[data-theme="dark"], html[data-theme="dark"] .scheme_default
{
    --preference-surface: #1b2822;
    --preference-text: #e8f2ec;
    --preference-muted: #adbdaf;
    --preference-line: #35473c;
    --action-background: #304e3e;
    --action-hover-background: #426650;
    --action-text: #d6efdf;
    --theme-color-bg_color: #121b16;
    --theme-color-bg_color_2: #1b2822;
    --theme-color-bd_color: #35473c;
    --theme-color-title: #f0f5f1;
    --theme-color-text: #bccbc1;
    --theme-color-meta: #9cab9e;
    --theme-color-link: #bae9d5;
    --theme-color-hover: #ddf5e8;
    --site-color-theme_color_bg_color: #121b16;
    --site-color-theme_color_bg_color_2: #1b2822;
    --site-color-theme_color_bd_color: #35473c;
    --site-color-theme_color_title: #f0f5f1;
    --site-color-theme_color_text: #bccbc1;
    --site-color-theme_color_meta: #9cab9e;
    --site-color-theme_color_link: #bae9d5;
    --site-color-theme_color_hover: #ddf5e8;
    color-scheme: dark;
}
html[data-theme="dark"] :is(body, .body_wrap, .page_wrap)
{
    background: #121b16;
    color: #bccbc1;
}
html[data-theme="dark"] .home-layout .layout-node.hero-group-1
{
    background-color: #1b2e23;
    background-blend-mode: multiply;
}
html[data-theme="dark"] .home-layout .layout-node:is(.motto-group-3, .features-detailed-group-7, .features-detailed-group-9, .market-token-group-4)
{
    background-color: #2b3d30;
    background-blend-mode: multiply;
}
html[data-theme="dark"] .home-layout .layout-node.layout-view-stacked .layout-icon
{
    color: #193c2b;
    fill: #193c2b;
}
html[data-theme="dark"] .home-layout .motto-button-1 :is(.layout-button, .layout-button-text)
{
    color: #272516;
}
html[data-theme="dark"] .home-layout .layout-node.challenge-group-5
{
    background-color: #8c2430;
    background-blend-mode: multiply;
}
html[data-theme="dark"] .home-layout .layout-node.downloads-group-1
{
    background-color: #294e3e;
}
html[data-theme="dark"] .footer-layout .logo_image
{
    padding: 8px;
    border-radius: 18px;
    background: #e5f1e9;
}
html[data-theme="dark"] .footer-social-icons-1 .layout-social-icon img,
html[data-theme="dark"] .ui-accordion-tab-title img
{
    filter: invert(1);
}
html[data-theme="dark"] .aq-page--account-center .aq-profile__header
{
    background-color: #294e3e;
    background-blend-mode: multiply;
}
html[data-theme="dark"] .aq-page--account-center :is(.aq-stats div, .aq-callout, .aq-deletion-panel, .aq-ticket-history, .aq-ticket-item)
{
    background: #23372b;
    border-color: #35473c;
    color: #d8e5dc;
}
html[data-theme="dark"] .aq-page--account-center :is(.aq-card--embedded, .aq-deletion-summary div, .aq-deletion-actions, .aq-support-compose, .aq-support-tabs, .aq-file-field)
{
    background: #23372b;
    color: #d8e5dc;
    border-color: #35473c;
}
html[data-theme="dark"] .aq-page--account-center .aq-support-tab
{
    color: #bccbc1;
}
html[data-theme="dark"] .aq-page--account-center .aq-support-tab.is-active
{
    background: #385d45;
    color: #eff7f1;
}
html[data-theme="dark"] .aq-callout
{
    background: #23372b;
    border-color: #35473c;
}
html[data-theme="dark"] .aq-contact-block :is(h2, h3, strong, .aq-field > span)
{
    color: #eff7f1;
}
html[data-theme="dark"] .aq-contact-block .aq-field :is(input, textarea)
{
    background: #142219;
    color: #eef6f0;
    border-color: #415747;
}
html[data-theme="dark"] .aq-button.aq-button--primary
{
    background: var(--action-background);
    color: var(--action-text);
}
html[data-theme="dark"] .aq-page--account-center .aq-status.is-success,
html[data-theme="dark"] .aq-status.is-success
{
    background: #284d38;
    color: #d4f2df;
}
html[data-theme="dark"] .aq-page--account-center .aq-status.is-error,
html[data-theme="dark"] .aq-status.is-error
{
    background: #4b2926;
    color: #ffd0c5;
}
html[data-theme="dark"] .aq-page--account-center .profile-wallet
{
    background: linear-gradient(120deg, #294b38, #354132);
    color: #d8e5dc;
}
html[data-theme="dark"] .aq-page--account-center .aq-button--ghost
{
    background: #263c30;
    border-color: #48614f;
    color: #e2f0e7;
}
html[data-theme="dark"] .aq-page--account-center .aq-shell__link:is(:hover, .is-active)
{
    background: var(--action-background);
    color: var(--action-text);
}
html[data-theme="dark"] :is(.profile-shortcuts span, .policies-intro__art, .policy-card__heading, .policy-count, .policy-download)
{
    color: #adbdaf;
}
html[data-theme="dark"] .site-header
{
    background: rgb(25 40 31 / 82%);
    border-color: #35473c80;
}
html[data-theme="dark"] .site-brand img
{
    filter: drop-shadow(0 0 1px #e4f3e9);
    background: #e5f1e9;
    border-radius: 18px;
    padding: 0 8px;
    box-sizing: border-box;
}
html[data-theme="dark"] :is(.site-navigation a, .header-download, .header-menu-toggle, .header-coins, .aq-shell__link, .aq-inline-link, .policy-nav a, .policy-back, .policy-download, .policy-help a, .policy-empty a, .policy-reader a)
{
    color: var(--preference-text);
}
html[data-theme="dark"] :is(.header-menu-toggle, .header-download, .header-coins, .aq-button--secondary, .profile-shortcuts a, .policy-help, .policy-count, .policy-card__icon, .policies-intro__art svg)
{
    background: #263c30;
    color: var(--preference-text);
}
html[data-theme="dark"] .header-menu-toggle span
{
    background: #d6efdf;
}
html[data-theme="dark"] :is(.account-welcome, .aq-card, .aq-profile-shell, .aq-shell__panel-head, .aq-ticket, .aq-stat, .policies-intro, .policy-card, .policy-empty, .policy-question, .policy-reader, .aq-empty-state)
{
    background: #1b2822;
    border-color: #35473c;
    color: #bccbc1;
}
html[data-theme="dark"] :is(.aq-shell, .aq-shell__sidebar, .aq-shell__content)
{
    background: transparent;
    border-color: #35473c;
}
html[data-theme="dark"] :is(.aq-page, .policies-page) :is(h1, h2, h3, h4, dt, strong, label, summary)
{
    color: #f0f5f1;
}
html[data-theme="dark"] :is(.aq-page, .policies-page) :is(p, dd, .policies-eyebrow)
{
    color: #bccbc1;
}
html[data-theme="dark"] .account-welcome__story
{
    background-color: #294e3e;
    background-blend-mode: multiply;
}
html[data-theme="dark"] .account-welcome__back
{
    color: #e4f3e9;
}
html[data-theme="dark"] .aq-page .aq-field :is(input, textarea, select)
{
    background-color: #142219;
    color: #eef6f0;
    border-color: #415747;
}
html[data-theme="dark"] .aq-page .aq-field > span
{
    color: #d4e0d8;
}
html[data-theme="dark"] .site-navigation a.is-active
{
    background: var(--action-background);
    color: var(--action-text);
}
html[data-theme="dark"] :is(.action-dock__caption, .support-eyebrow, .support-chat-hint)
{
    color: #adbdaf;
}
html[data-theme="dark"] .support-chat-answer
{
    background: #263c30;
}
html[data-theme="dark"] .support-chat-message a
{
    color: #bae9d5;
}
html[data-theme="dark"] :is(input, textarea)::placeholder
{
    color: #9caea1;
}
html[data-theme="dark"] .aq-status
{
    background: #303c32;
    color: #e0e9dd;
}
html[data-theme="dark"] :is(.aq-status--error, .aq-status[data-tone="error"])
{
    background: #442925;
    color: #ffb7aa;
}
html[data-theme="dark"] .action-dock::before
{
    background: #1b2822ed;
}
html[data-theme="dark"] .support-widget
{
    --support-line: #35473c;
    --support-surface: #1b2822f5;
    --support-sage: #2b4234;
    --support-muted: #adbdaf;
    color: #e8f2ec;
}
html[data-theme="dark"] :is(.support-panel, .support-panel > header, .support-channel, .support-widget .support-icon-button, .support-emblem)
{
    background: var(--support-surface);
    border-color: var(--support-line);
    color: inherit;
}
html[data-theme="dark"] .support-widget :is(input, textarea, select, .support-back, .support-message)
{
    background: #142219;
    color: #e8f2ec;
    border-color: #35473c;
}
@media (max-width: 1200px)
{
    .header-download
    {
        display: none;
    }
}
@media (max-width: 900px)
{
    .site-preferences
    {
        position: static;
    }
    .preferences-panel
    {
        right: 0;
    }
    html[data-theme="dark"] .site-navigation
    {
        background: #1b2822;
    }
}
@media (max-width: 480px)
{
    .site-header, .site-header.has-account-balance
    {
        gap: 8px;
        padding-inline: 10px;
    }
    .site-header .site-brand, .site-header.has-account-balance .site-brand
    {
        flex-basis: 86px;
    }
    .site-header .site-brand img, .site-header.has-account-balance .site-brand img
    {
        width: 86px;
    }
    .site-header__actions
    {
        gap: 5px;
    }
    .header-account
    {
        width: 40px;
        padding: 0;
    }
    .header-account > span
    {
        display: none;
    }
}
