/* ACTIVITY_LIFE_PHONE_DRAWER_V1 */
.activity-life-phone-drawer {
  display: none;
}

@media (max-width: 767.98px) {
  #st-main-menu {
    background: rgba(15, 23, 42, 0.42);
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }

  #st-main-menu.open {
    transition-delay: 0s;
  }

  #st-main-menu .main-menu {
    display: none !important;
  }

  #st-main-menu .back-menu {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    z-index: 2;
    display: flex !important;
    align-items: center;
    width: 100vw !important;
    height: calc(64px + env(safe-area-inset-top)) !important;
    min-height: 64px;
    box-sizing: border-box;
    padding: env(safe-area-inset-top) 20px 0 !important;
    border-bottom: 1px solid #e8edf2 !important;
    background: #ffffff !important;
    color: #172033 !important;
    opacity: 1 !important;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.22s ease !important;
  }

  #st-main-menu .back-menu .stt-icon,
  #st-main-menu .back-menu .fa {
    display: none;
  }

  #st-main-menu .back-menu::before {
    content: "Activity-Life";
    color: #172033;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.02em;
  }

  #st-main-menu .back-menu::after {
    content: "×";
    margin-left: auto;
    color: #172033;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
  }

  #st-main-menu.open .back-menu {
    transform: translate3d(0, 0, 0);
    transition-delay: 0.04s !important;
  }

  .activity-life-phone-drawer {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    left: 0;
    z-index: 1;
    display: block;
    width: 100vw;
    height: calc(100vh - 64px - env(safe-area-inset-top));
    height: calc(100dvh - 64px - env(safe-area-inset-top));
    min-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
    background: #ffffff;
    color: #172033;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.22s ease;
    -webkit-overflow-scrolling: touch;
  }

  #st-main-menu.open .activity-life-phone-drawer {
    transform: translate3d(0, 0, 0);
    transition-delay: 0.04s;
  }

  .activity-life-phone-drawer__intro {
    margin: 0 4px 24px;
  }

  .activity-life-phone-drawer__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    color: #ef7a00 !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .activity-life-phone-drawer__home:active {
    color: #d86e00 !important;
  }

  .activity-life-phone-drawer__home:focus-visible {
    outline: 3px solid rgba(239, 122, 0, 0.35);
    outline-offset: 3px;
  }

  .activity-life-phone-drawer__home-icon {
    font-size: 15px;
  }

  .activity-life-phone-drawer__tagline {
    margin: 7px 0 0;
    color: #536174;
    font-size: 15px;
    line-height: 1.45;
  }

  .activity-life-phone-drawer__section + .activity-life-phone-drawer__section {
    margin-top: 26px;
  }

  .activity-life-phone-drawer__heading {
    margin: 0 4px 11px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
  }

  .activity-life-phone-drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .activity-life-phone-drawer__list--discover,
  .activity-life-phone-drawer__list--utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .activity-life-phone-drawer__link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    box-sizing: border-box;
    color: #172033 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .activity-life-phone-drawer__link:focus-visible {
    outline: 3px solid rgba(239, 122, 0, 0.35);
    outline-offset: 2px;
  }

  .activity-life-phone-drawer__link--discover,
  .activity-life-phone-drawer__link--utility {
    min-height: 104px;
    padding: 16px 13px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(23, 32, 51, 0.05);
  }

  .activity-life-phone-drawer__link--discover:active,
  .activity-life-phone-drawer__link--utility:active {
    border-color: #ef7a00;
    background: #fff8ef;
  }

  .activity-life-phone-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    color: #ef7a00;
    font-size: 21px;
    line-height: 1;
    text-align: center;
  }

  .activity-life-phone-drawer__link--utility .activity-life-phone-drawer__icon {
    color: #315a7d;
  }

  .activity-life-phone-drawer__label {
    overflow: hidden;
    width: 100%;
    color: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-life-phone-drawer__chevron {
    margin-left: auto;
    color: #8a95a5;
    font-size: 19px;
  }

  .activity-life-phone-drawer__link--discover .activity-life-phone-drawer__chevron,
  .activity-life-phone-drawer__link--utility .activity-life-phone-drawer__chevron {
    display: none;
  }

  .activity-life-phone-drawer__list--more {
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    background: #ffffff;
  }

  .activity-life-phone-drawer__list--more .activity-life-phone-drawer__item + .activity-life-phone-drawer__item {
    border-top: 1px solid #edf1f5;
  }

  .activity-life-phone-drawer__link--more {
    min-height: 54px;
    padding: 0 13px;
  }

  .activity-life-phone-drawer__link--more .activity-life-phone-drawer__icon {
    width: 23px;
    min-width: 23px;
    color: #526174;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #st-main-menu,
  #st-main-menu .back-menu,
  .activity-life-phone-drawer {
    transition: none !important;
  }
}

/* ACTIVITY_LIFE_PHONE_DRAWER_COMPACT_ICONS_V1 */
@media (max-width: 767.98px) {
  .activity-life-phone-drawer__intro {
    margin: 0 4px 4px;
  }

  .activity-life-phone-drawer__list--discover,
  .activity-life-phone-drawer__list--utility {
    gap: 4px;
  }

  .activity-life-phone-drawer__heading {
    margin: 0 4px 4px;
    font-size: 16px;
  }

  .activity-life-phone-drawer__link--discover,
  .activity-life-phone-drawer__link--utility {
    min-height: 66px;
    padding: 4px;
    gap: 10px;
  }

  .activity-life-phone-drawer__icon--svg {
    display: block;
    width: 21px;
    min-width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}



/* ACTIVITY_LIFE_PHONE_HEADER_ACTIONS_V1 */
@media (max-width: 767.98px) {
  .header.header-sticky-menu .header__right {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .header.header-sticky-menu .header__right > .items {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  .header.header-sticky-menu .header__right > .items > li {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0;
    list-style: none;
  }

  .header.header-sticky-menu .header__right > .items > .dropdown > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: #ffffff;
    color: #172033 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.05);
    -webkit-tap-highlight-color: transparent;
  }

  .header.header-sticky-menu .header__right > .items > .dropdown > a:active {
    border-color: #ef7a00;
    background: #fff8ef;
    color: #ef7a00 !important;
  }

  .header.header-sticky-menu .header__right > .items > .dropdown > a:focus-visible {
    outline: 3px solid rgba(239, 122, 0, 0.35);
    outline-offset: 2px;
  }

  .header.header-sticky-menu .header__right > .items > .dropdown > a .stt-icon {
    font-size: 19px;
    line-height: 1;
  }

  .header.header-sticky-menu .header__right > .items > .dropdown-user-dashboard > a .stt-icon {
    font-size: 18px;
  }

  .header.header-sticky-menu .header__right > .items > .st-header-link {
    display: none !important;
  }
}


/* ACTIVITY_LIFE_PHONE_DRAWER_LANDSCAPE_V1 */
@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-height: 520px) {
  .header__center {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
  }

  .header__center .overlay {
    display: none !important;
  }

  #st-main-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: rgba(15, 23, 42, 0.42) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s !important;
  }

  #st-main-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s !important;
  }

  #st-main-menu .main-menu {
    display: none !important;
  }

  #st-main-menu .back-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center;
    width: 100vw !important;
    height: calc(56px + env(safe-area-inset-top)) !important;
    min-height: 56px !important;
    box-sizing: border-box;
    padding: env(safe-area-inset-top) 18px 0 !important;
    border-bottom: 1px solid #e8edf2 !important;
    background: #ffffff !important;
    color: #172033 !important;
    opacity: 1 !important;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 0.22s ease !important;
  }

  #st-main-menu .back-menu .stt-icon,
  #st-main-menu .back-menu .fa {
    display: none !important;
  }

  #st-main-menu .back-menu::before {
    content: "Activity-Life";
    color: #172033;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.02em;
  }

  #st-main-menu .back-menu::after {
    content: "×";
    margin-left: auto;
    color: #172033;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
  }

  #st-main-menu.open .back-menu {
    transform: translate3d(0, 0, 0) !important;
    transition-delay: 0.04s !important;
  }

  .activity-life-phone-drawer {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top));
    left: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro intro"
      "discover utility"
      "more more";
    column-gap: 12px;
    row-gap: 8px;
    align-content: start;
    width: 100vw;
    height: calc(100vh - 56px - env(safe-area-inset-top));
    height: calc(100dvh - 56px - env(safe-area-inset-top));
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: #ffffff;
    color: #172033;
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.22s ease;
    -webkit-overflow-scrolling: touch;
  }

  #st-main-menu.open .activity-life-phone-drawer {
    transform: translate3d(0, 0, 0);
    transition-delay: 0.04s;
  }

  .activity-life-phone-drawer__intro {
    grid-area: intro;
    margin: 0 4px;
  }

  .activity-life-phone-drawer__home {
    min-height: 18px;
    font-size: 12px;
  }

  .activity-life-phone-drawer__home-icon {
    font-size: 14px;
  }

  .activity-life-phone-drawer__tagline {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
  }

  .activity-life-phone-drawer__section {
    min-width: 0;
  }

  .activity-life-phone-drawer__section--discover {
    grid-area: discover;
  }

  .activity-life-phone-drawer__section--utility {
    grid-area: utility;
  }

  .activity-life-phone-drawer__section--more {
    grid-area: more;
  }

  .activity-life-phone-drawer__section + .activity-life-phone-drawer__section {
    margin-top: 0 !important;
  }

  .activity-life-phone-drawer__heading {
    margin: 0 4px 4px;
    font-size: 14px;
    line-height: 1.15;
  }

  .activity-life-phone-drawer__list--discover,
  .activity-life-phone-drawer__list--utility {
    gap: 4px;
  }

  .activity-life-phone-drawer__link--discover,
  .activity-life-phone-drawer__link--utility {
    min-height: 56px;
    padding: 6px 7px;
    gap: 6px;
    border-radius: 12px;
  }

  .activity-life-phone-drawer__icon {
    width: 20px;
    min-width: 20px;
    font-size: 18px;
  }

  .activity-life-phone-drawer__icon--svg {
    width: 19px;
    min-width: 19px;
    height: 19px;
  }

  .activity-life-phone-drawer__label {
    font-size: 13px;
    line-height: 1.15;
  }

  .activity-life-phone-drawer__list--more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .activity-life-phone-drawer__list--more .activity-life-phone-drawer__item + .activity-life-phone-drawer__item {
    border-top: 0;
  }

  .activity-life-phone-drawer__link--more {
    min-height: 46px;
    padding: 0 10px;
    gap: 7px;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.04);
  }

  .activity-life-phone-drawer__link--more .activity-life-phone-drawer__icon {
    width: 19px;
    min-width: 19px;
    font-size: 15px;
  }
}


/* ACTIVITY_LIFE_PHONE_DRAWER_LANDSCAPE_VISUAL_PARITY_V1 */
@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-height: 520px) {
  .activity-life-phone-drawer__intro {
    margin: 0 4px 4px;
  }

  .activity-life-phone-drawer__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    color: #ef7a00 !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .activity-life-phone-drawer__home:active {
    color: #d86e00 !important;
  }

  .activity-life-phone-drawer__home:focus-visible,
  .activity-life-phone-drawer__link:focus-visible {
    outline: 3px solid rgba(239, 122, 0, 0.35);
    outline-offset: 3px;
  }

  .activity-life-phone-drawer__home-icon {
    font-size: 15px;
  }

  .activity-life-phone-drawer__tagline {
    margin: 7px 0 0;
    color: #536174;
    font-size: 15px;
    line-height: 1.45;
  }

  .activity-life-phone-drawer__section {
    min-width: 0;
  }

  .activity-life-phone-drawer__heading {
    margin: 0 4px 4px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
  }

  .activity-life-phone-drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .activity-life-phone-drawer__item {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .activity-life-phone-drawer__list--discover,
  .activity-life-phone-drawer__list--utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .activity-life-phone-drawer__link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    color: #172033 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .activity-life-phone-drawer__link--discover,
  .activity-life-phone-drawer__link--utility {
    min-height: 66px;
    padding: 4px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(23, 32, 51, 0.05);
  }

  .activity-life-phone-drawer__link--discover:active,
  .activity-life-phone-drawer__link--utility:active {
    border-color: #ef7a00;
    background: #fff8ef;
  }

  .activity-life-phone-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    color: #ef7a00;
    font-size: 21px;
    line-height: 1;
    text-align: center;
  }

  .activity-life-phone-drawer__link--utility .activity-life-phone-drawer__icon {
    color: #315a7d;
  }

  .activity-life-phone-drawer__icon--svg {
    display: block;
    width: 21px;
    min-width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .activity-life-phone-drawer__label {
    overflow: hidden;
    width: 100%;
    color: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-life-phone-drawer__chevron {
    margin-left: auto;
    color: #8a95a5;
    font-size: 19px;
  }

  .activity-life-phone-drawer__link--discover .activity-life-phone-drawer__chevron,
  .activity-life-phone-drawer__link--utility .activity-life-phone-drawer__chevron {
    display: none;
  }

  .activity-life-phone-drawer__list--more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .activity-life-phone-drawer__list--more .activity-life-phone-drawer__item + .activity-life-phone-drawer__item {
    border-top: 0;
  }

  .activity-life-phone-drawer__link--more {
    min-height: 54px;
    padding: 0 13px;
    gap: 10px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(23, 32, 51, 0.05);
  }

  .activity-life-phone-drawer__link--more .activity-life-phone-drawer__icon {
    width: 23px;
    min-width: 23px;
    color: #526174;
    font-size: 16px;
  }
}


/* ACTIVITY_LIFE_PHONE_DRAWER_LANDSCAPE_HITTEST_FIX_V1 */
@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-height: 520px) {
  /*
   * Keep every fixed drawer layer at its final viewport coordinates.
   * The parent overlay still controls open/closed visibility and pointer events.
   */
  .header.header-sticky-menu,
  .header.header-sticky-menu .header__center,
  #st-main-menu,
  #st-main-menu.open {
    -webkit-transform: none !important;
    transform: none !important;
  }

  #st-main-menu .back-menu,
  #st-main-menu.open .back-menu,
  .activity-life-phone-drawer,
  #st-main-menu.open .activity-life-phone-drawer {
    -webkit-transform: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
