/* == Module header (D6). Purpose/Status are hand-written; Module-Map.py --check verifies the rest. ==
   Purpose:   (add a one-line purpose)
   Status:    active
   Loaded by: customer-welcome.html
   Replaces:  none
   History:   no release tags in comments yet (tag new blocks as '# BSS NNN: why')
   == end of module header == */
@layer app {
    html {
        scrollbar-gutter: stable
    }

    body {
        margin: 0;
        background: var(--bg);
        color: var(--text)
    }

    .customer-header74 {
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 32px;
        background: var(--panel);
        border-bottom: 1px solid var(--line)
    }

    .customer-header74>a {
        height: 80px;
        width: 144px;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .customer-header74 img {
        width: 120px;
        height: auto
    }

    .customer-header74 nav {
        display: flex;
        align-items: center;
        gap: 24px
    }

    .customer-header74 a {
        color: inherit;
        text-decoration: none
    }

    .customer-header74 a[aria-current] {
        color: var(--blue);
        border-bottom: 2px solid var(--blue)
    }

    .customer-main74 {
        max-width: 1000px;
        margin: 36px auto;
        padding: 0 24px 40px
    }

    .customer-main74 h1 {
        font-size: 28px;
        margin: 0 0 12px
    }

    .customer-main74 h2 {
        font-size: 21px;
        margin-top: 0
    }

    .customer-card74 {
        padding: 28px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--panel);
        margin: 24px 0
    }

    .narrow74 {
        max-width: 520px;
        margin: 48px auto
    }

    .intro74 {
        margin-bottom: 26px
    }

    .fields74 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px
    }

    .customer-main74 label {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 18px;
        font-weight: 500
    }

    .customer-main74 input,
    .customer-main74 select,
    .customer-main74 textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        color: var(--text);
        font: inherit
    }

    .customer-main74 button,
    .customer-main74 a.primary {
        padding: 12px 20px;
        border-radius: 8px;
        font: inherit;
        display: inline-block;
        text-decoration: none
    }

    .customer-main74 .primary {
        background: var(--blue);
        color: #fff;
        border: 1px solid var(--blue)
    }

    .customer-main74 .muted {
        font-size: 13px;
        line-height: 1.6;
        color: var(--muted)
    }

    .photo-area74 {
        border: 1px dashed var(--line);
        border-radius: 8px;
        padding: 16px;
        margin: 10px 0 20px
    }

    .photo-area74 label {
        font-size: 13px
    }

    .photo-area74 input {
        padding: 8px
    }

    .photo-area74 img {
        height: 70px;
        width: 90px;
        object-fit: cover;
        border-radius: 6px
    }

    .photo-area74 [data-photo-preview] {
        display: flex;
        gap: 12px;
        flex-wrap: wrap
    }

    .portal-top74 {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: center
    }

    .portal-top74 label {
        min-width: 240px
    }

    .ticket-row74 {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
        border-bottom: 1px solid var(--line);
        color: inherit;
        text-decoration: none
    }

    .ticket-row74 strong {
        flex: 1
    }

    .status74 {
        background: var(--bg);
        border-radius: 16px;
        padding: 6px 12px;
        font-size: 13px
    }

    .message74 {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        padding: 20px 0;
        border-bottom: 1px solid var(--line)
    }

    .message74 img {
        max-width: 180px;
        max-height: 140px;
        border-radius: 8px;
        margin: 10px
    }

    .toolbar74 {
        display: flex;
        gap: 16px;
        align-items: center
    }

    .toolbar74 input {
        flex: 1
    }

    .customer-main74 [role=status]:not(:empty) {
        padding: 12px;
        border-radius: 8px;
        background: var(--panel);
        border: 1px solid var(--line)
    }

    @media(max-width:600px) {
        .customer-header74 {
            padding: 0 16px
        }

        .customer-header74 nav {
            gap: 12px;
            font-size: 13px
        }

        .customer-header74 img {
            width: 104px
        }

        .customer-header74>a {
            width: 110px
        }

        .customer-main74 {
            margin: 24px auto;
            padding: 0 16px 30px
        }

        .fields74 {
            grid-template-columns: 1fr;
            gap: 0
        }

        .customer-card74 {
            padding: 20px
        }

        .portal-top74 {
            align-items: stretch;
            flex-direction: column;
            gap: 8px
        }

        .portal-top74 label {
            min-width: 0
        }

        .toolbar74 {
            flex-wrap: wrap
        }

        .ticket-row74 {
            flex-wrap: wrap
        }
    }

    .customer-main74 form {
        display: block
    }

    .customer-header74 {
        flex-wrap: nowrap
    }

    .customer-main74 [type=checkbox] {
        width: auto
    }

    .customer-main74 a.primary {
        margin-top: 8px
    }

    .customer-main74 button:focus-visible,
    .customer-header74 a:focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: 3px
    }

    @media(max-width:600px) {
        .customer-header74 {
            height: auto;
            min-height: 130px;
            display: flex;
            flex-wrap: wrap;
            gap: 0;
            padding: 0 16px 10px
        }

        .customer-header74>a {
            height: 76px;
            flex: 0 0 100%;
            justify-content: flex-start
        }

        .customer-header74 nav {
            display: flex;
            flex: 1 1 100%;
            gap: 6px;
            overflow: visible;
            justify-content: space-between;
            flex-wrap: wrap
        }

        .customer-header74 nav a {
            padding: 10px 6px
        }

        .customer-header74 nav button {
            padding: 8px 12px
        }
    }
}

/* 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. */
.trap74 {
    display: none;
}
.customer-main74 [hidden], .customer-header74 [hidden] {
    display: none;
}
