/* Actual data-driven calculator. Deliberately separate from the former mock tree. */
.wg-talents{padding-bottom:36px}
.wg-data-note{display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-left:3px solid var(--metal-edge);padding:18px 22px;background:var(--surface);margin-bottom:24px}
.wg-data-note b{font-size:15px}.wg-data-note p{font-size:14px;color:var(--muted);margin:4px 0 0}.wg-data-note>.text-link{background:none;border:0;min-height:44px;white-space:nowrap;margin-left:auto;color:var(--teal);font-weight:700;font-size:14px}
.wg-language-picker{display:grid;gap:4px;min-width:122px;margin-left:auto}.wg-language-picker>span{font-size:12px;font-weight:700;color:var(--muted)}.wg-language-picker select{min-height:40px;padding:7px 34px 7px 10px;border:1px solid var(--line);border-radius:4px;background:var(--input-bg);color:var(--text);font:700 14px/1.2 var(--font-ui)}
.wg-class-picker{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;margin-bottom:18px}
.wg-class-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;padding:12px 6px;background:var(--surface);border:1px solid var(--line);border-radius:5px;font-size:14px;font-weight:700;color:var(--text);box-shadow:var(--shadow)}
.wg-class-button img{width:38px;height:38px;border-radius:50%;border:1px solid var(--metal-edge)}
.wg-class-button[aria-pressed=true]{border:2px solid var(--teal);padding:11px 5px;background:var(--selected-bg);box-shadow:0 3px 0 var(--teal)}
.wg-class-button:hover{border-color:var(--teal)}
.wg-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:20px;padding:22px;margin:0 0 20px}.wg-toolbar>.field{width:130px}.wg-toolbar>.wg-build-title{flex:1;min-width:180px}.wg-toolbar input{font-size:16px;min-height:46px}
.wg-budget{display:flex;align-items:center;gap:12px;min-height:68px}.wg-budget>strong{flex-shrink:0;white-space:nowrap;font:700 38px/1.2 var(--font-ui);color:var(--teal)}.wg-budget>span{font-size:15px;font-weight:700}.wg-budget small{display:block;color:var(--muted);font-size:13px;font-weight:500}
.wg-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 16px}.wg-summary h2{font-size:23px;margin:0}.wg-summary h2 .wg-summary-count{color:var(--teal);font-size:21px;margin-left:10px;white-space:nowrap}.wg-summary p{font-size:14px;margin:0;color:var(--muted);line-height:1.7}
.wg-trees{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.wg-tree{min-width:0;border:1px solid var(--metal-edge);border-top:3px solid var(--metal-edge);border-radius:6px;background:linear-gradient(135deg,#182a38eb,#101925f8),var(--material) center/cover;color:#e7eaf0;box-shadow:0 6px 18px #12203220;padding:0 14px 16px}
[data-faction=horde] .wg-tree{background:linear-gradient(135deg,#34231ceb,#19171cf8),var(--material) center/cover}
.wg-tree>header{display:flex;align-items:center;gap:10px;min-height:99px;border-bottom:1px solid #ffffff26;margin-bottom:22px}.wg-tree h2{font-size:23px;color:#f2d79c;margin:0}.wg-tree header>div>span{font-size:13px;color:#c2c9d4}.wg-tree header>strong{font-size:23px;margin-left:auto;color:#ffdb92}.wg-tree header small{font-size:13px;font-weight:500}
.wg-tree-reset{border:1px solid #bda26b9a;border-radius:4px;background:#ffffff09;color:#eddbb5;font-size:13px;min-height:40px;padding:6px 8px}.wg-tree-reset:disabled{opacity:.45}.wg-tree-reset:hover:not(:disabled){background:#ffffff1a}
.wg-node-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(var(--rows),132px);isolation:isolate}
.wg-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;fill:none;stroke:#827c65;stroke-width:2}.wg-connectors path.is-active{stroke:#e6c276}
.wg-node{appearance:none;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;gap:8px;background:none;border:0;color:#c7cdd5;padding:8px 2px 0;min-width:0;border-radius:5px;position:relative;text-align:center;cursor:pointer;line-height:1.2}
.wg-node-icon{position:relative;display:block;width:52px;height:52px;background:#151a25;border:2px solid #647087;border-radius:5px;box-shadow:0 2px 3px #0009}
.wg-node-icon img{display:block;width:48px;height:48px;border-radius:3px;object-fit:cover}
.wg-rank{position:absolute;right:-7px;bottom:-8px;min-width:32px;padding:3px 4px;font-size:13px;font-weight:800;border:1px solid #828d99;border-radius:3px;background:#121b27;color:#d7dfe8;line-height:1.1}
.wg-node-name{font-size:13px;line-height:1.35;font-weight:600;overflow-wrap:anywhere;width:100%;padding-top:3px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wg-node.is-locked .wg-node-icon img{filter:grayscale(1) brightness(.58)}.wg-node.is-locked{color:#aeb8c5}
.wg-node.is-available .wg-node-icon,.wg-node.has-points .wg-node-icon{border-color:#89b693}.wg-node.has-points .wg-rank{color:#beefc3;border-color:#82b58c}
.wg-node.is-max .wg-node-icon{border-color:#e5c574}.wg-node.is-max .wg-rank{color:#ffe49c;border-color:#e5c574}
.wg-node.is-selected .wg-node-icon{box-shadow:0 0 0 2px #18222e,0 0 0 4px #e5c574}
.wg-node:hover{background:#ffffff0b;color:#fff}.wg-node:focus-visible{outline:2px solid #f5d592;outline-offset:1px}
.wg-inspector{display:grid;grid-template-columns:minmax(210px,.75fr) minmax(0,1.7fr);gap:36px;margin:24px 0;padding:28px;border-top:3px solid var(--metal-edge)}
.wg-inspector-intro h2{font-size:23px;margin:8px 0 12px}.wg-inspector-intro p{font-size:14px;color:var(--muted);line-height:1.85}.wg-inspector-intro p+p{margin-top:18px}
.wg-detail-heading{display:flex;align-items:center;gap:15px;margin-bottom:16px}.wg-detail-heading img{width:48px;height:48px;border:2px solid var(--metal-edge);border-radius:5px}.wg-detail-heading h3{font-size:21px;margin:0 0 4px;line-height:1.4}.wg-detail-heading span{font-size:14px;color:var(--muted)}
.wg-effect{font-size:16px;line-height:1.75;white-space:pre-line;margin:6px 0 16px}.wg-effect-label{font-size:14px;color:var(--teal)}.wg-cost{font-size:14px;color:var(--muted);margin:0 0 14px}.wg-max-note{color:var(--teal);font-weight:700;font-size:14px}
.wg-translation-note{display:block;width:max-content;max-width:100%;margin:7px 0 2px;padding:3px 7px;border:1px solid var(--line);border-radius:3px;color:var(--muted);font-size:11px;line-height:1.35}
.wg-requirements{padding:13px 0;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.wg-requirements>span{display:block;margin:3px 0}.wg-detail-actions{display:flex;gap:10px;margin-top:8px}.wg-detail-actions button{min-width:115px}.wg-block-reason{font-size:14px;color:var(--muted);margin:10px 0 18px;min-height:25px}
.wg-all-ranks{border-top:1px solid var(--line);padding-top:12px}.wg-all-ranks summary,.wg-source summary{cursor:pointer;font-size:15px;font-weight:700;min-height:32px}.wg-all-ranks>div{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.wg-all-ranks>div>b{font-size:14px;color:var(--teal)}
.wg-sharing{padding:24px;margin-bottom:20px}.wg-sharing h2{font-size:22px;margin-bottom:7px}.wg-sharing p{font-size:14px;color:var(--muted)}.wg-sharing .button-row{margin-top:16px;flex-wrap:wrap}
.wg-source{padding:22px;margin-bottom:0}.wg-source p{font-size:14px;line-height:1.9;color:var(--muted);margin:12px 0 0}.wg-source a{color:var(--teal);text-decoration:underline}.wg-version{overflow-wrap:anywhere}
.wg-source .wg-source-coverage{font-size:12px;line-height:1.6;color:var(--teal);font-weight:700}
.wg-tooltip{position:fixed;z-index:1600;background:#101923f7;color:#fff6dc;border:1px solid #c7ac71;border-radius:6px;padding:19px;box-shadow:0 12px 32px #0006;max-height:min(580px,75vh);overflow:auto;pointer-events:none;font-family:var(--font-ui)}
.wg-tooltip[hidden]{display:none}.wg-tooltip .wg-detail-heading h3{color:#ffdc92;font-size:19px}.wg-tooltip .wg-detail-heading span,.wg-tooltip .wg-cost,.wg-tooltip .wg-requirements{color:#c9d4e1}.wg-tooltip .wg-effect{font-size:15px;color:#fff1c9}.wg-tooltip .wg-effect-label,.wg-tooltip .wg-max-note{color:#acd1ff}.wg-tooltip .wg-requirements{border-color:#ffffff30}.wg-tooltip .wg-translation-note{border-color:#ffffff30;color:#c9d4e1}
@media(min-width:1700px){.wg-node-name{font-size:14px}}
@media(max-width:1050px){.wg-class-picker{grid-template-columns:repeat(5,minmax(0,1fr))}.wg-trees{grid-template-columns:1fr;max-width:620px;margin:auto}.wg-tree{padding:0 24px 16px}.wg-node-name{font-size:15px;max-width:122px}.wg-inspector{grid-template-columns:1fr;gap:12px}.wg-inspector-intro p+p{margin-top:8px}.wg-toolbar{gap:14px}.wg-summary{align-items:start}.wg-summary p{max-width:350px}.wg-tree>header{min-height:90px}}
@media(max-width:600px){.wg-data-note{flex-wrap:wrap;gap:10px;padding:16px}.wg-data-note>div{width:100%}.wg-data-note>.text-link{margin:0}.wg-data-note>.badge{font-size:13px}.wg-language-picker{margin-left:0;flex:1}.wg-class-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.wg-class-button{min-height:86px;flex-direction:row;gap:7px;font-size:14px}.wg-class-button img{width:29px;height:29px}.wg-toolbar{padding:17px;gap:13px}.wg-toolbar>.field{width:98px}.wg-toolbar>.wg-build-title{min-width:120px}.wg-budget{flex:1;min-width:185px}.wg-toolbar>.button{font-size:14px;padding:10px}.wg-summary{flex-direction:column;gap:8px}.wg-summary p{max-width:none}.wg-tree{padding:0 7px 12px}.wg-tree>header{padding:0 7px}.wg-tree h2{font-size:22px}.wg-node-name{font-size:13px}.wg-node-icon{width:48px;height:48px}.wg-node-icon img{width:44px;height:44px}.wg-inspector{padding:20px}.wg-detail-heading h3{font-size:20px}.wg-sharing{padding:20px}.wg-sharing .button{width:100%}.wg-source{padding:18px}.wg-source summary{line-height:1.8}.wg-tooltip{max-height:65vh}}
@media(prefers-reduced-motion:reduce){.wg-talents *{transition:none!important}}

.wg-tree-picker{display:none}.wg-source{scroll-margin-top:170px}.wg-node-name{hyphens:auto;word-break:normal;overflow-wrap:normal}.wg-node-name[lang=ko]{word-break:keep-all;overflow-wrap:anywhere}
.wg-talents>.page-head{padding-top:26px;padding-bottom:22px}.wg-talents>.page-head h1{font-size:34px;margin:8px 0}.wg-talents .context-guide{margin-top:14px}.wg-talents .wg-class-button{min-height:88px}.wg-talents .wg-data-note{padding-top:13px;padding-bottom:13px}
@media(max-width:1050px){.wg-tree-picker{display:flex;gap:8px;margin:0 auto 14px;max-width:620px}.wg-tree-picker button{flex:1;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:12px 6px;border-radius:4px;font-size:15px;font-weight:700}.wg-tree-picker button[aria-pressed=true]{background:var(--selected-bg);border-color:var(--teal);box-shadow:inset 0 -3px var(--teal)}.wg-tree-picker .wg-tree-count{margin-left:5px;color:var(--teal)}.wg-tree[data-active=false]{display:none}}
