/* == Module header (D6). Purpose/Status are hand-written; Module-Map.py --check verifies the rest. ==
   Purpose:   Shared neutral surfaces.
   Status:    active
   Loaded by: alarm-monitoring.html, change-password.html, customer-portal.html,
              customer-welcome.html, fire-inspections.html, login.html, phone-sign-in.html,
              reset-password.html, single-sign-on.html, support-desk.html, support-sessions.html,
              two-step-sign-in.html
   Replaces:  none
   History:   no release tags in comments yet (tag new blocks as '# BSS NNN: why')
   == end of module header == */
/* Shared neutral surfaces. Brand and status colors remain on intentional accents. */
@layer app {
    html:root,
    html:root body {
        --bg: #f5f5f5;
        --panel: #ffffff;
        --surface: #ffffff;
        --panel31: #ffffff;
        --input31: #f5f5f5;
        --text: #242424;
        --ink31: #242424;
        --muted: #707070;
        --muted31: #707070;
        --line: #dedede;
        --line31: #dedede;
        --hover: #ededed;
        --search: #ededed;
        --badge: #ededed;
        --bss-search77: #ededed;
        --bss-input77: #ffffff
    }

    html.dark,
    html.dark body {
        --bg: #191919;
        --panel: #242424;
        --surface: #242424;
        --panel31: #242424;
        --input31: #191919;
        --text: #eeeeee;
        --ink31: #eeeeee;
        --muted: #aaaaaa;
        --muted31: #aaaaaa;
        --line: #3b3b3b;
        --line31: #3b3b3b;
        --hover: #303030;
        --search: #303030;
        --badge: #303030;
        --bss-search77: #303030;
        --bss-input77: #242424
    }

    html:root body,
    html:root body #tab-scan,
    html:root body .app-layout,
    html:root body .files-layout,
    html:root body .files-main {
        color: var(--text)
    }

    html:root body #table-pane,
    html:root body #sidebar-pane,
    html:root body #inventory-table th,
    html:root body .settings-card,
    html:root body .identity-card,
    html:root body .table-scroll,
    html:root body .sidebar,
    html:root body .card,
    html:root body .table-wrap,
    html:root body .table-wrap table,
    html:root body .table-wrap th {
        background: var(--panel) !important;
        color: var(--text)
    }

    html:root body .account-menu32 {
        background: var(--panel) !important;
        --panel31: var(--panel);
        --ink31: var(--text);
        --line31: var(--line);
        --muted31: var(--muted)
    }

    html:root body .header32 :is(.search-control, .directory-search, #file-search-form) input {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* priority rules. Rules above sit in the app layer; these plain rules
   win over any of them (what !important used to do), and compete with each other as before. */
html:root body, html:root body #tab-scan, html:root body .app-layout, html:root body .files-layout, html:root body .files-main {
    background: var(--bg);
}
html:root body #inventory-table th, html:root body #inventory-table td {
    border-bottom-color: var(--line);
}
html:root body .header32 :is(.search-control, .directory-search, #file-search-form) {
    background: var(--bss-search77);
    color: var(--text);
    border: 0;
    box-shadow: none;
}
html:root body .header32 :is(.search-control, .directory-search, #file-search-form) input {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    outline: 0;
    color: inherit;
    min-width: 0;
}
html:root body .header32 :is(.search-control, .directory-search, #file-search-form) input::placeholder {
    color: var(--muted);
}
html:root body .header32 :is(.search-control, .directory-search, #file-search-form):focus-within {
    outline: 1px solid #929292;
    outline-offset: 1px;
}
html:root body:has(.welcome-choices76) {
    background: var(--bg);
    color: var(--text);
}
html:root body .header32 :is(.search-control, .directory-search, #file-search-form):focus-within {
    outline: 0;
    box-shadow: inset 0 0 0 1px #929292;
}
