/* Approved warm-white / charcoal / graphite palette; preserve all geometry. */
:root {
    --primary: 0 0% 9% !important;
    --blue: #171717 !important;
    --green: #171717 !important;
    --info: #171717 !important;
    --success: #171717 !important;
    --ring: 0 0% 40% !important;
}
body.site, .site .content-wrapper { background-color: #fafaf8 !important; }
body.site {
    color: #171717;
    --gray-10: #171717;
    --gray-60: #65676b;
    --gray: #65676b;
    --eds_xd1k8g3w: #171717;
    --eds_xd1k8g3x: #3d4654;
}
.site .btn-primary, .site .bg-primary, .site .bg-info, .site .bg-success, .site .badge-primary {
    color: #fff !important;
    background: #171717 !important;
    border-color: #171717 !important;
}
.site .btn-primary:hover, .site .btn-primary:active, .site a.bg-primary:hover {
    color: #fff !important;
    background: #333 !important;
    border-color: #333 !important;
}
.site .btn-outline-primary { color: #171717 !important; background-color: transparent !important; border-color: #171717 !important; }
.site .btn-outline-primary:hover { color: #fff !important; background-color: #171717 !important; border-color: #171717 !important; }
.site .text-primary, .site .text-info, .site .text-success { color: #171717 !important; }
.site .border-primary, .site .border-info { border-color: #e7e7e4 !important; }
.site .bg-light-tint, .site .bg-light { background-color: #fafaf8 !important; }
.site .bg-gradient-to-r { background: linear-gradient(to right, #eeefed, #fafaf8) !important; }
.site .bg-sky-500, .site .bg-purple-500, .site .bg-green-500 { background-color: #3d4654 !important; }
.site .bg-dark, .site .main-footer { background-color: #171717 !important; }
.site .faq { background-color: #242424; }
.site .main-header { background-color: #fff !important; border-color: #e7e7e4 !important; }
.site .main-header .nav-link { color: #171717 !important; }
.site .main-header .nav-link:hover { color: #000 !important; }
.site .nav-link::before, .site .nav-link::after { background-color: #171717 !important; }
.site .navbar-nav > li > svg { color: #171717 !important; }
.site .langslist li:hover { color: #171717 !important; background-color: #eeefed !important; }
.site .dropdown-item:hover { color: #171717 !important; background-color: #eeefed !important; }
.site a.text-body:hover { color: #171717 !important; }
.site a.plan:hover, .site a.plan:hover hr { border-color: #a3a3a3 !important; }
.site .plan svg [fill]:not([fill="none"]) { fill: #171717 !important; }
.site .page-link, .site .page li a { color: #171717 !important; border-color: #e7e7e4 !important; }
.site .page-link:hover, .site .page li.active a { color: #fff !important; background-color: #171717 !important; }
.site .single-widgets { border-color: #e7e7e4 !important; }
.site .telegram, .site .msgicon { background-color: #171717 !important; }
.site .telegram svg circle { fill: #171717; }
.site input:focus, .site textarea:focus, .site select:focus { border-color: #737373 !important; }

/* Exact tonal mapping approved in the palette preview; original assets unchanged. */
.site #product + .bg-light-tint .tile { background-color: #fff; border-color: #e7e7e4; }
.site #product + .bg-light-tint .tile h5 { color: #171717; }
.site #product + .bg-light-tint .tile > .d-table { color: #65676b; }
.site #product + .bg-light-tint .tile a { color: #171717; }
.site #product + .bg-light-tint .tile > img {
    filter: url("#ads-cloak-graphite") contrast(1.08);
}

/* News lists and rich-text details share the same palette as the home page. */
.site .topic_row .css-1eyh2cp,
.site .topic_row .css-1bsjt6k,
.site .topic_row .css-1bsjt6k *,
.site .topic_row .css-1wb6qud { color: #171717 !important; }
.site .topic_row .css-9eu0v1,
.site .topic_row .css-9eu0v1 *,
.site .topic_row .css-2jxatg,
.site .topic_row .css-lrgl2t { color: #65676b !important; }
.site .topic_row .css-1bsjt6k:hover,
.site .topic_row .css-1wb6qud:hover { color: #3d4654 !important; }
.site .topic_row .css-14gnlfd,
.site .topic_row .css-1wb6qud .css-6xq2vb { border-color: #e7e7e4 !important; }
.site .detailbox,
.site .detailbox p,
.site .detailbox li,
.site .detailbox blockquote,
.site .authorbox p,
.site .authorbox .post-date { color: #65676b !important; }
.site .detailbox h1,
.site .detailbox h2,
.site .detailbox h3,
.site .detailbox h4,
.site .detailbox h5,
.site .detailbox h6,
.site .detailbox h1 *,
.site .detailbox h2 *,
.site .detailbox h3 *,
.site .detailbox h4 *,
.site .detailbox h5 *,
.site .detailbox h6 *,
.site .authorbox h4 { color: #171717 !important; }
.site .detailbox a,
.site .authorbox a { color: #3d4654 !important; }
.site .detailbox table,
.site .detailbox td,
.site .detailbox th,
.site .detailbox hr,
.site .detailbox blockquote { border-color: #e7e7e4 !important; }
.site .detailbox th { background-color: #f0f0ed !important; color: #171717 !important; }
.site .detailbox td { background-color: #fff !important; color: #65676b !important; }
.site .single-widgets { background-color: #fff; }
.site .alert-outline-primary,
.site .alert-outline-primary a,
.site .bg-info-light .colored,
.site .row-margins .border-info .colored { color: #3d4654 !important; border-color: #e7e7e4 !important; }
.site .badge-info,
.site a.badge-secondary:hover,
.site .page-item:not(.active):not(.disabled) .page-link:hover,
.site .select2-selection--multiple .select2-selection__choice,
.site .select2-results__option--highlighted[aria-selected],
.site .daterangepicker td.active { background-color: #171717 !important; color: #fff !important; border-color: #171717 !important; }

/* Existing CMS forms and account pages: colors only, never layout or images. */
body:not(.site):not(.wy-body-for-nav) { background-color: #fafaf8 !important; color: #171717 !important; }
body:not(.site):not(.wy-body-for-nav) .weui_text,
body:not(.site):not(.wy-body-for-nav) .fail-tip { color: #65676b !important; }
body:not(.site):not(.wy-body-for-nav) .weui_msg_title { color: #171717 !important; }
body:not(.site):not(.wy-body-for-nav) .weui_text a,
body:not(.site):not(.wy-body-for-nav) .app-download-tip { color: #3d4654 !important; }
body:not(.site):not(.wy-body-for-nav) .back-home,
body:not(.site):not(.wy-body-for-nav) .app-download-btn { color: #fff !important; background-color: #171717 !important; border-color: #171717 !important; }
body#graypage { background-color: #fafaf8 !important; color: #171717 !important; }
#graypage .white_pal,
#graypage .white_pal .pannel,
#graypage .input_row,
#graypage .gbook_form textarea,
#graypage .gbook_form input:not([type="button"]):not([type="submit"]) { background-color: #fff !important; color: #171717 !important; border-color: #e7e7e4 !important; }
#graypage .remaining_w,
#graypage .zishu,
#graypage .gbook_font { color: #65676b !important; }
#graypage a { color: #3d4654 !important; }
#graypage .submit_btn,
#graypage .gbook_submit,
#graypage .btn-brand { color: #fff !important; background: #171717 !important; border-color: #171717 !important; }
#graypage textarea::placeholder,
#graypage input::placeholder { color: #65676b !important; }

/* Documentation uses its own existing theme; reuse the approved neutral colors. */
body.wy-body-for-nav { color: #65676b !important; background-color: #fafaf8 !important; }
.wy-body-for-nav .wy-nav-content { color: #65676b; background-color: #fff !important; }
.wy-body-for-nav .wy-nav-content-wrap { background-color: #fafaf8 !important; }
.wy-body-for-nav .wy-nav-side,
.wy-body-for-nav .wy-side-nav-search,
.wy-body-for-nav .wy-nav-top { color: #fff; background-color: #171717 !important; }
.wy-body-for-nav .wy-side-nav-search > a,
.wy-body-for-nav .wy-nav-top a,
.wy-body-for-nav .wy-nav-top i { color: #fff !important; }
.wy-body-for-nav .wy-side-nav-search input[type="text"] { color: #171717; background-color: #fff; border-color: #e7e7e4; }
.wy-body-for-nav .wy-menu-vertical a { color: #d4d8dd; }
.wy-body-for-nav .wy-menu-vertical a:hover { color: #fff; background-color: #3d4654; }
.wy-body-for-nav .wy-menu-vertical li.current > a,
.wy-body-for-nav .wy-menu-vertical li.current > a:hover,
.wy-body-for-nav .wy-menu-vertical li.current ul { color: #171717; background-color: #fafaf8; border-color: #e7e7e4; }
.wy-body-for-nav .wy-menu-vertical li.current ul a { color: #3d4654; }
.wy-body-for-nav .wy-menu-vertical .caption-text { color: #b7bec7; }
.wy-body-for-nav .rst-content h1,
.wy-body-for-nav .rst-content h2,
.wy-body-for-nav .rst-content h3,
.wy-body-for-nav .rst-content h4,
.wy-body-for-nav .rst-content strong { color: #171717; }
.wy-body-for-nav .rst-content a { color: #3d4654; }
.wy-body-for-nav .rst-content table,
.wy-body-for-nav .rst-content th,
.wy-body-for-nav .rst-content td,
.wy-body-for-nav .rst-content hr,
.wy-body-for-nav .rst-content blockquote,
.wy-body-for-nav .rst-content pre { border-color: #e7e7e4 !important; }
.wy-body-for-nav .rst-content th,
.wy-body-for-nav .rst-content .highlight,
.wy-body-for-nav .rst-content .admonition-title { background-color: #f0f0ed !important; color: #171717; }
.wy-body-for-nav .rst-content .admonition,
.wy-body-for-nav .rst-content td { background-color: #fff; color: #65676b; }
.wy-body-for-nav .btn-neutral { color: #171717 !important; background-color: #fff !important; border-color: #e7e7e4 !important; }
.wy-body-for-nav .wy-nav-side,
.wy-body-for-nav .wy-nav-top,
.wy-body-for-nav .wy-side-nav-search { background: #171717 !important; }
.wy-body-for-nav .wy-nav-content { background-color: #fff !important; }
.wy-body-for-nav .wy-menu-vertical a:hover { color: #fff !important; background-color: #3d4654 !important; }
.wy-body-for-nav .wy-menu-vertical li.current > a,
.wy-body-for-nav .wy-menu-vertical li.current > a:hover,
.wy-body-for-nav .wy-menu-vertical li.on a { color: #171717 !important; background-color: #fafaf8 !important; }
.wy-body-for-nav .rst-content a:visited { color: #3d4654 !important; }
.wy-body-for-nav .rst-content code,
.wy-body-for-nav .rst-content tt { color: #3d4654 !important; }
