:root {
  --bg: #0d0f13;
  --panel: #151920;
  --panel2: #1b2029;
  --line: #2a313c;
  --line2: #3a4350;
  --text: #e3e7ee;
  --muted: #8e98a7;
  --accent: #d9a84a;
  --accent2: #f2c879;
  --ok: #4cc38a;
  --warn: #e3a33c;
  --bad: #e5574a;
  --blue: #5aa2f0;
  --gap: 10px;
  --side-w: 220px;
  font-family: "Malgun Gothic", "맑은 고딕", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-size: 13px; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------------- layout: 실제 뷰포트 높이 기준, 페이지 스크롤 없음 */
.app { height: 100vh; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) 24px; }
.top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 56px; background: #11141a;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; row-gap: 6px; }
.brand { font-weight: 700; letter-spacing: .2px; color: var(--accent2); white-space: nowrap; margin-right: 4px; }
.bar { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; flex-wrap: wrap; row-gap: 6px; min-width: 0; }
.who { display: flex; align-items: center; gap: 10px; margin-left: auto; position: relative; white-space: nowrap; }
.sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.fld { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.fld select, .fld input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 5px 6px; color: var(--text); max-width: 170px; }
.fld--build select { width: 170px; }
.main { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: var(--gap); padding: var(--gap); min-height: 0; }
.main.side-left { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.main.side-left .tree { order: 2; }
.main.side-left .side { order: 1; }
.main.no-side { grid-template-columns: minmax(0, 1fr); }
.main.no-side .side { display: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 0; min-width: 0; overflow: hidden; }
.foot { display: flex; gap: 0; align-items: center; padding: 0 12px; background: #0f1216; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.foot span { padding: 0 12px; border-right: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; }
.foot span:first-child { padding-left: 0; }
.foot span:last-child { border-right: 0; }
.foot .ok { color: var(--ok); } .foot .warn { color: var(--warn); } .foot .bad { color: var(--bad); }

/* ---------------- buttons */
.btn { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #56606e; background: #222833; }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { background: #6b4d17; border-color: #a47b2c; color: #fff3da; }
.btn--primary:hover { background: #7d5a1b; border-color: var(--accent); }
.btn--ghost { background: transparent; }
.btn--danger { background: #4a1e1b; border-color: #8a3a33; }
.btn[aria-pressed="true"] { background: #23384f; border-color: var(--blue); }
.ibtn { background: rgba(21,25,32,.9); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 9px; cursor: pointer; min-width: 30px; }
.ibtn:hover { border-color: #56606e; }
.linkbtn { background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px 2px; }
.linkbtn:hover { color: var(--accent2); }
.split { position: relative; display: inline-flex; }
.split > .btn:first-child:not(:only-of-type) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split__more { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; padding: 5px 7px; }
.menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; background: #1d222b; border: 1px solid var(--line2);
  border-radius: 8px; padding: 4px; min-width: 210px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.menu--right { left: auto; right: 0; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.menu button:hover { background: #2a313c; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 7px; overflow: hidden; }
.seg button { background: var(--panel2); border: 0; padding: 5px 11px; cursor: pointer; border-right: 1px solid var(--line2); }
.seg button:last-child { border-right: 0; }
.seg button.is-on { background: #3a2b10; color: var(--accent2); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg--sm button { padding: 3px 10px; }
.tree__hint { color: var(--muted); font-size: 12px; align-self: center; margin-right: 4px; white-space: nowrap; }
.tree__hint b { color: var(--text); font-weight: 600; }
.points { display: inline-flex; align-items: center; gap: 5px; background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 6px; padding: 2px 8px; color: var(--muted); }
.points b { color: var(--accent2); font-size: 15px; min-width: 22px; text-align: right; }
.points.over b { color: var(--bad); }
.points input { width: 76px; background: transparent; border: 0; border-bottom: 1px dashed var(--line2); color: var(--text); padding: 3px 2px; }
.conn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.conn i { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); display: inline-block; }
.conn.ok i { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.conn.bad i { background: var(--bad); }

/* ---------------- tree */
.tree { display: grid; grid-template-rows: 38px minmax(0, 1fr); }
.tree__head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tree__head h2 { font-size: 14px; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tree__head { gap: 10px; }
/* 머리줄: 왼쪽 제목(고정 폭) · [특성 트리 | 지도] · 오른쪽 도구
   제목 칸 폭을 고정해 트리/지도 전환·직업·무기 이름 길이와 관계없이 전환 버튼이 늘 같은 자리에 있게 함 */
.tree__head { justify-content: flex-start; }
.tree__head > h2 { flex: 0 0 380px; width: 380px; }
.tree__mode { flex: none; }
.tree__head > .tree__tools { flex: 0 1 auto; min-width: 0; margin-left: auto; }
.tree__mode button { font-weight: 600; padding: 4px 16px; }
.tree__maptitle { display: none; }
.tree__maptitle span { color: var(--muted); font-weight: 400; }
/* 지도 사이트 상단 메뉴(높이 84px 고정, 사이트의 --topbar-h)는 틀을 그만큼 위로 올려 트리 영역 밖으로 가림 */
.tree__map { position: absolute; left: 0; right: 0; top: -84px; width: 100%; height: calc(100% + 84px); border: 0; background: #0f1217; }
.tree.is-map #treeTitle, .tree.is-map .tree__tools, .tree.is-map .tsvg, .tree.is-map #tip, .tree.is-map #cbubble, .tree.is-map #stRemote { display: none !important; }
.tree.is-map .tree__maptitle { display: block; }
.tree__tools { flex: 0 0 auto; align-items: center; }
.tree__tools .ibtn, .tree__tools .seg button { white-space: nowrap; }
/* 좁은 창: 머리줄을 여러 줄로 접어 버튼이 찌그러지거나 잘리지 않게(버튼은 줄지 않음), 안내 문구는 맨 아래 한 줄로 */
.tree { grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.tree__head { min-height: 38px; min-width: 0; }
.tree__tools > :not(.tree__hint) { flex: none; }
@media (max-width: 1700px) {
  .tree__head { flex-wrap: wrap; row-gap: 4px; padding-top: 4px; padding-bottom: 4px; }
  .tree__head > h2 { flex: 1 1 200px; width: auto; }
  .tree__head > .tree__tools { flex: 1 1 560px; flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; margin-left: 0; }
  .tree__hint { order: 99; flex: 1 1 100%; text-align: right; white-space: normal; font-size: 11.5px; margin: 0; }
}
.hc { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 0; vertical-align: -1px; font-style: normal; }
.hc--avail { border: 2px solid #4ade80; background: #0f2a1a; box-shadow: 0 0 5px rgba(74, 222, 128,.7); }
.hc--rel { border: 2px solid #6f97d6; background: #2a2f37; box-shadow: 0 0 5px rgba(111,151,214,.8); }
.hc--next { border: 2px solid #d0a45c; background: #2a2f37; box-shadow: 0 0 5px rgba(208,164,92,.8); }
.hc--ref { border: 2px solid #ff6a00; background: #2a2f37; box-shadow: 0 0 5px rgba(255,106,0,.8); }
.hc--vid { width: 13px; height: 13px; border-radius: 50%; background: #c0392b; color: #fff; font-size: 7px; line-height: 13px; text-align: center; vertical-align: 0; }
.tree__tools { display: flex; gap: 6px; position: relative; }
/* 휠로 잠시 해제했을 때 이동 고정 버튼 옆: 다시 고정까지 남은 초 */
.tvrelock { align-self: center; white-space: nowrap; font-size: 12px; color: #f0c060; font-variant-numeric: tabular-nums; }
.tree__view { position: relative; min-height: 0; overflow: hidden; background:
  radial-gradient(circle at 50% 30%, #161b23 0, #0f1217 70%); }
.tsvg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; cursor: grab; }
.tsvg.is-panning { cursor: grabbing; }
.tsvg.is-locked { cursor: default; }
.ibtn[aria-pressed="true"] { background: #3a2b10; border-color: #a47b2c; color: var(--accent2); }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 15px; text-align: center; padding: 20px; }

.edge { fill: none; stroke: #39414d; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.edge.is-open { stroke: #4ade80; stroke-dasharray: 10 6; }
.edge.is-on { stroke: var(--accent); }
.edge.is-dim { stroke: #2a2f37; stroke-dasharray: 8 8; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 18; }
.edge.is-sel { stroke: var(--blue); stroke-width: 6; }

.node { cursor: pointer; }
.node .nf { fill: #13161b; stroke: #353b45; stroke-width: 3; }
.node .nf2 { fill: none; stroke: #353b45; stroke-width: 1.5; opacity: .7; }
.node image { opacity: .22; pointer-events: none; }
/* 습득 가능: 녹색 테두리 + 은은한 빛 (습득=금색, 선행·후속=흰색, 선택=파랑과 구분) */
.node.is-available .nf { fill: #0f2a1a; stroke: #4ade80; stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(74, 222, 128, .55)); }
.node.is-available .nf2 { stroke: #4ade80; opacity: .9; }
.node.is-available image { opacity: 1; }
.node.is-learned .nf { fill: #4f3610; stroke: var(--accent2); }
.node.is-learned .nf2 { stroke: var(--accent); }
.node.is-learned image { opacity: 1; }
.node.is-default .nf { fill: #3a3f48; stroke: #e9edf2; }
.node.is-default .nf2 { stroke: #c9cfd8; }
.node.is-excluded .nf { stroke: #7c3a34; stroke-dasharray: 6 5; }
.node.is-excluded image { opacity: .18; }
.node.is-invalid .nf { stroke: var(--bad); }
.node:hover .nf { filter: brightness(1.25); }
.node .ring { fill: none; stroke: transparent; stroke-width: 4; }
/* 선택: 굵은 파란 테두리 + 은은한 파란 빛 + 모서리 꺾쇠 (깜빡임 없음 — 흰 빛의 선행/후속과 구분) */
.node.is-focus .ring { stroke: #5aa2f0; stroke-width: 7; filter: drop-shadow(0 0 8px rgba(90, 162, 240, .85)); }
.selc { fill: none; stroke: #8cc4ff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; display: none; pointer-events: none; }
.node.is-focus .selc { display: inline; filter: drop-shadow(0 0 4px rgba(90, 162, 240, .9)); }
.tip-novid { margin: -8px -11px 8px; padding: 9px 11px; background: #2a1414; color: #ffb4ad; font-size: 11.5px; border-radius: 6px 6px 0 0; }
.node.is-flash .ring { stroke: #fff; animation: flash 1.2s ease-out 2; }
@keyframes flash { 0% { stroke-opacity: 1; stroke-width: 10; } 100% { stroke-opacity: 0; stroke-width: 2; } }
/* 선택 노드의 선행·후속: 흰색으로 빛남 (녹색 = 습득 가능과 구분) */
.node.is-rel .ring { stroke: #ffffff; stroke-width: 5; animation: relGlow 1.4s ease-in-out infinite; }
.node.is-rel .nf { stroke: #ffffff; }
.edge.is-rel { stroke: #ffffff; stroke-width: 6; stroke-dasharray: none; animation: relEdge 1.4s ease-in-out infinite; }
@keyframes relGlow { 0%, 100% { stroke-opacity: .35; filter: drop-shadow(0 0 2px #fff); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 10px #fff); } }
@keyframes relEdge { 0%, 100% { stroke-opacity: .5; filter: drop-shadow(0 0 1px #fff); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px #fff); } }
.nbadge--rel { display: none; }
.node.is-rel .nbadge--rel { display: inline; }
/* 설명 연계(원본 설명의 [스킬명]): 진한 주황 — 흰색 선행/후속(연결선)과 구분 */
.node.is-ref .ring { stroke: #ff6a00; stroke-width: 5; animation: refGlow 1.4s ease-in-out infinite; }
.node.is-ref .nf { stroke: #ff6a00; }
.node.is-ref .nbadge--rel { display: inline; }
.node.is-rel.is-ref .nrel { stroke: #ff6a00; stroke-width: 2; }   /* 선행/후속 + 강화 연계 둘 다 */
/* 선행 연계 = 청색, 후속 연계 = 황토색: 강화(주황)·선택(노랑)·습득 가능(초록)과 구분 */
.node.is-rel-req .ring, .node.is-rel-next .ring { stroke-width: 5; }
.node.is-rel-req .ring { stroke: #6f97d6; animation-name: relReq; }
.node.is-rel-req .nf { stroke: #6f97d6; }
.node.is-rel-req:not(.is-ref) .nrel { fill: #cfe0fa; stroke: #6f97d6; filter: drop-shadow(0 0 4px rgba(111, 151, 214, .8)); }
.edge.is-rel-req { stroke: #6f97d6; animation-name: relReqEdge; }
.node.is-rel-next .ring { stroke: #d0a45c; animation-name: relNext; }
.node.is-rel-next .nf { stroke: #d0a45c; }
.node.is-rel-next:not(.is-ref) .nrel { fill: #f3e2c2; stroke: #d0a45c; filter: drop-shadow(0 0 4px rgba(208, 164, 92, .8)); }
.edge.is-rel-next { stroke: #d0a45c; animation-name: relNextEdge; }
.node.is-ref .ring { stroke: #ff6a00; animation-name: refGlow; }   /* 강화 연계가 겹치면 주황 우선 */
.node.is-ref .nf { stroke: #ff6a00; }
@keyframes relReq { 0%, 100% { stroke-opacity: .7; filter: drop-shadow(0 0 2px #6f97d6); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 8px #6f97d6); } }
@keyframes relNext { 0%, 100% { stroke-opacity: .7; filter: drop-shadow(0 0 2px #d0a45c); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 8px #d0a45c); } }
@keyframes relReqEdge { 0%, 100% { stroke-opacity: .5; filter: drop-shadow(0 0 1px #6f97d6); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px #6f97d6); } }
@keyframes relNextEdge { 0%, 100% { stroke-opacity: .5; filter: drop-shadow(0 0 1px #d0a45c); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px #d0a45c); } }
.node.is-ref:not(.is-rel) .nrel { fill: #ffd2b0; stroke: #ff6a00; filter: drop-shadow(0 0 4px rgba(255, 106, 0, .8)); }
@keyframes refGlow { 0%, 100% { stroke-opacity: .35; filter: drop-shadow(0 0 2px #ff6a00); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 10px #ff6a00); } }
.nrel { fill: #f4f6f9; stroke: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.8)); }
/* 노드 위 스킬 이름: 크고 굵게, 진한 외곽선으로 배경 무늬 위에서도 또렷하게 (영문은 Segoe UI 가 더 선명) */
.nrel-name { display: none; fill: #ffffff; font-family: "Segoe UI", "Malgun Gothic", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .2px;
  text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #000; stroke-width: 5px; stroke-linejoin: round; }
.node.is-rel .nrel-name, .node.is-ref .nrel-name { display: inline; }
.nrel-t { fill: #0b0d10; font-size: 11.5px; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
/* 목록에서 누른 노드: 더 강하게 */
.node.is-ping .ring { stroke: #ffffff; animation: ping .6s ease-out 4; }
/* 상태이상 리모컨에서 고른 효과를 주는 특성: 노란 테두리로 계속 반짝 */
.node.is-stfx .ring { stroke: #ffc94a; stroke-width: 8; animation: stfx 1.1s ease-in-out infinite; }
@keyframes stfx { 0%, 100% { stroke-opacity: 1; filter: drop-shadow(0 0 10px #ffb300); } 50% { stroke-opacity: .35; filter: none; } }
@keyframes ping { 0% { stroke-width: 16; stroke-opacity: 1; filter: drop-shadow(0 0 16px #fff); } 100% { stroke-width: 4; stroke-opacity: .3; } }
.node .cost { fill: #0d0f13; stroke: #a47b2c; stroke-width: 1.5; }
.node .costt { fill: var(--accent2); font-size: 16px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node.is-learned .cost { fill: #6b4d17; }
.node .lockby { fill: var(--blue); font-size: 15px; text-anchor: middle; pointer-events: none; }
.node.is-locked-other .nf { stroke: var(--blue); stroke-dasharray: 4 4; }
.node.is-pending .nf { stroke-dasharray: 3 4; }
/* 노드 배지: 유형(아래) · 영상(왼쪽 위) */
.nbadge { pointer-events: none; }
.ntype { stroke-width: 1; }
.ntype--active { fill: #4a2c10; stroke: #d98a3a; }
.ntype--passive { fill: #16304d; stroke: #5aa2f0; }
.ntype--stats { fill: #183d2c; stroke: #4cc38a; }
.ntype-t { fill: #f1f4f8; font-size: 10.5px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
/* 습득 상태 표시: 습득=금색 / 미습득=회색 / 지금 습득 가능=녹색 글자 */
.nst { fill: #1d2129; stroke: #4a525e; stroke-width: 1; }
.nst-t { fill: #8e98a7; font-size: 10.5px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.node.is-learned .nst { fill: #5a3d0e; stroke: #f2c879; }
.node.is-learned .nst-t { fill: #ffe7b0; }
.node.is-available .nst { fill: #0f2a1a; stroke: #4ade80; }
.node.is-default .nst { fill: #3a3f48; stroke: #e9edf2; }
.node.is-default .nst-t { fill: #fff; }
.node.is-available .nst-t { fill: #b6f5c9; }
.nvid { fill: #c0392b; stroke: #ffd2cc; stroke-width: 1.2; }
.nvid-i { fill: #fff; }
.nbadge--vid { pointer-events: auto; }
.app.is-edit .pending-box { fill: rgba(227,163,60,.05); stroke: var(--warn); stroke-dasharray: 10 8; stroke-width: 2; }
.pending-label { fill: var(--warn); font-size: 22px; }
.ghost { fill: none; stroke: #6fb1ff; stroke-dasharray: 6 6; stroke-width: 2; opacity: .8; pointer-events: none; }
.ghost-line { stroke: #6fb1ff; stroke-width: 1.5; stroke-dasharray: 3 5; opacity: .7; pointer-events: none; }
.wp { fill: #0d0f13; stroke: var(--blue); stroke-width: 3; cursor: move; }
.wp:hover { fill: var(--blue); }

.tip { position: absolute; pointer-events: none; background: rgba(12,14,18,.96); border: 1px solid var(--line2); border-radius: 6px;
  padding: 8px 11px; max-width: 380px; font-size: 12px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tip b { display: block; color: var(--accent2); margin-bottom: 2px; font-size: 13px; }
.tip-meta { color: var(--muted); font-size: 11.5px; }
.tip { width: 380px; max-height: calc(100% - 12px); overflow: hidden; }
.tip-video { margin: -8px -11px 8px; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; color: var(--muted); font-size: 11.5px; border-radius: 6px 6px 0 0; overflow: hidden; }
.tip-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tip-head { display: flex; gap: 8px; align-items: center; }
.tip-head img { width: 34px; height: 34px; background: #2a2f37; border-radius: 5px; padding: 3px; flex: 0 0 auto; }
.tip-head b { margin: 0; }
.tip-stage { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.tip-stage .tag { font-size: 11px; padding: 0 6px; }
.tip-hint { color: var(--accent2); margin-left: 4px; }
.tip-sec { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.tip-sec h5 { margin: 0 0 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tip-eff, .tip-links { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.5; }
.tip-eff b { color: #ffd27a; font-weight: 600; }
.tip-links li { display: block; padding: 3px 0; }
.tip-links li + li { border-top: 1px dashed #2b313b; }
.tip-links .tl-h { display: flex; justify-content: space-between; gap: 8px; }
.tip-links .tl-d { color: #c9d1dc; font-size: .92em; line-height: 1.5; margin-top: 1px; word-break: keep-all; }
.tip-links .tl-d .st { color: #ffd27a; font-weight: 600; }
.tip-links .tl-d .st img { width: 14px; height: 14px; vertical-align: -2px; }
.tip-links .tl-d .ref { color: #8fc1ff; }
.tip-links .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-links .tag { font-size: 10.5px; padding: 0 6px; flex: 0 0 auto; }
.tip-desc { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); line-height: 1.55; font-size: 12.5px; color: var(--text); }
.tip-desc .st { display: inline-flex; align-items: center; gap: 2px; color: #ffd27a; font-weight: 700; white-space: nowrap; }
.tip-desc .st img { width: 14px; height: 14px; }
.tip-desc .ref { color: #8fc1ff; }
.tip-none { color: var(--muted); }
.tip-en { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: #c9d1dc; }
.tip-alt { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: #c9d1dc; }
.tip-alt .st { display: inline-flex; align-items: center; gap: 2px; color: #ffd27a; font-weight: 700; white-space: nowrap; }
.tip-alt .st img { width: 14px; height: 14px; }
.tip-lab { display: inline-block; font-size: 10px; padding: 0 5px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); margin-right: 3px; vertical-align: 1px; }
.tip-lab--tr { color: #b6f5c9; border-color: #2b7a4b; }
.tip-en .st { display: inline-flex; align-items: center; gap: 2px; color: #ffd27a; font-weight: 700; white-space: nowrap; }
.tip-en .st img { width: 14px; height: 14px; }
.tip-en .ref, .tip-alt .ref { color: #8fc1ff; font-weight: 600; }
.tip-en > span:first-child { display: inline-block; font-size: 10px; padding: 0 5px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); margin-right: 3px; }
.tip-combo { margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.tip .kbd { display: inline-block; border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; background: #222833; font-size: 11px; color: var(--text); }
/* 팝업 큰 글자 (읽기 쉽게) */
.tip { width: 820px; max-width: calc(100% - 12px); padding: 12px 14px; font-size: 14px; }
.tip-cols { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; }
.tip-l { min-width: 0; }
.tip-r { min-width: 0; border-left: 1px solid var(--line); padding-left: 16px; }
.tip-r > .tip-desc:first-child, .tip-r > .tip-alt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tip-video, .tip-novid { margin: 0 0 10px; border-radius: 6px; }
.tip-novid--none { background: #1a1e25; color: var(--muted); text-align: center; }
.tip-hint { margin: 4px 0 0; }
.tip b { font-size: 16px; }
.tip-head img { width: 40px; height: 40px; }
.tip-meta { font-size: 13px; }
.tip-stage { font-size: 13px; margin-top: 8px; }
.tip-stage .tag { font-size: 12.5px; padding: 1px 7px; }
.tip-desc { font-size: 15px; line-height: 1.6; margin-top: 8px; padding-top: 8px; }
.tip-alt { font-size: 14px; line-height: 1.6; margin-top: 8px; color: #d3dae4; }
.tip-en { font-size: 13.5px; line-height: 1.55; margin-top: 8px; color: #c2cad6; }
.tip-desc .st img, .tip-alt .st img, .tip-en .st img { width: 16px; height: 16px; }
.tip-lab { font-size: 11.5px; padding: 1px 6px; }
.tip-combo { font-size: 13px; margin-top: 7px; }
.tip .kbd { font-size: 12.5px; padding: 0 5px; }
/* 가공 커맨드: 이름 + [키] (배운 정보 창 등 팝업 밖에서도 같은 모양) */
.kbd { display: inline-block; border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; background: #222833; color: var(--text); white-space: nowrap; cursor: help; }
.lr-d .kbd, .lr-alt-r .kbd { font-size: .9em; }
.kbd-k { color: var(--accent2); font-weight: 600; }
/* 조작 상자가 줄바꿈될 때 위아래로 겹치지 않게 */
.kbd { line-height: 1.45; margin: 2px 0; vertical-align: 1px; }
.tip-combo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; line-height: 1.5; }
.tip-combo-tr { color: var(--text); line-height: 1.75; }
.tip-combo .ref { color: #8fc1ff; font-weight: 600; }
.kbd-k--mine { color: #8fe0a8; }
/* 상태이상 리모컨 */
/* 상태이상 보기: 트리 오른쪽 위에 늘 떠 있음(처음엔 접힘), 머리줄을 눌러 펼치기/접기 */
.sremote { position: absolute; top: 12px; right: 12px; z-index: 7; width: 260px; max-height: calc(100% - 20px); display: flex; flex-direction: column;
  background: rgba(20, 24, 31, .97); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.55); font-size: 12.5px; }
.sremote[hidden] { display: none; }
.sremote__head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; touch-action: none; }
.sremote__grip { color: var(--muted); letter-spacing: -2px; }
.sremote__btn { background: none; border: 1px solid var(--line2); border-radius: 5px; color: var(--muted); width: 22px; height: 20px; line-height: 16px; cursor: pointer; padding: 0; }
.sremote__btn:hover { color: var(--text); }
.sremote__body { display: flex; flex-direction: column; gap: 6px; padding: 7px; overflow-y: auto; min-height: 0; }
.sr-cat__h { display: flex; align-items: center; gap: 4px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 2px 2px 3px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.sr-cat__h i { font-style: normal; font-weight: 400; margin-left: auto; }
.sr-cat--buff .sr-cat__h { color: #8fe0a8; }
.sr-cat--debuff .sr-cat__h { color: #ff9b8f; }
.sr-cat--cc .sr-cat__h { color: #8fc1ff; }
.sr-cat--etc .sr-cat__h { color: #c9b8ff; }
.sr-cat__b { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.sr-cat.is-shut .sr-cat__b { display: none; }
.sremote.is-min .sremote__body, .sremote.is-min .sremote__foot { display: none; }
.sremote.is-min { width: auto; }
.sremote.is-min .sremote__head { border-bottom: 0; }
.sr-b { display: flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 6px; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.sr-b img { width: 15px; height: 15px; flex: 0 0 auto; }
.sr-b span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-b i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.sr-b:hover { border-color: var(--accent); }
.sr-b.is-on { border-color: #ffc94a; background: rgba(255, 201, 74, .15); color: #ffe39a; }
.sr-b.is-on i { color: #ffe39a; }
.sr-none { grid-column: 1 / -1; color: var(--muted); padding: 6px 2px; }
.sremote__foot { padding: 6px 9px 8px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; word-break: keep-all; }
.sremote__foot b { color: #ffe39a; }
.sremote__foot a { color: #8fc1ff; text-decoration: none; white-space: nowrap; }
.sremote__foot a.is-cur { color: #ffe39a; font-weight: 600; }
.sremote__foot .is-zero { color: var(--muted); opacity: .6; white-space: nowrap; }
/* AI 추천 빌드 서칭 */
.aibox { padding: 8px 10px 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.app.is-edit .aibox, .aibox[hidden] { display: none; }
.aibox__row { display: flex; gap: 6px; }
.aibox__row #btnAi { flex: 1 1 auto; min-width: 0; }
.aibox select { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; color: var(--text); padding: 4px 6px; }
.aibox__st { color: var(--muted); font-size: 11.5px; line-height: 1.4; word-break: keep-all; }
.bl-note { margin: 0 16px 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel2); font-size: 13px; line-height: 1.55; word-break: keep-all; }
.bl-note ul { margin: 4px 0 0; padding-left: 18px; }
.bl-note a { color: #8fc1ff; }
.bl-note .muted { color: var(--muted); }   /* 내가 바꾼 키 */
/* 조작키 창 */
.dlg.dlg--keys { width: min(760px, 96vw); }
.keys__tbl td:nth-child(3) { white-space: nowrap; }
.keys__hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; word-break: keep-all; }
.keys__tbl td, .keys__tbl th { padding: 7px 10px; }
.keys__key { color: var(--text); font-weight: 700; }
.keys__tbl small { color: var(--muted); }
.keys__act { text-align: right; white-space: nowrap; }
.keys__act .btn { margin-left: 4px; }
.keys__tbl tr.is-cap { background: rgba(122, 90, 34, .25); }
.keys__cap { color: #ffd27a; font-weight: 600; }
.btn--sm { padding: 3px 9px; font-size: 12.5px; }
.tip-sec { margin-top: 9px; padding-top: 8px; }
.tip-sec h5 { font-size: 13px; margin-bottom: 4px; }
.tip-eff, .tip-links { font-size: 13.5px; line-height: 1.6; }
.tip-links .tag { font-size: 12px; }
/* 원문: 기본 접힘, 트리 도구줄 [원문 보기]로 펼침 */
.tip .tip-en { display: none; }
body.show-orig .tip .tip-en { display: block; }
.toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(20,24,31,.97); border: 1px solid var(--line2);
  border-radius: 8px; padding: 8px 14px; z-index: 6; max-width: 80%; text-align: center; }
.toast.bad { border-color: var(--bad); }
/* 마우스 옆 말풍선 */
.cbubble { position: absolute; z-index: 8; pointer-events: none; max-width: 360px; padding: 7px 11px; border-radius: 8px;
  background: rgba(20, 24, 31, .97); border: 1px solid var(--line2); color: var(--text); font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
.cbubble.bad { border-color: #e5574a; color: #ffd9d4; }
.cbubble.is-in { animation: bubbleIn .16s ease-out; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* 습득 불가 노드 흔들림 (노드 그룹의 위치 변환은 건드리지 않고 모양만) */
.node.is-shake .nf, .node.is-shake .nf2, .node.is-shake image, .node.is-shake .ring { animation: nodeShake .42s ease-in-out; }
@keyframes nodeShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------------- side / detail */
.side { position: relative; display: flex; flex-direction: column; overflow: visible; }
/* 우측 창 상단 메뉴 (예전 상단 메뉴 줄) — 세로 배치 */
.side > .top { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; min-height: 0;
  border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; flex-wrap: nowrap; }
.side > .top .brand { order: 0; margin: 0; }
.side > .top .who { order: 1; margin: 0; justify-content: space-between; flex-wrap: wrap; row-gap: 4px; }
.side > .top .bar { order: 2; display: grid; grid-template-columns: 1fr; gap: 6px; align-items: stretch; }
.side > .top .bar[hidden] { display: none !important; }
.side > .top .sep { display: none; }
.side > .top .fld, .side > .top .points, .side > .top .seg { grid-column: 1 / -1; }
.side > .top .fld { display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 12px; }
.side > .top .fld select, .side > .top .fld--build select { width: 100%; max-width: none; }
.side > .top .points { justify-content: flex-start; padding: 4px 8px; }
.side > .top .points input { flex: 1; width: auto; }
.side > .top .btn { width: 100%; }
.side > .top .split { width: 100%; }
.side > .top .split > .btn:first-child { flex: 1; }
.side > .top .split__more { width: auto; flex: 0 0 auto; }
.side > .top .seg { display: grid; grid-template-columns: 1fr; }
.side > .top .seg button { border-right: 0; border-bottom: 1px solid var(--line2); }
.side > .top .seg button:last-child { border-bottom: 0; }
.side > .top .menu { left: auto; right: 0; }
.side > .editside { flex: 1 1 auto; min-height: 0; }
/* 내 빌드 요약 카드 */
.sumcard { display: block; width: 100%; text-align: left; margin: 0; padding: 10px; border: 0; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #1b2029, #161a21); border-radius: 0 0 10px 10px; cursor: pointer; font-size: 12.5px; }
.sumcard:hover { background: linear-gradient(180deg, #232a35, #1b2029); }
.app.is-edit .sumcard { display: none; }
.sum-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sum-h b { color: var(--accent2); font-size: 13.5px; }
.sum-h span { color: var(--muted); font-size: 11.5px; }
.sum-total { margin-bottom: 6px; }
.sum-total b { color: var(--accent2); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); padding: 2px 0; }
.sum-empty { color: var(--muted); margin-top: 4px; }
/* 요약 창 */
.dlg--sum { width: min(980px, 96vw); max-height: 90vh; }
.dlg--sum .dlg__body { overflow-y: auto; }
.sum-w { margin-bottom: 18px; }
.sum-w h4 { margin: 6px 0 8px; color: var(--accent2); font-size: 15px; }
.sum-w h4 small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
/* 배운 정보: 액티브 + 연계 패시브 연속 텍스트 */
.lr-a { padding: 4px 2px; }
.lr-a h4 { margin: 4px 0 8px; font-size: 17px; color: var(--accent2); }
.lr-a h4 small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.lr-a--rest h4 { color: var(--muted); font-size: 15px; }
.lr-vid { cursor: help; border-bottom: 1px dashed currentColor; }
.lr-vid::after { content: " ▶"; font-size: .72em; color: #8fc1ff; vertical-align: 1px; }
.lr-vid:hover { color: #fff; }
.lr-vbox { position: fixed; z-index: 20; width: 480px; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line2); border-radius: 8px;
  overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 12px; pointer-events: none; box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.lr-vbox[hidden] { display: none; }
.lr-vbox video { width: 100%; height: 100%; object-fit: contain; display: block; grid-area: 1 / 1; }
.lr-vbox span { grid-area: 1 / 1; }
.lr-d { font-size: 15px; line-height: 1.7; color: var(--text); white-space: pre-line; }
.lr-d .st { color: #ffd27a; font-weight: 700; white-space: nowrap; }
.lr-d .st img { width: 16px; height: 16px; vertical-align: -3px; }
.lr-d .ref { color: #8fc1ff; font-weight: 600; }
.lr-p { margin: 12px 0 0 14px; padding-left: 12px; border-left: 2px solid #7a5a22; }
.lr-pn { color: #e9c27a; font-size: 14px; margin-bottom: 2px; }
.lr-pn b { color: #ffd27a; }
.lr-tabs { margin: 0 16px; }
.lr-badge { display: inline-block; margin-left: 8px; padding: 0 7px; border: 1px solid #7a5a22; border-radius: 9px; font-size: 12px; font-weight: 600;
  color: #ffd27a; vertical-align: 2px; }
.lr-tabs button { font-size: 14.5px; font-weight: 600; }
.lr-none { margin: 8px 0 0 14px; color: var(--muted); font-size: 13.5px; }
.lr-tag { display: inline-block; font-size: 11.5px; padding: 0 6px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); margin-right: 2px; vertical-align: 2px; font-weight: 400; }
.lr-tag--ai { border-color: #2b7a4b; color: #b6f5c9; }
.lr-alt { margin: 4px 0 0; font-size: 13.5px; color: #b9c2ce; }
.lr-alt summary { cursor: pointer; color: var(--muted); font-size: 12.5px; width: max-content; }
.lr-alt summary:hover { color: var(--text); }
.lr-alt-r { margin: 4px 0 0 4px; line-height: 1.6; }
.lr-alt-r .st { color: #ffd27a; font-weight: 600; }
.lr-alt-r .st img { width: 14px; height: 14px; vertical-align: -2px; }
.lr-alt-r .ref { color: #8fc1ff; }
.lr-sep { border: 0; border-top: 1px solid var(--line2); margin: 16px 0; }
/* 일반 모드: 우측 창은 메뉴만 — 너비는 가장 긴 글자에 맞춤(최대 320px), 높이는 메뉴만큼 (상세는 노드 팝업) */
.app:not(.is-edit) .main { grid-template-columns: minmax(0, 1fr) auto; }
.app:not(.is-edit) .main.side-left { grid-template-columns: auto minmax(0, 1fr); }
.app:not(.is-edit) .side { align-self: start; width: max-content; min-width: 170px; max-width: 320px; }
.app:not(.is-edit) .side .fld select { max-width: 296px; }
.detail { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.video { position: relative; background: #000; aspect-ratio: 16 / 9; flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.video video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video__none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #0b0d10; }
.detail__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 14px; }
.d-empty { color: var(--muted); padding: 20px 4px; line-height: 1.6; }
.d-title { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.d-title img { width: 44px; height: 44px; background: #2a2f37; border-radius: 6px; padding: 4px; flex: 0 0 auto; }
.d-title h3 { margin: 0 0 3px; font-size: 17px; color: var(--accent2); }
.d-meta { color: var(--muted); font-size: 12px; }
.d-sec { border-top: 1px solid var(--line); padding: 9px 0 6px; }
.d-sec h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.d-sec h4 small { font-weight: 400; margin-left: 6px; }
.d-desc { line-height: 1.65; }
.d-desc .st { display: inline-flex; align-items: center; gap: 3px; color: #ffd27a; white-space: nowrap; }
.d-desc .st img { width: 16px; height: 16px; }
.d-desc .ref { color: #8fc1ff; cursor: pointer; text-decoration: underline dotted; }
.d-desc .kbd, .d-combo .kbd { display: inline-block; border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; background: #222833; font-size: 12px; }
.d-combo { margin-top: 6px; color: var(--muted); font-size: 12px; }
.d-eff { list-style: none; margin: 0; padding: 0; }
.d-eff li { display: flex; gap: 8px; padding: 4px 0; }
.d-eff img { width: 22px; height: 22px; flex: 0 0 auto; }
.d-eff b { color: #ffd27a; font-weight: 600; }
.d-eff span { color: var(--muted); font-size: 12px; }
.d-stage { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); font-size: 12px; }
.tag--ok { color: var(--ok); border-color: #2b6b4d; }
.tag--avail { color: #4ade80; border-color: #2b7a4b; }
.tag--warn { color: var(--warn); border-color: #7a5a22; }
.tag--bad { color: var(--bad); border-color: #7a2e27; }
.tag--gold { color: var(--accent2); border-color: #7a5a22; }
.d-excl { margin-top: 8px; font-size: 12px; color: var(--muted); }
.d-excl button { margin: 4px 4px 0 0; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.links li:hover { background: #222833; }
.links li img { width: 26px; height: 26px; background: #2a2f37; border-radius: 4px; padding: 2px; }
.links li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links .none { color: var(--muted); cursor: default; }
.links .none:hover { background: none; }
.d-actions { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.d-actions .btn { flex: 1; }

/* ---------------- edit side */
.editside { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 10px; gap: 10px; }
.wgt { border: 1px dashed var(--blue); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.wgt__handle { background: #1d2a3a; padding: 6px 10px; cursor: grab; color: #bcd7ff; user-select: none; }
.wgt__video { aspect-ratio: 16/9; background: #000; display: grid; place-items: center; color: var(--muted); max-height: 150px; }
.wgt__info { padding: 6px 10px; color: var(--muted); font-size: 12px; }
.es-sec h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.es-sec--grow { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.es-node { background: var(--panel2); border-radius: 8px; padding: 8px 10px; line-height: 1.6; font-size: 12px; }
.es-node .btn { margin-top: 6px; padding: 3px 8px; font-size: 12px; }
.review { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }
.review li { display: flex; gap: 6px; align-items: center; padding: 5px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 12px; }
.review li:hover { background: #222833; }
.review li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review li .btn { padding: 2px 7px; font-size: 11px; }
.es-help { color: var(--muted); font-size: 12px; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 8px; }
.side__resize { position: absolute; top: 0; bottom: 0; left: -7px; width: 10px; cursor: ew-resize; z-index: 4; }
.side__resize::after { content: ""; position: absolute; top: 45%; left: 3px; width: 4px; height: 50px; border-radius: 2px; background: var(--blue); }
.main.side-left .side__resize { left: auto; right: -7px; }
.app.is-edit .top { background: #101722; }
.app.is-edit .brand::after { content: " · 배치 편집"; color: var(--blue); }

/* ---------------- dialogs */
.dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 12px; padding: 0; width: min(520px, 94vw);
  max-height: 86vh; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg form { display: flex; flex-direction: column; min-height: 0; }
.dlg--wide { width: min(1100px, 94vw); }
.dlg::backdrop { background: rgba(0,0,0,.55); }
.dlg header, .dlg footer { display: flex; align-items: center; gap: 8px; padding: 11px 16px; }
.dlg header { border-bottom: 1px solid var(--line); justify-content: space-between; }
.dlg header h3 { margin: 0; font-size: 15px; }
.dlg footer { border-top: 1px solid var(--line); }
.dlg .x { background: none; border: 1px solid var(--line2); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.dlg__body { padding: 12px 16px; overflow: auto; min-height: 0; flex: 1 1 auto; }
.dlg__body--table { padding-top: 0; min-height: 200px; }
.dlg__filters { display: flex; gap: 8px; padding: 10px 16px; flex-wrap: wrap; }
.dlg__filters input, .dlg__filters select, .lbl input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 6px 8px; }
.dlg__filters input { flex: 1 1 220px; }
.grow { flex: 1; color: var(--muted); }
.lbl { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.err { color: var(--bad); min-height: 18px; }
.none { color: var(--muted); padding: 16px 4px; text-align: center; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { position: sticky; top: 0; background: var(--panel); text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line2); z-index: 1; }
/* 대화상자 본문(위 여백 12px) 안의 표: 머리줄을 본문 맨 위 가장자리에 붙여, 여백 사이로 스크롤된 줄이 비치지 않게 */
.dlg__body .tbl th { top: -12px; }
.dlg__body--table .tbl th { top: 0; }   /* 위 여백 없는 표 전용 본문(빌드 목록) */
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: #1e242e; }
.tbl tbody tr.is-sel { background: #2b2414; }
.tbl tr.grp td { background: #1a1f27; color: var(--accent2); font-weight: 600; cursor: default; }
.tbl tfoot td { font-weight: 600; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.up-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0 4px; }
.up-held { margin-top: 10px; padding: 9px 12px; border: 1px solid var(--warn); border-radius: 8px; background: rgba(227,163,60,.07); line-height: 1.6; }
.up-h { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.up-table { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }

/* ---------------- gate (login) */
.gate { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #1a1f28, #0b0d10); }
.gate__box { width: 360px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.gate__box h1 { font-size: 18px; margin: 0 0 4px; color: var(--accent2); text-align: center; }
.gate__box label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.gate__box input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 8px; color: var(--text); }
.gate__box .reg { display: none; }
.gate__box.is-register .reg { display: flex; }
.gate__err { color: var(--bad); min-height: 18px; word-break: keep-all; }
.gate__err.is-ok { color: #8fe0a8; }
.gate__note { margin: 0; color: var(--muted); font-size: 12.5px; word-break: keep-all; }
.gate__sub { margin: -4px 0 4px; color: var(--muted); font-size: 12.5px; line-height: 1.55; text-align: center; word-break: keep-all; }
.gate__sub b { color: var(--text); }
.gate__warn { word-break: keep-all; margin: 0; padding: 7px 9px; border: 1px solid #7a5a22; border-radius: 6px; background: rgba(122, 90, 34, .15); color: #e9c27a; font-size: 12.5px; line-height: 1.5; }
.gate__warn b { color: #ffd27a; }
.tabs { display: flex; border-bottom: 1px solid var(--line2); }
.tabs button { flex: 1; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.is-on { color: var(--accent2); border-bottom-color: var(--accent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c333e; border-radius: 6px; border: 2px solid var(--panel); }
::-webkit-scrollbar-track { background: transparent; }
.lr-wait { color: var(--muted); font-size: 12px; }
.tip .lr-d { font-size: 15px; }
.tip .lr-alt { font-size: 13.5px; }
.lr-alt summary i { font-style: normal; opacity: .75; }
/* 노드 팝업 고정(Shift) */
.tip-pin { font-size: 11.5px; color: var(--muted); text-align: right; margin: -2px 0 4px; }
.tip-pin .pin-on { display: none; color: var(--accent2); font-weight: 600; }
.tip.is-pinned { pointer-events: auto; overflow-y: auto; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px rgba(0,0,0,.6); }
.tip.is-pinned .pin-on { display: inline; }
.tip.is-pinned .pin-off { display: none; }
.tip.is-pinned { cursor: move; }
.tip.is-pinned summary, .tip.is-pinned video { cursor: pointer; }
.tip.is-dragging { user-select: none; opacity: .92; }
.tip.is-pinned [data-goto] { cursor: pointer; }
.tip.is-pinned .ref:hover, .tip.is-pinned .tip-links .nm:hover { text-decoration: underline; }
/* 데이터 갱신 비밀번호 */
.uppw { display: flex; flex-direction: column; gap: 8px; }
.uppw label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.uppw input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 8px; color: var(--text); font-size: 15px; letter-spacing: 2px; }
.uppw__err { color: var(--bad); min-height: 18px; }
.uppw__note { margin: 0; color: var(--muted); font-size: 12px; }

/* 팝업: 설명 연계(강화) 목록 제목은 강화 연계 주황 */
.tip-sec--ref h5 { color: #ff8a33; }

/* 선택한 특성도 노드 위에 이름 표시 (연계 라벨이 없으니 라벨 자리로 내려 씀, 선택 파랑 계열) */
.node.is-focus .nbadge--rel { display: inline; }
/* 선택한 특성: 라벨 없이 위에 스킬 이름만(다른 연계 노드처럼) */
.node.is-focus:not(.is-rel):not(.is-ref) .nrel, .node.is-focus:not(.is-rel):not(.is-ref) .nrel-t { display: none; }
.node.is-focus .nrel-name { display: inline; fill: #ffe066; }

/* 스킬 이름 클릭 등으로 이동한 특성: 황금색 테두리 + 붉은 빛이 크게 퍼지며 9번(약 11초) 반짝임 (다른 강조색보다 우선) */
.node.node.is-flash .ring { stroke: #ffd23f; stroke-opacity: 1; animation: jumpFlash 1.2s ease-out 9; }
.node.node.is-flash .nf { stroke: #ffd23f; animation: jumpFrame 1.2s ease-out 9; }
@keyframes jumpFlash {
  0% { stroke-width: 14; filter: drop-shadow(0 0 4px #fff3b0) drop-shadow(0 0 18px #ff3b2f); }
  60% { stroke-width: 6; filter: drop-shadow(0 0 2px #ffd23f) drop-shadow(0 0 10px #ff3b2f); }
  100% { stroke-width: 4; filter: drop-shadow(0 0 0 transparent); }
}
@keyframes jumpFrame { 0%, 40% { stroke: #fff3b0; } 100% { stroke: #ffd23f; } }

/* 선택 중인 특성: 선택이 바뀔 때까지 테두리·틀·아이콘이 진한 노란빛으로 계속 반짝임 (팝업에서 이동한 직후의 황금·붉은 반짝임이 끝나면 이어서) */
.node.node.is-focus:not(.is-flash) .ring { stroke: #ffc400; stroke-width: 7; animation: focusPulse 1.4s ease-in-out infinite; }
.node.node.is-focus .nf { stroke: #ffc400; stroke-width: 4; }
.node.node.is-focus image { opacity: 1; animation: focusIcon 1.4s ease-in-out infinite; }
.node.is-focus .selc { stroke: #ffc400; filter: drop-shadow(0 0 4px rgba(255, 196, 0, .9)); }
@keyframes focusPulse {
  0%, 100% { stroke-opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 196, 0, 1)); }
  50% { stroke-opacity: .5; filter: drop-shadow(0 0 2px rgba(255, 196, 0, .5)); }
}
@keyframes focusIcon {
  0%, 100% { filter: drop-shadow(0 0 6px #ffc400) brightness(1.25) sepia(.6) saturate(3) hue-rotate(-10deg); }
  50% { filter: drop-shadow(0 0 1px #ffc400) brightness(1); }
}

/* 상태이상 보기에서 고른 효과의 특성: 선택한 특성처럼 테두리·틀·아이콘이 밝은 노란빛으로 반짝임 */
.node.node.is-stfx:not(.is-flash):not(.is-focus) .ring { stroke: #ffe14d; stroke-width: 7; animation: stfxPulse 1.1s ease-in-out infinite; }
.node.node.is-stfx:not(.is-focus) .nf { stroke: #ffe14d; stroke-width: 4; }
.node.node.is-stfx image { opacity: 1; animation: stfxIcon 1.1s ease-in-out infinite; }
@keyframes stfxPulse {
  0%, 100% { stroke-opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 225, 77, 1)); }
  50% { stroke-opacity: .5; filter: drop-shadow(0 0 2px rgba(255, 225, 77, .5)); }
}
@keyframes stfxIcon {
  0%, 100% { filter: drop-shadow(0 0 6px #ffe14d) brightness(1.3); }
  50% { filter: drop-shadow(0 0 1px #ffe14d) brightness(1); }
}

/* 팝업의 "우클릭: 습득 / 반환 / 선행 특성 필요" 안내: 크게, 눈에 띄는 상자로 */
.tip .tip-hint { display: table; margin: 6px 0 2px; padding: 4px 11px; border-radius: 7px; font-size: 16px; font-weight: 800; letter-spacing: .3px;
  color: #1a1206; background: #f2c879; box-shadow: 0 0 12px rgba(242, 200, 121, .55); }

/* 영상 없는 특성의 팝업: 왼쪽(영상·이름·상태) 칸을 좁혀 설명 칸을 넓게 */
.tip-cols.tip-cols--novid { grid-template-columns: 260px minmax(0, 1fr); }
/* 상태 줄은 낱말 단위로만 줄바꿈("포인/트"처럼 쪼개지지 않게) */
.tip-stage { word-break: keep-all; overflow-wrap: break-word; }

/* 팝업 실행 조작: 단계별 계단식(위→아래), 같은 단계의 "또는"은 줄을 나눠 */
.tip .tip-combo { display: block; }
.tip-combo-h { color: var(--muted); margin-bottom: 3px; }
.cs { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.cs-step { display: flex; flex-direction: column; gap: 2px; padding-left: 4px; border-left: 2px solid var(--line2); }
.cs-alt { line-height: 1.6; }
.cs-or { color: var(--muted); font-size: .9em; }
.cs-arrow { color: var(--accent); font-weight: 800; padding-left: 8px; line-height: 1.2; }

/* 설명: [AI 번역]·[원문] 등 출처 표시는 설명 위 한 줄로, 본문은 낱말 단위로만 줄바꿈("치명타/가"처럼 쪼개지지 않게) */
.lr-d > .lr-tag:first-child { display: table; margin: 0 0 3px; vertical-align: 0; }
.lr-d, .lr-alt-r, .tl-d, .tip-desc { word-break: keep-all; overflow-wrap: break-word; }
/* 가공(AI) 번역 본문은 출처 표시 없이 바로 보여 줌 (사이트 번역·원문은 접힌 칸에서 구분) */
.lr-d > .lr-tag--ai { display: none; }
/* 출처 표시([AI 번역] 등)는 숨김. 사이트 번역·원문은 설명 아래 접힌 칸으로(트리 위 [원문 보기] 를 켜면 펼친 채로) */
.lr-d > .lr-tag:first-child { display: none; }
/* 팝업 오른쪽 위 스킬 이름(설명 제목) */
.tip-rname { font-size: 17px; font-weight: 800; color: var(--accent2); margin: 0 0 4px; }
/* 선택한 특성 이름은 노드 쪽으로 붙여(라벨 자리) 위 노드의 유형·습득 배지를 가리지 않게. 외곽선으로 꺾쇠 위에서도 또렷 */
.node.is-focus:not(.is-rel):not(.is-ref) .nrel-name { transform: translateY(17px); }
/* 상태이상 보기 창: 트리 영역 폭 안에서만(오른쪽 끝에서 잘리지 않게) */
.sremote { max-width: calc(100% - 24px); }
.sremote.is-min .sremote__head { white-space: nowrap; }

/* 트리(지도) 영역 왼쪽 위 끝: 프로그램 버전 */
.appver { position: absolute; left: 8px; top: 6px; z-index: 6; font-size: 11px; color: var(--muted); opacity: .75; pointer-events: none; user-select: none; }
.appver.is-stale { opacity: 1; color: #1a1206; background: #f2c879; padding: 3px 10px; border-radius: 6px; font-weight: 700; pointer-events: auto; cursor: pointer; }

/* 상태이상 이름 클릭 → 설명 팝업 */
.st[data-stid], .st-link { cursor: pointer; }
.st[data-stid]:hover, .st-link:hover { text-decoration: underline dotted; }
.stpop { position: fixed; z-index: 60; width: 300px; max-width: calc(100vw - 16px); padding: 10px 12px; border-radius: 8px;
  background: rgba(12, 14, 18, .98); border: 1px solid #ffc94a; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); font-size: 13px; line-height: 1.55; }
.stpop-h { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.stpop-h img { width: 20px; height: 20px; }
.stpop-h b { color: #ffd27a; font-size: 15px; }
.stpop-cat { margin-left: auto; font-size: 11.5px; padding: 0 7px; border: 1px solid var(--line2); border-radius: 6px; color: var(--muted); }
.stpop-d { color: var(--text); word-break: keep-all; }
.stpop-en { margin-top: 5px; font-size: 11.5px; color: var(--muted); }

/* 상태이상 가이드 창: 탭 [연관 묶음 | 분류별] */
.dlg--stg header { display: flex; align-items: center; gap: 12px; }
.stg-tabs { margin-right: auto; }
.stg-tabs button.is-on { background: #3a2b10; color: var(--accent2); border-color: #a47b2c; }
.stg { display: flex; flex-direction: column; gap: 16px; }
.stg-grp h4 { margin: 0; font-size: 15px; padding: 5px 10px; border-radius: 6px; background: #1f2530; color: var(--accent2); }
.stg-grp h4 i { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
.stg-cat--버프 h4 { color: #7ee0a0; } .stg-cat--디버프 h4 { color: #ff9a7a; } .stg-cat--제어 h4 { color: #8fc1ff; } .stg-cat--기타 h4 { color: #c8ccd4; }
.stg-note { margin: 5px 10px 2px; color: var(--muted); font-size: 12.5px; }
/* 연관 묶음: 왼쪽 줄 이름 | 오른쪽 단계들(이어지면 ↓, 관련은 점선 아래) */
.stg-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 10px; border-bottom: 1px solid #232933; }
.stg-lbl { font-weight: 800; color: #e8ebf0; font-size: 13.5px; padding-top: 2px; }
.stg-steps { display: flex; flex-direction: column; gap: 6px; }
.stg-arrow { color: var(--accent); font-weight: 800; line-height: 1; padding-left: 6px; margin: -2px 0; }
.stg-rel { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; padding-left: 10px; border-left: 2px dashed #3a4250; }
.stg-rel > span { font-size: 11px; color: var(--muted); }
/* 항목: 아이콘·이름·원문 | 설명 */
.stg-item { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: start; }
.stg-flat { display: flex; flex-direction: column; }
.stg-flat .stg-item { padding: 8px 10px; border-bottom: 1px solid #232933; }
.stg-nm { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 6px; align-items: center; }
.stg-nm img, .stg-noic { width: 20px; height: 20px; grid-row: span 2; }
.stg-nm b { color: #ffd27a; font-size: 14px; line-height: 1.3; }
.stg-nm small { color: var(--muted); font-size: 11px; line-height: 1.3; word-break: break-word; }
.stg-d { margin: 0; color: #dfe3ea; font-size: 13.5px; line-height: 1.6; word-break: keep-all; }
@media (max-width: 760px) { .stg-item { grid-template-columns: minmax(0, 1fr); gap: 2px; } .stg-line { grid-template-columns: minmax(0, 1fr); } }

/* 팝업: 위 칸(강화)에 이미 나온 특성은 선행·후속 칸에서 한 줄로 */
.tip-links li.is-dup .tl-h { opacity: .85; }
.tl-same { font-size: 11.5px; color: var(--muted); margin-left: 6px; margin-right: auto; }

/* 상태이상 보기로 빛나는 특성: 위에 상태이상 이름 라벨(노랑)과 스킬 이름 */
.node.is-stfx .nbadge--rel { display: inline; }
.node.node.is-stfx-lbl .nrel { display: inline; fill: #fff1b8; stroke: #ffc94a; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255, 201, 74, .9)); animation: none; }
.node.node.is-stfx-lbl .nrel-t { display: inline; fill: #3a2600; }
.node.is-stfx .nrel-name { display: inline; }
.sremote__foot > div + div { margin-top: 2px; }
.sr-clear { display: inline-block; margin-top: 4px; color: var(--muted) !important; font-size: 11.5px; }

/* 상태이상 보기 여러 개 선택: 상태이상마다 다른 색 (버튼 테두리·노드 라벨 글자·테두리 빛) */
.sr-b.is-on { border-color: var(--c, #ffc94a); box-shadow: inset 0 0 0 1px var(--c, #ffc94a); }
.sr-b.is-on span { color: var(--c, #ffc94a); }
.node.node.is-stfx-lbl .nrel { fill: #14171c; stroke: var(--stc, #ffc94a); filter: drop-shadow(0 0 4px var(--stc, #ffc94a)); }
.node.node.is-stfx-lbl .nrel-t { fill: #f4f6f9; font-weight: 800; }
.nrel-sep { fill: #9aa3b0; }
.node.node.is-stfx-lbl:not(.is-flash):not(.is-focus) .ring { stroke: var(--stc, #ffe14d); animation: stcPulse 1.1s ease-in-out infinite; }
.node.node.is-stfx-lbl:not(.is-focus) .nf { stroke: var(--stc, #ffe14d); }
@keyframes stcPulse { 0%, 100% { stroke-opacity: 1; filter: drop-shadow(0 0 12px var(--stc, #ffe14d)); } 50% { stroke-opacity: .5; filter: drop-shadow(0 0 2px var(--stc, #ffe14d)); } }

/* 트리 검색창(제목과 [특성 트리|지도] 사이) */
.tree__search { flex: 0 0 260px; min-width: 0; display: flex; align-items: center; gap: 6px; margin: 0 8px; }   /* 제목 바로 뒤 고정 자리(가운데로 밀지 않음) → 트리/지도 전환해도 버튼 위치 그대로 */
.tree__search input { width: 100%; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line2); background: #0f1217; color: var(--text); font-size: 13px; }
.tree__search input:focus { outline: none; border-color: #ff4fd8; box-shadow: 0 0 0 2px rgba(255, 79, 216, .25); }
.tree__searchN { font-size: 12px; color: #ff8be6; white-space: nowrap; min-width: 2.5em; }
.tree__searchN.is-none { color: var(--muted); }
.tree.is-map .tree__search { visibility: hidden; }   /* 지도에서는 숨기되 자리는 유지 → [특성 트리|지도] 버튼 위치 고정 */
.tree__head > .tree__mode { margin-left: 0; }
/* 검색과 맞는 특성: 진한 분홍빛으로 크게 반짝임(다른 강조보다 우선) */
.node.node.is-search:not(.is-flash) .ring { stroke: #ff4fd8; stroke-width: 9; stroke-opacity: 1; animation: searchPulse .9s ease-in-out infinite; }
.node.node.is-search .nf { stroke: #ff4fd8; stroke-width: 4; }
.node.node.is-search image { opacity: 1; }
.node.is-search .nbadge--rel, .node.is-search .nrel-name { display: inline; }
@keyframes searchPulse { 0%, 100% { filter: drop-shadow(0 0 16px #ff4fd8) drop-shadow(0 0 4px #fff); } 50% { filter: drop-shadow(0 0 4px #ff4fd8); } }
/* 검색에만 걸린 노드: 빈 라벨은 숨기고 이름만(라벨 자리로 내려) */
.node.is-search:not(.is-rel):not(.is-ref):not(.is-stfx-lbl):not(.is-focus) .nrel, .node.is-search:not(.is-rel):not(.is-ref):not(.is-stfx-lbl):not(.is-focus) .nrel-t { display: none; }
.node.is-search:not(.is-rel):not(.is-ref):not(.is-stfx-lbl):not(.is-focus) .nrel-name { transform: translateY(17px); fill: #ffc8f3; }
/* 검색창 왼쪽 [비우기] */
.tree__searchX { flex: none; white-space: nowrap; padding: 3px 8px; font-size: 12px; }
/* 상태이상 보기 머리줄 [초기화] */
.sremote__btn.sremote__reset { width: auto; padding: 0 7px; font-size: 11.5px; }
.sremote__btn.sremote__reset:disabled { opacity: .4; cursor: default; }
/* 상태이상 보기 분류 머리줄 오른쪽 [초기화] */
.sr-cat__row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.sr-cat__row .sr-cat__h { border-bottom: 0; }
.sr-cat__x { flex: none; background: none; border: 1px solid var(--line2); border-radius: 5px; color: var(--muted); font-size: 11px; padding: 0 6px; height: 18px; cursor: pointer; }
.sr-cat__x:hover:not(:disabled) { color: var(--text); }
.sr-cat__x:disabled { opacity: .35; cursor: default; }
/* 여러 개 고르면 아래칸(무기별 개수)이 길어지므로 높이 제한·스크롤, 버튼 칸이 밀려나지 않게 */
.sremote__body { flex: 1 1 auto; min-height: 140px; }
.sremote__foot { flex: 0 1 auto; max-height: 150px; overflow-y: auto; }
/* 팝업 목록 항목(강화·선행·후속)의 사이트 번역·원문 접힌 칸: 작게 */
.lr-alt.tl-alt { margin-top: 2px; font-size: 11.5px; }
.lr-alt.tl-alt summary { font-size: 11px; }

/* 회원 관리(관리자) */
.mbadge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #a8432f; color: #fff; font-size: 11px; text-align: center; }
.mtabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mtabs button { background: none; border: 1px solid transparent; border-bottom: 0; color: var(--text); padding: 6px 12px; border-radius: 6px 6px 0 0; cursor: pointer; }
.mtabs button.is-on { border-color: var(--line2); background: var(--panel2); }
.mtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtable th, .mtable td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mtable .mact { display: flex; gap: 6px; flex-wrap: wrap; }
.mtable select { background: var(--panel2); border: 1px solid var(--line2); border-radius: 6px; padding: 4px 6px; color: var(--text); }
.mnote { color: var(--muted, #aaa); font-size: 13px; }
.mwarn { color: #e0a43c; }
@media (max-width: 720px) {
  .mtable thead { display: none; }
  .mtable tr { display: block; border-bottom: 1px solid var(--line2); padding: 6px 0; }
  .mtable td { display: block; border: 0; padding: 3px 8px; }
  .mtable td[data-label]::before { content: attr(data-label) " · "; color: var(--muted, #999); font-size: 12px; }
}
