/* == Module header (D6). Purpose/Status are hand-written; Module-Map.py --check verifies the rest. ==
   Purpose:   Brothers approved design system, V46.79.
   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:   79, 86, 88, 141, 305, 311, 315, 319, 353, 378, 382, 448, 526, 626, 637, 1010
   == end of module header == */
/* BSS 626 (2026-11-01, theme clean-up): the important flag stays only where it still wins somewhere; declarations
 * that other rules beat on every page were removed. Each change was checked element by element on every page, at eight
 * screen widths, light and dark, with no difference. A flagged rule that no page currently draws was left as it
 * was. */
/* Brothers approved design system, V46.79. Shared geometry and neutral surfaces. */
@layer app {
    html:root,
    html:root body {
        --page: #f5f5f5;
        --panel: #fff;
        --panel31: #fff;
        --surface: #fff;
        --raised: #f5f5f5;
        --ink: #242424;
         /* BSS 305 (2026-10-15, review O7): alias of brand-tokens.css */
        --bss-blue: #087fe3;
        font-family: Arial, system-ui, sans-serif
    }

    html.dark,
    html.dark body {
        --bg: #212121;
        --page: #212121;
        --panel: #242424;
        --panel31: #242424;
        --surface: #242424;
        --raised: #303030;
        --text: #eee;
        --ink: #eee;
        --ink31: #eee;
        --muted: #aaa;
        --muted31: #aaa;
         /* BSS 305 (2026-10-15, review O7): alias of brand-tokens.css */
        color-scheme: dark
    }

    html body {
        font-family: Arial, system-ui, sans-serif !important;
    }

    button,
    input,
    select,
    textarea {
        font-family: inherit
    }

    h1 {
        line-height: 1.2;
        letter-spacing: -.6px
    }

    h2 {
        font-size: 20px;
        letter-spacing: -.2px
    }

    button,
    a,
    input {
        touch-action: manipulation
    }

    svg {
        flex-shrink: 0
    }

    html body .app-layout {
        flex: 1;
        min-height: 0
    }

    .app-layout>main {
        min-width: 0;
        scrollbar-gutter: auto /* BSS 315 (2026-10-15, review O2): from ui-layer-275: no empty scrollbar strip when the page does not scroll */
    }

    html body :is(.settings-card, .identity-card, .table-card, .org-card74, .customer-card74, .welcome-panel76, .metric29) {
        border-radius: 12px;
        box-shadow: none}

    /* LF 526 / BSS 637 (2026-11-01, one padding rule): tile padding comes from metrics-insights.css only */

    .metric29:before {
        content: '';
        display: block;
        background: var(--blue);
        height: 3px;
        width: 28px;
        border-radius: 2px;
        margin-bottom: 18px
    }

    html body :is(.primary, .send76) {
        border-radius: 7px;
        min-height: 44px
    }

    html body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
        border-radius: 7px
    }

    .table-wrap,
    .table-card {
        border-radius: 12px;
    }

    /* One search, in the relevant page content, with no nested frame. */
    .search79 {
        align-items: center;
        gap: 10px;
        border-radius: 28px;
        background: var(--search);
        padding: 0 16px;
        height: 44px;
        outline: 0;
        flex-direction: row}

    .search79 svg,
    .search-control svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--muted);
        stroke-width: 1.7
    }

    .search79 input {
        flex: 1;
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font: 15px Arial, sans-serif !important
    }

    .content-tools79 {
        display: flex;
        align-items: center;
        gap: 16px;
        margin: 0 0 20px;
        flex-wrap: wrap
    }

    .content-tools79>h1 {
        margin: 0 auto 0 0
    }

    /* Support module shell and page components */
    body[data-staff="1"]>main {
        grid-template-columns: 240px minmax(0, 1fr);
        max-width: none;
        margin: 0;
        position: relative
    }

    body[data-staff="1"] #page {
        grid-column: 2;
        grid-row: 1;
    }

    body[data-staff="1"] #notice {
        position: fixed;
        bottom: 20px;
        left: calc(50% + 100px);
        transform: translateX(-50%);
        z-index: 80;
        max-width: 600px;
        background: var(--panel);
        box-shadow: 0 6px 24px #0002
    }

    .support-sidebar79 {
        grid-row: 1;
    }

    .support-sidebar79 a {
        border-radius: 6px;
    }

    .support-sidebar79 svg {
        stroke-width: 1.6
    }

    .support-sidebar79 small {
        display: block;
        margin: 26px 12px 12px;
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase
    }

    .page-heading79 {
        display: flex;
        align-items: center;
        gap: 16px;
        justify-content: space-between;
        margin-bottom: 24px
    }

    .page-heading79 h1 {
        margin: 0
    }

    .page-heading79 p {
        margin: 8px 0 0;
        color: var(--muted)
    }

    .stat-strip79 {
        display: flex;
        gap: 32px;
        margin: 0 0 22px;
        padding: 18px 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line)
    }

    .stat-strip79 strong {
        font-size: 22px;
        margin-right: 7px
    }

    .stat-strip79 span {
        font-size: 13px;
        color: var(--muted)
    }

    .filter-chips79 {
        display: flex;
        gap: 8px;
        flex-wrap: wrap
    }

    .filter-chips79 button {
        border: 0;
        background: transparent;
        border-radius: 20px;
        padding: 9px 14px
    }

    .filter-chips79 button[aria-pressed=true] {
        background: var(--selected);
        color: var(--blue)
    }

    .status79 {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 16px;
        font-size: 12px;
        background: var(--selected);
        color: var(--blue);
        white-space: nowrap
    }

    .status79[data-status=Resolved],
    .status79[data-status=Online] {
        background: #16804918;
        color: var(--green, #168049)
    }

    .status79[data-status=Waiting],
    .status79[data-status=Unknown] {
        background: #d49b151c;
        color: var(--amber, #927019)
    }

    .status79[data-status=Down] {
        background: #d43b3b1c;
        color: var(--red)
    }

    .ticket-layout79 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 24px;
        align-items: start
    }

    .message {
        background: var(--bg);
        border-radius: 9px;
        margin-bottom: 12px;
        line-height: 1.6
    }

    .message small {
        font-size: 12px;
        margin-bottom: 10px
    }

    .ticket-meta79 dl {
        margin: 0
    }

    .ticket-meta79 dt {
        font-size: 12px;
        color: var(--muted);
        margin: 18px 0 6px
    }

    .ticket-meta79 dd {
        margin: 0;
        overflow-wrap: anywhere
    }

    .reply-tabs79 {
        display: flex;
        gap: 20px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 16px
    }

    .reply-tabs79 button {
        border: 0;
        border-bottom: 2px solid transparent;
        background: none;
        border-radius: 0;
        padding: 12px 0;
        color: var(--muted)
    }

    .reply-tabs79 button[aria-selected=true] {
        color: var(--blue);
        border-color: var(--blue)
    }

    .site-grid79 {
        display: grid;
        gap: 12px
    }

    .site-card79 {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 22px;
        border: 1px solid var(--line);
        background: var(--panel);
        border-radius: 12px;
        text-decoration: none;
        color: var(--text)
    }

    .site-card79 .site-icon79 {
        width: 56px;
        height: 56px;
        background: var(--selected);
        color: var(--blue);
        display: grid;
        place-items: center;
        border-radius: 10px;
        font-size: 24px
    }

    .site-card79 h2 {
        margin: 0 0 6px;
        font-size: 18px
    }

    .site-card79 .site-health79 {
        margin-left: auto;
        text-align: right
    }

    .site-card79 p {
        margin: 4px 0;
        font-size: 12px;
        color: var(--muted)
    }

    .site-stats79 {
        margin-bottom: 22px
    }

    .site-stats79 .card {
        border-radius: 12px;
        padding: 22px
    }

    .site-stats79 .card strong {
        font-size: 30px;
        margin-top: 12px
    }

    .site-stats79 .card small {
        display: block;
        margin-top: 10px
    }

    .support-empty79 {
        border: 1px dashed var(--line);
        padding: 50px 24px;
        text-align: center;
        border-radius: 12px;
        background: var(--panel)
    }

    .support-empty79 p {
        color: var(--muted)
    }

    .report79 {
        max-width: 960px;
        padding: 32px;
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: 12px
    }

    .report79 img {
        width: 240px
    }

    .report79 header {
        position: static;
        justify-content: space-between;
        padding: 0 0 24px;
        margin-bottom: 24px
    }

    .report79 h2 {
        color: var(--blue)
    }

    /* Public welcome: original brand art, deterministic text and form geometry. */
    body:has(.brand-panel77) .customer-header74 {
        height: 80px;
        padding: 0 32px;
    }

    body:has(.brand-panel77) .customer-header74>a {
        width: 240px;
        height: 64px}

    body:has(.brand-panel77) .customer-main74 {
        padding: 32px 48px 40px calc(38% + 48px);
        min-height: calc(100dvh - 80px)}

    .brand-panel77 {
        width: 38%;
    }

    .brand-copy77 {
        padding: 180px 10% 60px;
        position: relative;
        top: auto}

    .customer-main74 .brand-panel77 h1 {
        line-height: 1.08;
        letter-spacing: -1.8px
    }

    .brand-panel77 p {
        font-size: 22px}

    .brand-line77 {
        height: 4px;
        margin-bottom: 24px
    }

    .brand-panel77:after {
        position: absolute;
        left: 10%;
        right: 10%;
        line-height: 1.6;
        color: #d8e7fa
    }

    .welcome-choices76 button {
        border-radius: 0;
    }

    .welcome-choices76 button:before,
    .welcome-choices76 small,
    .welcome-choices76 button>svg {
        display: none}

    .welcome-panel76 h2 {
        margin-bottom: 10px
    }

    .welcome-panel76>p {
        color: var(--muted)
    }

    .welcome-panel76 label {
        gap: 8px
    }

    .welcome-panel76 input,
    .welcome-panel76 select {
        height: 44px;
    }

    .entry-form76 {
        max-width: 480px;
    }

    .customer-header74 img {
        object-fit: contain}

    .customer-main74:not(:has(.brand-panel77)) {
        max-width: 1120px
    }

    .portal-top74 {
        margin: 12px 0 28px
    }

    .ticket-row74 {
        border-bottom: 1px solid var(--line);
    }

    .customer-card74 .message74 {
        padding: 20px;
        border: 0;
        background: var(--bg);
        border-radius: 9px;
        margin-bottom: 14px
    }

    .toolbar74 input[type=search] {
        border: 0;
        border-radius: 24px;
        background: var(--search);
        height: 44px
    }

    html body dialog {
        background: var(--panel) !important;
        box-shadow: 0 16px 70px #0004
    }

    html body dialog::backdrop {
        background: #0007
    }

    .device67 h2 {
        margin: 0 0 12px
    }

    .device67>button[data-link] {
        min-height: 44px
    }

    .device67 .choices67 {
        display: flex;
        gap: 12px;
        margin-top: 12px
    }

    .device67 .choices67 button {
        flex: 1;
        min-height: 44px;
    }

    @media(max-width:1100px) {
        .ticket-layout79 {
            grid-template-columns: 1fr 230px
        }

        html body .app-layout,
        body[data-staff="1"]>main {
            grid-template-columns: 200px minmax(0, 1fr)}

        body:has(.brand-panel77) .customer-main74 {
            padding-right: 28px;
            padding-left: calc(38% + 28px)}
    }

    @media(max-width:760px) {
        html body .app-layout,
        body[data-staff="1"]>main {
            grid-template-columns: 1fr}

        .app-layout>.sidebar {
            display: flex;
            overflow: auto;
            gap: 8px;
            flex-wrap: nowrap
        }

        .app-layout>.sidebar .sidebar-link {
            white-space: nowrap;
            flex-shrink: 0
        }

        

        

        body[data-staff="1"] #page {
            grid-column: 1;
        }

        .ticket-layout79 {
            grid-template-columns: 1fr
        }

        .ticket-meta79 {
            order: -1
        }

        .site-grid79 {
            grid-template-columns: 1fr
        }

        .site-card79 {
            padding: 16px;
            gap: 12px
        }

        .site-card79 .site-icon79 {
            display: none
        }

        .stat-strip79 {
            gap: 16px
        }

        .content-tools79 {
            gap: 10px
        }

        .ticket-row74 {
            grid-template-columns: auto 1fr
        }

        .ticket-row74 .status74 {
            grid-column: 2;
            justify-self: start
        }

        body:has(.brand-panel77) .customer-header74 {
            padding: 0 20px;
        }

        body:has(.brand-panel77) .customer-header74>a {
            width: 220px}

        body:has(.brand-panel77) .customer-main74 {
            padding: 0 20px 28px}

        .brand-panel77 {
            width: calc(100% + 40px);
            margin: 0 -20px 20px;
        }

        

        .brand-panel77:after {
            display: none
        }

        .ticket-layout79 .grid {
            grid-template-columns: 1fr
        }

        .report79 {
            padding: 20px
        }

        .page-heading79 {
            align-items: flex-start
        }

        
    }

    @media print {
        

        

        .report79 {
            border: 0;
            background: white;
            color: #222
        }
    }

    html body .welcome-panel76 {
        background: transparent;
    }

    body:has(.brand-panel77) .customer-main74 {
        background: var(--panel)}

    html:has(.brand-panel77) {
        scrollbar-gutter: auto}

    .welcome-panel76 h2 {
        font-size: 24px}

    .welcome-panel76>p {
        margin: 10px 0 24px}

    #users-view>.page-title {
        flex-wrap: wrap
    }

    #users-view>.page-title>#add-user {
        order: 2;
    }

    .overview79 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 28px
    }

    .overview79>.card {
        margin: 0;
        padding: 24px;
        border: 1px solid var(--line);
        background: var(--panel);
        border-radius: 12px
    }

    .overview79 h2 {
        font-size: 18px;
        margin: 0 0 20px
    }

    .overview79 .counts79 {
        display: flex;
        gap: 28px;
        margin: 16px 0
    }

    .overview79 strong {
        font-size: 28px;
        display: block
    }

    .overview79 small {
        display: block;
        margin: 8px 0;
        color: var(--muted)
    }

    .overview79 .recent79 {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 0;
        border-top: 1px solid var(--line);
        font-size: 13px
    }

    .overview79 a {
        color: var(--blue);
        text-decoration: none
    }

    .trend79 {
        display: flex;
        align-items: end;
        height: 100px;
        gap: 12px;
        margin: 24px 0 34px
    }

    .trend79>div {
        flex: 1;
        min-height: 3px;
        background: var(--blue);
        position: relative;
        border-radius: 3px 3px 0 0
    }

    .trend79 small {
        position: absolute;
        top: 100%;
        font-size: 10px;
        white-space: nowrap
    }

    .trend79 span {
        position: absolute;
        bottom: 100%;
        font-size: 11px;
        color: var(--muted)
    }

    @media(max-width:760px) {
        .overview79 {
            grid-template-columns: 1fr
        }
    }

    .brand-panel77 {
        background-position: center top;
        background-size: cover}

    .brand-copy77 {
        padding-top: 330px}

    .brand-copy77 .brand-line77 {
        position: absolute;
        top: calc(330px + 157px);
        width: 48px
    }

    .brand-copy77 p {
        padding-top: 16px
    }

    .brand-panel77:after {
        content: 'Submit a request, create an account, or sign in to manage your service with Brothers Sound & Security.';
        bottom: 44px;
        max-width: 340px
    }

    .brand-panel77 {
        min-height: 900px
    }

    .brand-copy77 h1 em {
        display: block
    }

    .brand-copy77 h1 br {
        display: none
    }

    @media(max-width:760px) {
        .brand-panel77 {
            background-position: center 40%}

        .brand-copy77 {
            padding: 44px 24px}

        .brand-copy77 .brand-line77 {
            position: static}

        .brand-copy77 h1:before,
        .brand-copy77 h1 em {
            font-size: 42px
        }

        .brand-copy77 p {
            font-size: 17px;
            padding-top: 0
        }
    }

    #add-item79 {
        white-space: nowrap;
        margin-left: auto;
        padding: 10px 18px
    }

    /* Preserve the supplied brand artwork, including the house inside its iris. */
    .brand-panel77 {
        background-image: none;
        background-color: #063d78;
        isolation: isolate;
        overflow: hidden
    }

    .brand-panel77:before {
        content: '';
        position: absolute;
        z-index: -1;
        left: 0;
        right: 0;
        bottom: 0;
        height: 43%;
        background-image: linear-gradient(to bottom, #063d78 0%, rgba(6, 61, 120, .25) 45%, rgba(6, 61, 120, .6) 100%), url('/static/bss-building79.svg');
        background-position: center top, center bottom;
        background-size: 100% 100%, cover;
        background-repeat: no-repeat
    }

    .original-eye79 {
        position: absolute;
        top: 72px;
        left: 12%;
        width: 76%;
        max-height: 190px;
        object-fit: contain
    }

    .brand-panel77:after {
        z-index: 2
    }

    .brand-copy77 {
        z-index: 1
    }

    @media(max-width:760px) {
        .original-eye79 {
            width: 130px;
            left: auto;
            right: 20px;
            top: 28px;
            height: 64px
        }

        .brand-panel77:before {
            height: 100%;
            opacity: .3
        }

        .brand-copy77 {
            padding-top: 108px}

        .brand-panel77 {
            min-height: 350px}
    }

    html body#file-screen {
        --drive-bg: var(--bg);
        --drive-panel: var(--panel);
        --drive-text: var(--text);
        --drive-muted: var(--muted);
        --drive-line: var(--line);
        --drive-selected: var(--selected);
        --drive-hover: var(--search);
        --drive-search: var(--search);
        --drive-accent: var(--blue)
    }

    #file-screen .file-select25 {
        accent-color: var(--blue)
    }

    #file-screen #file-prompt-ok {
        background: var(--blue) !important
    }

    .theme-options36 button {
        display: block;
        width: 100%;
        padding: 10px;
        text-align: left;
        background: none;
        color: var(--text);
        border: 0
    }

    .site-history79 {
        margin-top: 24px
    }

    .site-history79 li {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        list-style: none
    }

    .site-history79 ul {
        padding: 0
    }

    .site-history79 time {
        display: block;
        color: var(--muted);
        font-size: 13px;
        margin-top: 6px
    }

    /* One neutral, theme-aware authentication path. */
    html body#login-screen {
        display: block;
    }

    .auth-header79 {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 32px;
        background: var(--panel);
        border-bottom: 1px solid var(--line)
    }

    .auth-header79 img {
        object-fit: contain
    }

    .auth-header79 nav {
        display: flex;
        align-items: center;
        gap: 24px
    }

    .auth-header79 a {
        text-decoration: none
    }

    .auth-header79 button {
        color: var(--text);
        border-radius: 50%
    }

    html body#login-screen .login-card {
        border-radius: 12px;
        max-width: 100%;
    }

    html body#login-screen .login-card>img:not(.mfa-qr) {
        display: none}

    html body#login-screen h1 {
        text-align: left;
        margin: 0 0 24px
    }

    html body#login-screen .login-card input:not([type=checkbox]):not([type=hidden]) {
        background: var(--panel) !important;
        border-radius: 8px;
        min-height: 44px;
        padding: 12px;
    }

    html body#login-screen .login-card form>button,
    html body#login-screen .login-card .lf-primary {
        border: 1px solid var(--blue);
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 15px;
        margin-top: 20px
    }

    html body#login-screen .login-help,
    html body#login-screen .divider26 {
        color: var(--muted)}

    html body#login-screen a {
        color: var(--blue)
    }

    html body#login-screen #hello-login {
        background: var(--search);
    }

    .signin-methods79 .qr26 {
        text-align: center
    }

    .signin-methods79 #phone-qr25 {
        max-width: 100%;
        background: white;
        box-sizing: content-box;
        border-radius: 8px
    }

    .signin-methods79 #phone-match25 {
        display: block;
        letter-spacing: 2px;
    }

    .signin-methods79 #hello-login {
        width: 100%;
        min-height: 44px;
        background: var(--search);
    }

    .signin-methods79 .divider26 {
        color: var(--muted);
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .signin-methods79 .divider26:before,
    .signin-methods79 .divider26:after {
        content: '';
        height: 1px;
        background: var(--line);
        flex: 1
    }

    .customer-main74 label.remember26 {
        flex-direction: row;
        align-items: center;
    }

    .customer-main74 label.remember26 input {
        width: 18px;
        height: 18px;
        min-height: 18px;
    }

    .signin-methods79 #hello-status:empty {
        display: none
    }

    .signin-methods79 .other-signin76 {
        display: block;
        text-align: center;
    }

    @media(max-width:600px) {
        .auth-header79 {
            padding: 0 18px
        }

        .auth-header79 nav {
            gap: 10px
        }

        /* BSS 1010 (2026-11-20, text fits its box): the wide logo kept its full 430 px, pushing "Back to support" and the theme button off
           a phone screen (the whole sign-in page scrolled sideways). The logo shrinks to the room left; the links keep theirs */
        .auth-header79 {
            gap: 12px
        }

        .auth-header79 > a {
            flex: 0 1 auto;
            min-width: 0
        }

        .auth-header79 > a img {
            display: block;
            max-width: 100%;
            max-height: 48px;
            height: auto
        }

        .auth-header79 nav {
            flex: none
        }

        .auth-header79 nav a {
            white-space: nowrap
        }

    }

    /* Verification and password recovery retain the welcome page's visual shell. */

    .auth-brand79 {
        position: fixed;
        left: 0;
        top: 80px;
        bottom: 0;
        width: 38%;
        color: white
    }

    .auth-brand79 .brand-copy77 {
        padding: 330px 10% 60px}

    .auth-brand79 h1 {
        line-height: 1.08;
        letter-spacing: -1.8px;
        font-weight: 750
    }

    .auth-brand79 h1 em {
        color: #20a2ff;
        font-style: normal
    }

    .auth-brand79 p {
        color: #e7f1ff;
        font-size: 22px;
        line-height: 1.5
    }

    .auth-brand79 .brand-line77 {
        background: #00ad61}

    .auth-brand79:after {
        color: #d8e7fa;
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: 44px;
        line-height: 1.6
    }

    .auth-brand79 h1 br {
        display: none
    }

    html body#login-screen .login-card {
        background: transparent;
        border: 0;
        padding: 0;
        width: 520px;
        max-width: 100%}

    .auth-brand79 .original-eye79 {
        max-height: 190px
    }

    @media(max-width:760px) {
        html body#login-screen {
            padding: 96px 20px 32px}

        .auth-brand79 {
            display: none}

        html body#login-screen .login-card {
            margin: 24px auto}
    }

    html body#login-screen .login-card #phone-status25:empty {
        display: none
    }

    .signin-methods79 #phone-status25 {
        border: 0;
        background: none;
        padding: 0}

    .auth-brand79 .original-eye79 {
        z-index: 2
    }

    .auth-brand79 .brand-copy77 {
        z-index: 2
    }

    /* Preserve Brothers action colors without changing the restored Inventory geometry. */

    /* LF 353 / BSS 448 (2026-10-23, phone header twin): Check Out is outlined, like LogicFortress's (Check In keeps the Brothers blue). */

    /* Module navigation uses one compact row; content receives the full width. */
    html body[data-staff="1"]>main {
        display: flex;
        flex-direction: column;
        min-width: 0}

    html body[data-staff="1"] .module-tabs84 {
        flex: 0 0 auto;
        max-width: 100%;
        overflow-y: hidden;
        white-space: nowrap
    }

    html body[data-staff="1"] .module-tabs84 a {
        flex: 0 0 auto;
        border: 1px solid transparent;
        border-radius: 8px;
    }

    html body[data-staff="1"] .module-tabs84 a:hover {
        background: var(--hover);
        color: var(--text)
    }

    html body[data-staff="1"] .module-tabs84 a[aria-current=page] {
        font-weight: 600
    }

    html body[data-staff="1"] .module-tabs84 a:focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: -2px
    }

    html body[data-staff="1"] .module-tabs84 svg {
        flex: none
    }

    html body[data-staff="1"] #page {
        flex: 1 1 auto;
        min-width: 0;
    }

    @media print {
        
    }

    /* V46.86: title, module navigation, filter and primary action share the content heading. */

    html body[data-staff="1"] .module-heading86 {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px 20px;
        margin: 0 0 16px;
        min-width: 0
    }

    html body[data-staff="1"] .module-heading86 h1 {
        flex: 0 0 auto;
        line-height: 40px;
        margin: 0
    }

    html body[data-staff="1"] .module-heading86 .module-tabs84 {
        max-width: 100%;
        background: transparent;
    }

    html body[data-staff="1"] .module-heading86 .module-tabs84 a {
        min-height: 40px;
        font-size: 13px;
        gap: 7px
    }

    html body[data-staff="1"] .module-heading86 .module-tabs84 svg {
        width: 18px;
        height: 18px
    }

    .module-actions86 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        flex: 0 0 auto
    }

    .module-actions86 :is(button, select) {
        min-height: 40px;
        box-sizing: border-box;
        white-space: nowrap
    }

    html body[data-staff="1"] #page>.stat-strip79 {
        padding: 9px 0;
        margin: 0 0 14px;
        gap: 24px;
        border-top: 0
    }

    html body[data-staff="1"] #page>.site-stats79 {
        margin: 0 0 16px;
        gap: 12px
    }

    html body[data-staff="1"] #page>.site-stats79 .card {
        padding: 14px 18px;
        margin: 0
    }

    html body[data-staff="1"] #page>.site-stats79 .card strong {
        font-size: 26px;
        margin-top: 6px
    }

    @media(max-width:1100px) {
        html body[data-staff="1"] .module-heading86 {
            gap: 10px 12px
        }

        html body[data-staff="1"] .module-heading86 .module-tabs84 {
            order: 3;
    }

        
    }

    @media(max-width:600px) {
        .module-actions86 {
            gap: 6px
        }

        .module-actions86 :is(button, select) {
            font-size: 12px;
            max-width: 145px
        }

        

        html body[data-staff="1"] .module-heading86 {
            gap: 8px
        }

        

        html body[data-staff="1"] .module-heading86 .module-tabs84 a {
            min-height: 42px
        }

        html body[data-staff="1"] #page>.site-stats79 {
            grid-template-columns: repeat(2, minmax(0, 1fr))
        }
    }

    /* V46.88: sidebar padding must fit inside the available dashboard height. */

    @media(min-width:801px) {
        

        .app-layout>.sidebar .sidebar-footer {
            flex: none
        }
    }

    /* V46.141: opaque neutral table surfaces prevent a differently colored top strip. */

    html body #inventory-table thead{top:0;isolation:isolate}
    html body #inventory-table thead::before{content:"";position:absolute;inset:-20px 0 0;background:var(--panel);z-index:-1;pointer-events:none}

    /* BSS 311 (2026-10-15, review O2): from ui-layer-235 (look and consistency): one type scale: page titles 24px, card headings 17px,
       subtitles 14px muted, table headings 11.5px muted; numbers line up. */
    :is(.page-title h1, .dash-page29 > h1, .transaction-heading205 h1, #files-title, .files-main h1) { /* the `h1` rule above is 28px !important */
        font-weight: 600;
        letter-spacing: -.01em;
        line-height: 1.25;
        margin: 0;
    }
    :is(.settings-card h2, .card-heading29 h2, #metrics29 > h2, .overview79 .card h2) {
        letter-spacing: 0;
    }
    :is(.settings-subtitle80, .dash-page29 > p.muted) {
        font-size: 14px;
        color: var(--u-muted);
        margin-top: 4px;
    }
    table th {
        letter-spacing: .01em;
    }
    :is(.metric29 strong, .money-cell) { font-variant-numeric: tabular-nums; }

    /* BSS 311 (2026-10-15, review O2): from ui-layer-235 (look and consistency): buttons: the brand fill is in brand-colors.css; secondary
       actions are neutral; destructive actions read red; disabled controls look disabled. */
    html body button.text-button:not(.ui-danger):not(:disabled):hover {
        color: var(--u-accent) !important; /* controls.css colours and un-outlines every focused control with `html body` and !important */
        background: var(--u-hover) !important;
    }
    a:not([class]):not(nav a):not(header a):not(.ui-plain) { color: var(--u-accent); }
    html body .ui-danger:not(.primary) {
        border-radius: 8px;
    }
    /* files-page.css styles Files-page buttons by id */

    button.primary:disabled:hover { background: var(--u-primary); }

    /* BSS 311 (2026-10-15, review O2): from ui-layer-235 (look and consistency): a grey "0 online" dot; dates and names never split
       mid-word; the current sidebar page and its neighbours; the sidebar's edit control sits under the list. */
    .ui-zero-dot { --ui-dot: var(--u-muted); /* the portal's `.good163` green is set later */ }
    .ui-zero-dot::before, .ui-zero-dot::after { background: var(--u-muted); border-color: var(--u-muted); color: var(--u-muted); }
    /* controls.css colours and un-outlines every focused control with `html body` and !important */

    /* controls.css colours focused controls with !important */

    /* controls.css colours focused controls with !important */

    html body button.navigation-edit-next {
        margin-top: 8px;
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        gap: 8px; /* controls.css (LF 319 / BSS 382: new name) colours and un-outlines every focused control with `html body` and !important */
        font-weight: 500;
        font-size: 13px; /* dashboard.css pads every .text-button with !important */
        border-radius: 8px;
        position: static;
        inset: auto;
    }
    /* LF 319 / BSS 382 (2026-10-20, app split step 8) */
    /* controls.css colours focused controls with !important */

    button.navigation-edit-next::before {
        content: "";
        width: 16px;
        height: 16px;
        flex: none;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* BSS 311 (2026-10-15, review O2): from ui-layer-235 (look and consistency): one popup template (ui-layer-235.js still marks every popup
       `.ui-dialog` with a title, a close button and a button row): surface, radius, shadow, title, close button, actions,
       one field style. */
    dialog:is(.dialog31, .lf-dialog, .themed-dialog-next, .bss-dialog93, .bss-dialog95, .dialog101, .new-ticket79, .row-dialog140, .dialog163,
        .bss-inventory-dialog95, #confirm-dialog, #file-prompt, #movement-details, #shortcuts-dialog, #modal):not(.account-menu32):not(.calendar31) {
        border-radius: 14px;
    }
    dialog::backdrop { background: rgba(10, 12, 14, .55); }
    dialog.ui-dialog :is(.ui-dialog-title) {
        letter-spacing: 0;
    }
    dialog.ui-dialog .dialog-heading31 { margin: 0 0 16px; padding: 0; border: 0; min-height: 0; }
    dialog.ui-dialog .dialog-heading31 .ui-dialog-title { margin: 0 44px 0 0; }
    html body dialog.ui-dialog .ui-dialog-close {
        border-radius: 8px;
    }
    html body dialog.ui-dialog .ui-dialog-close:hover { background: var(--u-hover) !important; color: var(--u-text) !important; /* the rule above is !important */ }
    dialog.ui-dialog .ui-dialog-actions > :is(button, a.button) {
        border-radius: 8px;
    }
    html body dialog.ui-dialog .ui-dialog-actions > button:not(.primary):not(.ui-danger):hover {
        background: var(--u-hover) !important; /* the rule above is !important */
        color: var(--u-text) !important; /* the rule above is !important */
    }
    /* LF 319 / BSS 382 (2026-10-20, app split step 8) */
    dialog.ui-dialog label:not(.check29):not(.switch):not(:has(> input[type=checkbox])):not(:has(> input[type=radio])) {
        letter-spacing: 0;
    }
    dialog.ui-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), textarea, select:not(.native44)) {
        border-radius: 8px;
    }

    /* BSS 311 (2026-10-15, review O2): from ui-layer-235 (look and consistency): the theme switch on public pages shows a sun or moon;
       focus is always visible; two-way switches (Transaction Log "Inventory | Ticket billing") look like one control. */
    html body :is(header.auth-header79, header.customer-header74, .welcome76 header) nav button:only-of-type,
    html body .ui-theme-button {
        font-size: 0;
        width: 40px;
        height: 40px;
        display: flex; /* BSS 315 (2026-10-15, review O2): from ui-layer-296: centres the icon; the hidden glyph text adds no grid row */
        place-items: center;
         /* BSS 315 (2026-10-15, review O2): from ui-layer-296 */
        justify-content: center; /* BSS 315 (2026-10-15, review O2): from ui-layer-296 */
        padding: 0; /* BSS 315 (2026-10-15, review O2): from ui-layer-296: sign-in.css pads every button by the body id */
        line-height: 0; /* BSS 315 (2026-10-15, review O2): from ui-layer-296: same reason */
        border-radius: 50%;
        border: 1px solid var(--u-line);
        background: var(--u-card);
    }
    .ui-theme-button::before {
        content: "";
        width: 20px;
        height: 20px;
        background: currentColor;
        mask: var(--ui-theme-icon) center / contain no-repeat;
        flex: none /* BSS 315 (2026-10-15, review O2): from ui-layer-296: the icon keeps its size and sits in the middle */;
         /* BSS 315 (2026-10-15, review O2): from ui-layer-296: the icon keeps its size and sits in the middle */
    }
    .ui-theme-button {
        --ui-theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
    }
    html.dark .ui-theme-button {
        --ui-theme-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z'/%3E%3C/svg%3E");
    }
    .toolbar:has(> button[aria-pressed]):not(dialog .toolbar) {
        display: inline-flex;
        gap: 2px;
        padding: 3px;
        border: 1px solid var(--u-line);
        border-radius: 10px;
        background: var(--u-hover);
        width: auto;
    }
    html body .toolbar:not(dialog .toolbar) > button[aria-pressed] { /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
        box-shadow: none;
    }
    /* controls.css clears the shadow of every focused control with !important */

    /* BSS 311 (2026-10-15, review O2): from ui-layer-277 (iPhone pass): typing boxes use 16px text on phones, so the iPhone does not zoom
       the page in when one is tapped. The `:is(body, dialog.ui-dialog)` prefix gives the rule the popup field rule's
       specificity above, so the later rule (this one) wins inside popups too. */

    /* BSS 311 (2026-10-15, review O2): from ui-layer-277 (iPhone pass): phones: a plain button beside a blue one is the same height (blue
       buttons are 44px tall); the trend caption stays readable; touch screens get a finger-sized tap area on the public
       header links without moving anything. */
    @media(max-width:800px),(pointer:coarse) and (max-height:600px) {
        :is(.primary ~ .text-button,.text-button:has(~ .primary)) {
            box-sizing: border-box;
    }

        .trend79 small {
            font-size: 11px
        }
    }

    @media(pointer:coarse) {
        header.auth-header79 nav a {
            padding: 10px 0;
            margin: -10px 0
        }
    }

    /* BSS 311 (2026-10-15, review O2): from ui-layer-235 (look and consistency): native selects in pages that do not load the shared
       dropdown (site monitoring frame, public request form) look like it. */

    /* BSS 311 (2026-10-15, review O2): from ui-layer-277 (iPhone pass): on 801-1150px screens the side menu is 190px, so a long name
       ("Users & notifications") wraps instead of running past the edge (this sheet is on the Users page too). */
    @media(min-width:801px) and (max-width:1150px) {
        .app-layout>.sidebar .sidebar-link {
            white-space: normal;
            line-height: 1.25;
            text-align: left
        }
    }

    /* BSS 315 (2026-10-15, review O2): from ui-layer-238 (I15): beside the blue panel the sign-in card is centred in the remaining space
       (this sheet's own page and card rules above are forced, so these are; phone-sign-in-layout.css carries the same for the phone page). */
    @media(min-width:761px) {
        html body#login-screen {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 104px 48px 24px calc(38vw + 48px)}

        html body#login-screen .login-card {
            margin: 0;
            width: min(440px, 100%)}
    }

    /* BSS 315 (2026-10-15, review O2): from ui-layer-236 (I9): an empty list says what to do next (ui-layer-236.js builds the box in the cell). */
    .ui-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 40px 16px;
        text-align: center;
        color: var(--u-muted)
    }

    .ui-empty strong {
        color: var(--u-text);
        font-size: 15px;
        font-weight: 600
    }

    .ui-empty .ui-empty-hint {
        font-size: 13px
    }

    .ui-empty button.primary {
        min-height: 40px;
        padding: 0 18px
    }
}

/* 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. */
h1 {
    font-size: 28px;
}
html body .app-layout {
    grid-template-columns: 240px minmax(0, 1fr);
}
.app-layout>.sidebar {
    width: 240px;
    min-width: 240px;
    padding: 24px 12px;
    border-right: 1px solid var(--line);
    background: var(--panel);
}
.app-layout>main {
    padding: 28px;
}
.sidebar-link {
    border-radius: 6px;
    min-height: 44px;
    padding: 10px 12px;
    margin: 4px 0;
    font-size: 14px;
}
.sidebar-link svg {
    color: currentColor;
    width: 20px;
    height: 20px;
}
.sidebar-link.active, .sidebar-link[aria-current=page] {
    background: var(--selected);
    color: var(--blue);
}
.metric29 {
    border-top: 1px solid var(--line);
}
.metric29 strong {
    font-size: 30px;
}
.metric29 p {
    color: var(--muted);
}
.metrics-grid29 {
    gap: 16px;
}
td, th {
    border-color: var(--line);
}
.search79 input {
    height: 44px;
    border-radius: 0;
}
.search79:focus-within {
    background: var(--hover);
    outline: 0;
    box-shadow: none;
}
.conversation79 {
    margin: 0;
    padding: 24px;
}
.message {
    border: 0;
    padding: 18px;
}
.message.private {
    border-left: 3px solid var(--amber);
}
.ticket-meta79 {
    margin: 0;
    padding: 22px;
}
.customer-main74 .brand-panel77 h1 {
    font-size: clamp(46px, 4.3vw, 66px);
}
.welcome-panel76 label {
    font-size: 13px;
    margin-bottom: 16px;
}
.welcome-panel76 .send76 {
    min-width: 190px;
}
.entry-form76 {
    margin: 40px auto;
}
.ticket-row74 {
    padding: 20px;
    gap: 16px;
}
.status74 {
    border: 0;
    background: var(--selected);
    color: var(--blue);
}
html body dialog {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.device67 {
    width: 440px;
    padding: 28px;
}
.device67>button[data-link] {
    background: var(--blue);
    color: white;
}
.device67 .choices67 button {
    padding: 10px;
}
.dialog31, .detail-dialog31 {
    max-height: calc(100dvh - 40px);
}
.lf-dialog-next {
    max-width: 440px;
}
.lf-dialog-next button {
    min-height: 44px;
    padding: 10px 18px;
}
@media(max-width:760px) {
    .app-layout>.sidebar {
        width: auto;
        min-width: 0;
        padding: 8px;
        height: auto;
    }
    .sidebar-footer {
        display: none;
    }
    .app-layout>main {
        padding: 20px;
    }
    .ticket-row74 {
        display: grid;
    }
    .customer-main74 .brand-panel77 h1 {
        font-size: 44px;
    }
    .page-heading79 h1 {
        font-size: 25px;
    }
}
@media print {
    .support-sidebar79, .sidebar, .report-tools79 {
        display: none;
    }
    body, body[data-staff="1"]>main, #page {
        display: block;
        overflow: visible;
        height: auto;
    }
}
html body .welcome-panel76 {
    border-radius: 0;
    padding: 0;
}
html body .search-control input {
    outline: 0;
}
#users-view>.page-title {
    display: flex;
    gap: 16px;
}
#users-view>.page-title>#add-user {
    margin: 0;
}
#users-view>.page-title h1 {
    font-size: 24px;
}
html body :is(.lf-primary, #check-in-button, #checkout-button, .stock-scan60 button[type=submit]) {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.brand-copy77 h1 {
    margin-bottom: 20px;
}
.auth-header79 button {
    min-height: 40px;
}
html body#login-screen .login-card form>button, html body#login-screen .login-card .lf-primary {
    min-height: 44px;
}
.auth-brand79 {
    min-height: 0;
}
.auth-brand79 h1 {
    font-size: clamp(46px, 4.3vw, 66px);
}
html body#login-screen {
    background: var(--panel);
}
html body #sidebar-pane button[onclick='promptScanIn()'] {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}
html body #sidebar-pane button[onclick='promptCheckout()'] {
    background: var(--raised);
    /* the Check In / Check Out rules above are !important */
    color: var(--ink);
    /* the Check In / Check Out rules above are !important */
    border-color: var(--line);
}
html body[data-staff="1"] .module-tabs84 {
    width: 100%;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}
@media print {
    body[data-staff="1"] .module-tabs84 {
        display: none;
    }
}
html body[data-staff="1"] .module-heading86 h1 {
    font-size: 24px;
}
html body[data-staff="1"] .module-heading86 .module-tabs84 {
    flex: 1 1 auto;
    width: auto;
    padding: 0;
    gap: 4px;
    border: 0;
    min-width: 0;
}
html body[data-staff="1"] .module-heading86 .module-tabs84 a {
    padding: 8px 10px;
}
.module-actions86 :is(button, select) {
    margin: 0;
}
html body[data-staff="1"] #page>.toolbar[hidden] {
    display: none;
}
@media(max-width:1100px) {
    html body[data-staff="1"] .module-heading86 .module-tabs84 {
        flex: 1 1 100%;
    }
    html body[data-staff="1"] .module-heading86 h1 {
        font-size: 22px;
    }
}
@media(max-width:600px) {
    .module-actions86 :is(button, select) {
        padding: 8px;
    }
    html body[data-staff="1"] .module-heading86 h1 {
        font-size: 20px;
    }
    html body[data-staff="1"] .module-heading86 .module-tabs84 {
        width: 100%;
    }
}
html body .app-layout>.sidebar {
    box-sizing: border-box;
    scrollbar-gutter: auto;
}
@media(min-width:801px) {
    html body .app-layout>.sidebar {
        height: auto;
        align-self: stretch;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .app-layout>.sidebar .sidebar-footer {
        position: static;
    }
}
html body #inventory-table,html body #inventory-table thead,html body #inventory-table th {
    background: var(--panel);
    background-image: none;
}
html body #table-pane,html body #sidebar-pane {
    background: var(--panel);
    background-image: none;
}
:is(.page-title h1, .dash-page29 > h1, .transaction-heading205 h1, #files-title, .files-main h1) {
    font-size: 24px;
}
:is(.settings-card h2, .card-heading29 h2, #metrics29 > h2, .overview79 .card h2) {
    font-size: 17px;
    /* integrations-page.css (LF 315 / BSS 378: new name) sizes every h2 of the Backups page by id */
    font-weight: 600;
}
html body .ui-danger:not(.primary):not(:disabled):hover {
    background: var(--u-danger-soft);
}
.ui-zero-dot {
    color: var(--u-muted);
}
html body .sidebar-link:is(.active, [aria-current=page]) {
    color: var(--u-accent);
    /* controls.css (LF 319 / BSS 382: new name) colours focused controls with !important */
    background: var(--u-accent-soft);
}
html body .sidebar-link:not(.active) {
    color: var(--u-muted);
}
html body .sidebar-link:not(.active):hover {
    color: var(--u-text);
    background: var(--u-hover);
}
html body button.navigation-edit-next {
    color: var(--u-muted);
    padding: 8px 12px;
}
html body button.navigation-edit-next:hover {
    color: var(--u-text);
    background: var(--u-hover);
}
html body .toolbar:not(dialog .toolbar) > button[aria-pressed] {
    /* html body: brand-colors.css (LF 319 / BSS 382: new name)'s hover rules start with body */
    min-height: 32px;
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    padding: 0 14px;
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    border: 0;
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    border-radius: 7px;
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    background: transparent;
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    color: var(--u-muted);
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    font-weight: 600;
}
html body .toolbar:not(dialog .toolbar) > button[aria-pressed="true"] {
    /* html body: brand-colors.css's hover rules start with body */
    background: var(--u-card);
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    color: var(--u-text);
    /* dashboard.css / user-directory.css .primary and the brand-colors.css fill/hover are !important */
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
@media(max-width:800px),(pointer:coarse) and (max-height:600px) {
    :is(.primary ~ .text-button,.text-button:has(~ .primary)) {
        min-height: 44px;
    }
}
