/* ── 내 프로필 · 환경설정 창(#1843) ─────────────────────────────────────────────
   좌하단 [나] 행이 여는 오버레이. 슬랙 환경설정 문법 — 머리(누구로 있나) + [좌 목록 | 우 내용] 2단.
   색·간격·radius 는 전부 01-base.css 토큰. 다크는 토큰이 뒤집히므로 이 파일에 별도 분기가 없다.
   ───────────────────────────────────────────────────────────────────────── */
.v2me-back { position: fixed; inset: 0; z-index: 70; background: rgba(var(--shadow-ink), .38);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.v2me { display: flex; flex-direction: column; width: min(880px, 100%); height: min(620px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(var(--shadow-ink), .22); }

/* ── 머리 — 얼굴·이름·이메일. 저장하면 여기부터 바뀐다(바뀐 게 보여야 저장된 줄 안다). ── */
.v2me-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.v2me-h-ava { flex: none; display: inline-flex; }
.v2me-ava { width: 40px; height: 40px; border-radius: 50%; font-size: 15px; }
.v2me-h-txt { flex: 1; min-width: 0; }
.v2me-h-name { font-size: 15px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2me-h-sub { font-size: 12.5px; color: var(--muted-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2me-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; }
.v2me-x:hover { background: var(--bg-punch); color: var(--ink); }
.v2me-x-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ── 몸통 ── */
.v2me-body { flex: 1; min-height: 0; display: flex; }
.v2me-nav { flex: none; width: 194px; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px;
  border-right: 1px solid var(--line); background: var(--bg-tint); overflow-y: auto; }
.v2me-nav-b { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; min-height: 34px;
  border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-sub); cursor: pointer; text-align: left; }
.v2me-nav-b:hover { background: var(--bg); color: var(--ink); }
.v2me-nav-b.on { background: var(--bg-punch); color: var(--ink); }
.v2me-nav-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.v2me-nav-b.on .v2me-nav-ic { color: var(--blue); }
.v2me-nav-sp { flex: 1; min-height: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
/* 로그아웃 = 목록 맨 아래(슬랙과 같은 자리). 떠나는 일이라 위 항목들과 선으로 가른다(선은 위 여백이 그린다). */
.v2me-nav-out { color: var(--muted-head); }
.v2me-nav-out:hover { background: var(--danger-bg); color: var(--danger-ink); }

.v2me-cont { flex: 1; min-width: 0; overflow-y: auto; padding: 20px 24px 26px; }
.v2me-pane { max-width: 520px; }
.v2me-t { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.v2me-hint { margin: 6px 0 16px; font-size: 13px; color: var(--ink-sub); line-height: 1.55; }
.v2me-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-row); }
.v2me-status { font-size: 13px; font-weight: 600; color: var(--muted-head); }
.v2me-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2me .v2-theme { max-width: 300px; }

/* ── 온보딩에서 알려주신 것(#1843) — 리브가 알게 된 것을 되읽는 칸. ──
   내가 적는 칸들과 **면이 갈려야 한다**: 이건 내가 쓴 것이 아니라 대화에서 모인 것이고,
   아직 세션에 실리지도 않는다. 그래서 틴트 면 + 점선 없는 실선 테두리로 한 덩어리로 묶는다. */
.v2me-ob { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line-note); border-radius: 12px; background: var(--bg-note); }
.v2me-ob-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2me-ob-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; color: var(--ink-note); }
.v2me-ob-d { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-sub); line-height: 1.55; }
.v2me-ob-l { margin: 12px 0 0; display: flex; flex-direction: column; gap: 9px; }
.v2me-ob-r { display: flex; gap: 10px; align-items: baseline; }
.v2me-ob-r dt { flex: none; width: 132px; font-size: 12.5px; font-weight: 700; color: var(--muted-head); }
.v2me-ob-r dd { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.v2me-ob .btn { flex: none; }
/* 「내가 적는 것」 — 위 칸(모여 온 것)과 아래 폼(내가 쓰는 것)의 경계를 한 줄로 말한다. */
.v2me-k { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }

/* 더 자세한 설정 — 여기서 다 하지 않고 어디로 가면 되는지만 말하는 줄. */
.v2me-more-k { margin: 22px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.v2me-more { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.v2me-more:hover { border-color: var(--blue); background: var(--bg-tint); }
.v2me-more-t { flex: none; font-size: 13.5px; font-weight: 700; }
.v2me-more-d { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2me-more-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted-2); stroke-width: 1.8; stroke-linecap: round; }
.v2me-more:hover .v2me-more-ic { stroke: var(--blue); }

/* ── 좁은 화면 — 목록이 위로 눕는다(기능은 하나도 접지 않는다). ── */
@media (max-width: 760px) {
  .v2me-back { padding: 0; }
  .v2me { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .v2me-body { flex-direction: column; }
  /* 좁은 화면에선 목록이 가로로 눕는다. **감지 말고 접어 내린다**(wrap) — 가로 스크롤로 밀면 맨 끝의
     [로그아웃]이 화면 밖에 숨어 '모바일에서 기능이 사라진' 것이 된다. */
  .v2me-nav { width: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .v2me-nav-b { width: auto; flex: none; white-space: nowrap; }
  .v2me-nav-sp { display: none; }
  .v2me-cont { padding: 16px 16px 24px; }
  .v2me-ob-r { flex-direction: column; gap: 2px; }
  .v2me-ob-r dt { width: auto; }
}
