.tree-summary{display:flex;gap:1.2rem;align-items:center}.tree-summary>div{flex:1}.tree-summary progress{width:8rem;flex-shrink:0;accent-color:#8dd5af}.tree-summary p,.tree-help{color:#bad0c9;line-height:1.55}
.tree-tabs{display:flex;flex-wrap:wrap;gap:.45rem;margin:1rem 0}.tree-tabs button{border:1px solid #52746d;background:#163e3b;color:#eceddf;padding:.65rem .85rem;border-radius:8px;font:inherit;cursor:pointer}.tree-tabs button small{display:block;color:#b9cfc4;margin-top:.2rem}.tree-tabs [aria-pressed=true]{border-color:#ecd38f;background:#345346}
.tree-detail{padding:1rem 1.2rem;border:1px solid #71897b;background:#173d39;border-radius:12px}.tree-detail h3{margin:.4rem 0}.tree-detail p{line-height:1.6}.tree-relations{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center;margin-top:.65rem}.tree-relations span{color:#b8cfc5;font-size:.9em}.tree-relations button{color:#ffe2a0;border:1px solid #7e9078;background:#254f44;border-radius:6px;padding:.4rem .6rem;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.tree-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid #42675f;border-radius:12px;background:radial-gradient(circle,#42675f 1px,transparent 1px) 0 0/20px 20px,#102f2f;max-height:65vh}.quest-tree{position:relative;display:flex;gap:2rem;padding:1.4rem;width:max-content;min-width:100%;box-sizing:border-box;align-items:flex-start}.tree-column{display:flex;flex-direction:column;gap:.8rem;width:14rem;flex-shrink:0;position:relative;z-index:1}.tree-column>.eyebrow{color:#b6cfc1}.tree-node{display:grid;grid-template-columns:1.2rem 1fr;gap:.4rem;padding:.9rem;background:#163632;color:#d9dfd2;border:1px solid #62776b;border-radius:10px;text-align:left;font:inherit;cursor:pointer;width:100%;min-height:5.5rem;overflow-wrap:anywhere}.tree-node small{grid-column:2;color:#acbdb2}.tree-node.unlocked{border-color:#91d5b0;background:#204f42}.tree-node.unlocked .tree-symbol{color:#a7f5c2}.tree-node.selected{outline:3px solid #efcf84;outline-offset:3px}.tree-lines{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.tree-lines path{fill:none;stroke:#789187;stroke-width:2}.tree-lines path.lit{stroke:#a8d3a2;stroke-width:3}.tree-tabs button:focus-visible,.tree-node:focus-visible,.tree-relations button:focus-visible{outline:3px solid #ffe0a2;outline-offset:3px}
@media(max-width:600px){.tree-summary{display:block}.tree-summary progress{width:100%}.tree-column{width:12rem}.tree-detail{padding:.8rem}.tree-tabs button{flex:1 1 40%}}
.tree-summary{justify-content:space-between;margin:.25rem 0}.tree-tabs{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px;margin:.6rem 0}.tree-tabs button{white-space:nowrap;flex:0 0 auto;font-size:.875rem;padding:.45rem .7rem}.tree-tabs button small{display:inline;margin-left:.45rem}.tree-help{margin:.45rem 0!important}.tree-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:.8rem}.tree-layout .tree-scroll,.tree-layout .tree-detail{height:clamp(250px,42vh,420px);box-sizing:border-box;overflow:auto}.tree-root{padding:.9rem;border:1px solid #d4c493;background:#344c3d;color:#f4e5b4;border-radius:12px}.tree-root small{display:block;margin-top:.5rem}.tree-layout .tree-column{width:12rem}.tree-layout .tree-column:first-of-type{width:8rem}.tree-detail .tree-relations{display:block}.tree-detail .tree-relations span{display:block;margin-bottom:.4rem}.tree-detail .tree-relations button{margin:0 .35rem .35rem 0}.tree-detail .objective{gap:.5rem}.tree-detail .objective b{white-space:nowrap}
.large-text .tree-layout{grid-template-columns:minmax(0,1fr)}.large-text .tree-layout .tree-detail{height:auto;max-height:400px}
@media(max-width:800px){.tree-layout{grid-template-columns:minmax(0,1fr)}.tree-layout .tree-detail{height:auto;max-height:350px}.tree-tabs button{flex:0 0 auto}}
