/*
 * ============================================================================
 * LALP OS
 * G3 GLOBAL SURFACE NAVIGATION V1
 * ============================================================================
 *
 * This layer supplements each native surface.
 * It never replaces formation-local navigation.
 * ============================================================================
 */

.g3-surface-actions{
    display:flex;
    align-items:center;

    gap:.42rem;

    margin-left:auto;

    min-width:0;

    position:relative;
    z-index:140;
}


.g3-surface-return,
.g3-surface-signout,
.g3-surface-signin{
    appearance:none;

    min-height:31px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    margin:0;

    padding:
        .28rem
        .62rem;

    border:
        1px solid
        rgba(
            247,
            140,
            31,
            .18
        );

    border-radius:999px;

    background:
        rgba(
            247,
            140,
            31,
            .025
        );

    color:
        rgba(
            247,
            140,
            31,
            .76
        );

    font-family:
        'Courier Prime',
        monospace;

    font-size:.54rem;
    font-weight:700;

    line-height:1;

    letter-spacing:.065em;
    text-transform:uppercase;

    white-space:nowrap;

    text-decoration:none;

    cursor:pointer;

    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.g3-surface-return:hover,
.g3-surface-return:focus-visible,
.g3-surface-signout:hover,
.g3-surface-signout:focus-visible,
.g3-surface-signin:hover,
.g3-surface-signin:focus-visible{
    color:
        rgba(
            247,
            140,
            31,
            1
        );

    border-color:
        rgba(
            247,
            140,
            31,
            .34
        );

    background:
        rgba(
            247,
            140,
            31,
            .07
        );

    outline:none;
}


.g3-surface-identity{
    max-width:9rem;

    min-width:0;

    display:inline-flex;
    align-items:center;

    gap:.32rem;

    padding:
        .26rem
        .48rem;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .07
        );

    border-radius:999px;

    background:
        rgba(
            255,
            255,
            255,
            .018
        );

    color:
        rgba(
            255,
            255,
            255,
            .45
        );

    font-family:
        'Courier Prime',
        monospace;

    font-size:.50rem;
    font-weight:700;

    letter-spacing:.055em;
    text-transform:uppercase;
}


.g3-surface-status-dot{
    flex:0 0 auto;

    color:
        rgba(
            41,
            197,
            109,
            .76
        );

    font-size:.42rem;
}


.g3-surface-name{
    min-width:0;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}


.g3-surface-signout-form{
    display:inline-flex;

    margin:0;
    padding:0;
}


.g3-label-short{
    display:none;
}


/*
 * Surface header integration.
 */

#topbar > .g3-surface-actions,
#tb > .g3-surface-actions{
    flex:0 0 auto;
}


/*
 * Runtime mobile law:
 * preserve formation-local navigation and avoid topbar crowding.
 */

@media(max-width:860px){

    .g3-surface-actions{
        gap:.24rem;
    }

    .g3-surface-identity{
        display:none;
    }

    .g3-label-full{
        display:none;
    }

    .g3-label-short{
        display:inline;
    }

    .g3-surface-return,
    .g3-surface-signout,
    .g3-surface-signin{
        min-height:30px;

        padding:
            .24rem
            .43rem;

        font-size:.47rem;

        letter-spacing:.035em;
    }
}


@media(max-width:520px){

    #tb .g3-surface-actions{
        gap:.16rem;
    }

    #tb .g3-surface-return,
    #tb .g3-surface-signout,
    #tb .g3-surface-signin{
        padding:
            .22rem
            .34rem;

        font-size:.43rem;
    }
}
