.up-language-switcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;

    display: flex;
    align-items: center;
    gap: 5px;

    padding: 6px;
    border: 1px solid rgba(91, 127, 174, .62);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(12, 24, 41, .97),
            rgba(5, 13, 24, .99)
        );

    box-shadow:
        0 16px 48px rgba(0, 0, 0, .46),
        0 0 26px rgba(74, 192, 226, .10);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.up-language-globe {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;

    color: #83dff0;
    font-size: 18px;
    user-select: none;
}

.up-language-button {
    min-width: 51px;
    height: 38px;
    padding: 0 13px;

    border: 0;
    border-radius: 11px;
    outline: 0;

    background: transparent;
    color: #a9b7cc;

    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .07em;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.up-language-button:hover {
    color: #fff;
    background: rgba(106, 217, 239, .10);
}

.up-language-button:active {
    transform: scale(.96);
}

.up-language-button.is-active {
    color: #06131e;

    background:
        linear-gradient(
            135deg,
            #8be6f1,
            #4abfee
        );

    box-shadow:
        0 7px 19px rgba(56, 185, 231, .25);
}

html[lang="th"] body {
    word-break: normal;
}

html[lang="th"] .up-utility-head h2,
html[lang="th"] .up-dashboard-v2 h2,
html[lang="th"] .up-market-title,
html[lang="th"] .hero-title {
    letter-spacing: -.03em;
    line-height: 1.1;
}

html.up-language-loading body {
    opacity: .985;
}

@media (max-width: 760px) {
    .up-language-switcher {
        right: 10px;
        bottom: 14px;
        padding: 5px;
        border-radius: 14px;
    }

    .up-language-globe {
        width: 31px;
        height: 34px;
        font-size: 16px;
    }

    .up-language-button {
        min-width: 44px;
        height: 35px;
        padding-inline: 9px;
    }
}

@media print {
    .up-language-switcher {
        display: none !important;
    }
}

/* =========================================================
   Node status page — keep desktop navigation on one line
========================================================= */

@media (min-width: 1100px) {

    body.status-page .site-nav,
    body.page-status .site-nav,
    body[data-page="status"] .site-nav,
    .status-page .site-nav,
    .page-status .site-nav {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: center;
        align-items: center;
        gap: 3px !important;
    }

    body.status-page .site-nav a,
    body.page-status .site-nav a,
    body[data-page="status"] .site-nav a,
    .status-page .site-nav a,
    .page-status .site-nav a {
        flex: 0 1 auto;
        min-width: 0;
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }
}
