/* TRDB v0.6: static light-weight responsive passive tree laboratory */
.pt-heading{font-size:clamp(29px,3.3vw,41px);font-weight:800;color:#eadbbd;margin:8px 0 9px;letter-spacing:-.03em}
.pt-subtitle{color:#c6c2b4;margin:0 0 17px;font-size:14px;line-height:1.6}
.pt-warning{border:1px solid #526b54;background:#213125;color:#d5e0d0;padding:12px 15px;margin:15px 0 16px;font-size:12px;line-height:1.65}
.pt-warning.pt-prototype{border-color:#92734c;background:#312a20;color:#f7d6a5;font-weight:600}
.pt-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0 12px}
.pt-switch{display:flex;flex-direction:column;gap:5px;min-width:170px;flex:1}.pt-switch label{font-size:11px;color:#d1bd98}
.pt-switch select{height:42px;max-width:370px;padding:9px 12px;background:#17201a;border:1px solid #5a6857;color:#f3e2c7}
.pt-search{display:flex;align-items:center;min-width:180px;flex:1;gap:6px;border:1px solid #59664f;background:#17201a;height:42px;padding:0 12px;color:#c9ba9f}.pt-search input{flex:1;width:100%;border:0;padding:6px 2px;background:transparent;outline:0;box-shadow:none!important}
.pt-bar-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.pt-bar-actions .btn{padding:9px 11px;height:42px}.pt-bar-actions span{font-size:12px;min-width:48px;text-align:center;color:#cabca3}
.pt-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;align-items:start}.pt-stage,.pt-side{background:linear-gradient(135deg,#19241e,#0c1511);border:1px solid #59664f;box-shadow:0 12px 35px #0005}
.pt-stage{overflow:hidden;position:relative}.pt-stage:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.16;background:radial-gradient(ellipse at 50% 35%,#8e5935,transparent 65%),repeating-radial-gradient(circle at 50% 50%,transparent 0 28px,#a18b6933 29px,#a18b6933 30px)}
.pt-stage-decoration{padding:15px 16px 10px;border-bottom:1px solid #425344;color:#cbb28c;font-size:10px;font-weight:800;letter-spacing:.16em}
.pt-viewport{overflow:auto;height:min(560px,68vh);min-height:430px;overscroll-behavior:contain;scrollbar-color:#6c674c #1b241c;scrollbar-width:thin;touch-action:pan-x pan-y}
.pt-svg{display:block;margin:0 auto;max-width:none;background:linear-gradient(160deg,#101913ed,#1e241a8c);user-select:none}
.pt-edge{stroke:#586459;stroke-width:3.5;opacity:.56;fill:none;stroke-linecap:round}.pt-edge.active{stroke:#dfb66d;stroke-width:5;opacity:1;filter:drop-shadow(0 0 5px #bb7e42)}
.pt-node{cursor:pointer;outline:none;transition:opacity .1s;transform-box:fill-box}.pt-node.dim{opacity:.16}.pt-node .pt-node-back{fill:#121b15;stroke:#596b5e;stroke-width:4}.pt-node .pt-node-core{fill:url('#pt-core');stroke:#667963;stroke-width:1.5}
.pt-node.available .pt-node-back{stroke:#bead86;stroke-width:3.5}.pt-node.selected .pt-node-back{stroke:#f3c677;stroke-width:6;fill:#46341c;filter:drop-shadow(0 0 9px #cd914b)}.pt-node.selected .pt-node-core{fill:#866137;stroke:#ffdd8d}.pt-node.root .pt-node-back{stroke:#92a98d;stroke-width:5}
.pt-node:hover .pt-node-back,.pt-node.focused .pt-node-back,.pt-node:focus-visible .pt-node-back{stroke:#f7e3b0;stroke-width:6;filter:drop-shadow(0 0 12px #d7b97a)}
.pt-node-symbol{font-family:Georgia,serif;font-size:19px;fill:#b2bcaa;pointer-events:none}.pt-node.selected .pt-node-symbol{fill:#fff5ce}.pt-node.root .pt-node-symbol{fill:#c2d8bc}.pt-node-label{font:700 14px system-ui,sans-serif;fill:#d5d6c6;pointer-events:none;paint-order:stroke;stroke:#0f1511;stroke-width:4;stroke-linejoin:round}.pt-node.selected .pt-node-label{fill:#f8dbaa}
.pt-legend{display:flex;flex-wrap:wrap;gap:18px;border-top:1px solid #455443;padding:12px 14px;font-size:11px;color:#c3c0b1}.pt-legend span{display:flex;align-items:center;gap:6px}.pt-dot{height:10px;width:10px;display:inline-block;border-radius:50%;border:2px solid #647160}.pt-dot.selected{border-color:#f2bf73;background:#c09250}.pt-dot.available{border-color:#bcb28d}.pt-dot.locked{border-color:#516252}
.pt-side{padding:16px;min-height:570px}.pt-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pt-stats>div{border:1px solid #57624d;padding:12px 5px;text-align:center;background:#273127}.pt-stats small{display:block;font-size:11px;color:#bfbaa7}.pt-stats strong{display:block;font:800 28px Georgia,serif;color:#e3bd82;margin-top:7px}
.pt-info-block{padding:20px 0;border-bottom:1px solid #435341}.pt-info-block:last-child{border-bottom:0}.pt-info-block .section-kicker{margin-bottom:14px}.pt-muted{font-size:12px;color:#b6b8aa;line-height:1.8}.pt-info h3{font-size:19px;color:#f3d7a0;margin:0 0 8px}.pt-info p{font-size:12px;color:#c7c2b1;line-height:1.75}.pt-info-state{font-size:11px;color:#b9d0b6}.pt-info-cost{border:1px solid #53634b;padding:9px 10px;margin-top:10px;font-size:12px;color:#bfbca9}.pt-info-cost b{color:#e8c38d}.pt-buttons{display:flex;flex-direction:column;gap:7px;margin-top:16px}.pt-buttons .btn{text-align:center;justify-content:center}.pt-source{font-size:11px;display:block;margin-top:20px;color:#e2bf87;word-break:break-word}
@media(max-width:1000px){.pt-layout{grid-template-columns:1fr}.pt-side{min-height:0;display:grid;grid-template-columns:220px 1fr 1fr;gap:14px}.pt-info-block{padding:0;border:0}.pt-viewport{height:480px}}
@media(max-width:680px){.pt-heading{font-size:28px}.pt-viewport{min-height:320px;height:390px}.pt-switch,.pt-search{flex:1 1 100%}.pt-bar-actions{width:100%}.pt-bar-actions .btn{font-size:11px;padding:8px 10px}.pt-side{display:flex;flex-direction:column;gap:13px}.pt-info-block{border-bottom:1px solid #425140;padding:7px 0 15px}.pt-buttons{flex-direction:row;flex-wrap:wrap}.pt-legend{gap:12px}.pt-stats strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.pt-node{transition:none}}
