/* ===============================
   마이페이지 — 반응형 마스터/디테일
   PC/모바일: 상단 topbar 아래 map-wrap 영역에만 표시 (고객관리·장부와 동일)
   =============================== */

#myPage.listing-page {
  z-index: 5000;
}

/* listing.css 기본(absolute inset:0) 유지 — topbar는 덮지 않음 */
#myPage.listing-page.open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
}

#myPage .listing-backdrop {
  display: none;
}

#myPage .my-page-panel {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: none;
}

#myPage .listing-header {
  flex-shrink: 0;
}

#myPage .my-page-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── 헤더: ← / 마이페이지(좌) | 프로필(우) — grid로 완전 분리 ── */
#myPage .my-page-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
}

#myPage .my-page-header .listing-header__back {
  grid-column: 1;
  grid-row: 1;
  flex: none;
  margin: 0;
}

#myPage .my-page-header .listing-header__title {
  grid-column: 2;
  grid-row: 1;
  flex: none;
  margin: 0;
  justify-self: start;
  white-space: nowrap;
}

#myPage .my-page-profile {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  text-align: right;
}

.my-page-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.my-page-profile__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.my-page-profile__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.my-page-profile__name-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.my-page-profile__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.my-page-profile__email {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: #9ca3af;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-page-profile__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  box-sizing: border-box;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

.my-page-profile__chip--sub {
  flex-shrink: 0;
}

.my-page-profile__chip--role {
  background: #eef2ff;
  color: #3730a3;
}

.my-page-profile__chip--trial {
  background: #fef3c7;
  color: #92400e;
}

.my-page-profile__chip--active {
  background: #d1fae5;
  color: #065f46;
}

.my-page-profile__chip--readonly {
  background: #fee2e2;
  color: #991b1b;
}

.my-page-profile__chip--inactive {
  background: #f3f4f6;
  color: #4b5563;
}

/* ── 마스터/디테일 셸 ── */
.my-page-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.my-page-nav-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* ── 네비게이션 (섹션 탭) ── */
.my-page-nav {
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-page-nav__scroll-btn,
.my-page-nav__hint {
  display: none;
}

.my-page-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #374151;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.my-page-nav__item:hover {
  background: #f3f4f6;
}

.my-page-nav__item.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 600;
}

.my-page-nav__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.my-page-nav__icon svg {
  width: 18px;
  height: 18px;
}

.my-page-nav__label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.my-page-nav__badge {
  flex-shrink: 0;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

/* ── 상세 영역 ── */
.my-page-detail {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.my-page-detail__inner {
  padding: 16px 20px 24px;
}

.my-page-detail__heading {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.my-page-detail__desc {
  margin: -6px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
}

.my-page-detail__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-page-detail__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #111827;
  transition: background 0.15s, border-color 0.15s;
}

.my-page-detail__item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.my-page-detail__item:active {
  background: #f3f4f6;
}

.my-page-detail__item--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.my-page-detail__item--danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.my-page-detail__item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.my-page-detail__item-titleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.my-page-detail__item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
}

.my-page-detail__item--danger .my-page-detail__item-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.my-page-detail__item-icon svg {
  width: 15px;
  height: 15px;
}

.my-page-detail__item-title {
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
}

.my-page-detail__item-desc {
  margin: 6px 0 0 38px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.my-page-detail__item-badge {
  flex-shrink: 0;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.my-page-detail__item-chevron {
  flex-shrink: 0;
  align-self: center;
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1;
}

.my-page-detail__empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ── 내 정보 인라인 폼 (설정 팝업 대신 마이페이지 안에서) ── */
.my-page-detail__subview {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.my-page-detail__form-mount {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.my-page-detail__form-mount .settings-section {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  border-bottom: none;
}

.my-page-detail__form-mount .settings-section__title {
  display: none;
}

.my-page-detail__form-mount .settings-footer {
  margin-top: 16px;
  padding-left: 0;
  padding-right: 0;
}

.my-page-detail__subview--fill,
.my-page-detail__form-mount--fill {
  flex: 1 1 auto;
  min-height: 0;
}

/* 수정 기록 / 공유 링크 / 팀 관리 인라인: detailInner까지 flex 높이 전달 */
#myPage.is-log-subview .my-page-detail,
#myPage.is-share-subview .my-page-detail,
#myPage.is-team-subview .my-page-detail {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#myPage.is-log-subview .my-page-detail__inner,
#myPage.is-share-subview .my-page-detail__inner,
#myPage.is-team-subview .my-page-detail__inner {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px 0;
}

#myPage.is-log-subview .my-page-detail__subview--fill,
#myPage.is-share-subview .my-page-detail__subview--fill,
#myPage.is-team-subview .my-page-detail__subview--fill {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#myPage.is-log-subview .my-page-detail__form-mount--fill,
#myPage.is-share-subview .my-page-detail__form-mount--fill,
#myPage.is-team-subview .my-page-detail__form-mount--fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.my-page-detail__form-mount .log-panel--inline {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}

.my-page-detail__form-mount .log-panel--inline .listing-header {
  display: none;
}

.my-page-detail__form-mount .log-panel--inline .log-toolbar {
  flex-shrink: 0;
  padding-left: 0;
  padding-right: 0;
  border-bottom-color: #e8eaed;
}

.my-page-detail__form-mount .log-panel--inline .log-toolbar__title {
  font-size: 1rem;
}

.my-page-detail__form-mount .log-panel--inline .log-scroll {
  padding-left: 0;
  padding-right: 0;
}

.my-page-detail__form-mount .log-panel--inline .log-footer {
  padding-left: 0;
  padding-right: 0;
}

.my-page-detail__form-mount .share-links-panel--inline {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.my-page-detail__form-mount .share-links-panel--inline .share-set-modal__header {
  flex-shrink: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #e8eaed;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
}

.my-page-detail__form-mount .share-links-panel--inline .share-links-modal__heading {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

.my-page-detail__form-mount .share-links-panel--inline .share-set-modal__title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.my-page-detail__form-mount .share-links-panel--inline .share-links-modal__hint {
  flex: 1 1 180px;
  font-size: 11px;
  color: #94a3b8;
}

.my-page-detail__form-mount .share-links-panel--inline .share-set-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 16px;
}

/* 팀 관리 listing 인라인 (가입/퇴사/계정) */
.listing-page.listing-page--inline-host {
  pointer-events: none;
  visibility: hidden;
}

.my-page-detail__form-mount .listing-panel--inline {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
  position: relative;
  transform: none;
}

.my-page-detail__form-mount .listing-panel--inline .listing-header {
  flex-shrink: 0;
  align-items: center;
  padding: 10px 0;
  min-height: 44px;
  gap: 8px;
}

.my-page-detail__form-mount .listing-panel--inline .listing-header__back {
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

.my-page-detail__form-mount .listing-panel--inline .listing-header__title {
  margin: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.my-page-detail__form-mount .listing-panel--inline .listing-header__count {
  margin: 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.my-page-detail__form-mount .listing-panel--inline .account-content,
.my-page-detail__form-mount .listing-panel--inline .my-team-content,
.my-page-detail__form-mount .listing-panel--inline .onboarding-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
}

.my-page-detail__form-mount .listing-panel--inline .announcements-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.my-page-detail__form-mount .listing-panel--inline .announcements-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 20px;
}

.my-page-detail__form-mount .listing-panel--inline .announcements-header__actions {
  gap: 8px;
}

.my-page-detail__form-mount .listing-panel--inline .listing-header__write {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.my-page-detail__form-mount .listing-panel--inline .onboarding-content {
  padding: 4px 4px 16px;
}

.my-page-detail__form-mount .listing-panel--inline .referral-content {
  padding: 16px 4px 24px;
}

.my-page-detail__form-mount .listing-panel--inline .subscription-admin-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 모바일 인라인: 마스터-디테일 대신 전체 콘텐츠 스크롤 */
@media (max-width: 900px) {
  .my-page-detail__form-mount .listing-panel--inline .subscription-admin-content {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .my-page-detail__form-mount .listing-panel--inline .subscription-admin-topbar,
  .my-page-detail__form-mount .listing-panel--inline .subscription-admin-body {
    flex: 0 0 auto;
    min-height: auto;
  }

  .my-page-detail__form-mount .listing-panel--inline .subscription-admin-list-pane,
  .my-page-detail__form-mount .listing-panel--inline .subscription-admin-list-scroll {
    flex: none;
    min-height: auto;
    overflow: visible;
    height: auto;
  }

  .my-page-detail__form-mount .listing-panel--inline .subscription-admin-detail-pane {
    display: none;
  }
}

.my-page-detail__form-mount .listing-panel--inline .join-req-notice {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  box-shadow: inset 3px 0 0 #93c5fd;
}

.my-page-detail__form-mount .listing-panel--inline .join-req-notice__title {
  margin: 0 0 6px;
  color: #334155;
}

.my-page-detail__form-mount .listing-panel--inline .join-req-notice__text {
  color: #64748b;
  font-size: 12.5px;
}

.my-page-detail__form-mount .listing-panel--inline .account-list {
  padding: 12px 0 8px;
  background: transparent;
}

.my-page-detail__form-mount .listing-panel--inline .account-toolbar {
  padding-left: 0;
  padding-right: 0;
}

.my-page-detail__form-mount .listing-panel--inline .account-tabs {
  padding-left: 0;
  padding-right: 0;
}

.my-page-detail__form-mount .listing-panel--inline .account-teams-view {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

@media (min-width: 901px) {
  #myPage.is-log-subview .my-page-detail__inner,
  #myPage.is-share-subview .my-page-detail__inner,
  #myPage.is-team-subview .my-page-detail__inner {
    padding: 16px 20px 0;
  }
}

#myPage.is-subview .my-page-detail__item-chevron {
  display: none;
}

/* ── PC: map-wrap 전체 + 좌측 세로 메뉴 ── */
@media (min-width: 901px) {
  #myPage.open {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  /* 좌측: 헤더+프로필+탭 / 우측: 본문이 topbar 유틸 바로 아래부터 */
  #myPage .my-page-panel {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  #myPage .my-page-header {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    padding: 8px 10px;
    column-gap: 6px;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    border-right: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
  }

  #myPage .my-page-header .listing-header__back {
    width: 28px;
    height: 28px;
    margin: 0;
    font-size: 15px;
    border-radius: 8px;
    line-height: 1;
  }

  #myPage .my-page-header .listing-header__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
  }

  #myPage .my-page-profile {
    display: none;
  }

  #myPage .my-page-body,
  #myPage .my-page-shell {
    display: contents;
  }

  .my-page-aside {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    min-height: 0;
    border-right: 1px solid #e8eaed;
    background: #fff;
    overflow: hidden;
  }

  .my-page-detail {
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 0;
  }

  .my-page-nav-wrap {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border-right: none;
    overflow: hidden;
  }

  .my-page-nav {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 2px 0 6px;
  }

  .my-page-nav__item {
    width: 100%;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .my-page-nav__item.is-active {
    box-shadow: inset 3px 0 0 #2b6cff;
    font-weight: 600;
  }

  .my-page-nav__icon svg {
    width: 15px;
    height: 15px;
  }

  .my-page-nav__label {
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .my-page-nav__badge {
    min-width: 16px;
    padding: 0 5px;
    font-size: 0.625rem;
    line-height: 1.35;
  }

  .my-page-detail__inner {
    padding: 16px 20px 24px;
  }

  #myPage.is-log-subview .my-page-detail__inner,
  #myPage.is-share-subview .my-page-detail__inner,
  #myPage.is-team-subview .my-page-detail__inner {
    padding: 12px 16px 0;
  }
}

/* ── 모바일: topbar 아래 map-wrap 영역 ── */
@media (max-width: 900px) {
  #myPage.open {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: #fff;
  }

  #myPage .my-page-panel {
    position: relative;
    flex: 1;
    min-height: 0;
  }

  /* 모바일: ← 마이페이지(좌 고정) | 이름·태그·이메일(우) */
  #myPage .my-page-header {
    min-height: 48px;
    padding: 8px 12px;
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 8px;
  }

  #myPage .my-page-header .listing-header__back {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  #myPage .my-page-header .listing-header__title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
  }

  #myPage .my-page-profile {
    max-width: 55%;
  }

  #myPage .my-page-profile__name {
    font-size: 0.75rem;
  }

  #myPage .my-page-profile__email {
    font-size: 0.625rem;
    max-width: 160px;
  }

  #myPage .my-page-profile__chip {
    height: 16px;
    padding: 0 5px;
    font-size: 0.5625rem;
  }

  .my-page-shell {
    flex-direction: column;
  }

  .my-page-aside {
    flex-shrink: 0;
    width: 100%;
  }

  .my-page-nav-wrap {
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid #e8eaed;
    background: #fff;
  }

  .my-page-nav-wrap::before,
  .my-page-nav-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .my-page-nav-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0));
  }

  .my-page-nav-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #fff 10%, rgba(255, 255, 255, 0));
  }

  .my-page-nav-wrap.can-scroll-left::before,
  .my-page-nav-wrap.can-scroll-right::after {
    opacity: 1;
  }

  .my-page-nav-wrap.can-scroll-right::after {
    width: 72px;
    background: linear-gradient(270deg, #fff 45%, rgba(255, 255, 255, 0));
  }

  .my-page-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 52px 6px 10px;
    border-bottom: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #93c5fd transparent;
  }

  .my-page-nav::-webkit-scrollbar {
    height: 3px;
  }

  .my-page-nav::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 999px;
  }

  .my-page-nav__item {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 56px;
    max-width: 76px;
    padding: 6px 6px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    scroll-snap-align: start;
  }

  .my-page-nav__item.is-active {
    box-shadow: none;
  }

  .my-page-nav__icon svg {
    width: 16px;
    height: 16px;
  }

  .my-page-nav__label {
    flex: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .my-page-nav__badge {
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .my-page-nav__item {
    position: relative;
  }

  .my-page-nav__scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: absolute;
    top: 8px;
    right: 6px;
    z-index: 3;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
    cursor: pointer;
    animation: myPageNavMorePulse 1.6s ease-in-out infinite;
  }

  .my-page-nav__scroll-btn[hidden] {
    display: none !important;
  }

  .my-page-nav__scroll-btn span {
    font-size: 1rem;
    font-weight: 800;
  }

  .my-page-nav__hint {
    display: block;
    margin: 0;
    padding: 0 12px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    text-align: center;
    letter-spacing: -0.02em;
  }

  .my-page-nav__hint[hidden] {
    display: none !important;
  }

  @keyframes myPageNavMorePulse {
    0%,
    100% {
      transform: translateX(0);
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
    }
    50% {
      transform: translateX(3px);
      box-shadow: 0 3px 12px rgba(37, 99, 235, 0.28);
    }
  }

  .my-page-detail__inner {
    padding: 12px 14px 16px;
  }

  /* 이름/연락처·비밀번호 등 하위 화면은 탭·프로필을 유지하고 디테일 영역만 교체 */
}

/* 마이페이지 위에 열리는 하위 화면 */
#settingsPage.listing-page.open,
#logPage.listing-page.open,
#subscriptionMyPage.listing-page.open,
#subscriptionAdminPage.listing-page.open,
#opsAdminPage.listing-page.open,
#referralPage.listing-page.open,
#announcementsPage.listing-page.open,
#accountPage.listing-page.open,
#onboardingPage.listing-page.open,
#joinRequestsPage.listing-page.open,
#officeRegAdminPage.listing-page.open,
#myTeamPage.listing-page.open,
#resignRequestsPage.listing-page.open,
#shareLinksModal.share-links-modal:not(.hidden) {
  z-index: 10200;
}
