/* Manual — cabinet pass. Loaded last so it wins over legacy gradients. */

html:not([data-theme="light"]) {
    background: #0a0a0a;
    scrollbar-color: #2a2a34 #0a0a0a;
}

html:not([data-theme="light"]) ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html:not([data-theme="light"]) ::-webkit-scrollbar-track {
    background: #0a0a0a !important;
}

html:not([data-theme="light"]) ::-webkit-scrollbar-thumb,
html:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover {
    background: #2a2a34 !important;
    border-radius: 999px;
}

html:not([data-theme="light"]) body {
    background: #0a0a0a !important;
    color: #fff !important;
    font-family: Inter, system-ui, sans-serif !important;
}

html:not([data-theme="light"]) .bg-decoration,
html:not([data-theme="light"]) .bg-lights,
html:not([data-theme="light"]) .particles,
html:not([data-theme="light"]) .scroll-progress {
    display: none !important;
}

html:not([data-theme="light"]) .manual-header {
    background: rgba(10, 10, 10, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px);
}

html:not([data-theme="light"]) .manual-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

html:not([data-theme="light"]) .manual-brand-text strong {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #fff !important;
}

html:not([data-theme="light"]) .manual-brand-text span {
    color: rgba(255, 255, 255, 0.42) !important;
}

html:not([data-theme="light"]) .manual-header-lk,
html:not([data-theme="light"]) .manual-header-lk:hover {
    background: #fff !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 999px !important;
    height: 40px !important;
    padding: 0 16px !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) .manual-theme-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    background: #181822 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

html:not([data-theme="light"]) .language-selector {
    background: #181822 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 4px !important;
    gap: 2px;
}

html:not([data-theme="light"]) .lang-btn {
    border-radius: 999px !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border: none !important;
}

html:not([data-theme="light"]) .lang-btn.active {
    background: #fff !important;
    color: #0a0a0a !important;
}

html:not([data-theme="light"]) .manual-header .manual-tab-bar {
    background: transparent !important;
    border: none !important;
    gap: 8px !important;
}

html:not([data-theme="light"]) .manual-header .manual-tab-btn {
    background: #181822 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) .manual-header .manual-tab-btn.active,
html:not([data-theme="light"]) .manual-header .manual-tab-btn.active:hover {
    background: #fff !important;
    color: #0a0a0a !important;
    border-color: #fff !important;
}

html:not([data-theme="light"]) .chams-title {
    font-size: clamp(2rem, 4vw, 3.1rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.045em !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    line-height: 1.05 !important;
    margin-bottom: 10px !important;
}

html:not([data-theme="light"]) .manual-page-intro p,
html:not([data-theme="light"]) .chams-section > p {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 1.02rem !important;
    max-width: 46ch;
}

html:not([data-theme="light"]) .manual-quick-start {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 22px 0 26px !important;
}

html:not([data-theme="light"]) .manual-quick-start-title {
    color: rgba(255, 255, 255, 0.42) !important;
    letter-spacing: 0.12em !important;
}

html:not([data-theme="light"]) .manual-quick-start-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: qs;
}

html:not([data-theme="light"]) .manual-quick-start-steps li {
    counter-increment: qs;
    margin: 0 !important;
    padding: 18px 18px 16px !important;
    background: #14141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

html:not([data-theme="light"]) .manual-quick-start-steps li::marker {
    content: none;
}

html:not([data-theme="light"]) .manual-quick-start-steps li::before {
    content: counter(qs);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fff;
    color: #0a0a0a;
    font-size: 13px;
    font-weight: 700;
}

html:not([data-theme="light"]) .manual-search-label {
    display: none !important;
}

html:not([data-theme="light"]) .manual-search-field {
    position: relative;
}

html:not([data-theme="light"]) .manual-search-input {
    background: #181822 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    color: #fff !important;
    height: 46px;
    box-shadow: none !important;
}

html:not([data-theme="light"]) .manual-search-input:focus {
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) .manual-search-count,
html:not([data-theme="light"]) .manual-search-hint {
    color: rgba(255, 255, 255, 0.42) !important;
}

html:not([data-theme="light"]) .manual-filter-chip {
    background: #181822 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 999px !important;
}

html:not([data-theme="light"]) .manual-filter-chip.is-active,
html:not([data-theme="light"]) .manual-filter-chip.is-active:hover {
    background: #fff !important;
    color: #0a0a0a !important;
    border-color: #fff !important;
}

html:not([data-theme="light"]) .chams-card,
html:not([data-theme="light"]) .chams-card:hover,
html:not([data-theme="light"]) [class*="-chams"],
html:not([data-theme="light"]) .pcs-setup-card,
html:not([data-theme="light"]) .ts-trouble-card,
html:not([data-theme="light"]) .fixes-card,
html:not([data-theme="light"]) .tools-link-card {
    background: #14141c !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 22px !important;
    box-shadow: none !important;
    color: #fff !important;
}

html:not([data-theme="light"]) .chams-card::before,
html:not([data-theme="light"]) .chams-card::after,
html:not([data-theme="light"]) [class*="-chams"]::before,
html:not([data-theme="light"]) [class*="-chams"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

html:not([data-theme="light"]) .chams-card:hover,
html:not([data-theme="light"]) .tools-link-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: #181822 !important;
}

html:not([data-theme="light"]) .chams-icon,
html:not([data-theme="light"]) .chams-card .chams-icon,
html:not([data-theme="light"]) [class*="-chams"] .chams-icon,
html:not([data-theme="light"]) .pcs-setup-card .chams-icon,
html:not([data-theme="light"]) .ts-trouble-card .chams-icon,
html:not([data-theme="light"]) .ts-trouble-card--gfx .chams-icon,
html:not([data-theme="light"]) .ts-trouble-card--hyperv .chams-icon,
html:not([data-theme="light"]) .ts-trouble-card--defsvc .chams-icon,
html:not([data-theme="light"]) .tools-link-card .chams-icon,
html:not([data-theme="light"]) .tools-link-card--hyperv .chams-icon,
html:not([data-theme="light"]) .tools-link-card--vdb .chams-icon,
html:not([data-theme="light"]) .fixes-card .chams-icon,
html:not([data-theme="light"]) #manual-tab-troubleshooting .chams-card .chams-icon {
    background: #1c1c26 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}

html:not([data-theme="light"]) .chams-title-card {
    color: #fff !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

html:not([data-theme="light"]) .chams-subtitle,
html:not([data-theme="light"]) .ts-card-open-hint {
    color: rgba(255, 255, 255, 0.45) !important;
}

html:not([data-theme="light"]) .chams-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

html:not([data-theme="light"]) .feature-tag,
html:not([data-theme="light"]) [class*="-chams"] .feature-tag,
html:not([data-theme="light"]) .eft-chams .feature-tag,
html:not([data-theme="light"]) .stalcraft-chams .feature-tag,
html:not([data-theme="light"]) .apex-chams .feature-tag,
html:not([data-theme="light"]) .apex-legends-chams .feature-tag,
html:not([data-theme="light"]) .rust-chams .feature-tag,
html:not([data-theme="light"]) .warface-chams .feature-tag,
html:not([data-theme="light"]) .pubg-chams .feature-tag,
html:not([data-theme="light"]) .fortnite-chams .feature-tag {
    background: #181822 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
}

html:not([data-theme="light"]) .manual-group-title {
    color: rgba(255, 255, 255, 0.42) !important;
}

html:not([data-theme="light"]) .modal-overlay {
    background: rgba(0, 0, 0, 0.72) !important;
}

html:not([data-theme="light"]) .modal-content {
    background: #12121a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45) !important;
    color: #fff !important;
}

html:not([data-theme="light"]) .modal-title {
    color: #fff !important;
}

html:not([data-theme="light"]) .modal-subtitle {
    color: rgba(255, 255, 255, 0.5) !important;
}

html:not([data-theme="light"]) .modal-icon {
    background: #1c1c26 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}

html:not([data-theme="light"]) .modal-close {
    background: #181822 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
}

html:not([data-theme="light"]) .modal-step-number {
    background: #fff !important;
    color: #0a0a0a !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) .modal-step-title,
html:not([data-theme="light"]) .modal-step-inline-title {
    color: #fff !important;
}

html:not([data-theme="light"]) .modal-step-list li {
    color: rgba(255, 255, 255, 0.78) !important;
}

html:not([data-theme="light"]) .modal-download-btn,
html:not([data-theme="light"]) .modal-download-btn:hover,
html:not([data-theme="light"]) .modal-lk-btn,
html:not([data-theme="light"]) .modal-lk-btn:hover,
html:not([data-theme="light"]) .modal-header-dl-btn,
html:not([data-theme="light"]) .modal-header-dl-btn:hover {
    background: #fff !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) .modal-feature-tag {
    background: #181822 !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
}

html:not([data-theme="light"]) .modal-step-progress,
html:not([data-theme="light"]) .modal-toc {
    background: #181822 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 16px !important;
}

html:not([data-theme="light"]) .modal-crumb-link,
html:not([data-theme="light"]) .modal-toc a,
html:not([data-theme="light"]) .modal-faq-link,
html:not([data-theme="light"]) .footer-link {
    color: rgba(255, 255, 255, 0.62) !important;
}

html:not([data-theme="light"]) .modal-crumb-link:hover,
html:not([data-theme="light"]) .modal-toc a:hover,
html:not([data-theme="light"]) .modal-faq-link:hover,
html:not([data-theme="light"]) .footer-link:hover {
    color: #fff !important;
}

html:not([data-theme="light"]) .cmd-copy-btn,
html:not([data-theme="light"]) .troubleshooting-cmd,
html:not([data-theme="light"]) pre,
html:not([data-theme="light"]) code {
    background: #181822 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html:not([data-theme="light"]) .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.42) !important;
}

@media (max-width: 900px) {
    html:not([data-theme="light"]) .manual-quick-start-steps {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) {
    html:not([data-theme="light"]) .manual-header-lk span {
        display: inline !important;
    }

    html:not([data-theme="light"]) .manual-header-lk {
        width: auto !important;
        padding: 0 16px !important;
    }
}
