/* ── 마이페이지 ──────────────────────────────────────────── */
.mypage-wrap {
  max-width: 640px;
  width: 100%;
  padding-bottom: 28px;
}
.mypage-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 4px 16px;
  border-bottom: 1px solid var(--border);
}
.mypage-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #171A20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  font-family: inherit;
}
.mypage-avatar:hover { filter: brightness(.98); }
.mypage-avatar img,
.menu-uavatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mypage-profile {
  min-width: 0;
  flex: 1;
}
.mypage-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.mypage-name {
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage-email {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage-location {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: none;
  background: var(--subtle);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ── 매너 온도 ───────────────────────────────────────────── */
.manner-box {
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.manner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.manner-title { font-size: 13px; font-weight: 800; }
.manner-score { font-size: 18px; font-weight: 900; color: #ff7e36; }
.manner-track {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.manner-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb15d, #ff7e36);
}

/* ── 액션 그리드 ─────────────────────────────────────────── */
.mypage-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 0;
}
.mypage-action {
  min-height: 76px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.mypage-action span:first-child { font-size: 22px; line-height: 1; }
.mypage-action .meta { color: var(--muted); font-size: 12px; font-weight: 800; }

/* ── 메뉴 섹션 ───────────────────────────────────────────── */
.mypage-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 8px -16px 0;
  padding: 0 16px;
}
.mypage-section-title {
  font-size: 13px;
  font-weight: 900;
  padding: 15px 0 7px;
}
.mypage-menu-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-top: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  padding: 0;
}
.mypage-menu-item:first-of-type { border-top: none; }
.mypage-menu-item .lead {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--subtle);
  flex-shrink: 0;
}
.mypage-menu-item .text { flex: 1; min-width: 0; font-weight: 700; }
.mypage-menu-item .meta { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ── 미니 아이템 목록 ────────────────────────────────────── */
.mypage-list { padding-bottom: 8px; }
.mypage-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.mypage-mini-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
  flex-shrink: 0;
}
.mypage-mini-info { flex: 1; min-width: 0; }
.mypage-mini-title {
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage-mini-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 16px 0;
}

/* ── 다크모드 ─────────────────────────────────────────────── */
[data-theme="dark"] .mypage-avatar { background: #d97706; }
[data-theme="dark"] .manner-track  { background: #303846; }
[data-theme="dark"] .manner-score  { color: #fbbf24; }
[data-theme="dark"] .manner-fill   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ── 반응형 ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .mypage-wrap { padding: 0 16px 24px; }
  .mypage-actions { gap: 6px; }
  .mypage-action { min-height: 70px; font-size: 11px; }
}
