/**
 * AI CineCatch — 마이페이지 전용 스타일
 * 다크 시네마틱 톤 · mypage-* 클래스만 사용 (다른 페이지 영향 없음)
 */

/* ── 포탈 레이아웃 — PC는 110% 확대 후 헤더와 동일 시각 폭(§ PC 본문 scale) ── */
body[data-page="mypage"] {
  /* 모바일 fixed 헤더(2행) + 하단 네비 여유 */
  --mypage-mobile-header-offset: calc(108px + env(safe-area-inset-top, 0px));
  background-color: #070a0f !important;
  background:
    radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.08), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.07), transparent 32%),
    radial-gradient(circle at 50% 45%, rgba(20, 184, 166, 0.035), transparent 38%),
    linear-gradient(180deg, #070a0f 0%, #090d14 48%, #070a0f 100%) !important;
}

body[data-page="mypage"] .portal-layout-container.mypage-page,
body[data-page="mypage"] .portal-layout-container.mypage-page-layout {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 1560px !important;
  width: 100% !important;
  margin-top: 110px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 48px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  gap: 0 !important;
}

body[data-page="mypage"] .mypage-page-shell,
body[data-page="mypage"] .mypage-shell {
  width: 100% !important;
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

body[data-page="mypage"] .portal-left-column.mypage-page-shell {
  gap: 24px !important;
}

body[data-page="mypage"] .portal-left-column > .section-space {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: none;
}

/* 히어로 섹션 — section-space·mypage-hero가 동일 노드이므로 패딩은 한 selector로만 지정 */
body[data-page="mypage"] #mypageHeroBanner.section-space.mypage-hero {
  padding: 28px 32px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* ── 상단 히어로 배너 (단독 블록) ── */
.mypage-hero {
  padding: 28px !important;
  margin-bottom: 0 !important;
  background: #0c0b0e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  overflow: hidden;
}

.mypage-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  z-index: 1;
  pointer-events: none;
}

.mypage-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(234, 88, 12, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(242, 193, 78, 0.06) 0%, transparent 50%),
    linear-gradient(90deg, rgba(12, 11, 14, 0.98) 0%, rgba(12, 11, 14, 0.88) 42%, rgba(12, 11, 14, 0.72) 100%),
    linear-gradient(0deg, rgba(12, 11, 14, 0.94) 0%, rgba(12, 11, 14, 0.15) 100%);
  z-index: 2;
  pointer-events: none;
}

/* 상단 골드·오렌지 포인트 라인 */
.mypage-hero-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(242, 193, 78, 0) 0%,
    rgba(242, 193, 78, 0.55) 35%,
    rgba(234, 88, 12, 0.45) 65%,
    rgba(242, 193, 78, 0) 100%
  );
  z-index: 4;
  pointer-events: none;
}

/* 히어로 텍스트 영역 — 제목·설명만 포함 */
.mypage-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.mypage-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.mypage-hero-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 149, 40, 0.85);
}

.mypage-hero-title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd175 0%, #e89528 50%, #b55a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mypage-hero-desc {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  font-weight: 500;
  max-width: 560px;
}

/* PC 영어: 히어로 설명 문장 한 줄 유지 */
@media (min-width: 769px) {
  html[lang="en"] .mypage-hero-desc {
    max-width: none;
    white-space: nowrap;
  }
}

/* ── 프로필 섹션 (히어로 아래 별도 블록) ── */
.mypage-profile-section {
  width: 100%;
  margin: 0;
}

/* ── 프로필 카드 (독립 패널) ── */
.mypage-profile-card {
  background: #0c0b0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mypage-profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.mypage-profile-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mypage-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(242, 193, 78, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.mypage-profile-info {
  flex: 1;
  min-width: 0;
}

.mypage-profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mypage-profile-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.mypage-profile-tier {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.32);
  border-radius: 3px;
  padding: 2px 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.mypage-profile-email {
  margin: 5px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}

.mypage-profile-joined {
  margin: 3px 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
}

.mypage-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mypage-profile-badge {
  font-size: 0.715rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 11px;
}

.mypage-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mypage-btn--profile {
  flex: 0 0 auto;
  min-width: 112px;
  padding: 9px 16px;
  font-size: 0.75rem;
  gap: 6px;
  min-height: 36px;
  box-sizing: border-box;
}

/* 프로필 상단 — 보관함·로그아웃도 프로필 수정과 동일 크기·스타일(ghost) */
.mypage-profile-actions .mypage-btn--profile {
  width: auto;
  max-width: none;
}

/* 프로필 액션 버튼 — 선행 아이콘 */
.mypage-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.mypage-btn-icon svg {
  display: block;
}

/* PC — 프로필 가로 정렬, 버튼 과확장 방지 */
@media (min-width: 769px) {
  body[data-page="mypage"] .mypage-hero-title {
    font-size: 2.1rem;
  }

  .mypage-profile-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding: 16px 22px;
  }

  .mypage-profile-top {
    flex: 1;
    min-width: 0;
  }

  .mypage-profile-actions {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    border-top: none;
    gap: 8px;
  }

  .mypage-btn--profile {
    min-width: 112px;
    max-width: none;
  }
}

/* ── 공통 버튼 ── */
.mypage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 14px;
  min-height: 34px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.mypage-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.mypage-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.mypage-btn--accent {
  background: rgba(234, 88, 12, 0.15);
  border-color: rgba(234, 88, 12, 0.45);
  color: #fdba74;
}
.mypage-btn--accent:hover {
  background: rgba(234, 88, 12, 0.28);
  color: #fff;
}

/*
 * 제출/신청 워크플로우 — 소프트 모던 버튼 체계
 * .mypage-btn--cta     ≈ .btn-soft-primary
 * .mypage-btn--view    ≈ .btn-soft-secondary
 * .mypage-btn--go      ≈ .btn-soft-positive (A안: amber 통일)
 */
.mypage-btn--cta,
.btn-soft-primary {
  background: linear-gradient(135deg, #d9852b 0%, #e3b45a 100%);
  border-color: rgba(255, 207, 120, 0.38);
  color: #21170c;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 132, 32, 0.16);
}
.mypage-btn--cta:hover,
.btn-soft-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  border-color: rgba(255, 215, 130, 0.48);
  box-shadow: 0 8px 22px rgba(255, 132, 32, 0.22);
  color: #19110a;
}

.mypage-btn--view,
.btn-soft-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 246, 225, 0.88);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.mypage-btn--view:hover,
.btn-soft-secondary:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 198, 110, 0.25);
  color: #fff7e6;
  transform: none;
}

.mypage-btn--go,
.btn-soft-positive {
  background: linear-gradient(135deg, #d9852b 0%, #e3b45a 100%);
  border-color: rgba(255, 207, 120, 0.38);
  color: #21170c;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 132, 32, 0.14);
}
.mypage-btn--go:hover,
.btn-soft-positive:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  border-color: rgba(255, 215, 130, 0.48);
  box-shadow: 0 8px 22px rgba(255, 132, 32, 0.2);
  color: #19110a;
}

/* 섹션 헤더 — 새 작품 등록 (칩·배지와 구분되는 elevated surface CTA) */
.mypage-btn--new-submit {
  position: relative;
  gap: 6px;
  padding-left: 14px;
  padding-right: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.07) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* + 아이콘 — pill chip·status badge와 시각적 구분 */
.mypage-btn--new-submit::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.mypage-btn--new-submit:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
  filter: none;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mypage-btn--new-submit:hover::before {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.26);
}

/* 카드 — 공개 작품 보기 (soft teal, CTA와 구분) */
.mypage-btn--watch {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.28);
  color: rgba(167, 243, 208, 0.95);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}
.mypage-btn--watch:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #ecfdf5;
  transform: translateY(-1px);
  filter: none;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.14);
}

.mypage-btn--danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
  color: rgba(252, 165, 165, 0.9);
}
.mypage-btn--danger:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* 섹션 헤더 CTA — 카드 내부 버튼보다 약간 큼 */
.mypage-btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.8125rem;
  border-radius: 11px;
}

/* 카드 내부 액션 버튼 */
.mypage-btn--xs {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.8125rem;
  border-radius: 10px;
}

.mypage-link-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.mypage-link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── 활동 요약 카드 (보관함 library-stats KPI와 동일 UI) ── */
.mypage-summary {
  margin-bottom: 0;
}

.mypage-summary-grid {
  display: grid;
  /* PC — KPI 6개 한 줄 */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.mypage-summary-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 10px;
  min-height: 64px;
  /* PC — 1행: 아이콘+숫자·제목(같은 높이) / 2행: 부가설명 */
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.mypage-summary-card:hover {
  border-color: rgba(232, 149, 40, 0.35);
  background: rgba(232, 149, 40, 0.06);
  box-shadow: 0 4px 16px rgba(232, 149, 40, 0.06);
}

/* 아이콘 — PC 1행에만 배치 (숫자·제목과 세로 중앙 정렬) */
.mypage-summary-icon-box {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

/* PC — copy 래퍼 해제, main·desc를 그리드에 직접 배치 */
.mypage-summary-copy {
  display: contents;
}

/* 숫자 · 제목 — PC 1행, 아이콘과 같은 줄 세로 중앙 */
.mypage-summary-main {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* 톤별 아이콘 박스 — 보관함 KPI와 동일 팔레트 */
.mypage-summary-icon-box--bookmark {
  background: rgba(232, 149, 40, 0.16);
  border-color: rgba(232, 149, 40, 0.35);
  color: #ffd175;
}

.mypage-summary-icon-box--continue {
  background: rgba(255, 120, 60, 0.14);
  border-color: rgba(255, 120, 60, 0.32);
  color: #ff9a5c;
}

.mypage-summary-icon-box--liked {
  background: rgba(255, 90, 120, 0.14);
  border-color: rgba(255, 90, 120, 0.32);
  color: #ff6b8a;
}

.mypage-summary-icon-box--follow {
  background: rgba(120, 160, 255, 0.12);
  border-color: rgba(120, 160, 255, 0.28);
  color: #8eb4ff;
}

.mypage-summary-icon-box--notify {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #5eead4;
}

.mypage-summary-icon-box--submit {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.32);
  color: #67e8f9;
}

.mypage-summary-count {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.mypage-summary-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.15;
  flex-shrink: 0;
}

.mypage-summary-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* 북마크 SVG 아이콘 — KPI 크기 */
.mypage-bmk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mypage-bmk-icon--kpi svg {
  width: 17px;
  height: 19px;
}

.mypage-bmk-shape {
  fill: transparent;
}

/* 최근 활동 — 북마크 저장(체크) 상태: 내부 채움 */
.mypage-bmk-icon--filled .mypage-bmk-shape {
  fill: currentColor;
  stroke: currentColor;
}

.mypage-summary-icon-box--bookmark .mypage-bmk-icon {
  color: inherit;
}

@media (min-width: 1025px) {
  .mypage-summary-count {
    font-size: 1.3rem;
  }
  .mypage-summary-label {
    font-size: 0.75rem;
  }
  .mypage-summary-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.68);
  }
}

/* ── 본문 2컬럼 — main 70% / side 30% ── */
.mypage-body-layout,
.mypage-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
  gap: 28px;
  align-items: start;
}

.mypage-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mypage-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  /* 스크롤 시 따라오지 않음 — 본문과 함께 일반 흐름에 배치 */
  position: static;
  top: auto;
}

.mypage-side-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ── 패널 ── */
.mypage-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
}

.mypage-panel-head { margin-bottom: 14px; }

.mypage-panel-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mypage-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

/* ── 최근 활동 ── */
.mypage-activity-list { display: flex; flex-direction: column; gap: 8px; }

.mypage-activity-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 58px;
  box-sizing: border-box;
  cursor: pointer;
  transition: var(--transition-fast, 0.2s ease);
}
.mypage-activity-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 193, 78, 0.2);
}

.mypage-activity-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* 최근 활동 — 통일 북마크 SVG */
.mypage-activity-icon--bookmark {
  color: #ffd175;
}

.mypage-bmk-icon--activity svg {
  width: 18px;
  height: 20px;
}

.mypage-activity-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mypage-activity-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mypage-activity-time { font-size: 0.66rem; color: rgba(255, 255, 255, 0.38); margin-top: 2px; }

.mypage-activity-thumb {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  grid-column: 3;
}
.mypage-activity-thumb--placeholder,
.mypage-activity-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  grid-column: 3;
}

/* ── 내 평점 ── */
.mypage-ratings-list { display: flex; flex-direction: column; gap: 10px; }

.mypage-rating-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, max-content);
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: var(--transition-fast, 0.2s ease);
}

button.mypage-rating-row {
  appearance: none;
  -webkit-appearance: none;
}

.mypage-rating-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 193, 78, 0.2);
}

.mypage-rating-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  grid-row: 1;
}

.mypage-rating-main { min-width: 0; }

.mypage-rating-title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mypage-rating-meta {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.mypage-rating-meta strong { color: var(--accent-gold); }

.mypage-rating-review {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
}

/* 조회수 · 크리에이터 · 출처 — PC 한 줄, 버튼 앞 우측 정렬 */
.mypage-rating-extra {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  margin-right: 4px;
  padding-right: 20px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
}

.mypage-rating-extra-item {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 항목 사이 구분점 */
.mypage-rating-extra-item:not(:first-child)::before {
  content: "·";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

.mypage-rating-extra-item--views { color: rgba(255, 255, 255, 0.58); }
.mypage-rating-extra-item--creator { color: rgba(255, 255, 255, 0.72); font-weight: 600; }
.mypage-rating-extra-item--source { color: rgba(255, 255, 255, 0.42); }

/* ── 더보기 버튼 (보관함·랭킹 catalog-more 패턴) ── */
body[data-page="mypage"] .mypage-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 4px;
}

body[data-page="mypage"] .mypage-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #fff;
  padding: 14px 48px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  min-height: 48px;
  min-width: 220px;
}

body[data-page="mypage"] .mypage-load-more-btn:hover {
  border-color: rgba(242, 193, 78, 0.35);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.08), rgba(255, 255, 255, 0.03));
}

body[data-page="mypage"] .mypage-load-more-chevron {
  font-size: 0.72rem;
  color: var(--accent-gold);
  line-height: 1;
}

/* ── 팔로우 크리에이터 — PC 3열 그리드 ── */
.mypage-following-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mypage-following-card {
  display: grid;
  grid-template-areas:
    "avatar meta meta"
    "avatar name badge";
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 72px;
  cursor: pointer;
  transition: var(--transition-fast, 0.2s ease);
  width: 100%;
  box-sizing: border-box;
}
.mypage-following-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 193, 78, 0.35);
  transform: translateY(-1px);
}

/* info 래퍼 — PC에서는 display:contents로 그리드 자식에 배치 */
.mypage-following-info {
  display: contents;
}

.mypage-following-avatar {
  grid-area: avatar;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(242, 193, 78, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  align-self: center;
  flex-shrink: 0;
}

.mypage-following-meta {
  grid-area: meta;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* PC — 기존과 동일한 상단 메타(작품 수), 모바일용 메타는 숨김 */
.mypage-following-meta--mo {
  display: none;
}

.mypage-following-name {
  grid-area: name;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mypage-following-badge {
  grid-area: badge;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--accent-mint, #10b981);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 3px 8px;
  align-self: center;
}

/* ── 작품 제출·크리에이터 신청 워크플로우 ── */
.mypage-workflow-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mypage-workflow-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  box-shadow: none;
}

.mypage-workflow-stat:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
}

.mypage-workflow-stat.is-active {
  border-color: rgba(255, 198, 110, 0.3);
  background: rgba(255, 170, 50, 0.08);
  color: rgba(255, 220, 160, 0.95);
}

.mypage-workflow-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mypage-workflow-filters::-webkit-scrollbar {
  display: none;
}

/* 모바일 — 상태 필터 드롭다운 (PC에서는 chip 행 사용) */
.mypage-workflow-filters-select-wrap {
  display: none;
  margin-bottom: 14px;
}

.mypage-workflow-filter-select-box {
  position: relative;
}

.mypage-workflow-filter-select {
  width: 100%;
  min-height: 40px;
  padding: 0 36px 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 246, 225, 0.92);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mypage-workflow-filter-select:focus {
  outline: none;
  border-color: rgba(255, 198, 110, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.mypage-workflow-filter-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* 필터 chip — 액션 버튼과 구분되는 pill 형태 (.btn-status-filter) */
.mypage-workflow-filter,
.btn-status-filter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.mypage-workflow-filter:hover,
.btn-status-filter:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
}

.mypage-workflow-filter.is-active,
.btn-status-filter.is-active {
  border-color: rgba(255, 198, 110, 0.32);
  background: rgba(255, 170, 50, 0.08);
  color: rgba(255, 220, 160, 0.95);
}

.mypage-workflow-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.mypage-workflow-empty-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.mypage-workflow-empty-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
}

.mypage-workflow-msg {
  width: 100%;
  margin: 6px 0 2px;
  border-radius: 9px;
  border: 1px solid rgba(255, 180, 70, 0.22);
  background: rgba(255, 170, 50, 0.075);
}

.mypage-workflow-msg-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 210, 140, 0.92);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.mypage-workflow-msg-label {
  flex: 1;
  min-width: 0;
}

.mypage-workflow-msg-chevron {
  flex-shrink: 0;
  font-size: 0.58rem;
  line-height: 1;
  color: rgba(255, 210, 140, 0.72);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mypage-workflow-msg-summary:hover .mypage-workflow-msg-chevron {
  color: rgba(255, 220, 160, 0.95);
}

.mypage-workflow-msg[open] .mypage-workflow-msg-chevron {
  transform: rotate(180deg);
  color: rgba(255, 220, 160, 0.95);
}

.mypage-workflow-msg[open] {
  border-color: rgba(255, 190, 90, 0.28);
  background: rgba(255, 170, 50, 0.09);
}

.mypage-workflow-msg-summary::-webkit-details-marker {
  display: none;
}

.mypage-workflow-msg-body {
  margin: 0;
  padding: 0 10px 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.mypage-submission-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
}

.mypage-submission-desc {
  margin: 2px 0 0;
  width: 100%;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.mypage-submission-date-updated {
  margin: 0;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

/* ── 작품 등록 현황 — PC 2열 카드 그리드 (2행 × 2개) ── */
.mypage-submissions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mypage-submission-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  min-height: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-sizing: border-box;
  transition: var(--transition-fast, 0.2s ease);
}

.mypage-submission-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(242, 193, 78, 0.18);
}
.mypage-submission-row.is-draft { border-left-color: rgba(156, 163, 175, 0.85); }
.mypage-submission-row.is-pending { border-left-color: #60a5fa; }
.mypage-submission-row.is-reviewing { border-left-color: #a78bfa; }
.mypage-submission-row.is-revision { border-left-color: rgba(200, 150, 60, 0.75); }
.mypage-submission-row.is-approved { border-left-color: #4ade80; }
.mypage-submission-row.is-published { border-left-color: #34d399; }
.mypage-submission-row.is-rejected { border-left-color: #f87171; }

/* 상단 — 분류·장르(좌) + 상태 배지(우상단) */
.mypage-submission-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.mypage-submission-topbar-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

.mypage-submission-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

/* 분류 · 장르 — 보관함 library-card-meta와 동일 위계 */
.mypage-submission-meta {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.48));
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mypage-submission-title {
  margin: 0;
  width: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* 연재 — PC 한 줄: 시리즈명(흰색) · 회차+에피소드명(골드) */
.mypage-submission-series-name {
  color: #fff;
  font-weight: 700;
}

.mypage-submission-series-ep--inline {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.78rem;
}

/* PC — 스택 에피소드 줄 숨김 (인라인 한 줄만 표시) */
.mypage-submission-episode.mypage-submission-episode--stacked {
  display: none;
}

/* 연재 에피소드 — 모바일 스택 줄 (회차 + 에피소드명) */
.mypage-submission-episode {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
}

.mypage-submission-episode-label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}

.mypage-submission-episode-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-gold);
  font-weight: 600;
}

.mypage-submission-date {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  flex-shrink: 0;
}

/* PC — 제출일(좌) + 액션 버튼(우) 한 줄 */
.mypage-submission-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.mypage-submission-status {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.mypage-submission-status.is-draft {
  color: #d1d5db;
  background: rgba(156, 163, 175, 0.14);
  border: 1px solid rgba(156, 163, 175, 0.35);
}
.mypage-submission-status.is-pending {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.mypage-submission-status.is-reviewing {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
}
/* 수정 필요 — muted amber badge (CTA·버튼과 구분) */
.mypage-submission-status.is-revision {
  color: #c9a04a;
  background: rgba(180, 130, 40, 0.11);
  border: 1px solid rgba(200, 150, 60, 0.32);
  box-shadow: none;
}
.mypage-submission-status.is-approved {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.mypage-submission-status.is-rejected {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.mypage-submission-status.is-published {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.mypage-submission-status.is-hold {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.mypage-submission-status.is-none {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mypage-submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  justify-content: flex-end;
  flex-shrink: 0;
  width: 100%;
}

/* 크리에이터 신청 상태 — 메타 그리드 */
.mypage-creator-status-inner--applied {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mypage-creator-status-inner--applied.is-revision {
  border-color: rgba(200, 150, 60, 0.22);
  background: rgba(180, 130, 40, 0.05);
}

.mypage-creator-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 10px 0 4px;
}

.mypage-creator-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mypage-creator-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.mypage-creator-meta-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.mypage-creator-meta-value--badge {
  align-self: flex-start;
}

.mypage-creator-grade-row {
  margin-top: 6px;
}

.mypage-creator-grade-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fcd34d;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(242, 193, 78, 0.3);
}

/* 수정 요청 모달 */
.mypage-revision-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.mypage-revision-backdrop[hidden] {
  display: none !important;
}

body.mypage-revision-open {
  overflow: hidden;
}

.mypage-revision-modal {
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(28, 32, 42, 0.98) 0%, rgba(12, 16, 24, 0.98) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.mypage-revision-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mypage-revision-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.mypage-revision-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mypage-revision-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}

.mypage-revision-dl {
  margin: 0;
}

.mypage-revision-dl-row {
  margin-bottom: 14px;
}

.mypage-revision-dl-row dt {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.48);
}

.mypage-revision-dl-row dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.mypage-revision-items {
  margin: 0;
  padding-left: 18px;
}

.mypage-revision-items li {
  margin-bottom: 4px;
}

.mypage-revision-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mypage-revision-modal-foot .mypage-btn--view {
  order: 1;
}

.mypage-revision-modal-foot .mypage-btn--cta {
  order: 2;
}

/* ── 크리에이터 상태 — 모바일 기본 세로 배치 ── */
.mypage-creator-status-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mypage-creator-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mypage-creator-top-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.mypage-creator-role-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 12px;
}

.mypage-creator-desc {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.mypage-creator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* PC — 크리에이터 신청 상태 레이아웃 */
@media (min-width: 769px) {
  #mypageCreatorStatusSection.mypage-panel {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 12px;
  }

  #mypageCreatorStatusSection .mypage-panel-head {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  /* wrapper — display:contents 제거, 겹침 방지 */
  #mypageCreatorStatusSection .mypage-creator-status {
    grid-column: 1;
    grid-row: 2;
    display: block;
    min-width: 0;
  }

  /* 신청 전(none) — 좌: 등급·설명 / 우: 안내·버튼 */
  #mypageCreatorStatusSection .mypage-creator-status-inner:not(.mypage-creator-status-inner--applied) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas:
      ". c-desc"
      "c-top c-actions";
    gap: 12px 28px;
    align-items: center;
  }

  /* 신청 후(applied) — 메타·버튼 2열, 관리자 메시지 하단 */
  #mypageCreatorStatusSection .mypage-creator-status-inner--applied {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas:
      "c-top c-desc"
      "c-meta c-actions"
      "c-msg c-msg";
    gap: 8px 28px;
    align-items: start;
  }

  #mypageCreatorStatusSection .mypage-creator-top {
    grid-area: c-top;
    margin: 0;
  }

  #mypageCreatorStatusSection .mypage-creator-desc {
    grid-area: c-desc;
    margin: 0;
    text-align: right;
    align-self: center;
    line-height: 1.4;
    font-size: 0.74rem;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-grid {
    grid-area: c-meta;
    gap: 4px 22px;
    margin: 0;
    align-self: start;
  }

  #mypageCreatorStatusSection .mypage-creator-actions {
    grid-area: c-actions;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-self: center;
  }

  #mypageCreatorStatusSection .mypage-workflow-msg--creator {
    grid-area: c-msg;
    width: 100%;
    margin: 2px 0 0;
  }

  /* 메타 — 라벨·값 한 줄 */
  #mypageCreatorStatusSection .mypage-creator-meta-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 24px;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-label {
    flex: 0 0 auto;
    min-width: 4.8em;
    white-space: nowrap;
    font-size: 0.7rem;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-value--badge {
    flex: 0 0 auto;
    align-self: center;
  }
}

@media (min-width: 769px) {
  .mypage-workflow-filters-select-wrap {
    display: none;
  }

  .mypage-workflow-filters--chips {
    display: flex;
  }
}

/* ── 설정 (사이드) ── */
.mypage-panel--side {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}

.mypage-side-card.mypage-panel--side {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mypage-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
}
.mypage-accordion-trigger .mypage-panel-title { pointer-events: none; }

/* 설정 아코디언 — 제목 앞 톱니바퀴 아이콘 */
.mypage-accordion-title-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mypage-accordion-lead-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold, #f2c14e);
  opacity: 0.88;
  line-height: 0;
}

.mypage-accordion-lead-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.mypage-accordion-chevron {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease;
}

.mypage-accordion-body { padding: 0 20px 18px; }
.mypage-accordion-body:not(.is-open) { display: none; }

@media (min-width: 769px) {
  .mypage-accordion-chevron { display: none; }
  .mypage-accordion-body {
    display: block !important;
    padding-top: 0;
  }
  .mypage-accordion-trigger {
    cursor: default;
    padding-bottom: 12px;
  }
}

.mypage-settings-list { display: flex; flex-direction: column; gap: 20px; }

.mypage-settings-group {
  padding-bottom: 4px;
}
.mypage-settings-group + .mypage-settings-group {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mypage-settings-group-title {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mypage-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  min-height: 40px;
}
.mypage-setting-row + .mypage-setting-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mypage-settings-account {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mypage-setting-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

/* 설정 인라인 드롭다운 — 언어·자막 (헤더/상세뷰와 동일 UX, 사이드바 내 배치) */
.mypage-setting-dropdown {
  position: relative;
  flex-shrink: 0;
}

.mypage-setting-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 88px;
  max-width: 148px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mypage-setting-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

/* 자막 트리거 — 상세뷰 md-sub-dropdown-trigger 톤 */
.mypage-setting-dropdown-trigger--subtitle {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--accent-gold);
  max-width: 156px;
}

.mypage-setting-dropdown-trigger--subtitle.is-inactive {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.mypage-setting-dropdown-caret {
  font-size: 0.55rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.mypage-setting-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 120;
  min-width: 112px;
  padding: 4px 0;
  background: rgba(15, 16, 21, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.mypage-setting-dropdown-menu--subtitle {
  min-width: 124px;
}

.mypage-setting-dropdown-menu.show {
  display: block;
}

.mypage-setting-dropdown-item {
  display: block;
  width: 100%;
  padding: 7px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.mypage-setting-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.mypage-setting-dropdown-item.active {
  color: var(--accent-gold);
  font-weight: 700;
}

.mypage-setting-dropdown-menu--subtitle .mypage-setting-dropdown-item:hover {
  background: rgba(245, 158, 11, 0.12);
}

.mypage-setting-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 0.72rem;
  padding: 6px 10px;
  max-width: 140px;
}

.mypage-setting-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 0;
  cursor: pointer;
  box-sizing: border-box;
}
.mypage-setting-link + .mypage-setting-link {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mypage-setting-link:hover { color: var(--accent-gold); }
.mypage-setting-link--danger { color: rgba(252, 165, 165, 0.85); }
.mypage-setting-link--danger:hover { color: #ef4444; }

/* 토글 스위치 */
.mypage-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.mypage-toggle input { opacity: 0; width: 0; height: 0; }
.mypage-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s ease;
}
.mypage-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
}
.mypage-toggle input:checked + .mypage-toggle-slider { background: rgba(234, 88, 12, 0.55); }
.mypage-toggle input:checked + .mypage-toggle-slider::before { transform: translateX(18px); }

/* ── 빠른 링크 ── */
#mypageQuickLinksSection .mypage-accordion-body {
  padding-top: 0;
}

#mypageQuickLinksSection .mypage-quick-links {
  padding: 0 0 12px;
  width: 100%;
  box-sizing: border-box;
}

#mypageQuickLinksSection.mypage-side-card {
  margin-top: 0;
}

.mypage-quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* header nav 숨김 전역 규칙(common.css)과 분리 — 항상 세로 목록 표시 */
  align-items: stretch;
}

.mypage-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.015);
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 12px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mypage-quick-link:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.04);
}
.mypage-quick-link-arrow { font-size: 0.72rem; opacity: 0.4; color: rgba(255, 255, 255, 0.5); }

/* ── 모바일 반응형 ── */
@media (max-width: 768px) {
  body[data-page="mypage"] .portal-layout-container.mypage-page,
  body[data-page="mypage"] .portal-layout-container.mypage-page-layout {
    margin-top: 96px;
    margin-bottom: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body[data-page="mypage"] .mypage-page-shell { gap: 16px; }

  body[data-page="mypage"] #mypageHeroBanner.section-space,
  .mypage-hero {
    padding: 18px !important;
  }

  .mypage-hero-title { font-size: 1.5rem; }

  .mypage-hero-desc { font-size: 0.88rem; }

  .mypage-hero-eyebrow { font-size: 0.64rem; }

  .mypage-profile-card {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .mypage-profile-top,
  .mypage-profile-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mypage-profile-name-row { justify-content: center; }
  .mypage-profile-badges { justify-content: center; }
  .mypage-profile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    justify-content: stretch;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mypage-profile-actions .mypage-btn,
  .mypage-profile-actions .mypage-btn--profile {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.72rem;
    gap: 5px;
    letter-spacing: -0.02em;
  }
  /* 로그아웃 — 짧은 라벨만큼 너비, 앞 두 버튼에 공간 양보 */
  .mypage-profile-actions .mypage-btn--profile:last-child {
    width: auto;
    min-width: 4.6rem;
    padding: 10px 11px;
    font-size: 0.7rem;
  }
  .mypage-profile-actions .mypage-btn--profile:not(:last-child) .mypage-btn-icon svg {
    width: 13px;
    height: 13px;
  }

  .mypage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* 모바일 KPI — 2행: [아이콘+숫자·제목] / [부가정보 우측] */
  .mypage-summary-card {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 5px;
    padding: 11px 12px;
    min-height: 60px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }

  /* 모바일 — copy 래퍼 해제, main·desc를 그리드 셀에 직접 배치 */
  .mypage-summary-copy {
    display: contents;
  }

  .mypage-summary-icon-box {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .mypage-summary-main {
    grid-column: 2;
    grid-row: 1;
    align-items: baseline;
  }

  .mypage-summary-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.58);
    text-align: right;
  }

  .mypage-summary-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  }

  .mypage-summary-count {
    font-size: 1.2rem;
  }

  .mypage-summary-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.95);
  }

  /* 아이콘 박스 — 모바일 은은한 톤 */
  .mypage-summary-icon-box--bookmark {
    background: rgba(232, 149, 40, 0.11);
    border-color: rgba(232, 149, 40, 0.24);
  }
  .mypage-summary-icon-box--continue {
    background: rgba(255, 120, 60, 0.09);
    border-color: rgba(255, 120, 60, 0.22);
  }
  .mypage-summary-icon-box--liked {
    background: rgba(255, 90, 120, 0.09);
    border-color: rgba(255, 90, 120, 0.22);
  }
  .mypage-summary-icon-box--follow {
    background: rgba(120, 160, 255, 0.09);
    border-color: rgba(120, 160, 255, 0.22);
  }
  .mypage-summary-icon-box--notify {
    background: rgba(16, 185, 129, 0.09);
    border-color: rgba(16, 185, 129, 0.22);
  }
  .mypage-summary-icon-box--submit {
    background: rgba(6, 182, 212, 0.09);
    border-color: rgba(6, 182, 212, 0.22);
  }

  .mypage-bmk-icon--kpi svg {
    width: 17px;
    height: 19px;
  }

  .mypage-body-layout { grid-template-columns: 1fr; gap: 16px; }
  .mypage-side { position: static; }

  /* 팔로우한 크리에이터 — 모바일 1열 리스트형 */
  #mypageFollowingSection .mypage-panel-head--split {
    margin-bottom: 12px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  #mypageFollowingSection .mypage-panel-title {
    flex: 1;
    min-width: 0;
    font-size: 0.94rem;
  }

  #mypageFollowingSection .mypage-link-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .mypage-following-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  #mypageFollowingSection.mypage-panel {
    overflow: visible;
    padding-left: 14px;
    padding-right: 14px;
  }

  .mypage-following-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 12px 12px;
    border-radius: 14px;
    overflow: visible;
    box-sizing: border-box;
  }

  .mypage-following-card:hover {
    transform: none;
  }

  /* PC 그리드 area 잔여값 제거 — flex 레이아웃 간섭 방지 */
  .mypage-following-avatar,
  .mypage-following-name,
  .mypage-following-meta,
  .mypage-following-badge {
    grid-area: unset;
  }

  .mypage-following-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
    overflow: hidden;
  }

  .mypage-following-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .mypage-following-name {
    font-size: 0.84rem;
    line-height: 1.25;
    width: 100%;
  }

  /* 모바일 — 업데이트·설명 문구 (PC용 메타는 숨김) */
  .mypage-following-meta--pc {
    display: none;
  }

  .mypage-following-meta--mo {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .mypage-following-badge {
    flex: 0 0 auto;
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 4px 8px;
    line-height: 1.2;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    white-space: nowrap;
    align-self: center;
    box-sizing: border-box;
  }

  /* 내가 남긴 평점 — 모바일 2행 그리드 + 카드·텍스트 약 10% 확대 */
  .mypage-ratings-list {
    gap: 11px;
  }

  .mypage-rating-row {
    grid-template-columns: 53px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 9px 11px;
    align-items: start;
    padding: 13px 15px;
  }

  .mypage-rating-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
    align-self: start;
  }

  .mypage-rating-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .mypage-rating-title {
    font-size: 0.95rem;
  }

  .mypage-rating-meta {
    font-size: 0.81rem;
  }

  .mypage-rating-review {
    font-size: 0.75rem;
  }

  .mypage-rating-meta,
  .mypage-rating-review {
    white-space: normal;
  }

  .mypage-rating-extra {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin-right: 0;
    padding-right: 0;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.79rem;
  }

  .mypage-rating-extra-item {
    flex: 0 1 auto;
  }

  /* 작품 등록 — 모바일 1열 + 카드·텍스트 약 10% 확대 */
  .mypage-submissions-list {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .mypage-submission-row {
    min-height: 0;
    padding: 13px 15px;
    gap: 5px;
  }

  .mypage-submission-meta {
    font-size: 0.792rem;
  }

  .mypage-submission-title {
    white-space: normal;
    font-size: 0.924rem;
  }

  .mypage-submission-series-ep--inline {
    font-size: 0.858rem;
  }

  .mypage-submission-episode-label {
    font-size: 0.792rem;
  }

  .mypage-submission-episode-title {
    font-size: 0.858rem;
  }

  .mypage-submission-date {
    font-size: 0.748rem;
  }

  .mypage-submission-status {
    font-size: 0.715rem;
    padding: 4px 10px;
  }

  .mypage-submission-actions .mypage-btn--xs,
  .mypage-creator-actions .mypage-btn,
  .mypage-revision-modal-foot .mypage-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  body[data-page="mypage"] .mypage-load-more-wrap {
    margin-top: 20px;
  }

  body[data-page="mypage"] .mypage-load-more-btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  /* 모바일 — PC 인라인 에피소드 숨기고 스택 줄 표시 */
  .mypage-submission-meta,
  .mypage-submission-episode-title {
    white-space: normal;
  }

  .mypage-submission-series-ep--inline {
    display: none;
  }

  .mypage-submission-episode.mypage-submission-episode--stacked {
    display: flex;
  }

  /* 모바일 — 액션 버튼 2열 배치 */
  .mypage-submission-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .mypage-submission-actions {
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: 0;
  }

  .mypage-submission-actions .mypage-btn--xs {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .mypage-creator-meta-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  /* 크리에이터 신청 — 메타 라벨·값 한 줄 */
  #mypageCreatorStatusSection .mypage-creator-status-inner--applied {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-label {
    flex: 0 0 auto;
    min-width: 4.8em;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    font-size: 0.8125rem;
  }

  #mypageCreatorStatusSection .mypage-creator-meta-value--badge {
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* 작품 등록 — 요약 chip 한 줄 가로 스크롤 */
  .mypage-workflow-summary {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 10px;
    padding-bottom: 2px;
  }

  .mypage-workflow-summary::-webkit-scrollbar {
    display: none;
  }

  .mypage-workflow-stat {
    flex-shrink: 0;
  }

  /* 작품 등록 — 필터 chip 숨기고 드롭다운 표시 */
  .mypage-workflow-filters--chips {
    display: none;
  }

  .mypage-workflow-filters-select-wrap {
    display: block;
  }

  .mypage-creator-actions .mypage-btn {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .mypage-revision-modal-foot {
    flex-direction: column;
  }

  .mypage-revision-modal-foot .mypage-btn {
    width: 100%;
  }

  .mypage-accordion-trigger { cursor: pointer; }
}

/* ═══════════════════════════════════════════════════════════
   시각 개선 v2 — 마이페이지 개인 대시보드 (기능·레이아웃 유지)
   ═══════════════════════════════════════════════════════════ */

/* ── 히어로 — 얇은 타이틀/요약 (패딩·타이포는 보관함 library-hero와 동일 비율) ── */
body[data-page="mypage"] #mypageHeroBanner.section-space.mypage-hero {
  padding: 28px 32px !important;
}

body[data-page="mypage"] .mypage-hero {
  min-height: 0 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
}

body[data-page="mypage"] .mypage-hero-bg {
  display: none;
}

body[data-page="mypage"] .mypage-hero-overlay {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.04) 0%, transparent 55%);
  opacity: 0.85;
}

body[data-page="mypage"] .mypage-hero-accent {
  height: 1px;
  opacity: 0.45;
}

body[data-page="mypage"] .mypage-hero-desc {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

body[data-page="mypage"] .mypage-hero-title {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffd175 0%, #e89528 50%, #b55a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

body[data-page="mypage"] .mypage-hero-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 149, 40, 0.85);
}

body[data-page="mypage"] .mypage-hero-copy {
  gap: 5px;
}

body[data-page="mypage"] .mypage-summary-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.035) 100%);
}

body[data-page="mypage"] #mypageSettingsSection .mypage-toggle input:checked + .mypage-toggle-slider {
  background: rgba(45, 212, 191, 0.5);
}

body[data-page="mypage"] .mypage-rating-thumb {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body[data-page="mypage"] .mypage-rating-meta strong {
  color: #fcd34d;
}

body[data-page="mypage"] .mypage-quick-link {
  position: relative;
  padding-left: 22px;
}

body[data-page="mypage"] .mypage-quick-link::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(255, 210, 120, 0.45);
}

body[data-page="mypage"] .mypage-workflow-empty-desc {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
}

body[data-page="mypage"] .mypage-panel-head .mypage-panel-title {
  color: rgba(255, 255, 255, 0.94);
}

body[data-page="mypage"] .mypage-panel-desc {
  color: rgba(255, 255, 255, 0.52);
}

@media (min-width: 769px) {
  body[data-page="mypage"] .mypage-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 20px 24px;
    box-sizing: border-box;
  }

  body[data-page="mypage"] .mypage-hero-copy {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
  }
}

body[data-page="mypage"] .mypage-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  max-width: 100%;
}

@media (min-width: 769px) {
  body[data-page="mypage"] .mypage-hero-chips {
    flex: 0 1 auto;
    justify-content: flex-end;
    align-self: flex-start;
    margin-top: 0;
    padding-top: 2px;
    max-width: min(100%, 420px);
  }
}

body[data-page="mypage"] .mypage-hero-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

body[data-page="mypage"] .mypage-hero-chip:hover {
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

body[data-page="mypage"] .mypage-hero-chip--amber {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

body[data-page="mypage"] .mypage-hero-chip--teal {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(45, 212, 191, 0.08);
}

body[data-page="mypage"] .mypage-hero-chip--cyan {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.08);
}

body[data-page="mypage"] .mypage-hero-chip--orange {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.1);
  color: #fff3d6;
}

/* ── 프로필 hub — hero보다 차분한 중심 카드 ── */
body[data-page="mypage"] .mypage-profile-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0c0b0e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.32);
  padding: 18px 22px;
}

body[data-page="mypage"] .mypage-profile-actions {
  gap: 8px;
}

body[data-page="mypage"] .mypage-profile-actions .mypage-btn--profile {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.78rem;
}

body[data-page="mypage"] .mypage-profile-avatar {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 4px 16px rgba(0, 0, 0, 0.35);
}

body[data-page="mypage"] .mypage-profile-tier {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
  color: #fff3d6;
}

body[data-page="mypage"] .mypage-profile-badge {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

body[data-page="mypage"] .mypage-profile-completion {
  margin-top: 8px;
  max-width: 200px;
}

body[data-page="mypage"] .mypage-profile-completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

body[data-page="mypage"] .mypage-profile-completion-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.52);
}

body[data-page="mypage"] .mypage-profile-completion-pct {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 210, 120, 0.95);
}

body[data-page="mypage"] .mypage-profile-completion-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body[data-page="mypage"] .mypage-profile-completion-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.55) 0%, #f2c14e 100%);
}

body[data-page="mypage"] .mypage-btn--profile.mypage-btn--accent {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
}

/* ── KPI 숫자 카드 ── */
body[data-page="mypage"] .mypage-summary-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.025) 100%);
  border-color: rgba(255, 255, 255, 0.09);
}

body[data-page="mypage"] .mypage-summary-count {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body[data-page="mypage"] .mypage-summary-card--bookmark:hover { border-color: rgba(245, 158, 11, 0.35); }
body[data-page="mypage"] .mypage-summary-card--continue:hover { border-color: rgba(251, 146, 60, 0.35); }
body[data-page="mypage"] .mypage-summary-card--liked:hover { border-color: rgba(244, 114, 182, 0.35); }
body[data-page="mypage"] .mypage-summary-card--notify:hover { border-color: rgba(56, 189, 248, 0.35); }
body[data-page="mypage"] .mypage-summary-card--follow:hover { border-color: rgba(129, 140, 248, 0.35); }
body[data-page="mypage"] .mypage-summary-card--submit:hover { border-color: rgba(45, 212, 191, 0.35); }

body[data-page="mypage"] .mypage-summary-desc {
  color: rgba(255, 255, 255, 0.55);
}

/* ── 섹션 패널 tint ── */
body[data-page="mypage"] .mypage-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 20px 22px;
}

/* 사이드(설정·빠른 링크) — 아코디언 내부 패딩만 사용, 이중 여백 방지 */
body[data-page="mypage"] .mypage-panel.mypage-panel--side {
  padding: 0;
}

body[data-page="mypage"] #mypageRecentSection {
  border-color: rgba(56, 189, 248, 0.12);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, rgba(255, 255, 255, 0.018) 100%);
}

body[data-page="mypage"] #mypageRatingsSection {
  border-color: rgba(192, 132, 252, 0.12);
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.04) 0%, rgba(255, 255, 255, 0.018) 100%);
}

body[data-page="mypage"] #mypageFollowingSection {
  border-color: rgba(45, 212, 191, 0.14);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.045) 0%, rgba(255, 255, 255, 0.018) 100%);
}

body[data-page="mypage"] #mypageSubmissionsSection {
  border-color: rgba(124, 58, 237, 0.12);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(245, 158, 11, 0.025) 100%);
}

body[data-page="mypage"] #mypageCreatorStatusSection {
  border-color: rgba(245, 158, 11, 0.14);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.045) 0%, rgba(255, 255, 255, 0.018) 100%);
}

body[data-page="mypage"] #mypageSettingsSection.mypage-side-card {
  border-color: rgba(56, 189, 248, 0.14);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.045) 0%, rgba(255, 255, 255, 0.022) 100%);
  border-top: 3px solid rgba(56, 189, 248, 0.35);
}

body[data-page="mypage"] #mypageQuickLinksSection.mypage-side-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.018) 100%);
}

body[data-page="mypage"] .mypage-main {
  gap: 20px;
}

body[data-page="mypage"] .mypage-page-shell,
body[data-page="mypage"] .mypage-shell {
  gap: 0;
}

body[data-page="mypage"] #mypageHeroBanner {
  margin-bottom: 16px;
}

body[data-page="mypage"] #mypageProfileSection {
  margin-bottom: 14px;
}

body[data-page="mypage"] #mypageSummarySection {
  margin-bottom: 20px;
}

body[data-page="mypage"] .mypage-summary-grid {
  gap: 10px;
}

/* ── 최근 활동 row ── */
body[data-page="mypage"] .mypage-activity-row {
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body[data-page="mypage"] .mypage-activity-body {
  align-items: flex-start;
}

body[data-page="mypage"] .mypage-activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

body[data-page="mypage"] .mypage-activity-row:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* flex column 자식은 기본 stretch → pill 배경이 가로 전체로 늘어나 progress bar처럼 보임 — 제거 */
body[data-page="mypage"] .mypage-activity-time {
  display: block;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin-top: 3px;
  padding: 0;
  border-radius: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.42);
  background: none;
}

body[data-page="mypage"] .mypage-activity-time.lang-pill,
body[data-page="mypage"] .mypage-activity-row::before,
body[data-page="mypage"] .mypage-activity-row::after {
  display: none;
  content: none;
}

body[data-page="mypage"] .mypage-activity-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

body[data-page="mypage"] .mypage-activity-thumb--placeholder {
  background: linear-gradient(145deg, rgba(30, 35, 48, 0.9) 0%, rgba(124, 58, 237, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
}

body[data-page="mypage"] .mypage-activity-thumb-fallback-icon {
  display: block;
  opacity: 0.75;
}

body[data-page="mypage"] .mypage-activity-icon--type-workflow { color: #c4b5fd; background: rgba(139, 92, 246, 0.14); }
body[data-page="mypage"] .mypage-activity-icon--type-watch { color: #93c5fd; background: rgba(59, 130, 246, 0.14); }
body[data-page="mypage"] .mypage-activity-icon--type-bookmark { color: #fcd34d; background: rgba(245, 158, 11, 0.14); }
body[data-page="mypage"] .mypage-activity-icon--type-like { color: #fda4af; background: rgba(244, 114, 182, 0.14); }
body[data-page="mypage"] .mypage-activity-icon--type-follow { color: #5eead4; background: rgba(45, 212, 191, 0.14); }
body[data-page="mypage"] .mypage-activity-icon--type-rating { color: #67e8f9; background: rgba(34, 211, 238, 0.14); }
body[data-page="mypage"] .mypage-activity-icon--type-alert { color: #fde047; background: rgba(234, 179, 8, 0.14); }

/* ── 빠른 링크 ── */
body[data-page="mypage"] .mypage-quick-link:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 210, 120, 0.2);
}

body[data-page="mypage"] .mypage-quick-link:hover .mypage-quick-link-arrow {
  opacity: 0.85;
  color: rgba(255, 210, 120, 0.9);
}

/* ── 팔로우 크리에이터 카드 ── */
body[data-page="mypage"] .mypage-following-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(20, 184, 166, 0.14);
}

body[data-page="mypage"] .mypage-following-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(255, 255, 255, 0.055);
}

body[data-page="mypage"] .mypage-following-avatar {
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25);
}

/* ── 제출작 · 크리에이터 신청 ── */
body[data-page="mypage"] .mypage-submission-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

body[data-page="mypage"] .mypage-workflow-msg {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.18);
}

body[data-page="mypage"] .mypage-creator-status-card {
  border-color: rgba(245, 158, 11, 0.16);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

body[data-page="mypage"] .mypage-btn--new-submit {
  border-color: rgba(255, 180, 70, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.14);
}

/* ── 빈 상태 ── */
body[data-page="mypage"] .mypage-workflow-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  padding: 18px 16px;
}

body[data-page="mypage"] .mypage-workflow-empty-title {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
  body[data-page="mypage"] .portal-layout-container.mypage-page,
  body[data-page="mypage"] .portal-layout-container.mypage-page-layout {
    margin-top: var(--mypage-mobile-header-offset);
    margin-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  body[data-page="mypage"] .mypage-profile-completion {
    max-width: 100%;
  }

  body[data-page="mypage"] .mypage-hero-chips {
    width: 100%;
    margin-top: 10px;
  }

  body[data-page="mypage"] #mypageHeroBanner.section-space.mypage-hero,
  body[data-page="mypage"] .mypage-hero {
    padding: 18px 20px !important;
  }

  body[data-page="mypage"] .mypage-hero-title {
    font-size: 1.5rem;
  }

  body[data-page="mypage"] .mypage-hero-desc {
    font-size: 0.88rem;
  }

  body[data-page="mypage"] .mypage-hero-eyebrow {
    font-size: 0.64rem;
  }

  body[data-page="mypage"] #mypageHeroBanner {
    margin-bottom: 12px;
  }

  body[data-page="mypage"] #mypageProfileSection {
    margin-bottom: 12px;
  }

  /* v2 전역 프로필 버튼 패딩 — 모바일 그리드 레이아웃 우선 */
  body[data-page="mypage"] .mypage-profile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
  }

  body[data-page="mypage"] .mypage-profile-actions .mypage-btn--profile {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  body[data-page="mypage"] .mypage-profile-actions .mypage-btn--profile:last-child {
    width: auto;
    min-width: 4.6rem;
    padding: 10px 11px;
    font-size: 0.7rem;
  }

  /* 빠른 링크 — 모바일 가로 폭 확대 (아코디언 이중 padding 축소) */
  body[data-page="mypage"] #mypageQuickLinksSection .mypage-accordion-trigger {
    padding: 16px 12px;
  }

  body[data-page="mypage"] #mypageQuickLinksSection .mypage-accordion-body {
    padding: 0 10px 14px;
  }

  body[data-page="mypage"] #mypageQuickLinksSection .mypage-quick-links {
    padding: 0;
    gap: 6px;
  }

  body[data-page="mypage"] #mypageQuickLinksSection .mypage-quick-link {
    width: 100%;
    padding: 12px 12px 12px 20px;
    box-sizing: border-box;
  }

  body[data-page="mypage"] #mypageQuickLinksSection .mypage-quick-link::before {
    left: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PC 본문 110% — 마이페이지 본문만 (모바일 제외)
   - zoom 1.1: px/rem 폰트·아이콘·이미지·카드 높이 등 일괄 10% 확대
   - max-width를 1760/1.1 로 두어 확대 후 시각 폭 ≈ 헤더(--max-container)와 정렬
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  body[data-page="mypage"] .portal-layout-container.mypage-page,
  body[data-page="mypage"] .portal-layout-container.mypage-page-layout {
    max-width: calc(var(--max-container, 1760px) / 1.1) !important;
    padding-left: calc(24px / 1.1) !important;
    padding-right: calc(24px / 1.1) !important;
    zoom: 1.1;
  }
}

/* zoom 미지원 브라우저 — 동일 비율 transform (하단 여백 보정) */
@supports not (zoom: 1) {
  @media (min-width: 769px) {
    body[data-page="mypage"] .portal-layout-container.mypage-page.mypage-page-layout {
      zoom: normal;
      transform: scale(1.1);
      transform-origin: top center;
      width: calc(100% / 1.1);
      max-width: calc(var(--max-container, 1760px) / 1.1) !important;
      margin-left: auto !important;
      margin-right: auto !important;
      margin-bottom: calc(48px + 12vh) !important;
    }
  }
}

/* ── 크리에이터 프로필 모달 — footer 아래 텍스트 노출 방지 (mypage 전용 안전망) ── */
body[data-page="mypage"] .creators-profile-backdrop:not(.show) {
  position: fixed !important;
  inset: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
  display: flex !important;
  height: 0 !important;
  overflow: hidden !important;
}

body[data-page="mypage"] .creators-profile-backdrop:not(.show) * {
  visibility: hidden !important;
}

