/* ── 내 프로필 · 환경설정 창(#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; }
/* 넓은 화면(#1898) — [내 AI 계정]·[외부 서비스]는 '이름 · 배지 · 버튼' 한 줄짜리 행을 쓴다. 520px 에서는
   그 줄이 접혀 버튼이 이름 아래로 내려가고, 그러면 '무엇을 누르면 되나'가 안 읽힌다. 본문 폭을 다 준다. */
.v2me-pane-wide { max-width: none; }
/* 관리탭에서 데려온 카드(.card)를 이 창의 리듬에 맞춘다 — 카드 자체는 그쪽 소유라 여기서 자리만 좁힌다. */
.v2me-pane .card { padding: 16px 18px; border-radius: 12px; }
.v2me-pane .card-head h3, .v2me-pane .card h2 { font-size: 14px; }
.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); }

/* ── 알림(#1842) — 한 줄 = [체크박스 | 제목·설명]. **누르는 순간 저장된다**(저장 버튼 없음).
   커스텀 토글을 만들지 않고 네이티브 체크박스를 쓴다 — 디자인 시스템이 부품 언어를 하나로 묶는다.
   행 전체가 <label> 이라 설명 줄을 눌러도 켜지고 꺼진다(누를 수 있는 면이 넓어야 한다). */
.v2me-sw-list { display: flex; flex-direction: column; gap: 10px; }
.v2me-sw { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer; }
.v2me-sw:hover { border-color: var(--blue); background: var(--bg-tint); }
.v2me-sw:focus-within { border-color: var(--blue); }
.v2me-sw-in { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.v2me-sw-in:disabled { cursor: default; opacity: .55; }
.v2me-sw-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v2me-sw-l { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.v2me-sw-d { font-size: 12.5px; color: var(--ink-sub); line-height: 1.55; }

/* ── 좁은 화면 — 목록이 위로 눕는다(기능은 하나도 접지 않는다). ── */
@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; }
}

/* ══════════ [자동으로 하는 일] 탭 (#1898) ══════════
   구조: 위 큰 칸 세 개(순간) → 고른 순간의 상세. 목록이 아니라 '고르기'라 칸을 크고 눌러지게 둔다.
   ⚠ 이 탭의 말투 규약 — 화면 문자열에 개발자 어휘(SessionStart·주입·너지·훅)를 쓰지 않는다(me-auto.ts 머리 참고). */
.v2a-who { margin: 0 0 14px; font-size: 12.4px; color: var(--ink-sub); }
.v2a-ro { margin: 0 0 12px; font-size: 12.4px; color: var(--muted-head); background: var(--bg-punch);
  border-radius: 9px; padding: 8px 12px; }

/* 세 칸 — 상태를 보여주는 동시에 아래 내용을 바꾸는 스위처. */
.v2a-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.v2a-tile { display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 13px; background: var(--bg); padding: 13px 14px;
  font: inherit; color: var(--ink); transition: border-color .14s, background .14s; }
.v2a-tile:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.v2a-tile.on { border-color: var(--blue); background: var(--bg-punch); }
.v2a-tile-n { font-size: 10.4px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.v2a-tile.on .v2a-tile-n { color: var(--blue); }
.v2a-tile-t { font-size: 13.8px; font-weight: 700; letter-spacing: -.01em; }
.v2a-tile-s { font-size: 11.6px; color: var(--muted-head); line-height: 1.5; }
.v2a-tile-st { margin-top: 5px; }

/* 상태 칩 — '켜짐/꺼짐'을 색과 점으로 함께 말한다(색만으로 말하지 않는다). */
.v2a-st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.2px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); }
.v2a-st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.v2a-st.off { background: var(--line); color: var(--muted-head); }

/* 고른 순간의 상세 */
.v2a-detail { margin-top: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); padding: 16px 17px; }
.v2a-d-h { display: flex; align-items: flex-start; gap: 12px; }
.v2a-d-h > div:first-child { flex: 1; min-width: 0; }
.v2a-d-t { font-size: 14.4px; font-weight: 700; }
.v2a-d-s { margin: 4px 0 0; font-size: 12.4px; color: var(--ink-sub); line-height: 1.6; }

/* 스위치 — 창 안 어디서나 같은 물건(계정·보안 탭의 체크박스와 달리 이 탭은 즉시 저장이라 스위치다). */
.v2a-sw { flex: none; width: 38px; height: 22px; border: 0; padding: 0; border-radius: 999px;
  background: var(--blue-fill); position: relative; cursor: pointer; transition: background .15s; }
.v2a-sw::after { content: ""; position: absolute; top: 2px; left: 18px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.v2a-sw.off { background: var(--muted); opacity: .45; }
.v2a-sw.off::after { left: 2px; }
.v2a-sw.ro { cursor: default; }

/* 메모 한 덩어리 — 요약이 아니라 실제 문장을 보여주되 아래를 흐려 길이를 가둔다. */
.v2a-memo { margin-top: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); padding: 12px 14px; }
.v2a-memo-h { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.v2a-memo-t { font-size: 13px; font-weight: 700; }
.v2a-memo-m { font-size: 11.5px; color: var(--muted-head); font-variant-numeric: tabular-nums; }
.v2a-memo-a { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.v2a-memo-b { position: relative; max-height: 116px; overflow: hidden; white-space: pre-wrap;
  font-size: 12.5px; line-height: 1.82; color: var(--ink-sub); }
.v2a-memo-b::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42px;
  background: linear-gradient(transparent, var(--bg-tint)); }
.v2a-slot-h { margin: 9px 0 0; font-size: 11.6px; color: var(--muted-head); }
.v2a-ico { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg);
  color: var(--ink-sub); font-size: 10.5px; line-height: 1; cursor: pointer; padding: 0; }
.v2a-ico:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.v2a-ico:disabled { opacity: .35; cursor: default; }
.v2a-del { color: var(--muted-head); }
.v2a-del:hover { color: var(--danger-ink); }

/* 한 줄짜리 항목(설명서·문구·자동 업데이트) */
.v2a-mini { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-row); }
.v2a-mini-m { flex: 1; min-width: 0; }
.v2a-mini-t { font-size: 12.9px; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.v2a-mini-s { font-size: 11.6px; color: var(--muted-head); line-height: 1.5; margin-top: 2px; }
.v2a-tag { font-size: 10.4px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  background: var(--bg-punch); color: var(--blue); }
.v2a-tag.lock { background: var(--line); color: var(--muted-head); }
.v2a-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.v2a-foot { margin-top: 16px; padding-top: 4px; }
.v2a-more { margin-top: 12px; }

/* 개발자용 — 접힘이 기본. 폴더 경로·툴 이름처럼 사람 말로 못 옮기는 것만 여기 산다. */
.v2a-dev { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.v2a-dev summary { cursor: pointer; font-size: 12.3px; font-weight: 700; color: var(--ink-sub); list-style: none; }
.v2a-dev summary::-webkit-details-marker { display: none; }
.v2a-dev summary::before { content: "▸ "; }
.v2a-dev[open] summary::before { content: "▾ "; }
.v2a-dev-b { margin-top: 11px; }

/* 편집·읽기 창(오버레이 안) */
.v2a-editor, .v2a-read { max-width: 620px; }
.v2a-f { display: block; margin-bottom: 12px; }
.v2a-fl { display: block; font-size: 12.3px; font-weight: 700; color: var(--ink-sub); margin-bottom: 5px; }
.v2a-fh { margin: 7px 0 0; font-size: 11.7px; color: var(--muted-head); line-height: 1.6; }
.v2a-in { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px;
  font: inherit; font-size: 13px; background: var(--bg); color: var(--ink); }
.v2a-ta { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
  font: inherit; font-size: 13px; line-height: 1.8; background: var(--bg); color: var(--ink); resize: vertical; }
.v2a-in:focus-visible, .v2a-ta:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.v2a-editor-a { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.v2a-md { max-height: 420px; overflow: auto; font-size: 13px; }
.v2a-notice { max-height: 300px; overflow: auto; white-space: pre-wrap; font-size: 12.4px; line-height: 1.75;
  color: var(--ink-sub); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

@media (max-width: 760px) {
  .v2a-tiles { grid-template-columns: 1fr; }
}

/* 「이 닉네임을 내 이름으로 사용」(#1813) — 닉네임 칸 바로 아래 한 줄. 닉네임이 비면 흐리게 잠근다. */
.v2me-check{display:grid; grid-template-columns:auto 1fr; gap:2px 8px; align-items:center; margin:-4px 0 2px; cursor:pointer}
.v2me-check input{grid-row:1; margin:0}
.v2me-check > span{grid-column:2; font-size:13.5px; color:var(--ink)}
.v2me-check .v2me-check-d{grid-column:2; grid-row:2; font-size:12px; color:var(--muted); line-height:1.5}
.v2me-check.off{opacity:.5; cursor:default}
