/* Fixed four-point Tree-Sona bench; native metric points are never restyled
   into different geometry. The tree guides and curve remain distinct. */
.tree-sona-page{max-width:none;min-width:0;font-size:1rem}
.tree-sona-workspace{display:grid;grid-template-columns:minmax(16rem,22rem) minmax(0,1fr);gap:1rem;align-items:start;margin-top:1rem}
.tree-sona-controls,.tree-sona-main{min-width:0}
.tree-sona-controls{padding:1rem}
.tree-sona-controls h2{font-size:1.4rem;margin-top:0}
.tree-sona-controls h2:not(:first-child){margin-top:1.5rem}
.tree-sona-controls form{display:grid;gap:.8rem;margin:.8rem 0}
.tree-sona-controls label{display:grid;gap:.35rem;min-width:0;font-size:1rem}
.tree-sona-controls input,.tree-sona-controls select{width:100%;min-width:0;font:inherit;padding:.5rem}
.tree-sona-controls .button{font-size:1rem;line-height:1.4;white-space:normal;max-width:100%;text-align:left}
.tree-sona-controls .toolbar{align-items:stretch}
.tree-sona-page .rendering-controls button{font-size:1rem;line-height:1.4;min-height:2.5rem;white-space:normal;max-width:100%}
.tree-sona-main{display:grid;gap:1rem}
.tree-sona-main>.result,.tree-sona-main>.panel{margin:0}
.tree-sona-main .result h2{font-size:1.6rem}
.tree-sona-before-after{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:.8rem;align-items:start}
.tree-sona-before-after .native-plate{margin:0;min-width:0;background:#fff9eb;border:1px solid var(--soft-line)}
.tree-sona-before-after figcaption{min-height:3.4em;padding:.65rem;font:.85rem/1.4 var(--sans);overflow-wrap:anywhere}
.tree-sona-svg{display:block;width:100%;height:auto;min-height:18rem;max-height:35rem;padding:.6rem;overflow:hidden}
.tree-sona-tree-edge{stroke:#a4a38d;stroke-width:var(--tree-sona-tree-width,.025);stroke-dasharray:var(--tree-sona-guide-dash,.06 .04);cursor:pointer}
.tree-sona-tree-edge.is-protected{stroke:#b38a27;stroke-width:var(--tree-sona-protected-width,.035)}
.tree-sona-tree-edge.is-selected{stroke:#a65331}
.tree-sona-metric-curve{stroke:#246b79;stroke-width:var(--tree-sona-curve-width,.025);stroke-linejoin:round;stroke-linecap:round;cursor:pointer}
.tree-sona-metric-curve.is-selected{stroke:#a65331}
.tree-sona-ink-analysis .tree-sona-metric-curve{stroke:#173d50}
.tree-sona-ink-analysis .tree-sona-metric-curve.is-selected{stroke:#a65331}
.tree-sona-point circle{fill:#b8954c;stroke:#674c2d;stroke-width:var(--tree-sona-point-stroke,.012)}
.tree-sona-point.is-selected circle{fill:#dca753;stroke:#8f402e}
.tree-sona-point .tree-sona-point-hit{fill:transparent;stroke:none;cursor:pointer}
.tree-sona-point text{fill:#173d50}
.tree-sona-svg [role=button]:focus-visible{outline:none;stroke:#793d6a;filter:drop-shadow(0 0 1px #fff7e9)}
.tree-sona-detail{border:1px solid var(--soft-line);padding:1rem;background:#f9efda;min-width:0}
.tree-sona-detail h3{font-size:1.3rem;margin-top:0}
.tree-sona-detail .tree-sona-svg{min-height:17rem;max-height:30rem}
.tree-sona-inspection{border:1px solid var(--soft-line);padding:1rem;background:#f5ead2;min-width:0}
.tree-sona-inspection h3{font-size:1.3rem;margin-top:0}
.tree-sona-part-list{display:flex;flex-wrap:wrap;gap:.4rem}
.tree-sona-part-list button{font-size:.95rem;line-height:1.4;min-height:2.5rem;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.tree-sona-inspection pre,.tree-sona-main pre{max-height:24rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.tree-sona-scope h2{font-size:1.4rem;margin-top:0}
.tree-sona-page .warning{font-size:1rem;line-height:1.5;border-left:3px solid var(--copper);padding:.7rem;background:#f7e4d2}
@media(max-width:1050px){.tree-sona-workspace{grid-template-columns:1fr}.tree-sona-controls{display:block}.tree-sona-before-after{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}}
@media(max-width:600px){.tree-sona-page.prose{padding:1rem}.tree-sona-controls{padding:.85rem}.tree-sona-before-after{grid-template-columns:1fr}.tree-sona-svg{min-height:16rem}.tree-sona-page .toolbar{flex-direction:column;align-items:stretch}.tree-sona-page .toolbar a{white-space:normal;text-align:left;justify-content:flex-start;font-size:1rem}}
