@layer stockviewTheme {
 html[data-sv-theme="dark"] {color-scheme:dark;background:#0d1420!important;color:#e3ebf7!important;}
 html[data-sv-theme="dark"] body {background:#0d1420!important;color:#e3ebf7!important;}
 html[data-sv-theme="dark"] :is(.card,.sv-ref-header,.sv-ref-more-panel,.svf-rail,.svf-stocklist,.sv-site-footer) {background-color:#151e2d!important;border-color:#33435b!important;}
 html[data-sv-theme="dark"] :is(input,select,textarea) {background-color:#151e2d!important;color:#e3ebf7!important;border-color:#33435b!important;}
 html[data-sv-theme="dark"] ::placeholder {color:#94a7c1!important;opacity:1;}
 html[data-sv-theme="dark"] :focus-visible {outline-color:#75b0ff!important;}
 html[data-sv-theme="dark"] ::selection {background:#315c92;color:#fff;}
 html[data-sv-theme="dark"] .sv-header-brand-image {background:#f5f8ff!important;border-radius:5px;padding:3px 5px;box-sizing:border-box;}
 html[data-sv-theme="light"] {color-scheme:light;}
 .sv-theme-toggle {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px;width:36px;height:36px;padding:0!important;margin:0;border:1px solid #d4e0f7;border-radius:9px;background:#f5f8ff;color:#1980ff;cursor:pointer;vertical-align:middle;}
 .sv-theme-toggle .material-symbols-outlined {font-size:22px;line-height:1;}
 html[data-sv-theme="dark"] .sv-theme-toggle {background:#1b2739!important;color:#ffd479!important;border-color:#3b4e6a!important;}
 .sv-theme-toggle:focus-visible {outline:2px solid #1980ff;outline-offset:3px;}
 @media(max-width:760px){.sv-ref-actions{gap:8px!important}.sv-theme-toggle{flex-basis:34px;width:34px;height:34px;}}
 @media(prefers-reduced-motion:reduce){.sv-theme-toggle{transition:none!important;}}
}

/* StockView borderless theme switch v1 */
@layer stockviewTheme {
    html[data-sv-theme] .sv-theme-toggle {
        border:0!important;
        background:transparent!important;
        box-shadow:none!important;
    }
}
/* StockView dark overview surfaces v2 */
@layer stockviewTheme {
    html[data-sv-theme="dark"] body.svm-right-design
    #sv-full-overview :is(#company-information,.sv-hub-report),
    html[data-sv-theme="dark"] body #company-information,
    html[data-sv-theme="dark"] body .sv-hub-report {
        background:#151e2d!important;
        color:#e3ebf7!important;
        border-color:#33435b!important;
    }

    html[data-sv-theme="dark"] body #company-information
    :is(h2,h3,h4,summary,strong),
    html[data-sv-theme="dark"] body .sv-hub-report summary {
        color:#e3ebf7!important;
    }

    html[data-sv-theme="dark"] body #company-information p,
    html[data-sv-theme="dark"] body .sv-hub-report > p {
        color:#b7c5d9!important;
    }

    html[data-sv-theme="dark"] body #company-information details {
        background:#1b2739!important;
        border-color:#33435b!important;
    }

    html[data-sv-theme="dark"] body
    :is(#company-information,.sv-hub-report) a {
        color:#75b0ff!important;
    }

    html[data-sv-theme="dark"] body .sv-hub-report th {
        background:#1b2739!important;
        color:#b7c5d9!important;
    }

    html[data-sv-theme="dark"] body .sv-hub-report
    :is(th,td) {
        border-color:#33435b!important;
    }
}
/* StockView dark gauge needles v1 */
@layer stockviewTheme {
    html[data-sv-theme="dark"]
    :is(#sv-gauge-needle,#sv-assessment-needle)
    :is(path,circle) {
        fill:#e3ebf7!important;
    }
}