.mobile-universal-header,
.mobile-navigation-layer {
  display: none;
}

.mobile-navigation-layer[hidden],
.mobile-navigation-action[hidden],
.mobile-account-action[hidden],
.mobile-logout-action[hidden],
.mobile-quick-section[hidden],
.mobile-avatar [hidden],
.mobile-drawer-avatar [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  :root {
    --mobile-header-height: 68px;
    --mobile-nav-ink: #102b33;
    --mobile-nav-teal: #08a69f;
    --mobile-nav-line: #d9e9e7;
  }

  body.mobile-navigation-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body > .site-header,
  body > .dashboard-header,
  body > .admin-topbar {
    display: none !important;
  }

  .auth-shell > .brand,
  .dashboard-bottom-nav {
    display: none !important;
  }

  .mobile-universal-header {
    position: sticky;
    z-index: 90;
    top: 0;
    width: 100%;
    height: calc(var(--mobile-header-height) + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top) 16px 0;
    border-bottom: 1px solid rgba(197, 220, 217, .82);
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 10px 28px rgba(14, 55, 61, .055);
    backdrop-filter: blur(20px) saturate(1.2);
  }

  .mobile-universal-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
  }

  .mobile-universal-logo:active {
    transform: scale(.94);
    background: #ecf8f6;
  }

  .mobile-universal-logo img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
  }

  .mobile-profile-toggle {
    position: relative;
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .mobile-profile-toggle:focus-visible,
  .mobile-navigation-close:focus-visible,
  .mobile-navigation-action:focus-visible,
  .mobile-account-action:focus-visible,
  .mobile-logout-action:focus-visible {
    outline: 3px solid rgba(8, 166, 159, .22);
    outline-offset: 2px;
  }

  .mobile-avatar,
  .mobile-drawer-avatar {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #173840, #079f99);
    color: #fff;
    line-height: 0;
    box-shadow: 0 8px 20px rgba(5, 91, 91, .2);
  }

  .mobile-avatar {
    width: 43px;
    height: 43px;
    border: 2px solid #fff;
  }

  .mobile-drawer-avatar {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 3px solid rgba(255, 255, 255, .78);
    box-shadow: 0 11px 24px rgba(4, 67, 70, .18);
  }

  .mobile-avatar img,
  .mobile-drawer-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .mobile-avatar b,
  .mobile-drawer-avatar b {
    font: 800 14px Manrope, sans-serif;
  }

  .mobile-drawer-avatar b {
    font-size: 17px;
  }

  .mobile-avatar > svg {
    width: 19px;
    height: 19px;
    display: block;
  }

  .mobile-drawer-avatar > svg {
    width: 23px;
    height: 23px;
    display: block;
  }

  .mobile-profile-indicator {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #102b33;
    color: #fff;
    transition: transform .24s ease, background .24s ease;
  }

  .mobile-profile-indicator svg {
    width: 9px;
    height: 9px;
    stroke-width: 2.5;
  }

  .mobile-profile-toggle[aria-expanded="true"] .mobile-profile-indicator {
    transform: rotate(90deg);
    background: var(--mobile-nav-teal);
  }

  .mobile-navigation-layer {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  .mobile-navigation-layer.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-navigation-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(4, 24, 30, .62);
    backdrop-filter: blur(7px);
    cursor: pointer;
  }

  .mobile-navigation-drawer {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: min(344px, calc(100vw - 16px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(215, 232, 230, .95);
    border-radius: 27px;
    background: #f8fbfb;
    box-shadow: -22px 0 65px rgba(3, 29, 35, .28);
    transform: translateX(calc(100% + 18px));
    transition: transform .3s cubic-bezier(.2, .82, .2, 1);
  }

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

  .mobile-navigation-profile {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 39px;
    gap: 11px;
    align-items: center;
    padding: calc(20px + env(safe-area-inset-top)) 17px 18px;
    background: radial-gradient(circle at 94% 0, rgba(114, 231, 220, .3), transparent 45%), linear-gradient(145deg, #102e36, #0a7775);
    color: #fff;
  }

  .mobile-navigation-profile > div {
    min-width: 0;
  }

  .mobile-navigation-profile p,
  .mobile-navigation-profile h2,
  .mobile-navigation-profile span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-navigation-profile p {
    margin: 0 0 4px;
    color: #78ddd7;
    font: 500 7px 'DM Mono', monospace;
    letter-spacing: 1px;
  }

  .mobile-navigation-profile h2 {
    margin: 0;
    color: #fff;
    font: 800 15px Manrope, sans-serif;
    letter-spacing: -.035em;
  }

  .mobile-navigation-profile div > span {
    margin-top: 3px;
    color: rgba(231, 248, 247, .67);
    font: 500 8px Manrope, sans-serif;
  }

  .mobile-navigation-close {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
  }

  .mobile-navigation-close svg {
    width: 17px;
  }

  .mobile-navigation-scroll {
    flex: 1;
    overflow: auto;
    padding: 18px 13px 22px;
    scrollbar-width: thin;
  }

  .mobile-navigation-section + .mobile-navigation-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e1eceb;
  }

  .mobile-navigation-section > p {
    margin: 0 8px 9px;
    color: #789094;
    font: 500 7px 'DM Mono', monospace;
    letter-spacing: 1.2px;
  }

  .mobile-navigation-list {
    display: grid;
    gap: 6px;
  }

  .mobile-navigation-action {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 16px;
    gap: 10px;
    align-items: center;
    padding: 7px 10px 7px 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #45646a;
    font: 800 10px Manrope, sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, color .2s ease;
  }

  .mobile-navigation-action:active {
    transform: scale(.985);
  }

  .mobile-navigation-action.active {
    border-color: #cbe8e4;
    background: #e9f8f6;
    color: #087e79;
  }

  .mobile-navigation-action.highlight {
    border-color: #bde4df;
    background: linear-gradient(135deg, #e5f9f6, #f4fcfb);
    color: #087e79;
  }

  .mobile-action-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dceae8;
    border-radius: 11px;
    background: #fff;
    color: #079c96;
  }

  .mobile-navigation-action.active .mobile-action-icon,
  .mobile-navigation-action.highlight .mobile-action-icon {
    border-color: transparent;
    background: #0b9994;
    color: #fff;
    box-shadow: 0 8px 17px rgba(6, 135, 130, .17);
  }

  .mobile-action-icon svg {
    width: 17px;
  }

  .mobile-action-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-action-badge {
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 10px;
    background: #102b33;
    color: #fff;
    font-size: 7px;
  }

  .mobile-action-arrow {
    width: 14px;
    color: #799095;
  }

  .mobile-navigation-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    justify-content: initial;
    gap: 7px;
    padding: 12px 13px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce9e7;
    background: rgba(255, 255, 255, .96);
    color: var(--mobile-nav-ink);
  }

  .mobile-account-action {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 15px;
    gap: 9px;
    align-items: center;
    min-height: 55px;
    padding: 7px 9px;
    border-radius: 14px;
    background: #102b33;
    color: #fff;
    text-decoration: none;
  }

  .mobile-account-action > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(91, 222, 213, .14);
    color: #62ddd6;
  }

  .mobile-account-action > span svg {
    width: 18px;
  }

  .mobile-account-action div {
    min-width: 0;
  }

  .mobile-account-action b,
  .mobile-account-action small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-account-action b {
    font-size: 9px;
  }

  .mobile-account-action small {
    margin-top: 3px;
    color: rgba(226, 245, 244, .62);
    font-size: 7px;
  }

  .mobile-account-action > svg {
    width: 14px;
    color: #66dcd5;
  }

  .mobile-logout-action {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #efdcd9;
    border-radius: 12px;
    background: #fff8f6;
    color: #a4564e;
    font: 800 9px Manrope, sans-serif;
    cursor: pointer;
  }

  .mobile-logout-action svg {
    width: 15px;
  }

  .mobile-navigation-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 3px 0 0;
    color: #84999c;
    font: 500 6px 'DM Mono', monospace;
    letter-spacing: .45px;
  }

  .mobile-navigation-security svg {
    width: 11px;
    color: #08a29c;
  }

  .has-universal-mobile-header .preloader {
    z-index: 300;
  }

  .has-universal-mobile-header .hero {
    padding-top: 52px;
  }

  .auth-page .auth-shell {
    min-height: calc(100svh - var(--mobile-header-height));
    padding-top: 12px;
  }

  .dashboard-page .dashboard-main {
    min-height: calc(100vh - var(--mobile-header-height));
    padding-bottom: 70px;
  }

  .admin-page .admin-workspace {
    padding-top: 28px !important;
  }

  .admin-page {
    padding-bottom: 45px;
  }
}

@media (max-width: 360px) {
  .mobile-universal-header {
    padding-inline: 12px;
  }

  .mobile-navigation-drawer {
    top: 5px;
    right: 5px;
    bottom: 5px;
    width: calc(100vw - 10px);
    border-radius: 24px;
  }

  .mobile-navigation-profile {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-navigation-layer,
  .mobile-navigation-drawer,
  .mobile-profile-indicator {
    transition: none !important;
  }
}
