/* == 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:   315
   == end of module header == */
@layer app {
    body:has(.welcome-choices76) {
        background: #f5f8fc;
        color: #172a41
    }

    html.dark body:has(.welcome-choices76) {
        background: #161d26;
        color: #edf3fa
    }

    body:has(.welcome-choices76) .customer-header74 {
        height: 90px;
        padding: 0 44px;
        background: var(--panel);
        position: sticky;
        top: 0
    }

    body:has(.welcome-choices76) .customer-header74>a {
        width: 170px;
        height: 82px;
        flex: none
    }

    body:has(.welcome-choices76) .customer-header74 img {
        width: 132px
    }

    body:has(.welcome-choices76) .customer-header74 nav {
        flex: none
    }

    body:has(.welcome-choices76) .customer-main74 {
        max-width: 1240px;
        padding: 0 30px 40px;
        margin: 30px auto
    }

    .welcome-intro76 {
        text-align: center;
        margin-bottom: 26px
    }

    .customer-main74 .welcome-intro76 h1 {
        font-size: 40px;
        letter-spacing: -1.2px;
        line-height: 1.2;
        margin: 0 0 8px;
        font-weight: 750
    }

    .welcome-intro76 p {
        font-size: 18px;
        color: var(--muted);
        margin: 0
    }

    .welcome-choices76 {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 18px
    }

    .customer-main74 .welcome-choices76 button {
        display: flex;
        align-items: center;
        gap: 18px;
        position: relative;
        text-align: left;
        padding: 24px 22px;
        min-height: 106px;
        background: var(--panel);
        border: 1px solid #d4dfea;
        border-radius: 12px;
        color: inherit;
        transition: background .15s, border-color .15s
    }

    .welcome-choices76 button>svg {
        width: 38px;
        height: 38px;
        flex: none;
        stroke: #2789de;
        stroke-width: 1.7;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .welcome-choices76 strong {
        display: block;
        font-size: 18px;
        margin-bottom: 7px;
        letter-spacing: -.3px
    }

    .welcome-choices76 small {
        display: block;
        font-size: 13px;
        line-height: 1.45;
        color: var(--muted)
    }

    .welcome-choices76 .selected76 {
        display: none;
        position: absolute;
        right: 12px;
        top: 12px;
        border-radius: 50%;
        background: #09ab3a;
        color: white;
        width: 19px;
        height: 19px;
        align-items: center;
        justify-content: center;
        font-size: 12px
    }

    .customer-main74 .welcome-choices76 [aria-selected=true] {
        border-color: #248cff;
        background: #eef7ff
    }

    .welcome-choices76 [aria-selected=true] .selected76 {
        display: flex
    }

    .customer-main74 .welcome-choices76 button:hover {
        border-color: #248cff
    }

    .dark .customer-main74 .welcome-choices76 button {
        border-color: #3a4b60
    }

    .dark .customer-main74 .welcome-choices76 [aria-selected=true] {
        border-color: #4a9df8;
        background: #20344b
    }

    .welcome-panel76 {
        padding: 26px;
        background: var(--panel);
        border: 1px solid #e6edf4;
        border-radius: 13px;
        box-shadow: 0 6px 24px #19355306
    }

    .dark .welcome-panel76 {
        border-color: #354357
    }

    .welcome-panel76 .fields74 {
        gap: 0 24px
    }

    .welcome-panel76 label {
        font-size: 14px;
        margin-bottom: 17px;
        gap: 7px
    }

    .welcome-panel76 input,
    .welcome-panel76 select,
    .welcome-panel76 textarea {
        font-size: 14px;
        border-color: #cbd7e4;
        border-radius: 7px;
        padding: 11px 13px;
        background: var(--panel)
    }

    .welcome-panel76 input::placeholder,
    .welcome-panel76 textarea::placeholder {
        color: #7a889e
    }

    .welcome-panel76 textarea {
        min-height: 90px;
        resize: vertical
    }

    .dark .welcome-panel76 input,
    .dark .welcome-panel76 select,
    .dark .welcome-panel76 textarea {
        border-color: #45556a
    }

    .welcome-photos76>span {
        font-size: 14px;
        display: block;
        margin-bottom: 8px
    }

    .photo-controls76 {
        display: flex;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap
    }

    .customer-main74 .upload76 {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 9px;
        width: 170px;
        min-height: 94px;
        border: 1px dashed #acc6e1;
        color: #1278ce;
        background: transparent;
        border-radius: 8px;
        font-size: 13px
    }

    .upload76 svg {
        width: 30px;
        height: 30px;
        stroke: currentColor;
        stroke-width: 1.7;
        fill: none
    }

    .customer-main74 .capture76 {
        background: transparent;
        border: 0;
        color: var(--blue);
        font-size: 13px;
        padding: 8px
    }

    .welcome-photos76 small {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin: 9px 0 18px
    }

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

    .photo-controls76 [data-photo-preview] button {
        padding: 0;
        border: 1px solid var(--line);
        overflow: hidden
    }

    .photo-controls76 [data-photo-preview] img {
        display: block;
        width: 85px;
        height: 85px;
        object-fit: cover
    }

    .customer-main74 .send76 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        min-width: 210px;
        font-weight: 600;
        background: #147cd0;
        border-color: #147cd0
    }

    .entry-form76 {
        max-width: 470px;
        margin: 24px auto 32px
    }

    .entry-form76 p {
        color: var(--muted);
        margin-bottom: 24px
    }

    .entry-form76 h2 {
        font-size: 25px
    }

    .other-signin76 {
        display: inline-block;
        margin-top: 20px;
        font-size: 14px
    }

    .welcome-panel76 button.primary span {
        margin-left: 14px
    }

    .welcome-panel76 input:focus,
    .welcome-panel76 textarea:focus,
    .welcome-panel76 select:focus {
        outline: 2px solid #2587da;
        outline-offset: 1px
    }

    @media(max-width:800px) {
        .welcome-choices76 {
            gap: 10px
        }

        .customer-main74 .welcome-choices76 button {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding: 20px 14px
        }

        .welcome-choices76 strong {
            font-size: 16px
        }

        .welcome-choices76 small {
            font-size: 12px
        }

        .customer-main74 .welcome-intro76 h1 {
            font-size: 32px
        }
    }

    @media(max-width:540px) {
        body:has(.welcome-choices76) .customer-header74 {
            padding: 0 16px;
            min-height: 80px;
            height: 80px;
            flex-wrap: nowrap
        }

        body:has(.welcome-choices76) .customer-header74>a {
            width: 120px;
            height: 74px
        }

        body:has(.welcome-choices76) .customer-header74 img {
            width: 110px
        }

        body:has(.welcome-choices76) .customer-main74 {
            padding: 0 16px 28px;
            margin: 26px auto
        }

        .welcome-intro76 p {
            font-size: 15px
        }

        .welcome-choices76 {
            grid-template-columns: 1fr;
            gap: 10px
        }

        .customer-main74 .welcome-choices76 button {
            flex-direction: row;
            align-items: center;
            padding: 16px;
            min-height: 80px;
            gap: 15px
        }

        .welcome-choices76 button>svg {
            width: 30px;
            height: 30px
        }

        .welcome-choices76 strong {
            margin-bottom: 4px
        }

        .welcome-panel76 {
            padding: 20px
        }

        .welcome-panel76 .fields74 {
            grid-template-columns: 1fr
        }

        .welcome-panel76 .send76 {
            width: 100%
        }

        .welcome-intro76 {
            margin-bottom: 22px
        }

        .entry-form76 {
            margin: 8px 0
        }
    }

    body:has(.welcome-choices76) .customer-header74 nav {
        width: auto;
        order: 0;
        margin-left: auto;
        overflow: visible
    }

    /* BSS 315 (2026-10-15, review O2): from ui-layer-238 (I15): the entry form sits 40px from the panel edges on wide screens. */
    @media(min-width:761px) {
        .welcome-panel76 .entry-form76 {
            margin: 40px 0
        }
    }
}

/* 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. */
body:has(.welcome-choices76) {
    font-family: Arial, system-ui, sans-serif;
}
.welcome-panel76[hidden] {
    display: none;
}
