/* Goblin Exchange talent builder (ge_talents.js); uses ah.html's color tokens */
.tl { display: flex; flex-direction: column; min-width: 0; flex: 1; overflow: auto; }
.tl-bar { display: flex; gap: 6px; padding: 8px 14px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.tl button { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 4px; padding: 4px 9px;
  font: inherit; font-size: 12px; cursor: pointer; }
.tl button:disabled { opacity: .45; cursor: default; }
.tl button.tl-mini { padding: 1px 6px; font-size: 10px; color: var(--dim); }
.tl-cls { display: flex; align-items: center; gap: 5px; }
.tl-cls img { width: 18px; height: 18px; border-radius: 3px; }
.tl-cls.on { border-color: var(--cc) !important; color: var(--cc) !important; box-shadow: inset 0 -2px 0 var(--cc); }
.tl-ctl label { display: flex; gap: 6px; align-items: center; color: var(--dim); font-size: 12px; }
.tl-ctl input[type=range] { width: 160px; accent-color: var(--accent); }
.tl-ctl b { color: var(--text); }
.tl-pts { font-size: 12px; color: var(--dim); }
.tl-pts b { color: var(--gold); font-size: 14px; }
.tl-pts.over, .tl-bad { color: var(--down); }
.tl-msg { color: var(--up); font-size: 12px; }
.tl-dim { color: var(--dim); font-size: 11px; }
.tl-main { display: flex; gap: 0; min-height: 0; flex-wrap: wrap; }
.tl-trees { display: flex; gap: 14px; padding: 12px 14px; flex-wrap: wrap; align-items: flex-start; }
.tl-tree { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.tl-th { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tl-th img { width: 22px; height: 22px; border-radius: 3px; }
.tl-th span { flex: 1; font-weight: 600; }
.tl-th b { color: var(--gold); }
.tl-grid { position: relative; }
.tl-grid svg { position: absolute; left: 0; top: 0; pointer-events: none; }
.tl-grid path { fill: none; stroke: #5a6474; stroke-width: 3; }
.tl-grid path.on { stroke: var(--gold); }
.tl-node { position: absolute; width: 40px; height: 40px; border: 2px solid #3a3f47; border-radius: 5px; background: #000;
  cursor: pointer; user-select: none; }
.tl-node img { width: 100%; height: 100%; border-radius: 3px; display: block; }
.tl-node b { position: absolute; right: -6px; bottom: -7px; background: #0b0f15; border: 1px solid var(--line2); border-radius: 3px;
  font-size: 10px; padding: 0 3px; line-height: 14px; color: var(--dim); }
.tl-node.shut img { filter: grayscale(1) brightness(.45); }
.tl-node.open { border-color: #4d8f3a; }
.tl-node.open b { color: var(--up); }
.tl-node.some { border-color: var(--up); }
.tl-node.some b { color: var(--up); }
.tl-node.full { border-color: var(--gold); }
.tl-node.full b { color: var(--gold); }
.tl-node.d-new::after { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; }
.tl-node.d-new::after { background: var(--up); }
.tl-node:hover { outline: 1px solid var(--text); }
.tl-side { padding: 12px 14px; min-width: 240px; max-width: 340px; flex: 1; }
.tl-side h3 { margin: 0 0 8px; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.tl-tpls { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.tl-tpl { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; }
.tl-tpl.on { border-color: var(--accent); }
.tl-tpl a { font-weight: 600; text-decoration: none; flex: 1 1 100%; }
.tl-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-foot { padding: 0 14px 12px; margin: 0; }
#tlTip { position: fixed; z-index: 20; pointer-events: none; display: none; max-width: 330px; background: #0b0f15f2;
  border: 1px solid var(--line2); border-radius: 5px; box-shadow: 0 4px 18px #000c; padding: 8px 10px; font-size: 12px; line-height: 1.45; }
#tlTip b { color: #fff; font-size: 13px; }
#tlTip .tl-note { margin-top: 6px; color: var(--accent); font-size: 11px; }
@media (max-width: 700px) { .tl-trees { padding: 8px; } .tl-side { max-width: none; } }
