/* ─────────────────────────────────────────────────────────────────────────────
   47-v2-rail.css — 새 셸 **좌측 끝 레일**(#2016, 원준 2026-08-26 "안 1 · 슬랙 그대로" → 같은 날 2차 수정).

   레일은 사이드바보다 한 층 위다: **어느 워크스페이스의 · 어느 구역에 있는가**를 말한다.
   슬랙 데스크톱 좌측 탭 레일을 우리 토큰으로 옮겼다(헬프센터 스크린샷 2장 + 원준님 스크린샷 대조) —
    · 접힘(76px) = 아이콘 **위**(24px), 이름 **아래**(11.5px). 접혀도 이름이 남는 게 이 안의 요지.
      (#2016 은 68·20·10.5 였다 — #2061 원준님 "전체적으로 레일 사이즈가 너무 작다 · 폭 넓혀줘"로 한 단계 키웠다.
       슬랙 탭 레일이 ≈70·20·10.5 라 폭은 같은 급이었지만, 선 가늘고 글자가 흐려 작아 보였다.)
    · 펼침(232px) = 워크스페이스 문패 카드 + 가로 행(아이콘 · 이름 · 개수/배지).
    · 워크스페이스는 평상시 **타일 한 장 + 뒤에 겹친 타일(스택)**, 누르면 슬랙과 같은 흰 팝오버.
    · 톤 3단 — 레일 `--canvas` › 사이드바 › 본문. 새 색은 없다(전부 01-base 토큰).
    · 여닫는 단추는 레일에 **없다** — 창 맨 윗줄 맨 왼쪽(패널 아이콘) · 팝오버 마지막 행 · ⌘⇧S.

   ⚠ 이 레일은 걷을 수 있어도 **사이드바는 걷을 수 없다**(원준 2026-08-25) — 폭 손잡이만 남긴다.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── 그리드 — 열 정의는 40-v2.css 에 일곱 벌 있고 실제로 서는 건 `.rail-mode` 다(bootV2 가 늘 켠다).
      같은 명시도라 이 파일이 뒤에 오는 것으로 이긴다. 팝아웃 창(`.solo`)엔 레일이 없다. */
#v2-root { --v2-rail-w: 76px; }
#v2-root.rail-open { --v2-rail-w: 232px; }
#v2-root.rail-mode { grid-template-columns: var(--v2-rail-w) var(--v2-side-w) 6px minmax(0, 1fr) 6px var(--v2-aside-w); }
#v2-root.rail-mode.no-aside { grid-template-columns: var(--v2-rail-w) var(--v2-side-w) 6px minmax(0, 1fr) 0 0; }
#v2-root.rail-mode.solo { grid-template-columns: minmax(0, 1fr) 6px var(--v2-aside-w); }
#v2-root.rail-mode.solo.no-aside { grid-template-columns: minmax(0, 1fr) 0 0; }
@media (prefers-reduced-motion: no-preference) { #v2-root { transition: grid-template-columns 160ms ease; } }

.v2-rail { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--canvas); border-right: 1px solid var(--line); user-select: none; }
.v2-rail-top { flex: none; padding: 10px 8px 2px; }
.v2-rail-mid { flex: 1; min-height: 0; overflow: hidden auto; padding: 2px 0 6px; scrollbar-width: none; }
.v2-rail-mid::-webkit-scrollbar { width: 0; height: 0; }
.v2-rail-foot { flex: none; padding: 6px 0 8px; border-top: 1px solid var(--line-net); }
.v2-rail-hr { height: 1px; background: var(--line-net); margin: 8px 14px; }
.v2-rail.closed .v2-rail-hr { width: 32px; margin: 8px auto; }
.v2-rail-k { padding: 10px 14px 3px; font-size: 11px; font-weight: 700; color: var(--muted); }

/* ── ⓪ 워크스페이스 ─────────────────────────────────────────────────────────
   접힘 = **스택 타일**. 슬랙 좌상단의 그것: 타일 한 장이 앞에, 뒤에 한 장이 아래로 살짝 겹쳐 '여럿'을 말한다.
   뒤 타일은 잉크 채널 틴트라 라이트에선 어둡게, 다크에선 밝게 — 어느 테마에서든 캔버스보다 한 톤 뜬다. */
.v2-rail-ws { display: flex; justify-content: center; padding: 0 0 6px; }
.v2-rail-stack { position: relative; display: inline-grid; place-items: start center; width: 44px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.v2-rail-stack .v2-wscard-big { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; box-shadow: 0 1px 2px rgba(var(--shadow-ink), .18); transition: transform 120ms ease; }
.v2-rail-stack::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 13px; border-radius: 0 0 9px 9px; background: rgba(var(--tint-ink), .18); }
.v2-rail-stack:hover .v2-wscard-big { transform: translateY(-1px); }
.v2-rail-stack:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* 펼침 = switcher.ts 의 문패 카드 그대로(부품을 두 벌로 두지 않는다). */
.v2-rail .v2-side-top { padding: 0 0 4px; }
.v2-rail-wsl { display: flex; flex-direction: column; gap: 1px; padding-bottom: 4px; }
.v2-rail-wsr { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px; padding: 5px 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-sub); text-align: left; cursor: pointer; }
.v2-rail-wsr:hover { background: var(--bg); color: var(--ink); }
.v2-rail-wsr:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-rail-wsr .v2-wscard-big { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.v2-rail-wsr .v2-rail-t { font-size: 12.5px; font-weight: 600; }
.v2-rail-kd { flex: none; font-family: var(--mono, ui-monospace, monospace); font-size: 9.5px; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

/* 팝오버 — 슬랙 그대로: 흰 판, [타일 40 · 이름 굵게 / 부제], 지금 것은 진한 고리, 구분선, ＋, 구분선, 패널 아이콘 행. */
.v2-wspop { position: fixed; z-index: 70; width: 316px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(var(--shadow-ink), .18); display: flex; flex-direction: column; gap: 2px; }
.v2-wspop-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2-wspop-row:hover { background: var(--bg-tint); }
.v2-wspop-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-wspop-row .v2-wscard-big { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }

/* #1875 — 워크스페이스 행 = 전환 버튼 + 오른쪽 「사람 추가」 아이콘. 행은 div, 안에 버튼 둘(버튼 안 버튼 회피). */
.v2-wspop-row { padding: 0; gap: 0; }
.v2-wspop-switch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2-wspop-switch:hover { background: var(--bg-tint); }
.v2-wspop-switch:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-wspop-add { flex: none; width: 34px; height: 34px; margin: 0 4px 0 2px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.v2-wspop-add:hover { background: var(--bg-punch); color: var(--blue); }
.v2-wspop-add:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-wspop-add .v2-ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 부제 행(구성원·설정·추가)은 여전히 button.v2-wspop-row 를 쓰는 곳(row())이 있으므로 그 규격은 그대로 둔다. */
button.v2-wspop-row { padding: 8px; gap: 12px; }

/* ── #1875 구성원 모달 — [나] 창(46-v2-me.css)과 같은 문법: 머리(얼굴·제목·부제·✕) + 스크롤 몸통. 슬랙 「사람 초대」 참고.
   한 창에서 부르기(이메일 칩) · 명부(⋯ 메뉴) · 수락 대기 · 방금 만든 계정 카드까지. 색·간격은 전부 토큰. ── */
.v2mem-back { position: fixed; inset: 0; z-index: 70; background: rgba(var(--shadow-ink), .38); display: flex; align-items: center; justify-content: center; padding: 24px; }
.v2mem { display: flex; flex-direction: column; width: min(540px, 100%); max-height: min(720px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px rgba(var(--shadow-ink), .22); }
.v2mem-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.v2mem-h-facewrap { flex: none; display: inline-flex; }
.v2mem-h-txt { flex: 1; min-width: 0; }
.v2mem-h-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2mem-h-sub { font-size: 12.5px; color: var(--muted-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2mem-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.v2mem-x:hover { background: var(--bg-punch); color: var(--ink); }
.v2mem-x-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.v2mem-b { flex: 1; min-height: 0; overflow: auto; padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 2px; }
.v2mem-err { margin: 0; font-size: 13px; color: var(--coral-text); }
.v2mem-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
/* 부르기 — 이메일 칩 입력(Enter·쉼표·붙여넣기로 여러 명) + 권한 + [초대하기] 하나. */
.v2mem-invite { display: flex; flex-direction: column; gap: 6px; padding: 2px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.v2mem-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.v2mem-chips { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 6px; min-height: 72px; padding: 8px 10px; border: 1px solid var(--line-net-2); border-radius: 10px; background: var(--bg); cursor: text; }
.v2mem-chips:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,107,240,.14); }
.v2mem-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 4px 3px 9px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.v2mem-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2mem-chip.bad { border-color: var(--coral); color: var(--coral-text); background: var(--danger-bg); }
.v2mem-chip-x { width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.v2mem-chip-x:hover { background: var(--bg-punch); color: var(--ink); }
.v2mem-chip-x-ic { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* 안쪽 입력칸 — 전역 input[type=text] 규격(테두리·높이·그림자)을 이긴다(특이도 0,2,1). 칩 상자가 곧 테두리다. */
.v2mem-chips input.v2mem-chip-in { flex: 1; min-width: 160px; width: auto; min-height: 0; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); padding: 4px 2px; }
.v2mem-chips input.v2mem-chip-in:focus { border: 0; box-shadow: none; outline: 0; }
/* datalist 가 붙은 입력칸에 크롬이 그리는 ▼ — 제안은 타이핑하면 뜬다, 화살표는 칩 상자 안에서 이물이다. */
.v2mem-chips input.v2mem-chip-in::-webkit-calendar-picker-indicator { display: none !important; }
.v2mem-help { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.v2mem-invrow { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.v2mem-sel { font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink-sub); }
.v2mem-invnote { flex: 1; min-width: 0; margin: 0; font-size: 12px; color: var(--coral-text); line-height: 1.4; }
.v2mem-invrow .btn { margin-left: auto; }
/* 방금 만든 계정 — 임시 비밀번호는 지금만 보인다. */
.v2mem-cred { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--bg-success); border: 1px solid var(--ok-line-2); }
.v2mem-cred-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.v2mem-cred-ic { width: 18px; height: 18px; fill: none; stroke: var(--mint-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v2mem-cred-row { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; }
.v2mem-cred-k { flex: none; width: 88px; color: var(--muted); }
.v2mem-cred-v { flex: 1; min-width: 0; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.v2mem-cred-v.mono { font-family: var(--mono, ui-monospace, monospace); font-weight: 700; letter-spacing: .02em; }
.v2mem-cred-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 2px; }
/* 절 머리 · 사람 줄 — 얼굴 32 · 이름 · 권한 라벨 · ⋯ */
.v2mem-sec { display: flex; align-items: baseline; gap: 6px; padding: 10px 2px 4px; }
.v2mem-sec b { font-size: 12.5px; font-weight: 700; color: var(--ink-sub); }
.v2mem-sec span { font-size: 12px; color: var(--muted-2); }
.v2mem-row { display: flex; align-items: center; gap: 11px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; }
.v2mem-row:hover { background: var(--bg-tint); }
.v2mem-face { flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; display: inline-grid; place-items: center; }
.v2mem-face.waiting { background: none; border: 1px dashed var(--muted-3-line); color: var(--muted-2); font-weight: 400; }
.v2mem-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.v2mem-tt b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2mem-tt span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2mem-row.pending .v2mem-tt b { font-weight: 500; color: var(--ink-sub); }
.v2mem-role { flex: none; font-size: 11.5px; color: var(--muted); }
.v2mem-role.lead { color: var(--ink-sub); font-weight: 700; }
.v2mem-more { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.v2mem-more:hover { background: var(--bg-punch); color: var(--ink); }
.v2mem-more-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.v2mem-cancel { flex: none; font-size: 12px; color: var(--coral-text); }
/* #3834 초대 메일 — 수락 대기 줄의 [다시 보내기] · 카드 발치의 단추 묶음(링크 복사 · 다시 보내기) */
.v2mem-resend { flex: none; font-size: 12px; color: var(--ink-sub); }
.v2mem-resend:disabled, .v2mem-cancel:disabled { opacity: .5; cursor: default; }
.v2mem-cred-acts { display: flex; flex: none; gap: 6px; }
.v2-ws-resend { font-size: 12px; padding: 2px 4px; color: var(--ink-sub); }
.v2-ws-resend:disabled { opacity: .5; cursor: default; }
.v2mem-x:focus-visible, .v2mem-more:focus-visible, .v2mem-chip-x:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
@media (max-width: 520px) {
  .v2mem-back { padding: 0; align-items: stretch; }
  .v2mem { width: 100%; max-height: 100%; border-radius: 0; border: 0; }
  .v2mem-invrow { flex-wrap: wrap; }
  .v2mem-cred-k { width: 76px; }
}

/* ── #1875 워크스페이스 메뉴의 하위 판 — 구성원 · 설정 · 추가. 같은 판(v2-wspop) 위에 같은 부품으로 그린다.
   옛 스위처 메뉴(40-v2.css .v2-ws-menu)와 이 팝오버가 함께 살아 두 시대의 생김새가 한 화면에 섞였다 —
   그 기능들을 이 문법으로 옮겼으므로 여기 규격이 곧 '워크스페이스 메뉴'의 전부다. */
.v2-wspop--panel { width: 316px; max-height: min(76vh, 600px); overflow: hidden auto; padding: 6px 8px 8px; }
.v2-wspop-head { display: flex; align-items: center; gap: 6px; padding: 4px 4px 8px; }
.v2-wspop-head b { font-size: 14px; font-weight: 800; color: var(--ink); }
.v2-wspop-back { width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.v2-wspop-back:hover { background: var(--bg-tint); color: var(--ink); }
.v2-wspop-back:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-wspop-sub { padding: 10px 6px 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.v2-wspop-form { display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 6px; }
.v2-wspop-in { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; background: var(--bg); color: var(--ink); }
.v2-wspop-in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,107,240,.14); }
.v2-wspop-actions { display: flex; align-items: center; gap: 8px; }
.v2-wspop-note { flex: 1; min-width: 0; font-size: 11.5px; color: var(--coral-text); line-height: 1.4; }
.v2-wspop-hint { margin: 2px 0 0; padding: 0 2px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
/* ✕ — 워크스페이스를 «치우는» 문(#1875 D5″). 사람+(.v2-wspop-add)와 **같은 규격**이라야 한 쌍으로 읽힌다:
   같은 크기·같은 자리·같은 평소 색. 다른 것은 hover 때 드러나는 색 하나뿐이다(치우는 일이라 coral). */
/* ── 워크스페이스 설정 모달(#2188) — 아바타·이름·구성원·연결·기능 설정이 한 창에 ─────────
   프레임 규격은 구성원 모달(v2mem)과 같은 결(같은 z, 같은 그림자·모서리) — 두 창이 형제로 읽히게. */
.v2wss-back { position: fixed; inset: 0; z-index: 70; background: rgba(var(--shadow-ink), .38); display: flex; align-items: center; justify-content: center; padding: 24px; }
.v2wss { display: flex; flex-direction: column; width: min(560px, 100%); max-height: min(760px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px rgba(var(--shadow-ink), .22); }
.v2wss-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.v2wss-h-face .v2-wscard-big { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
.v2wss-h-txt { flex: 1; min-width: 0; }
.v2wss-h-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.v2wss-h-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2wss-b { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.v2wss-sec { padding: 12px 0; }
.v2wss-sec + .v2wss-sec { border-top: 1px solid var(--line); }
.v2wss-sec-t { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
/* 프로필 — 왼쪽 큰 미리보기, 오른쪽 폼. 미리보기가 입력을 실시간으로 따라간다. */
.v2wss-profile { display: flex; gap: 16px; align-items: flex-start; }
.v2wss-preview .v2-wscard-big { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }
.v2wss-profile-f { flex: 1; min-width: 0; display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; align-items: center; }
.v2wss-lb { font-size: 12px; color: var(--muted); }
.v2wss-char { width: 72px; }
/* 색 팔레트 — 고른 것에 링. «기본» 은 ✕ 아이콘(지움 = 자동으로 복귀). */
.v2wss-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v2wss-swatch { width: 26px; height: 26px; border: 0; border-radius: 8px; padding: 0; cursor: pointer; }
.v2wss-swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.v2wss-swatch:disabled { opacity: .45; cursor: default; }
.v2wss-swatch--none { display: inline-grid; place-items: center; background: var(--bg-punch); color: var(--muted); }
.v2wss-swatch--none .v2-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.v2wss-swatch--pick { background: none; border: 1px dashed var(--line); border-radius: 8px; inline-size: 26px; block-size: 26px; padding: 1px; }
/* 사람이 정한 얼굴 타일 — 색은 인라인(style)로, 글자는 여기 규격으로. round 아바타와 달리 각(워크스페이스)이다. */
.v2-wsface-set { display: inline-grid; place-items: center; font-weight: 700; }

.v2-wspop-x { flex: none; width: 34px; height: 34px; margin: 0 6px 0 0; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.v2-wspop-x:hover { background: var(--danger-bg); color: var(--coral-text); }
.v2-wspop-x:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-wspop-x .v2-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* 확인은 **그 행 아래에서** 열린다(안 A) — 목록을 안 떠나므로 어느 워크스페이스 얘기인지가 눈에서 안 사라진다.
   왼쪽 띠는 «이 행에 딸린 것»이라는 표시다(형제 div 라 들여쓰기만으로는 소속이 안 읽힌다). */
.v2-wspop-exit { margin: 2px 4px 6px 12px; padding: 10px 12px; border-left: 2px solid var(--coral-fill); border-radius: 0 10px 10px 0; background: var(--bg-tint); display: flex; flex-direction: column; gap: 7px; }
.v2-wspop-exit-l { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.v2-wspop-exit-l:not(:first-child) { font-size: 11.5px; color: var(--muted); }
.v2-wspop-exit .v2-wspop-in { font-size: 12.5px; }
.v2-wspop-row.danger .v2-wspop-ic { color: var(--coral-text); }
.v2-wspop-row.danger .v2-wspop-tt b { color: var(--coral-text); }
/* 연결한 팀 · 승인 대기 — 행 하나에 이름 + 작은 조작 둘. 타일 행보다 촘촘하다(목록이 아니라 관리다). */
.v2-wspop-teams { display: flex; flex-direction: column; gap: 1px; }
.v2-wspop-team { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 8px; }
.v2-wspop-team:hover { background: var(--bg-tint); }
.v2-wspop-team-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 12.5px; }
.v2-wspop-team-open b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.v2-wspop-kind, .v2-wspop-err { flex: none; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.v2-wspop-err { color: var(--coral-text); border-color: var(--coral-text); }
.v2-wspop-act { flex: none; font: inherit; font-size: 11px; font-weight: 700; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.v2-wspop-act:hover { color: var(--ink); border-color: var(--line-net-2); }
.v2-wspop-act.on { color: var(--mint-deep); border-color: var(--ok-line-2); background: var(--bg-success); }
/* ws-people.ts 부품이 이 판 안에 앉을 때 — 행 규격이 촘촘해 여백만 맞춘다. */
.v2-wspop--panel .v2-ws-sec { padding: 6px 6px 3px; }
.v2-wspop--panel .v2-ws-invite { padding: 6px 4px 2px; }
/* 나에게 온 초대 — 메뉴 맨 위. 타일 목록과 규격이 달라 좌우 여백만 맞춘다. */
.v2-wspop .v2-ws-inbox { gap: 2px; }
.v2-wspop .v2-ws-invite-row { margin: 0 0 2px; padding: 8px; border-radius: 10px; }
.v2-wspop-row.cur .v2-wscard-big { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.v2-wspop-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.v2-wspop-tt b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-wspop-tt span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* #4122 — 부제가 두 줄이 되는 행(워크스페이스 추가)만 접힌다. 나머지 부제는 한 줄 말줄임 그대로. */
.v2-wspop-tt span.wrap { white-space: normal; }
/* #4122 — 워크스페이스 행 상태: 점 하나 + 한 낱말(온라인 · 오프라인 · 만드는 중). 글자는 부제와 같은 흐린 색으로 두고
   점만 색을 진다 — 11.5px 초록 글자는 밝은 바탕에서 대비가 모자란다. 꺼짐은 속 빈 고리(켜짐의 채운 점과 모양으로도 갈린다). */
.v2-wspop-st { font-style: normal; margin-left: 8px; white-space: nowrap; }
.v2-wspop-st::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; vertical-align: 1px; }
.v2-wspop-st.on::before { background: var(--mint); }
.v2-wspop-st.wait::before { background: var(--blue); }
.v2-wspop-st.off::before { box-shadow: inset 0 0 0 1.5px var(--muted-3); }
.v2-wspop-hr { height: 1px; background: var(--line); margin: 4px 0; }
.v2-wspop-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--bg-tint-2); color: var(--ink-sub); display: grid; place-items: center; }
/* ⚠ 팝오버는 body 에 붙는다(사이드바 재렌더에 안 지워지게) — #v2-root 안의 `.v2-ic` 획 규칙이 닿지 않으므로 여기서 다시 준다. */
.v2-wspop-ic .v2-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-wspop-k { flex: none; font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* ── ① 구역 · ② 최근 앱 · ③ 발치 — 항목 한 붓 ─────────────────────────────── */
.v2-rail-it { position: relative; display: flex; align-items: center; gap: 9px; width: calc(100% - 16px); margin: 2px 8px; padding: 6px 8px; min-height: 34px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.v2-rail-it:hover { background: var(--bg); }
.v2-rail-it:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; }
.v2-rail-it.on { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-net); }
.v2-rail-it.on::before { content: ''; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 999px; background: var(--blue); }
.v2-rail-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted-head); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-rail-it:hover .v2-rail-ic, .v2-rail-it.on .v2-rail-ic { stroke: var(--blue); }
.v2-rail-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-rail-m { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 확인할 것 배지 — 슬랙 '내 활동'의 그 배지. 사이드바 통틀어 앰버 숫자는 이 하나뿐(#1719 규칙). */
.v2-rail-bd { flex: none; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--warn-deep); color: var(--on-fill); font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
/* 최근 앱의 '실행 중' — 맥 독의 그 점. 무채색(무엇인지만 말하고 상태는 사이드바가 말한다). */
.v2-rail-run { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-head); }

.v2-rail.closed .v2-rail-it { flex-direction: column; gap: 3px; width: calc(100% - 12px); margin: 2px 6px; padding: 6px 2px 5px; }
.v2-rail.closed .v2-rail-t { width: 100%; flex: none; font-size: 11.5px; font-weight: 700; color: var(--ink-sub); text-align: center; }
.v2-rail.closed .v2-rail-it.on .v2-rail-t { color: var(--ink); }
.v2-rail.closed .v2-rail-ic { width: 24px; height: 24px; }
.v2-rail.closed .v2-rail-m { display: none; }
.v2-rail.closed .v2-rail-it.on::before { display: none; }
.v2-rail.closed .v2-rail-run { position: absolute; left: 50%; bottom: 2px; margin-left: -2.5px; }
/* 접혀도 배지는 남는다 — 아이콘 오른쪽 위 귀퉁이(슬랙의 종 위 숫자). */
.v2-rail.closed .v2-rail-bd { position: absolute; top: 3px; right: 11px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px var(--canvas); }
.v2-rail.closed .v2-rail-it.on .v2-rail-bd { box-shadow: 0 0 0 2px var(--bg); }

.v2-rail-me .v2-ava { position: relative; width: 24px; height: 24px; font-size: 10px; flex: none; }
/*  접속 점은 얼굴을 감싼 껍질(.v2-rail-avaw)에 단다 — 얼굴 자신은 overflow:hidden(원형 클립)이라 그 안의 ::after 는 원 밖 반쪽이
    잘려 초승달이 됐다(#2061 실측). 껍질은 클립이 없으니 점이 원 테두리 위에 온전히 선다. */
.v2-rail-avaw { position: relative; display: inline-flex; flex: none; line-height: 0; }
.v2-rail-avaw::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); border: 2px solid var(--canvas); }
.v2-rail-me .v2-rail-t { font-size: 13px; font-weight: 600; color: var(--ink-sub); }
.v2-rail.closed .v2-rail-me .v2-ava { width: 32px; height: 32px; font-size: 13px; }
.v2-rail.closed .v2-rail-me .v2-rail-t { display: none; }
.v2-rail.closed .v2-rail-me { padding: 6px 2px; }

/* ── 사이드바 쪽 부품 ───────────────────────────────────────────────────────── */
/* 맨 윗줄 맨 왼쪽 — 레일 여닫기(슬랙 창 맨 윗줄의 패널 아이콘). 뒤로·앞으로와 같은 붓. */
.v2-railtg .v2-navb-ic { width: 16px; height: 16px; }
.v2-railtg[aria-expanded="true"] { /* 3차: 파란색은 '숨김' 상태에 준다(.hid) */ }
.v2-railtg.hid { color: var(--blue); }
/* 데스크톱 창 맨 윗줄의 ☰ — 좁은 폭엔 ☰, 넓은 폭엔 패널 아이콘(둘 중 하나만). */
.v2-mbar-menu .v2-mbar-ic--m { display: none; }
@media (max-width: 900px) { .v2-mbar-menu .v2-mbar-ic--m { display: block; } .v2-mbar-menu .v2-mbar-ic--w { display: none; } }
/* 우측 서랍 단추의 얼굴(#4088 후속) — 우패널(타임라인) ↔ 칸 셸의 곁칸(폴더: 자료가 그 서랍의 첫 탭이다). 둘 중 하나만. */
.v2-mbar-aside .v2-mbar-ic--pn { display: none; }
.v2-mbar-aside.is-panes .v2-mbar-ic--pn { display: block; }
.v2-mbar-aside.is-panes .v2-mbar-ic--tl { display: none; }

/* 사이드바 머리의 워크스페이스 이름 — 레일이 접혀 있을 때만(슬랙의 「HonestAI ▾」 자리). */
.v2-side-wsn { flex: none; display: inline-flex; align-items: center; gap: 4px; max-width: 46%; margin-left: -4px; padding: 4px 6px; border: 1px solid transparent; border-radius: 7px; background: none; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); cursor: pointer; }
.v2-side-wsn:hover { background: var(--bg); border-color: var(--line); }
.v2-side-wsn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.v2-side-wsn-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-side-wsn + .v2-k { color: var(--muted); font-weight: 700; }

/* 발치 도크 셋 — 아카이브 · 휴지통 · 외부 앱 연결. 아이콘 위, 이름 아래. */
.v2-app-dock--3 { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.v2-app-dock--3 .v2-dock-btn { height: auto; display: flex; flex-direction: column; gap: 3px; padding: 6px 2px 5px; text-decoration: none; color: var(--ink-sub); }
.v2-app-dock--3 .v2-dock-btn:hover, .v2-app-dock--3 .v2-dock-btn.on { color: var(--ink); }
.v2-app-dock--3 .v2-dock-ic { width: 18px; height: 18px; stroke: var(--muted-head); }
.v2-app-dock--3 .v2-dock-btn:hover .v2-dock-ic, .v2-app-dock--3 .v2-dock-btn.on .v2-dock-ic { stroke: var(--blue); }
.v2-dock-t { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.v2-dock-n { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--bg-tint-2); color: var(--muted); font-family: var(--mono, ui-monospace, monospace); font-size: 9.5px; display: inline-grid; place-items: center; }

/* [AI 세션] 상태 칩 — 이 구역의 첫 질문이 '무엇이 나를 기다리나'라 숫자를 밖에 둔다. */
/*  ⚠ 걷은 자리(#2033) — [AI 세션] 인라인 상태 칩. 상태 거르기를 [프로젝트] 구역과 같은 필터 팝오버로
    통일하면서 뗐다(구역마다 다른 방식을 두지 않는다). 규칙을 지우지 않고 남기는 이유는
    scripts/check-css-drops.mjs 가 셀렉터 유실을 막기 때문 — '삭제'가 아니라 '자리 폐기'다. */
.v2-schips { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 4px 8px; flex: none; }
.v2-schip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-sub); cursor: pointer; }
.v2-schip:hover { color: var(--ink); border-color: var(--line-net-2); }
.v2-schip.on { background: var(--bg-punch); border-color: var(--line-net-2); color: var(--ink); }
.v2-schip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.v2-schip .n { font-family: var(--mono, ui-monospace, monospace); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-app-inst--plain:hover .v2-app-inst-st, .v2-app-inst--plain.on .v2-app-inst-st { visibility: visible; }
.v2-app-inst--plain .v2-app-inst-open { color: inherit; text-decoration: none; }

/* [위키] 분류 행 · 발치 링크 */
.v2-wcat { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; min-height: 30px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-sub); text-decoration: none; }
.v2-wcat:hover { background: var(--bg); color: var(--ink); }
.v2-wcat .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-fixed--wiki { border-bottom: 0; padding-bottom: 2px; }
.v2-foot-link { font-size: 13px; font-weight: 600; color: var(--ink-sub); }
.v2-foot-link .v2-cnt { margin-left: auto; }
.v2-app-open { text-decoration: none; }

/* ── 2차에서 걷은 자리(1차 #2016 의 발치 토글·타일 스택·툴팁·톱니) — 규칙은 비워 두되 셀렉터는 남긴다.
      `scripts/check-css-drops.mjs` 가 셀렉터 유실을 사고로 본다(추가만 허용). 새 화면은 이 자리를 쓰지 않는다. */
.v2-rail-tile, .v2-rail-tile .v2-wscard-big, .v2-rail-tile:hover .v2-wscard-big, .v2-rail-tile.on .v2-wscard-big, .v2-rail-tile:focus-visible,
.v2-rail-pip, .v2-rail.closed .v2-rail-m, .v2-rail.closed .v2-rail-bd,
.v2-rail-tg, .v2-rail-tg:hover, .v2-rail-tg:focus-visible, .v2-rail-tg .v2-rail-ic, .v2-rail.closed .v2-rail-tg, .v2-rail.closed .v2-rail-tg .v2-rail-t,
.v2-rail-gear, .v2-rail-me:hover .v2-rail-gear, .v2-rail.closed .v2-rail-me .v2-rail-gear,
.v2-rail-it[data-tip]:hover::after, .v2-rail-tg[data-tip]:hover::after, .v2-rail.open .v2-rail-it[data-tip]:hover::after { /* 폐기 */ }

/* ── 레일 숨김(#2016 3차, 안 B '머리글 드롭다운') — 레일이 들고 있던 것이 사이드바로 들어온다 ─────
      ⚠ 숨김은 **열 폭 0** 이다. display:none 으로 빼면 그리드 열이 한 칸씩 밀려 사이드바가 0px 열에 앉는다(목업 실측).
      레일 폭은 76 고정(232 펼침 모드 폐기 — `.rail-open` 규칙은 죽은 자리, 가드 때문에 남긴다). */
#v2-root.rail-hidden { --v2-rail-w: 0px; }
#v2-root.rail-hidden > .v2-rail { visibility: hidden; border-right: 0; }
/* 머리 한 줄 — [스택 타일 + 이름 ▾] … [지금 구역 ▾] */
.v2-side-wshd { display: flex; align-items: center; gap: 6px; padding: 4px var(--side-x, 8px) 4px; flex: none; }
.v2-side-wsbtn { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; max-width: 52%; padding: 3px 6px 3px 3px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); }
.v2-side-wsbtn:hover { background: var(--bg); border-color: var(--line); }
.v2-side-wsbtn::after { display: none; }
.v2-side-wsbtn .v2-rail-stack-t { position: relative; display: inline-grid; width: 34px; height: 34px; place-items: start center; }
.v2-side-wsbtn .v2-rail-stack-t::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: 1px; height: 9px; border-radius: 0 0 7px 7px; background: rgba(var(--tint-ink), .18); }
.v2-side-wsbtn .v2-wscard-big { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 8px; font-size: 12px; box-shadow: 0 1px 2px rgba(var(--shadow-ink), .18); }
.v2-side-wsbtn-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-side-wsbtn .v2-ws-car { font-size: 9px; color: var(--muted-2); }
.v2-secdd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; max-width: 50%; padding: 4px 8px; border: 1px solid var(--line-net); border-radius: 8px; background: var(--bg); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.v2-secdd:hover { border-color: var(--blue); }
.v2-secdd:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.v2-secdd .v2-ic { width: 15px; height: 15px; color: var(--blue); }
.v2-secdd-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-secdd .v2-rail-bd { min-width: 16px; height: 16px; font-size: 10px; }
.v2-secdd .v2-ws-car { font-size: 9px; color: var(--muted-2); }
/* 구역 드롭다운 — body 에 붙는다(팝오버와 같은 이유). #v2-root 밖이라 획 규칙을 여기서 다시 준다. */
.v2-secdd-menu { position: fixed; z-index: 70; min-width: 224px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(var(--shadow-ink), .14); display: flex; flex-direction: column; gap: 1px; }
.v2-secdd-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-sub); text-align: left; cursor: pointer; }
.v2-secdd-row:hover, .v2-secdd-row.on { background: var(--bg-tint); color: var(--ink); }
.v2-secdd-row .v2-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted-head); }
.v2-secdd-row.on .v2-ic { color: var(--blue); }
.v2-secdd-row .v2-secdd-t { flex: 1; min-width: 0; }
.v2-secdd-m { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-secdd-menu .v2-wspop-hr { margin: 4px 0; }
/* 발치 한 줄 — [⊞ 앱] [아바타 이름 톱니]. 레일이 있기 전 사이드바(#1843)의 그 자리. */
.v2-foot-row { display: flex; align-items: center; gap: 4px; }
.v2-foot-row .v2-apps-btn { width: auto; flex: none; padding: 7px 10px; gap: 6px; }
.v2-foot-row .v2-apps-btn .v2-ic { width: 16px; height: 16px; color: var(--muted-2); }
.v2-foot-row .v2-me { flex: 1; min-width: 0; padding-left: 10px; }

/* ── 독 손질(#2016 4차 → 5차) — 맥 독 · iOS 홈 화면 문법: **꾹 누르면 들리고**, 끌면 이웃이 비켜서고, 놓으면 내려앉는다 ──
      메인 그룹(구역 · 리브 · 고정한 앱)은 사람이 정한 한 줄 순서. 헤어라인 아래는 최근 연 앱(자동) — 위로 끌어 올리면 고정,
      고정한 것을 레일 밖(또는 헤어라인 아래)으로 끌어내면 '퍽' 하고 빠진다. 그림자(.v2-rail-ghost)는 레일 안에 fixed 로 떠서
      `.v2-rail.closed` 의 세로 격자를 그대로 물려받는다(body 에 붙이면 아이콘 위 · 이름 아래가 풀린다). */
.v2-rail-main, .v2-rail-recent { display: flex; flex-direction: column; min-height: 0; }
.v2-rail-mid .v2-rail-it { touch-action: none; -webkit-touch-callout: none; }
/* 누름 — 손가락 밑에서 살짝 작아진다(꾹 누르는 중이라는 답). */
.v2-rail-it.press { transform: scale(.94); transition: transform 140ms ease; }
/* 구멍 — 들린 것이 있던 자리. 내용은 숨기고 움푹한 판만 남겨 '여기 내려앉는다'를 말한다. */
.v2-rail-it.hole { background: rgba(var(--tint-ink), .07); box-shadow: inset 0 0 0 1px rgba(var(--tint-ink), .09); }
.v2-rail-it.hole > * { opacity: 0; }
.v2-rail-it.hole.gone { display: none; }
.v2-rail.drag, .v2-rail.drag .v2-rail-it { cursor: grabbing; }
.v2-rail.drag .v2-rail-it:not(.on):hover { background: none; }
.v2-rail.drag .v2-rail-it:not(.on):hover .v2-rail-ic { stroke: var(--muted-head); }
/* 그림자 — 손을 따라가는 그 아이콘. 바깥 상자가 자리(translate), 안쪽 항목이 크기(scale)·그늘을 맡는다. */
.v2-rail-ghost { position: fixed; z-index: 80; pointer-events: none; will-change: transform; }
.v2-rail-ghost.settle { transition: transform 200ms cubic-bezier(.2,.8,.2,1); }
.v2-rail-ghost .v2-rail-it { width: 100% !important; height: 100%; margin: 0 !important; background: var(--surface); box-shadow: 0 1px 2px rgba(var(--shadow-ink), .12), 0 0 0 1px var(--line); transform: scale(.94); transition: transform 220ms cubic-bezier(.34,1.56,.64,1), opacity 160ms ease, box-shadow 200ms ease; }
.v2-rail-ghost .v2-rail-it .v2-rail-ic { stroke: var(--blue); }
.v2-rail-ghost .v2-rail-it .v2-rail-t { color: var(--ink); }
/* 들림 — 눌린 크기에서 튀어오른다(살짝 넘쳤다 돌아오는 곡선). */
.v2-rail-ghost.up .v2-rail-it { transform: scale(1.1); box-shadow: 0 12px 30px rgba(var(--shadow-ink), .24), 0 0 0 1px var(--line); }
/* 밖 — 뺄 자리다. 옅어지고 조금 작아진다. */
.v2-rail-ghost.out .v2-rail-it { transform: scale(.92); opacity: .55; box-shadow: 0 4px 14px rgba(var(--shadow-ink), .14), 0 0 0 1px var(--line); }
/* 착지 — 제 크기로 내려앉는다. */
.v2-rail-ghost.land .v2-rail-it { transform: scale(1); opacity: 1; box-shadow: 0 1px 2px rgba(var(--shadow-ink), .1), 0 0 0 1px var(--line); transition-timing-function: cubic-bezier(.2,.8,.2,1); }
/* 퍽 — 커지며 사라진다. */
.v2-rail-ghost.puff .v2-rail-it { transform: scale(1.4); opacity: 0; transition-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { .v2-rail-it.press, .v2-rail-ghost, .v2-rail-ghost .v2-rail-it { transition: none; } }
/* 4차(네이티브 드래그 · 고정 구간 따로)의 자리 — 5차에서 걷었다. 가드(check-css-drops) 때문에 셀렉터만 남긴다. */
.v2-rail-pins { }
.v2-rail.drag .v2-rail-pins:empty { }
.v2-rail-pins.over:empty { }
.v2-rail-it[draggable="true"] { }
.v2-rail-it[draggable="true"]:active { }
.v2-rail-it.dragging { }
.v2-rail-it.over-top::after, .v2-rail-it.over-bot::after { }
.v2-rail-it.over-top::after { }
.v2-rail-it.over-bot::after { }
.v2-rail-hr--recent { }

/* ── 좁은 화면 — 레일은 서랍 뒤로 숨지 않고 아이콘만 남아 왼쪽에 붙어 선다. ── */
@media (max-width: 900px) {
  #v2-root.rail-mode, #v2-root.rail-mode.no-aside { display: flex; flex-direction: column; grid-template-columns: none; padding-left: 56px; }
  .v2-rail { position: fixed; left: 0; top: 0; bottom: 0; width: 56px; z-index: 41; padding-top: env(safe-area-inset-top, 0px); }
  .v2-side, .v2-aside { z-index: 40; }
  #v2-root.rail-mode .v2-side { left: 56px; }
  .v2-rail .v2-side-top, .v2-rail-wsl, .v2-rail-k, .v2-rail-m { display: none; }
  .v2-rail-it { flex-direction: column; gap: 3px; width: calc(100% - 10px); margin: 2px 5px; padding: 6px 2px 5px; }
  .v2-rail-t { width: 100%; flex: none; font-size: 10px; font-weight: 700; color: var(--ink-sub); text-align: center; }
  .v2-rail-it.on::before { display: none; }
  .v2-rail-bd { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  .v2-rail-me .v2-rail-t { display: none; }
  .v2-wspop { left: 64px !important; width: min(316px, calc(100vw - 72px)); }
}

/* ── [프로젝트] 구역 — 폴더 · 리스트 트리 (#2043, web/v2/side.ts renderProjects) ──────────────────── */
.v2-ptree { display: flex; flex-direction: column; gap: 1px; }
.v2-ptl.on { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-net); }
.v2-ptl-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-ptl:hover .v2-ptl-ic, .v2-ptl.on .v2-ptl-ic { stroke: var(--blue); }
.v2-ptl-emoji { width: 16px; text-align: center; font-size: 13px; flex: none; }
.v2-ptl-lock { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linejoin: round; }
.v2-ptl--none { color: var(--muted); }

/* ── [AI 세션] 구역 — 프로젝트 리스트 + 가운데 전체 목록 (#4158, web/v2/side.ts renderSessions · bins.ts renderSessAll) ──
   사이드바 줄은 [프로젝트] 구역의 리스트 줄(.v2-wcat.v2-ptl)을 그대로 입는다 — 다만 주소를 바꾸지 않는 **거르개**라 단추라서
   단추 기본 모양만 걷는다. 가운데 표는 「지난 세션」 원장 표(.v2-bin-tbl, 40-v2.css) 그대로이고, 줄 전체가 누르는 자리다. */
.v2-sproj { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.v2-sproj:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.v2-bin-tbl.v2-sall tbody tr.v2-sall-row { cursor: pointer; }
.v2-sall td.c-who { font-size: 13px; }
.v2-sall td.c-kind .v2-dot { margin-right: 6px; }
.v2-sall tr.dism td.c-name .t { color: var(--ink-sub); }
.v2-sall-face { width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; font-size: 9px; font-weight: 700; display: inline-grid; place-items: center; vertical-align: -4px; color: var(--on-fill); overflow: hidden; }
.v2-sall-face img { width: 100%; height: 100%; object-fit: cover; }

/* ── #4233 안 A — [AI 세션] 전체 목록을 위키 2판과 같은 구성으로(원준 2026-09-25 «안 A 좋아») ──
   머리 두 줄(빵부스러기 · 도구줄) → 「지금 볼 것」 카드 → 묶음 머리 + 46px 행 → 오른쪽 사이드 피크. 테두리 상자 없음. */
.v2-sa { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; background: var(--bg); }
.v2-sa-top { flex: none; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 24px; min-width: 0; }
.v2-sa-top .crumb { font-size: 15px; font-weight: 600; color: var(--muted); }
.v2-sa-top .sl { font-size: 15px; color: var(--muted-3); }
.v2-sa-top .now { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2-sa-top .desc { margin-left: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.v2-sa-tools { flex: none; height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.v2-sa-tools .sp { flex: 1; }
.v2-sa-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-sa-ic.sm { width: 14px; height: 14px; stroke-width: 2; }
.v2-sa-tb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-sub); cursor: pointer; white-space: nowrap; }
.v2-sa-tb .v2-sa-ic { color: var(--muted-2); }
.v2-sa-tb:hover { background: var(--bg-tint-2); }
.v2-sa-tb.ic { width: 32px; padding: 0; justify-content: center; }
.v2-sa-pick { height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--line-net); border-radius: 999px; background: var(--bg); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-sub); cursor: pointer; }
.v2-sa-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; border: 1px solid var(--line-net); background: var(--bg); color: var(--ink-sub); }
.v2-sa-chip.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.v2-sa-chip.blue { border-color: color-mix(in srgb, var(--blue) 35%, transparent); background: var(--bg-tint-2); color: var(--blue); }
.v2-sa-chip.on { box-shadow: inset 0 0 0 1.5px currentColor; }
.v2-sa-q { height: 32px; width: 220px; padding: 0 10px; border: 1px solid var(--line-net); border-radius: 8px; background: var(--bg); font: inherit; font-size: 13px; color: var(--ink); }
.v2-sa-new { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--ink); color: var(--bg); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.v2-sa-new .v2-sa-ic { stroke-width: 2.2; }
.v2-sa-body { flex: 1; min-height: 0; overflow: auto; padding-bottom: 28px; }
.v2-sa-body .v2-bin-fine { margin: 24px 28px 0; }
.v2-sa-body .v2-bin-empty { margin: 18px 28px; }
.v2-sa-body .v2-bin-more { margin: 8px 24px 0; }
/* 「지금 볼 것」 */
.v2-sa-now { padding: 16px 20px 2px; }
.v2-sa-now-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.v2-sa-now-h b { font-size: 13px; font-weight: 800; color: var(--ink); }
.v2-sa-now-h .c { font-size: 12px; color: var(--muted); }
.v2-sa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.v2-sa-card { display: flex; flex-direction: column; gap: 6px; min-height: 118px; padding: 12px 14px; border: 1px solid var(--line-net); border-radius: 10px; background: var(--bg); font: inherit; text-align: left; color: var(--ink); cursor: pointer; min-width: 0; }
.v2-sa-card:hover { border-color: color-mix(in srgb, var(--blue) 30%, var(--line-net)); }
.v2-sa-card.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.v2-sa-card .k { display: flex; align-items: center; gap: 6px; }
.v2-sa-card .k .sp { flex: 1; }
.v2-sa-card .m { font-size: 12px; color: var(--muted); }
.v2-sa-card .t { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-sa-card .ask { font-size: 12.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-sa-card .ask b { font-weight: 700; color: var(--ink-sub); }
.v2-sa-card .p { margin-top: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 상태 표시 */
.v2-sa-st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.v2-sa-st.busy { background: var(--bg-tint-2); color: var(--blue); }
.v2-sa-st.wait { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.v2-sa-st.done { background: var(--ok-bg); color: var(--ok-ink); }
.v2-sa-st.quiet { padding: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
/* 묶음 머리 + 행 */
.v2-sa-list { padding: 0 20px; }
.v2-sa-gh, .v2-sa-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 112px 44px 72px 76px 32px; align-items: center; }
.v2-sa-gh.np, .v2-sa-row.np { grid-template-columns: minmax(0, 1fr) 112px 44px 72px 76px 32px; }
.v2-sa-gh { height: 44px; margin-top: 10px; border-bottom: 1px solid var(--line-row); }
.v2-sa-gh .l { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; padding: 0 0 0 2px; font: inherit; cursor: pointer; color: var(--ink); }
.v2-sa-gh .car, .v2-sa-fold .car { display: inline-grid; place-items: center; color: var(--muted-2); transition: transform .12s; }
.v2-sa-gh .car.shut, .v2-sa-fold .car.shut { transform: rotate(-90deg); }
.v2-sa-gh .pill { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg-tint-2); display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.v2-sa-gh .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-sa-gh .hc { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.v2-sa-gh.flat { margin-top: 4px; }
.v2-sa-gh.flat > .hc:first-child { padding-left: 34px; }
.v2-sa-row { height: 46px; border-bottom: 1px solid var(--line-row); cursor: pointer; }
.v2-sa-row:hover { background: var(--bg-sel); }
.v2-sa-row.on { background: var(--bg-punch); }
.v2-sa-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.v2-sa-row .c-name { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 8px; }
.v2-sa-row .c-name .v2-bin-fold { color: var(--muted-2); }
.v2-sa-row .c-name .t { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2-sa-row .c-name .t.un { color: var(--muted); font-weight: 500; }
.v2-sa-row.dism .c-name .t { color: var(--ink-sub); }
.v2-sa-row .c-proj { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--ink-sub); padding-right: 12px; }
.v2-sa-row .c-proj span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sa-row .c-proj.none { color: var(--muted); }
.v2-sa-row .c-proj .v2-bin-fold { color: var(--muted-2); }
.v2-sa-row .c-who .v2-sall-face { width: 22px; height: 22px; font-size: 10px; margin: 0; vertical-align: middle; }
.v2-sa-row .c-ai { font-size: 12px; font-weight: 700; color: var(--muted); }
.v2-sa-row .c-when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-sa-more { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--muted-2); cursor: pointer; opacity: 0; }
.v2-sa-row:hover .v2-sa-more, .v2-sa-row:focus-within .v2-sa-more, .v2-sa-row.on .v2-sa-more { opacity: 1; }
.v2-sa-more:hover { background: var(--bg-tint-2); }
@media (hover: none) { .v2-sa-more { opacity: 1; } }
.v2-sa-fold { width: 100%; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px; border: 0; border-bottom: 1px solid var(--line-row); background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.v2-sa-fold:hover { background: var(--bg-sel); }
/* 사이드 피크 */
.v2-sa-peek { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); z-index: 5; display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line-net); box-shadow: -18px 0 40px color-mix(in srgb, var(--shadow-ink) 14%, transparent); }
.v2-sa-ph { flex: none; height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 22px; border-bottom: 1px solid var(--line-row); font-size: 12.5px; color: var(--muted); }
.v2-sa-ph .cr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2-sa-ph .sp { flex: 1; }
.v2-sa-peek .ib { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.v2-sa-peek .ib:hover { background: var(--bg-tint-2); color: var(--ink); }
.v2-sa-peek .ibt { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-net); border-radius: 8px; background: var(--bg); font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-sub); cursor: pointer; white-space: nowrap; }
.v2-sa-peek .ibt:hover { border-color: color-mix(in srgb, var(--blue) 30%, var(--line-net)); }
.v2-sa-ptop { flex: none; padding: 14px 24px; border-bottom: 1px solid var(--line-row); }
.v2-sa-ptop h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-sa-ptop .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-sa-ptop .pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg-tint-2); font-size: 11.5px; font-weight: 700; color: var(--ink-sub); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-sa-ban { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-height: 44px; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line); font-size: 13px; line-height: 1.5; color: var(--warn-ink); }
.v2-sa-ban .msg { flex: 1; min-width: 0; }
.v2-sa-ban .ibt { height: 32px; }
.v2-sa-chat { flex: 1; min-height: 0; overflow: auto; padding: 8px 24px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px); mask-image: linear-gradient(to bottom, transparent 0, #000 16px); }
.v2-sa-note { margin: 18px 0; font-size: 13px; color: var(--muted); }
.v2-sa-turn { display: flex; gap: 10px; padding: 12px 0; }
.v2-sa-turn .av { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.v2-sa-turn.me .av { background: var(--callout-purple-bg); color: var(--purple-text); }
.v2-sa-turn.ai .av { background: var(--bg-tint-2); color: var(--blue); }
.v2-sa-turn .bx { flex: 1; min-width: 0; }
.v2-sa-turn .who { margin-bottom: 3px; font-size: 12px; font-weight: 700; color: var(--ink); }
.v2-sa-turn .tx { font-size: 13.5px; line-height: 1.7; color: var(--ink-sub); overflow-wrap: anywhere; }
.v2-sa-turn.me .tx { padding: 8px 12px; border-radius: 10px; background: var(--gray-bg-2); color: var(--ink); white-space: pre-wrap; }
.v2-sa-turn .md-rendered.tx > :first-child { margin-top: 0; }
.v2-sa-turn .md-rendered.tx > :last-child { margin-bottom: 0; }
.v2-sa-turn .md-rendered.tx table { display: block; overflow-x: auto; font-size: 12.5px; }
.v2-sa-cmp { flex: none; margin: 0 20px 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-net); border-radius: 12px; background: var(--bg); box-shadow: 0 2px 8px color-mix(in srgb, var(--shadow-ink) 5%, transparent); }
.v2-sa-cmp:focus-within { border-color: var(--blue); }
.v2-sa-cmp.off { opacity: .7; }
.v2-sa-ta { width: 100%; min-height: 44px; border: 0; outline: 0; resize: none; padding: 0; background: transparent; font: inherit; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.v2-sa-cmp .rw { display: flex; align-items: center; gap: 8px; }
.v2-sa-cmp .hint { font-size: 12px; color: var(--muted); }
.v2-sa-cmp .send { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--blue-fill); color: var(--on-fill); cursor: pointer; }
.v2-sa-cmp .send:disabled { opacity: .4; cursor: default; }
@media (max-width: 1280px) {
  .v2-sa-gh, .v2-sa-row { grid-template-columns: minmax(0, 1fr) 150px 108px 40px 64px 72px 32px; }
}
@media (max-width: 760px) {
  .v2-sa-top, .v2-sa-tools { padding: 0 12px; }
  .v2-sa-tools { overflow-x: auto; }
  .v2-sa-q { width: 150px; }
  .v2-sa-now { padding: 12px 12px 2px; }
  .v2-sa-list { padding: 0 8px; }
  .v2-sa-gh, .v2-sa-row, .v2-sa-gh.np, .v2-sa-row.np { grid-template-columns: minmax(0, 1fr) auto 64px 32px; column-gap: 8px; }
  .v2-sa-row .c-when { text-align: right; }
  .v2-sa-gh .hc, .v2-sa-row .c-proj, .v2-sa-row .c-who, .v2-sa-row .c-ai { display: none; }
  .v2-sa-peek { width: 100%; }
}

/* ── #4233 [위키] 본문 목록 — AI 세션 목록(.v2-sa)과 같은 부품, 열만 다르다(web/v2/wiki-main.ts) ─────────────────
   원준 2026-09-26 «A를 뼈대로 · C의 새로 들어온 지식 카드 줄» · «2안 사이드 피크 + 우측 사이드바에 고정».
   열: 제목 · 분류 · 유형 · 작성 · 시각 · ⋯ (46px 행). 덧창 본문은 기존 마크다운 렌더러(.md-rendered). */
.v2-wk .v2-sa-gh, .v2-wk .v2-sa-row { grid-template-columns: minmax(0, 1fr) 190px 84px 48px 84px 32px; }
.v2-wk a.crumb { text-decoration: none; }
.v2-wk a.crumb:hover { color: var(--ink); }
.v2-wk a.v2-sa-new, .v2-wk a.v2-sa-chip { text-decoration: none; }
.v2-wk .v2-sa-tb.on { background: var(--bg-tint-2); color: var(--blue); }
.v2-wk .v2-sa-tb.on .v2-sa-ic { color: var(--blue); }
.v2-wk-row .c-name .v2-sa-ic { color: var(--muted-2); }
.v2-wk-row .c-cat { display: flex; align-items: center; gap: 7px; min-width: 0; padding-right: 12px; font-size: 13px; color: var(--ink-sub); }
.v2-wk-row .c-cat i, .v2-wk-card .k .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 55%, var(--bg)); }
.v2-wk-row .c-cat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-wk-row .c-cat.none { color: var(--muted); }
.v2-wk-row .c-cat.none i { background: var(--muted-3); }
.v2-wk-row .c-type { font-size: 12.5px; color: var(--ink-sub); white-space: nowrap; }
.v2-wk-row .c-type.none { color: var(--muted); }
.v2-wk-row .c-who .m { font-size: 12px; color: var(--muted); }
.v2-wk-card { min-height: 104px; }
.v2-wk-card .k { font-size: 12px; font-weight: 700; color: var(--ink-sub); min-width: 0; }
.v2-wk-card .k .cn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 덧창 — 머리 · 본문 · 발치 */
.v2-wk-peek .ibt { text-decoration: none; }
.v2-wk-peek a.ib { text-decoration: none; }
.v2-wk-peek .ib:disabled { opacity: .35; cursor: default; background: none; }
.v2-wk-rd { flex: 1; min-height: 0; overflow: auto; padding: 20px 28px 28px; }
.v2-wk-rd h1 { margin: 0 0 10px; font-size: 22px; font-weight: 800; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.v2-wk-rd .dm { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.v2-wk-rd .dm .pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg-tint-2); font-size: 11.5px; font-weight: 700; color: var(--ink-sub); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-wk-sum { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--gray-bg-2); font-size: 13px; line-height: 1.6; color: var(--ink-sub); }
.v2-wk-md { font-size: 14px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.v2-wk-md > :first-child { margin-top: 0; }
.v2-wk-md table { display: block; overflow-x: auto; font-size: 12.5px; }
.v2-wk-md pre { overflow-x: auto; }
.v2-wk-md img { max-width: 100%; }
.v2-wk-foot { flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-top: 1px solid var(--line-row); font-size: 12px; color: var(--muted); }
.v2-wk-foot .sl { margin: 0 4px; color: var(--muted-3); }
.v2-wk-kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-net); background: var(--bg); font-size: 11px; font-weight: 700; color: var(--muted); }
/* 폭은 창이 아니라 **본문 칸**을 잰다(@container) — 우측 사이드바에 문서를 고정하면 창은 그대로인데 본문만 좁아진다. */
.v2-wk { container-type: inline-size; container-name: wkmain; }
@container wkmain (max-width: 1080px) {
  .v2-wk .v2-sa-gh, .v2-wk .v2-sa-row { grid-template-columns: minmax(0, 1fr) 150px 76px 44px 76px 32px; }
}
@container wkmain (max-width: 900px) {
  .v2-wk .v2-sa-gh, .v2-wk .v2-sa-row { grid-template-columns: minmax(0, 1fr) 140px 76px 32px; }
  .v2-wk .v2-sa-gh .h-type, .v2-wk .v2-sa-gh .h-who, .v2-wk-row .c-type, .v2-wk-row .c-who { display: none; }
}
@container wkmain (max-width: 620px) {
  .v2-wk .v2-sa-top, .v2-wk .v2-sa-tools { padding: 0 12px; }
  .v2-wk .v2-sa-top .desc { display: none; }
  .v2-wk .v2-sa-tools { overflow-x: auto; }
  .v2-wk .v2-sa-q { width: 150px; }
  .v2-wk .v2-sa-new span { display: none; }
  .v2-wk .v2-sa-new { padding: 0 10px; }
  .v2-wk .v2-sa-now { padding: 12px 12px 2px; }
  .v2-wk .v2-sa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-wk .v2-sa-cards > :nth-child(n + 3) { display: none; }
  .v2-wk .v2-sa-list { padding: 0 8px; }
  .v2-wk .v2-sa-gh, .v2-wk .v2-sa-row { grid-template-columns: minmax(0, 1fr) 64px 32px; column-gap: 8px; }
  .v2-wk .v2-sa-gh .hc, .v2-wk-row .c-cat { display: none; }
  .v2-wk-rd { padding: 16px 16px 24px; }
  .v2-wk-peek .ibt span { display: none; }
  .v2-wk-foot { display: none; }
}

/* ── [위키] 구역 — 구조만, 한 화면에 (#4233, web/v2/side.ts renderWiki) ───────────────────────────
   새 모양을 만들지 않는다 — 전부 다른 구역의 부품이다(원준 2026-09-25 "지금 디자인 시스템과 벗어나면 안 돼"):
   고정 두 줄 = AI 세션 「전체」 줄(.v2-wcat.v2-ptl) · 소제목 = .v2-app-group · 묶음 카드 = 홈 프로젝트 카드(.v2-pg)와 같은 모양
   (접히면 한 줄, 펴면 흰 카드) · 분류 행 = 프로젝트 트리 리스트 행(.v2-wcat.v2-ptl) · 「N개 더」 = 홈 카드의 「지난 세션」 줄(.v2-pg-past).
   ⚠ 카드는 flex: none — 종전 서가 카드는 flex-shrink 1 + overflow hidden 이라 목록 칸 안에서 눌려 행이 반쯤 잘리고
   「N개 더 보기」가 아예 안 보였다(2026-09-25 dev 실측: 카드1 내용 348px → 261px). */
.v2-kviews { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 2px; flex: none; }
.v2-kview { }
.v2-kshelf { padding-top: 0; }
.v2-kgroup { display: flex; align-items: center; gap: 6px; }
.v2-kgroup .n { flex: 1; min-width: 0; }
.v2-kedit { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; margin: -2px 0; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
.v2-kedit:hover { background: var(--bg); color: var(--blue); }
.v2-kedit:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.v2-kedit-ic { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-ksp { flex: none; margin-inline: 4px; }
.v2-ksp + .v2-ksp { margin-top: 2px; }
.v2-ksp.open + .v2-ksp, .v2-ksp + .v2-ksp.open { margin-top: 8px; }
.v2-ksp.open { background: var(--bg); border: 1px solid var(--line-net); border-radius: 10px; }
.v2-ksp-h { position: relative; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 5px; border-radius: 8px; }
.v2-ksp-h:hover { background: var(--bg); }
.v2-ksp.open > .v2-ksp-h { border-radius: 9px 9px 0 0; border-bottom: 1px solid var(--line-row); }
.v2-ksp.open > .v2-ksp-h:hover { background: var(--bg-tint); }
.v2-ksp-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.v2-ksp-t:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.v2-ksp-t .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.v2-ksp-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--muted-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-ksp-h:hover .v2-ksp-ic { stroke: var(--blue); }
.v2-ksp-h .v2-car { transition: transform .15s ease; }
.v2-ksp.open > .v2-ksp-h .v2-car { transform: rotate(90deg); }
.v2-ksp-h > .v2-cnt { flex: none; }
.v2-ksp-edit { position: absolute; right: 5px; top: 50%; margin-top: -11px; width: 22px; height: 22px; display: none; place-items: center; border-radius: 6px; color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.v2-ksp-edit:hover { color: var(--blue); }
.v2-ksp-h:hover .v2-ksp-edit, .v2-ksp-edit:focus-visible { display: inline-grid; }
.v2-ksp-h:hover > .v2-cnt { visibility: hidden; }
.v2-ksp-b { display: flex; flex-direction: column; gap: 1px; padding: 4px 5px 5px; }
.v2-ksp-b .v2-pg-past { margin-top: 0; }
/* 분류 행 — 프로젝트 트리 리스트 행(.v2-wcat.v2-ptl) 그대로. 흰 카드 안이라 호버·선택만 한 단계 옅은 판(홈 카드 안 행과 같은 규칙). */
.v2-ksp .v2-kcat:hover { background: var(--bg-tint); }
.v2-ksp .v2-kcat.on { background: var(--bg-punch); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-net); }
.v2-kcat .n { flex: 0 1 auto; }
.v2-kcat .v2-cnt { margin-left: auto; flex: none; }
.v2-kcat.zero { color: var(--muted); }
/* #4233 위키 분류 줄의 ✎ — 올리면 수 자리에 선다. 누르면 분류체계 앱에서 그 분류를 연다(side.ts renderWiki catRow). */
.v2-kcat-edit { display: none; width: 22px; height: 22px; margin-left: auto; place-items: center; border-radius: 6px; color: var(--muted); flex: none; }
.v2-kcat-edit:hover { color: var(--blue); background: var(--bg); }
.v2-kcat:hover .v2-kcat-edit, .v2-kcat-edit:focus-visible { display: inline-grid; }
.v2-kcat:hover .v2-cnt:has(+ .v2-kcat-edit) { display: none; }
/* 빈 묶음 한 줄 · «묶음을 정해 주세요» 카드는 이름을 한 단계 흐리게(#1631 그대로). */
.v2-ksp-empty { margin: 0; padding: 4px 8px 6px; font-size: 11.5px; color: var(--muted); white-space: normal; }
.v2-ksp-fix .v2-ksp-t .n { color: var(--muted); }
/* #4233 안 1 — [프로젝트] 사이드바를 위키와 같은 부품으로(고정 줄 · 이름표 · 카드). 이름표는 최상위 폴더라 누를 수 있다(그 폴더 보드). */
button.v2-kedit { border: 0; background: none; font-family: inherit; line-height: inherit; cursor: pointer; }
.v2-pgroup a.n { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-pgroup a.n:hover { color: var(--blue); }
.v2-pgroup a.n:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 4px; }
.v2-pgroup.on a.n { color: var(--blue); }
.v2-pcard > .v2-ksp-h.on { background: var(--bg-punch); box-shadow: inset 0 0 0 1px var(--line-net); }
/* 하위 폴더 카드의 [폴더 보기] 링크 — 이 카드에서 폴더 보드로 가는 유일한 입구라 키보드 · 터치로도 닿아야 한다(리뷰 지적).
   키보드: 카드 머리 안에 포커스가 오면 드러난다(Tab 이 접기 단추 → 링크로 이어진다). 터치: 늘 보이고, 수 옆에 선다. */
.v2-pcard > .v2-ksp-h:focus-within .v2-ksp-edit { display: inline-grid; }
.v2-pcard > .v2-ksp-h:focus-within > .v2-cnt { visibility: hidden; }
@media (hover: none) {
  .v2-pcard > .v2-ksp-h .v2-ksp-edit { display: inline-grid; position: static; margin: 0 0 0 2px; flex: none; }
  .v2-pcard > .v2-ksp-h > .v2-cnt { visibility: visible; }
}
/* #4233 2안 — [AI 세션] 사이드바 머리의 묶기 드롭다운 단추(＋ 앞). 카드 · 줄은 위키 사이드바 부품(.v2-ksp · .v2-kcat · .v2-pg-past) 그대로. */
.v2-sgb { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px 0 9px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg); font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-sub); cursor: pointer; white-space: nowrap; }
.v2-sgb:hover { border-color: var(--line-net); background: var(--bg-tint); }
.v2-sgb:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.v2-sgb-car { width: 12px; height: 12px; fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-sgb + .v2-app-new { margin-left: 6px; }
.v2-scard > .v2-ksp-h .v2-ksp-t { cursor: pointer; }
.v2-sshelf .v2-kcat .v2-dot { margin-left: 6px; }
.v2-pfav .v2-ptl-ic { stroke: var(--muted-2); }
.v2-pfav.on .v2-ptl-ic { stroke: var(--blue); }
/* ── #3830 맥락 관리 — 이 앱에 있는 동안만 사이드바 열을 접는다 ──────────────────
   원준 2026-09-09: *"맥락관리 앱으로 들어간 다음에도 사이드바가 보이는데 굳이 필요가 없을 것 같아 …
    대신 뒤로가기 앞으로가기 검색 창은 전체 가로 다 차지하게 맨 상단에(슬랙처럼)."*
   레일은 남긴다 — 구역 전환은 레일 몫이고, 이 앱은 사이드바를 **소유**하는 게 아니라(자료 앱 #2423) **비운다**.
   ⚠ 숨김은 **열 폭 0** 이다(위 rail-hidden 과 같은 규율). display:none 으로 빼면 그리드 열이 한 칸씩 밀려
    본문이 6px 손잡이 열에 앉는다 — 이 파일이 이미 한 번 겪은 자리다.
   ⚠ 좁은 폭(≤900)은 셸이 그리드가 아니라 flex 한 줄이고 사이드바가 서랍이라 이 규칙이 통째로 어긋난다
    → `min-width: 901px` 로 잠근다(그 폭에선 종전 서랍 규칙이 그대로 이긴다). */
@media (min-width: 901px) {
  #v2-root.rail-mode.app-ctx { grid-template-columns: var(--v2-rail-w) 0 0 minmax(0, 1fr) 6px var(--v2-aside-w); }
  #v2-root.rail-mode.app-ctx.no-aside { grid-template-columns: var(--v2-rail-w) 0 0 minmax(0, 1fr) 0 0; }
  #v2-root.app-ctx > .v2-side,
  #v2-root.app-ctx > .v2-side + .v2-split-x { overflow: hidden; visibility: hidden; border-right: 0; }
}

/* ── #4233 홈 사이드바 «V1 안 1 · 고정 카드» (원준 2026-09-25) ──────────────────────────────
   모든 세션 줄이 카드 안에 선다(두 축 모두). 고정한 세션은 「고정」 이름표 아래 머리 없는 카드에, 세션별 축의 날짜 묶음도
   머리 없는 카드에(.v2-pg--rows). 간격은 한 벌이다: 이름표 위 16 · 이름표 밑 6 · 카드 사이 8 · 카드 안 한 줄 30 ·
   두 줄(고정 · 세션별 축) 44 · 제목 13/600. 범위는 홈 목록(.v2-home-cards)뿐 — [AI 세션]·[확인할 것]의 같은 부품은 그대로다. */
.v2-home-cards .v2-app-group { padding: 16px 8px 6px; }
.v2-home-cards .v2-app-group:first-child { padding-top: 2px; }
.v2-home-cards .v2-pg + .v2-pg, .v2-home-cards .v2-pg.open + .v2-pg, .v2-home-cards .v2-pg + .v2-pg.open { margin-top: 8px; }
/* 접힌 카드도 카드다(검토판 1판 · 카드 머리 31) — 종전엔 접히면 테두리가 없어 카드 밖 줄처럼 읽혔다(원준이 짚은 그 어긋남). */
.v2-home-cards .v2-pg { background: var(--bg); border: 1px solid var(--line-net); border-radius: 10px; }
.v2-home-cards .v2-pg:not(.open) > .v2-pg-row { border-radius: 9px; }
.v2-home-cards .v2-pg:not(.open) > .v2-pg-row:hover { background: var(--bg-tint); }
.v2-home-cards .v2-app-inst--1 { grid-template-rows: minmax(24px, auto); }
/* 기둥: 아이콘 28 · 제목 52(사이드바 왼쪽 끝에서). 카드 안이든 머리 없는 카드든 같은 자리 — 둘째 줄도 제목 기둥에 선다. */
.v2-home-cards .v2-app-inst { padding-left: 8px; }
.v2-home-cards .v2-app-inst-open { gap: 7px; }
.v2-home-cards .v2-app-inst-ask, .v2-home-cards .v2-app-inst-pj { margin-left: 24px; }
.v2-home-cards .v2-app-inst:not(.v2-app-inst--past) .v2-app-inst-title { font-size: 13px; font-weight: 600; }
.v2-home-cards .v2-pg--rows .v2-app-inst:not(.v2-app-inst--1) { grid-template-rows: 22px 16px; row-gap: 0; padding: 3px 8px 3px 8px; }
.v2-home-cards .v2-pg--rows .v2-app-inst--past .v2-app-inst-title { font-size: 13px; }
.v2-home-cards .v2-pg--rows .v2-app-inst-close, .v2-home-cards .v2-pg--rows .v2-app-inst-pin { top: 3px; }
.v2-home-cards .v2-pg--rows .v2-app-inst-ask, .v2-home-cards .v2-pg--rows .v2-app-inst-pj { line-height: 16px; }
/* 「고정」 세션 카드의 둘째 줄 = 소속 프로젝트(카드 머리가 없으니 줄이 소속을 말한다). 마지막 말 줄과 같은 기둥에 선다. */
.v2-app-inst-pj { grid-column: 1 / 3; grid-row: 2; min-width: 0; margin-left: 26px; align-self: center; display: flex; align-items: center; gap: 5px; }
/* 세션별 축 둘째 줄 끝의 소속 — 마지막 말이 먼저 자리를 갖고, 좁으면 이쪽이 먼저 잘린다. */
.v2-app-inst-askp { flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); }
.v2-app-inst-askp::before { content: '·'; margin-right: 5px; }
