/* =============================================================================
   EncarnaYork Panel Shell Profesional
   Mobile-first / PWA / WebView / Capacitor
   ============================================================================= */

:root {
    --ey-shell-sidebar-width: 280px;
    --ey-shell-sidebar-collapsed: 84px;
    --ey-shell-header-height: 68px;
    --ey-shell-bottom-height: 70px;
    --ey-shell-safe-top: env(safe-area-inset-top, 0px);
    --ey-shell-safe-right: env(safe-area-inset-right, 0px);
    --ey-shell-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ey-shell-safe-left: env(safe-area-inset-left, 0px);

    --ey-shell-navy-950: #07111f;
    --ey-shell-navy-900: #0a1628;
    --ey-shell-navy-850: #0d1c31;
    --ey-shell-navy-800: #12233b;
    --ey-shell-navy-700: #1c3454;
    --ey-shell-blue-600: #2563eb;
    --ey-shell-blue-500: #3b82f6;
    --ey-shell-blue-400: #60a5fa;
    --ey-shell-blue-100: #dbeafe;

    --ey-shell-page: #f3f6fa;
    --ey-shell-surface: #ffffff;
    --ey-shell-surface-muted: #f8fafc;
    --ey-shell-border: #dce4ee;
    --ey-shell-text: #0f172a;
    --ey-shell-text-soft: #475569;
    --ey-shell-text-muted: #8290a3;
    --ey-shell-danger: #dc2626;
    --ey-shell-danger-soft: #fff1f2;

    --ey-shell-radius-sm: 10px;
    --ey-shell-radius-md: 14px;
    --ey-shell-radius-lg: 20px;
    --ey-shell-shadow: 0 12px 36px rgba(15, 23, 42, .14);
    --ey-shell-focus: 0 0 0 3px rgba(59, 130, 246, .28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ey-shell-page);
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--ey-shell-page);
    color: var(--ey-shell-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    overscroll-behavior: none;
}

body.ey-shell-lock {
    overflow: hidden;
    touch-action: none;
}

button,
a,
select,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--ey-shell-focus);
}

[x-cloak] {
    display: none !important;
}

.ey-shell-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

#ey-panel {
    display: flex;
    width: 100%;
    height: var(--ey-app-height, 100dvh);
    min-height: 100dvh;
    overflow: hidden;
    background: var(--ey-shell-page);
}

#ey-sidebar {
    position: relative;
    z-index: 40;
    display: flex;
    flex: 0 0 var(--ey-shell-sidebar-width);
    width: var(--ey-shell-sidebar-width);
    min-width: var(--ey-shell-sidebar-width);
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    padding-left: var(--ey-shell-safe-left);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .14), transparent 34%),
        linear-gradient(180deg, var(--ey-shell-navy-900), var(--ey-shell-navy-950));
    color: #e8eef8;
    transition:
        width .22s ease,
        min-width .22s ease,
        flex-basis .22s ease;
}

#ey-sidebar.is-collapsed {
    flex-basis: var(--ey-shell-sidebar-collapsed);
    width: var(--ey-shell-sidebar-collapsed);
    min-width: var(--ey-shell-sidebar-collapsed);
}

.ey-sidebar-brand {
    position: relative;
    display: flex;
    min-height: calc(var(--ey-shell-header-height) + var(--ey-shell-safe-top));
    align-items: center;
    padding:
        calc(12px + var(--ey-shell-safe-top))
        14px
        12px
        16px;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.ey-brand-link,
.ey-header-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.ey-brand-badge {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--ey-shell-blue-500), var(--ey-shell-blue-600));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}

.ey-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
    transition: opacity .16s ease, width .16s ease;
}

.ey-brand-copy strong {
    color: #f8fbff;
    font-size: 15px;
    font-weight: 760;
    white-space: nowrap;
}

.ey-brand-copy small {
    margin-top: 4px;
    color: #8fa4c0;
    font-size: 11px;
    white-space: nowrap;
}

.ey-sidebar-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: transparent;
    color: #9fb0c6;
    cursor: pointer;
    transform: translateY(-50%);
}

.ey-sidebar-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform .2s ease;
}

#ey-sidebar.is-collapsed .ey-sidebar-toggle svg {
    transform: rotate(180deg);
}

.ey-sidebar-toggle:hover,
.ey-sidebar-toggle:focus-visible {
    background: rgba(148, 163, 184, .12);
    color: #fff;
}

.ey-sidebar-zone {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
    transition: opacity .16s ease, padding .16s ease;
}

.ey-zone-kicker {
    margin-bottom: 5px;
    color: #7187a6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ey-sidebar-zone strong {
    color: #eef5ff;
    font-size: 14px;
}

.ey-sidebar-zone small {
    margin-top: 3px;
    color: #8fa4c0;
    font-size: 11px;
}

.ey-sidebar-nav {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(96, 165, 250, .26) transparent;
    scrollbar-width: thin;
}

.ey-nav-section {
    padding: 4px 0;
}

.ey-nav-section + .ey-nav-section {
    border-top: 1px solid rgba(148, 163, 184, .08);
}

.ey-nav-group,
.ey-nav-link {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: #afbdd0;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .14s ease,
        color .14s ease,
        transform .14s ease;
}

.ey-nav-group {
    padding: 0 12px;
    background: transparent;
}

.ey-nav-group > span,
.ey-nav-link > span:not(.ey-nav-badge) {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 13px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-nav-group > span {
    color: #8396b0;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ey-nav-link {
    position: relative;
    padding: 0 12px;
}

.ey-nav-link-child {
    padding-left: 22px;
}

.ey-nav-link:hover,
.ey-nav-group:hover {
    background: rgba(148, 163, 184, .1);
    color: #f8fbff;
}

.ey-nav-group.is-active-group {
    background: rgba(37, 99, 235, .14);
    color: #dbeafe;
}

.ey-nav-group.is-active-group > span {
    color: #bfdbfe;
}

.ey-nav-link.is-active {
    background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(59, 130, 246, .68));
    color: #fff;
    box-shadow:
        inset 3px 0 0 #93c5fd,
        0 8px 20px rgba(15, 23, 42, .22);
}

.ey-nav-link.is-active::after {
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #bfdbfe;
    content: "";
}

.ey-nav-group-items {
    overflow: hidden;
    padding-top: 3px;
}

.ey-nav-chevron {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #6f849f;
    transition: transform .18s ease;
}

.ey-nav-chevron.is-open {
    transform: rotate(90deg);
}

.ey-nav-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(96, 165, 250, .16);
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 700;
}

.ey-sidebar-footer {
    padding: 12px;
    padding-bottom: calc(12px + var(--ey-shell-safe-bottom));
    border-top: 1px solid rgba(148, 163, 184, .12);
}

.ey-sidebar-account {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    padding: 7px 10px;
    border-radius: 14px;
    background: rgba(148, 163, 184, .08);
    color: #d8e3f1;
    cursor: pointer;
    text-align: left;
}

.ey-sidebar-account:hover {
    background: rgba(148, 163, 184, .14);
}

.ey-avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(147, 197, 253, .36);
    border-radius: 999px;
    background: linear-gradient(145deg, #1f3c67, #10243f);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.ey-avatar-large {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 14px;
}

.ey-sidebar-account-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ey-sidebar-account-copy strong {
    overflow: hidden;
    color: #eef5ff;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-sidebar-account-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: #8396b0;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-account-arrow {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    color: #6f849f;
}

#ey-sidebar.is-collapsed .ey-brand-copy,
#ey-sidebar.is-collapsed .ey-sidebar-zone,
#ey-sidebar.is-collapsed .ey-nav-group > span,
#ey-sidebar.is-collapsed .ey-nav-link > span,
#ey-sidebar.is-collapsed .ey-nav-chevron,
#ey-sidebar.is-collapsed .ey-nav-badge,
#ey-sidebar.is-collapsed .ey-sidebar-account-copy,
#ey-sidebar.is-collapsed .ey-account-arrow {
    display: none;
}

#ey-sidebar.is-collapsed .ey-sidebar-brand {
    justify-content: center;
    padding-right: 14px;
}

#ey-sidebar.is-collapsed .ey-sidebar-toggle {
    top: auto;
    right: 50%;
    bottom: -22px;
    transform: translateX(50%);
    background: var(--ey-shell-navy-800);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

#ey-sidebar.is-collapsed .ey-sidebar-nav {
    padding-top: 32px;
}

#ey-sidebar.is-collapsed .ey-nav-link,
#ey-sidebar.is-collapsed .ey-nav-group,
#ey-sidebar.is-collapsed .ey-sidebar-account {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

#ey-sidebar.is-collapsed .ey-nav-link-child {
    padding-left: 0;
}

#ey-sidebar.is-collapsed .ey-nav-group-items {
    display: none !important;
}

#ey-sidebar.is-collapsed .ey-nav-link.is-active::after {
    right: 6px;
}

#ey-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

#ey-header {
    position: relative;
    z-index: 35;
    display: flex;
    min-height: calc(var(--ey-shell-header-height) + var(--ey-shell-safe-top));
    align-items: center;
    gap: 12px;
    padding:
        calc(10px + var(--ey-shell-safe-top))
        calc(18px + var(--ey-shell-safe-right))
        10px
        calc(18px + var(--ey-shell-safe-left));
    border-bottom: 1px solid var(--ey-shell-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    backdrop-filter: blur(16px);
}

.ey-header-menu-button {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--ey-shell-surface-muted);
    color: var(--ey-shell-text-soft);
    cursor: pointer;
}

.ey-header-brand {
    display: none;
    color: var(--ey-shell-text);
    font-weight: 760;
}

.ey-header-brand .ey-brand-badge {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.ey-header-titles {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ey-header-titles strong {
    overflow: hidden;
    color: var(--ey-shell-text);
    font-size: 16px;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-header-titles small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ey-shell-text-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-offline-chip {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: var(--ey-shell-danger-soft);
    color: #be123c;
    font-size: 11px;
    font-weight: 700;
}

.ey-account-wrapper {
    position: relative;
    flex: 0 0 auto;
}

.ey-header-account {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 5px 7px 5px 13px;
    border: 1px solid var(--ey-shell-border);
    border-radius: 16px;
    background: var(--ey-shell-surface);
    color: var(--ey-shell-text);
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .05);
}

.ey-header-account:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.ey-header-account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
}

.ey-header-account-copy strong {
    color: var(--ey-shell-text);
    font-size: 12px;
    line-height: 1.1;
}

.ey-header-account-copy small {
    max-width: 140px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--ey-shell-text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-header-account-chevron {
    width: 16px;
    height: 16px;
    color: var(--ey-shell-text-muted);
    transition: transform .18s ease;
}

.ey-header-account-chevron.is-open {
    transform: rotate(180deg);
}

.ey-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--ey-shell-border);
    border-radius: 18px;
    background: var(--ey-shell-surface);
    box-shadow: var(--ey-shell-shadow);
}

.ey-account-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--ey-shell-border);
    background: linear-gradient(145deg, #f8fbff, #f1f6fd);
}

.ey-account-menu-head > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ey-account-menu-head strong {
    overflow: hidden;
    color: var(--ey-shell-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ey-account-menu-head small {
    margin-top: 4px;
    color: var(--ey-shell-text-muted);
    font-size: 10px;
}

.ey-account-links {
    display: grid;
    gap: 2px;
    padding: 8px;
}

.ey-account-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border-radius: 11px;
    color: var(--ey-shell-text-soft);
    text-decoration: none;
}

.ey-account-links a:hover {
    background: var(--ey-shell-surface-muted);
    color: var(--ey-shell-blue-600);
}

.ey-account-links .ey-shell-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
}

.ey-account-links span {
    font-size: 12px;
    font-weight: 650;
}

.ey-account-contexts {
    display: grid;
    gap: 4px;
    padding: 12px 8px;
    border-top: 1px solid var(--ey-shell-border);
}

.ey-account-contexts > span {
    padding: 0 8px 5px;
    color: var(--ey-shell-text-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ey-account-contexts form {
    margin: 0;
}

.ey-account-contexts button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-radius: 10px;
    background: transparent;
    color: var(--ey-shell-text-soft);
    cursor: pointer;
    text-align: left;
}

.ey-account-contexts button:hover:not(:disabled) {
    background: var(--ey-shell-surface-muted);
}

.ey-account-contexts button.is-current {
    background: var(--ey-shell-blue-100);
    color: #1d4ed8;
    cursor: default;
}

.ey-account-contexts button span {
    font-size: 11px;
    font-weight: 650;
}

.ey-account-contexts button small {
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.ey-account-logout-form {
    margin: 0;
    padding: 8px;
    border-top: 1px solid var(--ey-shell-border);
}

.ey-account-logout {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border-radius: 11px;
    background: transparent;
    color: #b91c1c;
    cursor: pointer;
}

.ey-account-logout:hover {
    background: var(--ey-shell-danger-soft);
}

.ey-account-logout span {
    font-size: 12px;
    font-weight: 700;
}

#ey-content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding:
        22px
        max(18px, var(--ey-shell-safe-right))
        24px
        max(18px, var(--ey-shell-safe-left));
    background: var(--ey-shell-page);
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

#ey-content-inner {
    width: min(100%, 1600px);
    margin: 0 auto;
}

.ey-mobile-overlay,
.ey-mobile-drawer,
#ey-bottom-nav {
    display: none;
}

@media (max-width: 1023px) {
    #ey-sidebar {
        display: none;
    }

    #ey-header {
        position: sticky;
        top: 0;
        min-height: calc(62px + var(--ey-shell-safe-top));
        gap: 9px;
        padding:
            calc(8px + var(--ey-shell-safe-top))
            calc(10px + var(--ey-shell-safe-right))
            8px
            calc(10px + var(--ey-shell-safe-left));
    }

    .ey-header-menu-button {
        display: inline-grid;
    }

    .ey-header-brand {
        display: inline-flex;
    }

    .ey-header-brand > span:last-child {
        display: none;
    }

    .ey-header-titles strong {
        font-size: 14px;
    }

    .ey-header-titles small {
        display: none;
    }

    .ey-header-account {
        min-height: 46px;
        padding: 4px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ey-header-account-copy,
    .ey-header-account-chevron {
        display: none;
    }

    .ey-header-account .ey-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .ey-account-menu {
        position: fixed;
        top: calc(66px + var(--ey-shell-safe-top));
        right: calc(10px + var(--ey-shell-safe-right));
    }

    #ey-content {
        padding:
            16px
            max(12px, var(--ey-shell-safe-right))
            calc(var(--ey-shell-bottom-height) + var(--ey-shell-safe-bottom) + 20px)
            max(12px, var(--ey-shell-safe-left));
    }

    .ey-mobile-overlay {
        position: fixed;
        z-index: 70;
        display: block;
        visibility: hidden;
        opacity: 0;
        inset: 0;
        background: rgba(4, 10, 20, .65);
        backdrop-filter: blur(3px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .ey-mobile-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }

    .ey-mobile-drawer {
        position: fixed;
        z-index: 80;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: min(88vw, 360px);
        flex-direction: column;
        overflow: hidden;
        padding-top: var(--ey-shell-safe-top);
        padding-bottom: var(--ey-shell-safe-bottom);
        padding-left: var(--ey-shell-safe-left);
        background:
            radial-gradient(circle at top left, rgba(59, 130, 246, .18), transparent 30%),
            linear-gradient(180deg, var(--ey-shell-navy-900), var(--ey-shell-navy-950));
        color: #e8eef8;
        box-shadow: 18px 0 42px rgba(2, 6, 23, .35);
        transform: translateX(-105%);
        transition: transform .24s cubic-bezier(.22, .8, .26, 1);
        touch-action: pan-y;
    }

    .ey-mobile-drawer.is-open {
        transform: translateX(0);
    }

    .ey-mobile-drawer-head {
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px 12px 16px;
        border-bottom: 1px solid rgba(148, 163, 184, .13);
    }

    .ey-mobile-brand {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 11px;
    }

    .ey-mobile-brand > div {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .ey-mobile-brand strong {
        color: #f8fbff;
        font-size: 14px;
    }

    .ey-mobile-brand small {
        margin-top: 3px;
        color: #8298b5;
        font-size: 10px;
    }

    .ey-mobile-drawer-head > button {
        display: inline-grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border-radius: 12px;
        background: rgba(148, 163, 184, .1);
        color: #b8c7da;
        cursor: pointer;
    }

    .ey-mobile-drawer-head > button svg {
        width: 21px;
        height: 21px;
    }

    .ey-mobile-zone {
        display: flex;
        min-height: 62px;
        flex-direction: column;
        justify-content: center;
        padding: 10px 18px;
        border-bottom: 1px solid rgba(148, 163, 184, .1);
    }

    .ey-mobile-zone strong {
        color: #eaf2fc;
        font-size: 13px;
    }

    .ey-mobile-zone small {
        margin-top: 4px;
        color: #7f94af;
        font-size: 10px;
    }

    .ey-mobile-nav {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        overscroll-behavior: contain;
    }

    .ey-mobile-group + .ey-mobile-group {
        border-top: 1px solid rgba(148, 163, 184, .08);
    }

    .ey-mobile-group-button,
    .ey-mobile-link {
        display: flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        gap: 12px;
        padding: 0 12px;
        border-radius: 13px;
        background: transparent;
        color: #afbdd0;
        cursor: pointer;
        text-align: left;
        text-decoration: none;
    }

    .ey-mobile-group-button > span,
    .ey-mobile-link > span {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        font-size: 13px;
        font-weight: 670;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ey-mobile-group-button > span {
        color: #879ab4;
        font-size: 11px;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .ey-mobile-link-child {
        padding-left: 24px;
    }

    .ey-mobile-group-button.is-active-group {
        background: rgba(37, 99, 235, .14);
        color: #dbeafe;
    }

    .ey-mobile-group-button.is-active-group > span {
        color: #bfdbfe;
    }

    .ey-mobile-link.is-active {
        background: linear-gradient(90deg, rgba(37, 99, 235, .92), rgba(59, 130, 246, .65));
        color: #fff;
        box-shadow: inset 3px 0 0 #93c5fd;
    }

    .ey-mobile-group-items {
        overflow: hidden;
        padding-bottom: 4px;
    }

    .ey-mobile-drawer-footer {
        padding: 10px 12px 12px;
        border-top: 1px solid rgba(148, 163, 184, .12);
    }

    .ey-mobile-account-link {
        display: flex;
        width: 100%;
        min-height: 58px;
        border: 0;
        align-items: center;
        gap: 11px;
        padding: 7px 10px;
        border-radius: 14px;
        background: rgba(148, 163, 184, .09);
        color: #e8eef8;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .ey-mobile-account-link > span:nth-child(2) {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
    }

    .ey-mobile-account-link strong {
        font-size: 12px;
    }

    .ey-mobile-account-link small {
        margin-top: 3px;
        overflow: hidden;
        color: #8298b5;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ey-mobile-account-link > svg {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
        color: #6f849f;
    }

    #ey-bottom-nav {
        position: fixed;
        z-index: 60;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        min-height: calc(var(--ey-shell-bottom-height) + var(--ey-shell-safe-bottom));
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding:
            5px
            var(--ey-shell-safe-right)
            calc(5px + var(--ey-shell-safe-bottom))
            var(--ey-shell-safe-left);
        border-top: 1px solid rgba(148, 163, 184, .18);
        background: rgba(7, 17, 31, .97);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .14);
        backdrop-filter: blur(18px);
    }

    .ey-bottom-item {
        display: flex;
        min-width: 0;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-direction: column;
        border-radius: 12px;
        background: transparent;
        color: #7186a2;
        cursor: pointer;
        text-decoration: none;
    }

    .ey-bottom-item .ey-shell-icon {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .ey-bottom-item span {
        width: 100%;
        overflow: hidden;
        font-size: 9px;
        font-weight: 650;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ey-bottom-item.is-active {
        background: rgba(59, 130, 246, .12);
        color: #7db5ff;
    }

    body.ey-keyboard-open #ey-bottom-nav {
        display: none;
    }

    body.ey-keyboard-open #ey-content {
        padding-bottom: 20px;
    }
}

@media (max-width: 479px) {
    .ey-header-brand {
        display: none;
    }

    .ey-offline-chip {
        max-width: 86px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ey-account-menu {
        right: 8px;
        left: 8px;
        width: auto;
    }
}

@media (min-width: 1280px) {
    #ey-content {
        padding: 28px 32px 34px;
    }
}

@media (pointer: coarse), (hover: none) {
    .ey-sidebar-toggle,
    .ey-header-menu-button,
    .ey-header-account,
    .ey-nav-group,
    .ey-nav-link,
    .ey-bottom-item,
    .ey-mobile-group-button,
    .ey-mobile-link,
    .ey-account-links a,
    .ey-account-logout {
        min-height: 44px;
    }

    .ey-nav-link:hover,
    .ey-nav-group:hover,
    .ey-header-account:hover,
    .ey-account-links a:hover,
    .ey-account-logout:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}
