:root {
    --accent: #912ADF;
    --accent-dark: #7423CB;
    --accent-soft: rgba(145, 42, 223, 0.15);
    --ink: #3D3D3D;
    --ink-strong: #1A202C;
    --ink-soft: #333333;
    --muted: #718096;
    --surface: #E0E0E0;
    --surface-raised: #FAFAFA;
    --line: #C1C1C1;
    --border: #E0E0E0;
    --success: #28A745;
    --danger: #DC3545;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --ease-pop: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

html, body {
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    background: url('/static/useful/pages/bg/1d.png') center top / cover no-repeat fixed, var(--accent, #912ADF);
    min-height: 100vh;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 115px;
    padding-bottom: 0;
    box-sizing: border-box;
    width: 100%;
    flex-grow: 1;
}

.cont {
    width: 996px;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 115px);
    box-sizing: border-box;
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease, text-shadow 0.20s ease, background 0.15s ease-in-out;
    animation: 1s cubic-bezier(0.175, 0.885, 0.32, 1.0) 0s 1 contentryslide;
}

.pane::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url(/static/useful/icons/bricks.avif);
    background-repeat: repeat;
    background-size: 750px auto;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.bar {
    position: relative;
    width: 100%;
    height: 69px;
    background: var(--accent, #912ADF);
    border-radius: 6px 6px 0px 0px;
    display: flex;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.studs {
    position: relative;
    background-color: var(--accent, #912ADF);
    -webkit-mask-image: url(/static/useful/icons/stud.svg);
    mask-image: url(/static/useful/icons/stud.svg);
    height: 7px;
    margin-left: 12px;
    margin-right: 12px;
    width: 97.2%;
    background-repeat: repeat-x;
}

.title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 32px;
    line-height: 37px;
    color: #FFFFFF;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    user-select: none;
}

.pill {
    position: absolute;
    left: 294px;
    width: 408px;
    height: 37px;
    background: rgba(61, 61, 61, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    pointer-events: none;
    object-fit: contain;
    z-index: 5;
}

.input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    line-height: 23px;
    text-align: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.button {
    border: none;
    outline: none;
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease, text-shadow 0.20s ease, background 0.15s ease-in-out;
}

.button:hover {
    transform: scale(1.06);
}

.button:active {
    transform: scale(0.92);
    transition: transform 0.08s ease;
}

.generic {
    position: absolute;
    right: 16px;
    width: 96px;
    height: 37px;
    background: rgba(61, 61, 61, 0.25);
    border-radius: 6px;
    color: #FFFFFF;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.generic:hover {
    background: rgba(61, 61, 61, 0.35);
}

.barbtns {
    position: absolute;
    right: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.barbtn {
    width: auto;
    padding: 0 16px;
    height: 37px;
    background: rgba(61, 61, 61, 0.25);
    border-radius: 6px;
    color: #FFFFFF;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
}

.barbtn:hover {
    background: rgba(61, 61, 61, 0.35);
}

.primary {
    position: absolute;
    width: auto;
    min-width: 114px;
    height: 48px;
    left: 20px;
    top: 20px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), var(--accent, #7423CB);
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25), inset 0px 0px 4px rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease, text-shadow 0.20s ease;
}

.primary:hover {
    transform: scale(1.04);
}

.primary:active {
    transform: scale(0.98) rotateX(-15deg);
    transition: transform 0.08s ease;
}

.primary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.primary span {
    font-family: 'Ubuntu', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.hpyico {
    width: 18px !important;
    height: 18px !important;
    margin-right: 6px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.primary.hpyprim {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), #7423CB;
}

.primary.hpysuc {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), #28A745;
}

.primary.hpywrn {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), #E67E22;
}

.primary.hpyerr,
.primary.hpydng {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), #DC3545;
}

.primary.hpyinf {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), #17A2B8;
}

.primary.hpyinl {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
}

.primary.hpysm {
    height: 36px !important;
    padding: 0 16px !important;
    min-width: 0 !important;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25), inset 0px 0px 4px rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
}

.primary.hpysm span {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 17px !important;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25) !important;
}

.pane {
    position: relative;
    width: 100%;
    flex-grow: 1;
    background: #E0E0E0;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
}

.pane > * {
    position: relative;
    z-index: 1;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
    position: fixed;
    width: auto;
    height: auto;
    left: 10px;
    bottom: 10px;
    background: rgba(61, 61, 61, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    box-sizing: border-box;
    z-index: 100;
}

.movl {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.movl.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mcard {
    background: #E0E0E0 !important;
    border: 2px solid #C1C1C1 !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 460px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transform: scale(0.95) translateY(8px) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.movl.active .mcard {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

.mhdr {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 20px 14px 20px !important;
    position: relative !important;
    border-bottom: 2px solid #C1C1C1 !important;
    background: #E0E0E0 !important;
}

.mtitle {
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #3D3D3D !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.msub {
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 13px !important;
    color: #718096 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
}

.mclose {
    position: absolute !important;
    right: 16px !important;
    top: 16px !important;
    background: transparent !important;
    border: none !important;
    font-size: 18px !important;
    color: #3D3D3D !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.mclose:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
    background: transparent !important;
}

.mbody {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    background: #E0E0E0 !important;
}

select {
    height: 30px;
    background-color: #E0E0E0;
    border: 2px solid rgba(61, 61, 61, 0.25);
    border-radius: 6px;
    padding: 0 24px 0 8px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #3D3D3D;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23718096%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 9px auto;
}

select:focus {
    border-color: rgba(61, 61, 61, 0.25);
}

select option {
    background-color: #FAFAFA;
    color: #3D3D3D;
}

.glb-dropdown {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.glb-dropdown-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    background: #E0E0E0 !important;
    border: 2px solid rgba(61, 61, 61, 0.25) !important;
    border-radius: 6px !important;
    padding: 0 8px !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #3D3D3D !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transform: none !important;
    text-align: left !important;
    transition: background 0.15s ease !important;
}

.glb-dropdown-trigger:hover {
    background: #D8D8D8 !important;
    transform: none !important;
}

.glb-dropdown-trigger:active {
    transform: none !important;
}

.glb-dropdown-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.glb-dropdown-arrow {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    color: #718096 !important;
    fill: currentColor !important;
    flex-shrink: 0 !important;
    margin-left: 6px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.glb-dropdown.open .glb-dropdown-arrow,
.glb-dropdown.active .glb-dropdown-arrow {
    transform: rotate(180deg) !important;
}

.glb-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    background: #FAFAFA !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    z-index: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    max-height: 200px !important;
    overflow-y: auto !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(0.95) !important;
    transform-origin: top center !important;
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.2s !important;
}

.glb-dropdown.open .glb-dropdown-menu,
.glb-dropdown.active .glb-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.glb-dropdown-item {
    padding: 6px 10px !important;
    font-family: 'Ubuntu', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #3D3D3D !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.glb-dropdown-item.active {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 2.18%, rgba(255, 255, 255, 0.39) 91.46%), #7423CB !important;
    color: #FFFFFF !important;
}

@media (max-width: 996px) {
    .wrap {
        padding-top: 80px;
    }
    .cont {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .bar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        gap: 12px;
    }
    .title {
        display: none;
    }
    .pill {
        position: relative;
        left: auto;
        flex-grow: 1;
        width: auto;
        max-width: none;
    }
    .generic {
        position: static;
        width: 96px;
        flex-shrink: 0;
    }
    .barbtns {
        position: static;
        flex-shrink: 0;
    }
}

/* === Mobile layout - Figma iPhone 17 (402x874) fixes === */
@media (max-width: 768px) {
    html {
        height: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        min-height: -webkit-fill-available !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        overscroll-behavior: none !important;
    }
    body {
        background: url('/static/useful/pages/bg/1d.png') center top / cover no-repeat scroll, #FFFFFF !important;
        background-attachment: scroll !important;
        height: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        min-height: -webkit-fill-available !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 0 !important;
        overscroll-behavior: none !important;
    }
    .footer {
        display: none !important;
    }
    .wrap {
        padding-top: calc(70px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        align-items: stretch !important;
        flex: 1 1 auto !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        overscroll-behavior-x: none !important;
    }
    .cont {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        min-height: auto !important;
        filter: none !important;
        box-shadow: 0 0 8px rgba(0,0,0,0.15) !important;
    }
    .studs {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 7px !important;
        flex-shrink: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
        background-color: var(--accent, #912ADF) !important;
        -webkit-mask-image: url(/static/useful/icons/stud.svg) !important;
        mask-image: url(/static/useful/icons/stud.svg) !important;
        -webkit-mask-repeat: repeat !important;
        mask-repeat: repeat !important;
        -webkit-mask-size: 57px 7px !important;
        mask-size: 57px 7px !important;
        -webkit-mask-position: left top !important;
        mask-position: left top !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 2 !important;
        overflow: visible !important;
        transform: none !important;
        /* avoid clipping at edges – scale to fit */
        -webkit-mask-repeat: round no-repeat !important;
        mask-repeat: round no-repeat !important;
    }
    .bar {
        width: 100% !important;
        height: 69px !important;
        min-height: 69px !important;
        background: var(--accent, #912ADF) !important;
        border-radius: 6px 6px 0 0 !important;
        padding: 0 10px !important;
        gap: 10px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        position: relative !important;
        top: auto !important;
        z-index: 1 !important;
    }
    .pill {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: 276px !important;
        min-width: 0 !important;
        height: 37px !important;
        background: rgba(61,61,61,0.25) !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    .pill .icon,
    .icon {
        left: 12px !important;
        width: 18px !important;
        height: 18px !important;
        filter: brightness(0) invert(1) !important;
    }
    .pill .input,
    .input {
        font-size: 20px !important;
        line-height: 23px !important;
        font-weight: 400 !important;
        text-align: center !important;
        color: #FFFFFF !important;
        padding: 0 36px !important;
    }
    .pill .input::placeholder,
    .input::placeholder {
        color: rgba(255,255,255,0.9) !important;
        text-align: center !important;
        font-size: 20px !important;
    }
    .generic {
        width: 96px !important;
        min-width: 96px !important;
        height: 37px !important;
        background: rgba(61,61,61,0.25) !important;
        border-radius: 6px !important;
        font-size: 20px !important;
        line-height: 23px !important;
        text-shadow: 0 0 4px rgba(0,0,0,0.25) !important;
        position: static !important;
        flex-shrink: 0 !important;
    }
    .barbtns {
        position: static !important;
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    .barbtn {
        height: 37px !important;
        background: rgba(61,61,61,0.25) !important;
        border-radius: 6px !important;
        font-size: 20px !important;
        line-height: 23px !important;
        text-shadow: 0 0 4px rgba(0,0,0,0.25) !important;
        padding: 0 14px !important;
    }
    .pane {
        width: 100% !important;
        background: #E0E0E0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        min-height: 400px !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
        position: relative !important;
    }
    .feedpg {
        min-height: auto !important;
        padding: 16px 0 0 0 !important;
    }
    .shp-lay, .avtlay, .prfbody, .dashlay, .frmlay {
        min-height: auto !important;
    }
}

/* html.mobmode mirror for UA-detected devices */
html.mobmode {
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    min-height: -webkit-fill-available !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    overscroll-behavior: none !important;
}
html.mobmode body {
    background: url('/static/useful/pages/bg/1d.png') center top / cover no-repeat scroll, #FFFFFF !important;
    background-attachment: scroll !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    min-height: -webkit-fill-available !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important;
    overscroll-behavior: none !important;
}
html.mobmode .footer { display: none !important; }
html.mobmode .wrap {
    padding-top: calc(70px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    overscroll-behavior-x: none !important;
}
html.mobmode .cont {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    min-height: auto !important;
    filter: none !important;
    box-shadow: 0 0 8px rgba(0,0,0,0.15) !important;
}
html.mobmode .studs {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 7px !important;
    box-sizing: border-box !important;
    background-color: var(--accent, #912ADF) !important;
    -webkit-mask-image: url(/static/useful/icons/stud.svg) !important;
    mask-image: url(/static/useful/icons/stud.svg) !important;
    -webkit-mask-repeat: repeat !important;
    mask-repeat: repeat !important;
    -webkit-mask-size: 57px 7px !important;
    mask-size: 57px 7px !important;
    -webkit-mask-position: left top !important;
    mask-position: left top !important;
    overflow: visible !important;
    z-index: 2 !important;
    transform: none !important;
    -webkit-mask-repeat: round no-repeat !important;
    mask-repeat: round no-repeat !important;
}
html.mobmode .bar {
    width: 100% !important;
    height: 69px !important;
    background: var(--accent, #912ADF) !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 0 10px !important;
    gap: 10px !important;
}
html.mobmode .pill {
    position: relative !important;
    left: auto !important;
    flex: 1 1 auto !important;
    max-width: 276px !important;
    height: 37px !important;
    background: rgba(61,61,61,0.25) !important;
    border-radius: 6px !important;
}
html.mobmode .pill .icon { filter: brightness(0) invert(1) !important; }
html.mobmode .pill .input {
    font-size: 20px !important;
    line-height: 23px !important;
    color: #FFFFFF !important;
    text-align: center !important;
}
html.mobmode .generic {
    width: 96px !important;
    height: 37px !important;
    background: rgba(61,61,61,0.25) !important;
    border-radius: 6px !important;
    font-size: 20px !important;
    position: static !important;
}
html.mobmode .barbtns { position: static !important; display: flex !important; gap: 8px !important; }
html.mobmode .barbtn {
    height: 37px !important;
    background: rgba(61,61,61,0.25) !important;
    border-radius: 6px !important;
    font-size: 20px !important;
}
html.mobmode .pane {
    width: 100% !important;
    background: #E0E0E0 !important;
    border-radius: 0 !important;
    flex-grow: 1 !important;
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    min-height: auto !important;
}
html.mobmode .feedpg {
    min-height: auto !important;
    padding: 16px 0 0 0 !important;
}

@keyframes contentryslide {
    0% {
        opacity: 0;
        transform: scale(99%) translateY(1%) rotateX(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

html.notreq .navlnk,
html.notreq .sbtn,
html.notreq .pfpbtn,
html.notreq .navbrd,
html.notreq .navdiv {
    animation: none !important;
}

.ttpcnt {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ttptxt {
    visibility: hidden;
    width: max-content;
    background-color: #2b2b2b;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    z-index: 99;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(5px) scale(0.8);
    transform-origin: bottom center;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.2s;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.ttptxt::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #2b2b2b transparent transparent transparent;
}

.ttpcnt:hover .ttptxt {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.musld {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px 0 !important;
    width: 100% !important;
}

.dmspn {
    width: 32px !important;
    height: 32px !important;
    color: #3D3D3D !important;
}

.dmspn .sq {
    fill: currentColor !important;
    opacity: 0.15;
    animation: diamond-fade 0.8s infinite linear !important;
}

.dmspn .sq-1 { animation-delay: 0s !important; }
.dmspn .sq-2 { animation-delay: -0.7s !important; }
.dmspn .sq-3 { animation-delay: -0.6s !important; }
.dmspn .sq-4 { animation-delay: -0.5s !important; }
.dmspn .sq-5 { animation-delay: -0.4s !important; }
.dmspn .sq-6 { animation-delay: -0.3s !important; }
.dmspn .sq-7 { animation-delay: -0.2s !important; }
.dmspn .sq-8 { animation-delay: -0.1s !important; }

@keyframes diamond-fade {
    0% {
        opacity: 1;
    }
    12.5% {
        opacity: 0.85;
    }
    25% {
        opacity: 0.6;
    }
    37.5% {
        opacity: 0.35;
    }
    50%, 100% {
        opacity: 0.15;
    }
}

.glb-clrpick-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.glb-clrpick-wheel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glb-clrpick-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.glb-clrpick-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.glb-clrpick-lbl {
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #718096;
    min-width: 32px;
}

.glb-clrpick-inbox {
    height: 32px !important;
    border-radius: 6px !important;
    flex: 1;
}

.glb-clrpick-hex {
    font-size: 13px !important;
    text-transform: uppercase;
    text-align: center;
    padding: 0 8px !important;
}

.glb-clrpick-rgbrw {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.glb-clrpick-inbox-sm {
    height: 32px !important;
    border-radius: 6px !important;
    width: 58px !important;
    min-width: 58px !important;
    flex: 0 0 58px;
    box-sizing: border-box !important;
}

.glb-clrpick-r,
.glb-clrpick-g,
.glb-clrpick-b {
    font-size: 13px !important;
    text-align: center;
    padding: 0 6px !important;
    -moz-appearance: textfield;
}

.glb-clrpick-r::-webkit-outer-spin-button,
.glb-clrpick-r::-webkit-inner-spin-button,
.glb-clrpick-g::-webkit-outer-spin-button,
.glb-clrpick-g::-webkit-inner-spin-button,
.glb-clrpick-b::-webkit-outer-spin-button,
.glb-clrpick-b::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.global-loader {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    color: #3D3D3D;
    animation: globalSpin 1s linear infinite;
    z-index: 9999;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.global-loader.visible {
    display: block;
}

.global-spin-svg {
    width: 100%;
    height: 100%;
}

@keyframes globalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .global-loader {
        bottom: 80px;
        right: 16px;
        width: 32px;
        height: 32px;
    }
}