body.ust-mobile-shell {
    --ust-mobile-bg: #0b1124;
    --ust-mobile-panel: #131c31;
    --ust-mobile-border: #405176;
    --ust-mobile-text: #eef3ff;
    --ust-mobile-muted: #acbad3;
    --ust-mobile-gold: #efcb87;
    min-width: 0;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    color-scheme: dark;
    color: var(--ust-mobile-text);
    background: var(--ust-mobile-bg) !important;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    overflow-x: clip;
}

.ust-mobile-shell > main {
    position: relative;
    isolation: isolate;
    min-width: 0;
}

.ust-mobile-shell > main::before,
.ust-mobile-shell > main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(116deg, transparent 14%, #659dff64 20%, transparent 24%, transparent 33%, #8caaff91 40%, transparent 46%, transparent 58%, #5c7dff66 62%, transparent 67%, transparent 76%, #986bff70 81%, transparent 86%);
    background-size: 160% 100%;
    animation: ust-mobile-rays 16s ease-in-out infinite alternate;
}

.ust-mobile-shell > main::after {
    background-image: linear-gradient(65deg, transparent 15%, #8e6cff60 21%, transparent 28%, transparent 39%, #ba98ff85 45%, transparent 51%, transparent 60%, #65d9ff65 65%, transparent 71%, transparent 78%, #7d9aff70 83%, transparent 88%);
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

@keyframes ust-mobile-rays {
    from { background-position: 0% 0; }
    to { background-position: 100% 0; }
}

.ust-mobile-shell .ust44-header,
body.ust-mobile-shell.home .ust44-header .ust44-bottom,
.ust-mobile-shell .ust44-bottom,
.ust-mobile-shell .footer {
    background: #10182b !important;
    border-color: #33425e !important;
    box-shadow: none !important;
}
.ust-mobile-shell .ust44-header::before,
.ust-mobile-shell .ust44-header::after,
body.ust-mobile-shell.home .ust44-top::before {
    display: none !important;
}

.ust-mobile-shell .ust44-top {
    min-height: 0 !important;
    padding: 8px 12px !important;
    gap: 8px !important;
}

.ust-mobile-shell .ust44-brand {
    min-width: 0 !important;
    filter: drop-shadow(0 0 10px #829ce65c);
}

.ust-mobile-shell .ust44-brand img {
    height: auto !important;
    max-height: 66px;
    max-width: 124px !important;
    object-fit: contain;
    animation: ust-mobile-brand 7s infinite;
}

@keyframes ust-mobile-brand {
    0%,34% { transform: perspective(240px) rotateY(0); }
    66%,100% { transform: perspective(240px) rotateY(360deg); }
}

.ust-mobile-shell .ust44-action-circle,
.ust-mobile-shell .ust44-mobile-toggle,
.ust-mobile-shell .ust44-dropdown,
.ust-mobile-shell .ust44-search,
.ust-mobile-shell .ust44-nav-btn {
    background: #182238 !important;
    border-color: #405176 !important;
    box-shadow: none !important;
    text-shadow: none;
}

.ust-mobile-shell .ust44-mobile-toggle { min-height: 44px; color: #dce7ff !important; }
.ust-mobile-shell .ust44-nav-btn::after { display: none; }
.ust-mobile-shell .ust44-nav-btn.is-active {
    border-color: #a7844d !important;
    background: #342a1c !important;
}

.ust-mobile-shell .ust44-menu.is-open ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,76px),1fr));
    gap: 5px !important;
}

.ust-mobile-shell .ust44-menu.is-open .ust44-nav-btn {
    width: 100%;
    min-height: 48px !important;
    gap: 3px;
    padding: 4px 3px !important;
    border-radius: 8px;
    overflow-wrap: anywhere;
}
.ust-mobile-shell .ust44-nav-icon { font-size: 15px; }
.ust-mobile-shell .ust44-nav-label { font-size: 10px; }
.ust-mobile-shell .ust44-bottom { gap: 8px; padding: 8px 12px !important; }

.ust-mobile-shell > main .wrap {
    width: calc(100% - 26px) !important;
    min-width: 0;
}
.ust-mobile-shell .pagehead { padding: 18px 0 10px !important; }
.ust-mobile-shell .pagehead h1 { color: var(--ust-mobile-text) !important; font-size: clamp(22px,6vw,30px); line-height: 1.2; }
.ust-mobile-shell .content { min-width: 0; padding-bottom: 22px; }
.ust-mobile-shell main :is(.card,.panel,.ust-feature-card,.ust-event-card,.ust-dash-card,.ust-member-card,.ust-module,.ust-console-side,.ust-console-main,.ust4519-hero,.ust4519-panel,.uscf) {
    min-width: 0;
    max-width: 100%;
    background: #121a2bef !important;
    border-color: var(--ust-mobile-border) !important;
    box-shadow: none !important;
    color: var(--ust-mobile-text);
}

.ust-mobile-shell main .ust-console { grid-template-columns: minmax(0,1fr) !important; }
.ust-mobile-shell main .ust-console-main { padding: 14px !important; }
.ust-mobile-shell main .ust-console-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)) !important; }
.ust-mobile-shell main :is(img,video,iframe) { max-width: 100%; }
.ust-mobile-shell main :is(input:not([type=button],[type=submit],[type=checkbox],[type=radio]),select,textarea) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
}

.ust-mobile-shell .uscf {
    padding: 12px !important;
    overflow: clip !important;
}
.ust-mobile-shell .uscf :is(h2,h3) { color: var(--ust-mobile-text) !important; }
.ust-mobile-shell .uscf > nav[aria-label="Secciones del Centro Financiero"] {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,93px),1fr)) !important;
    gap: 5px !important;
    margin: 12px 0 !important;
}
.ust-mobile-shell .uscf > nav[aria-label="Secciones del Centro Financiero"] a {
    display: grid !important;
    place-items: center;
    min-height: 44px;
    background: #182238 !important;
    border-color: #405176 !important;
    color: #dce7ff !important;
    font-size: 11px;
}
.ust-mobile-shell .uscf > nav[aria-label="Secciones del Centro Financiero"] a[aria-current="page"] {
    background: #342a1c !important;
    border-color: #a7844d !important;
    color: #f1d39a !important;
}
.ust-mobile-shell .uscf form > label { min-width: 0; max-width: 100%; }
.ust-mobile-shell .uscf .uscf-payments-table tbody { gap: 7px; }
.ust-mobile-shell .uscf .uscf-payments-table tr.ust-payment-card {
    gap: 4px 12px;
    padding: 6px 10px !important;
    border-color: #405176 !important;
    border-radius: 9px !important;
    background: #151f31 !important;
}
.ust-mobile-shell .uscf .ust-payment-card td:first-child { padding: 0 !important; border: 0 !important; }
.ust-mobile-shell .uscf .ust-payment-card td:first-child::before,
.ust-mobile-shell .uscf .ust-payment-original,
.ust-mobile-shell .uscf .ust-payment-card:not(.ust-payment-open) td:not(:first-child) {
    display: none !important;
}
.ust-mobile-shell .uscf .ust-payment-toggle {
    display: grid;
    grid-template-columns: 7px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 47px;
    width: 100%;
    padding: 3px 1px;
    background: transparent !important;
    color: var(--ust-mobile-text) !important;
    text-align: start;
    box-shadow: none;
    overflow-wrap: anywhere;
}
.ust-mobile-shell .uscf .ust-payment-toggle::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--ust-mobile-gold);
    border-bottom: 2px solid var(--ust-mobile-gold);
    transform: rotate(-45deg);
}
.ust-mobile-shell .uscf .ust-payment-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.ust-mobile-shell .ust-payment-toggle small { display: block; color: var(--ust-mobile-muted); }
.ust-mobile-shell .ust-payment-total { color: var(--ust-mobile-gold); }

.ust-mobile-dock:not([hidden]) {
    position: fixed;
    z-index: 180;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: min(calc(100% - 20px),460px);
    gap: 3px;
    padding: 5px;
    border: 1px solid #405176;
    border-radius: 17px;
    background: #111a2d;
    box-shadow: 0 6px 18px #05081870;
}
.ust-mobile-dock a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 50px;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #dce7ff !important;
    text-decoration: none !important;
    font-size: 11px;
    text-align: center;
    overflow-wrap: anywhere;
}
.ust-mobile-dock a > span { font-size: 19px; line-height: 1; }
.ust-mobile-dock a[aria-current="page"] { background: linear-gradient(150deg,#405797,#27365f); border-color: #829ce6; }
.ust-mobile-dock a:focus-visible,.ust-mobile-shell .ust-payment-toggle:focus-visible { outline: 2px solid #d5e3ff; outline-offset: 2px; }
.ust-mobile-shell #ust200-notifications {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
}
body:has(:fullscreen) .ust-mobile-dock { display: none !important; }
.ust4519-calm .ust44-brand img,
.ust4519-calm > main::before,
.ust4519-calm > main::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
    .ust-mobile-shell > main::before,.ust-mobile-shell > main::after,.ust-mobile-shell .ust44-brand img { animation: none; }
}
