/* 49-v2-taxonomy.css — 「분류체계」 앱(#4233, web/v2/taxonomy.ts). 맥락 관리의 카테고리 탭을 앱으로 뺐다(원준 2026-09-26).
   구성은 위키 본문 2판 · AI 세션 목록과 같다: 테두리 상자 없음, 머리 두 줄(빵부스러기 · 도구줄), 그 아래 본문.
   색은 전부 토큰이라 다크(90-dark)가 따라온다. 연결 그림(SVG)도 CSS 클래스로 칠한다(속성에 색을 박지 않는다). */
.v2-tx { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.v2-tx-top { flex: none; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 24px; min-width: 0; }
.v2-tx-top .crumb { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.v2-tx-top .crumb:hover { color: var(--ink); }
.v2-tx-top .sl { font-size: 15px; color: var(--muted-3); }
.v2-tx-top .now { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2-tx-top .desc { margin-left: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2-tx-tools { flex: none; min-height: 56px; display: flex; align-items: center; gap: 6px; padding: 0 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.v2-tx-tools .sp { flex: 1; }
.v2-tx-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-tx-ic.up { transform: rotate(180deg); }
.v2-tx-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; text-decoration: none; }
.v2-tx-tb .v2-tx-ic { color: var(--muted-2); }
.v2-tx-tb:hover { background: var(--bg-tint-2); color: var(--ink); }
.v2-tx-tb.ic { width: 32px; padding: 0; justify-content: center; }
.v2-tx-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-tx-legend { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); min-width: 0; flex-wrap: wrap; }
.v2-tx-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.v2-tx-legend i { width: 10px; height: 6px; border-radius: 3px; }
.v2-tx-legend i.k, .v2-tx-bar.k .v2-tx-bfl { background: var(--blue-fill); }
.v2-tx-legend i.p, .v2-tx-bar.p .v2-tx-bfl { background: var(--muted-2); }
.v2-tx-tip { font-size: 12.5px; color: var(--muted); }
.v2-tx-body { flex: 1; min-height: 0; overflow: auto; padding: 0 20px 32px; }
.v2-tx-note { margin: 16px 4px; font-size: 13px; color: var(--muted); }
.v2-tx > .v2-tx-note { margin: 18px 24px; }
.v2-tx-empty { margin: 36px auto; max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.v2-tx-empty b { font-size: 16px; color: var(--ink); }
.v2-tx-empty p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 전체 지도 — 묶음마다 한 칸, 분류마다 막대 둘 */
.v2-tx-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding-top: 16px; align-items: start; }
.v2-tx-col { background: var(--gray-bg-2); border-radius: 12px; padding: 10px 8px 8px; min-width: 0; }
.v2-tx-colh { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.v2-tx-colh .v2-tx-pill { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg); display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.v2-tx-colh .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-tx-colhint { margin: 6px 4px 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.v2-tx-mrow { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; margin-top: 4px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-net); text-decoration: none; color: var(--ink); }
.v2-tx-mrow:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--line-net)); }
.v2-tx-mrow .nm { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tx-bars { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.v2-tx-bar { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.v2-tx-btr { display: block; height: 6px; border-radius: 3px; background: var(--line-row); overflow: hidden; }
.v2-tx-bfl { display: block; height: 6px; border-radius: 3px; }
.v2-tx-bv { text-align: right; color: var(--ink-sub); font-variant-numeric: tabular-nums; }
.v2-tx-fold { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.v2-tx-fold:hover { background: var(--bg-tint-2); color: var(--ink-sub); }
.v2-tx-fold .car { display: inline-block; transition: transform .12s; }
.v2-tx-fold.open .car { transform: rotate(90deg); }

/* 손볼 것 */
.v2-tx-fix { padding-top: 6px; }
.v2-tx-fsec { margin-top: 12px; }
.v2-tx-fh { display: flex; align-items: center; gap: 8px; height: 44px; border-bottom: 1px solid var(--line-row); }
.v2-tx-fh .v2-tx-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; color: var(--ink); }
.v2-tx-fh .v2-tx-pill.nodef { background: var(--warn-bg); color: var(--warn-ink); }
.v2-tx-fh .n { font-size: 12px; color: var(--muted); }
.v2-tx-fh .hint { font-size: 12.5px; color: var(--muted); }
.v2-tx-frow { display: grid; grid-template-columns: 20px minmax(0, 1fr) 140px 90px 100px 80px; align-items: center; gap: 8px; height: 46px; padding-left: 8px; border-bottom: 1px solid var(--line-row); text-decoration: none; color: var(--ink); }
.v2-tx-frow:hover { background: var(--bg-sel); }
.v2-tx-frow .v2-tx-ic { color: var(--muted-2); }
.v2-tx-frow .nm { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tx-frow .g, .v2-tx-frow .m { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 분류 상세 3안 */
.v2-tx-dhead { display: flex; align-items: baseline; gap: 12px; padding-top: 20px; min-width: 0; }
.v2-tx-dhead h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.v2-tx-dhead .ky { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--muted); }
.v2-tx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.v2-tx-chips .v2-tx-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg-tint-2); font-size: 11.5px; font-weight: 700; color: var(--ink-sub); }
.v2-tx-chips .v2-tx-pill .v2-tx-ic { width: 12px; height: 12px; }
.v2-tx-chips .v2-tx-pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.v2-tx-sech { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.v2-tx-sech b { font-size: 13px; font-weight: 800; color: var(--ink); }
.v2-tx-sech .c { font-size: 12px; color: var(--muted); }
.v2-tx-sech .lnk { margin-left: auto; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: none; }
.v2-tx-def { margin-bottom: 16px; }
.v2-tx-def .txt { padding: 12px 14px; border: 1px solid var(--line-net); border-radius: 10px; font-size: 13.5px; line-height: 1.7; color: var(--ink-sub); }
.v2-tx-def .txt p { margin: 0; white-space: pre-line; }
.v2-tx-def .txt p.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2-tx-def .txt.none { color: var(--muted); border-style: dashed; }
.v2-tx-dg { border: 1px solid var(--line-row); border-radius: 12px; background: var(--bg); overflow-x: auto; }
.v2-tx-dg svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: inherit; }
.v2-tx-dg .ln { fill: none; stroke: var(--line-net); stroke-width: 1.6; }
.v2-tx-dg .ln.dash { stroke-dasharray: 4 4; }
.v2-tx-dg .lbg { fill: var(--bg); stroke: var(--line-net); }
.v2-tx-dg .lb { fill: var(--ink-sub); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-tx-dg .nd { fill: var(--bg); stroke: var(--line-net); }
.v2-tx-dg .nd.dash { stroke-dasharray: 4 4; fill: none; }
.v2-tx-dg .nd.c { fill: var(--bg-tint); stroke: var(--blue); stroke-width: 2; }
.v2-tx-dg .t { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
.v2-tx-dg .t.c { font-size: 14px; font-weight: 800; }
.v2-tx-dg .s { fill: var(--muted); font-size: 11px; }
.v2-tx-dg .cap { fill: var(--muted); font-size: 11.5px; font-weight: 700; }
.v2-tx-dg a:hover .nd { stroke: var(--blue); }
.v2-tx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.v2-tx-list { min-width: 0; }
.v2-tx-krow { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line-row); text-decoration: none; color: var(--ink); }
.v2-tx-krow:hover .t { color: var(--blue); }
.v2-tx-krow .t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tx-krow .m { flex: none; font-size: 12px; color: var(--muted); }
.v2-tx-lcard { border: 1px solid var(--line-net); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.v2-tx-lcard .h { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.v2-tx-lcard .h .v2-tx-ic { color: var(--muted-2); }
.v2-tx-lcard .h b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tx-lcard .h:hover b { color: var(--blue); }
.v2-tx-lcard .h .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2-tx-lcard .s { margin: 4px 0 4px 24px; font-size: 11.5px; color: var(--muted); }
.v2-tx-prow { display: flex; align-items: center; gap: 8px; min-height: 30px; padding-left: 24px; text-decoration: none; color: var(--ink-sub); font-size: 13px; }
.v2-tx-prow:hover .t { color: var(--blue); }
.v2-tx-prow .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-tx-prow .m { flex: none; font-size: 12px; color: var(--muted); }
.v2-tx-prow .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted-3); }
.v2-tx-prow .dot.started { background: var(--blue-fill); }
.v2-tx-prow .dot.done { background: var(--mint-deep); }

/* 묶음 정리 창 */
.v2-tx-gm { width: min(520px, calc(100vw - 32px)); }
.v2-tx-gm-hint { margin: 0 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.v2-tx-gm-list { display: flex; flex-direction: column; gap: 6px; }
.v2-tx-gm-row { display: flex; align-items: center; gap: 8px; }
.v2-tx-gm-row .nm, .v2-tx-gm-add .nm { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-net); border-radius: 8px; background: var(--bg); font: inherit; font-size: 13.5px; color: var(--ink); }
.v2-tx-gm-row .c { flex: none; font-size: 12px; color: var(--muted); width: 52px; }
.v2-tx-gm-row .ib { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.v2-tx-gm-row .ib:hover:not(:disabled) { background: var(--bg-tint-2); color: var(--ink); }
.v2-tx-gm-row .ib:disabled { opacity: .35; cursor: default; }
.v2-tx-gm-add { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.v2-tx-gm-sel { margin-top: 8px; height: 34px; border: 1px solid var(--line-net); border-radius: 8px; background: var(--bg); font: inherit; color: var(--ink); }

@media (max-width: 1100px) {
  .v2-tx-two { grid-template-columns: minmax(0, 1fr); }
  .v2-tx-frow { grid-template-columns: 20px minmax(0, 1fr) 90px 100px; }
  .v2-tx-frow .g, .v2-tx-frow > span:last-child { display: none; }
}
@media (max-width: 640px) {
  .v2-tx-top, .v2-tx-tools { padding: 0 12px; }
  .v2-tx-tools { overflow-x: auto; }
  .v2-tx-legend { display: none; }
  .v2-tx-body { padding: 0 12px 24px; }
  .v2-tx-map { grid-template-columns: minmax(0, 1fr); }
  .v2-tx-frow { grid-template-columns: 20px minmax(0, 1fr) 76px; }
  .v2-tx-frow > .m:nth-of-type(2) { display: none; }
  .v2-tx-dhead h1 { font-size: 20px; }
}
