/* Rafter System Visual v4 — unified structural presentation */
.rs-view{background:linear-gradient(180deg,#fcfdfc 0%,#f5f9f7 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.84)}
.rs-view-head{padding:14px 16px;background:linear-gradient(180deg,#fff,#fbfdfc)}
.rs-view-head b{font-size:15px;line-height:1.2;letter-spacing:-.01em}.rs-view-head small{font-size:11px;line-height:1.4}
.rs-svg{min-height:480px;background:radial-gradient(circle at 70% 22%,rgba(67,118,93,.05),transparent 26%),linear-gradient(180deg,#fbfdfc 0%,#f6f9f7 100%);touch-action:none}
.rs-axo-tools button{box-shadow:0 4px 10px rgba(23,55,42,.05);transition:.16s ease}.rs-axo-tools button:hover,.rs-axo-tools button:focus-visible{background:#edf7f1;border-color:#9bc2ae;transform:translateY(-1px)}
.rs-visual-legend{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;border-top:1px solid #e2e9e5;background:#fff;color:#607068;font-size:9.5px;font-weight:750}
.rs-visual-legend span{display:inline-flex;align-items:center;gap:6px;min-width:0}.rs-visual-legend i{display:block;width:18px;height:5px;border-radius:999px;background:#b87b43}.rs-visual-legend .ridge i{background:#285f4a}.rs-visual-legend .support i{background:#62756b}.rs-visual-legend .brace i{background:#2f7b5c}.rs-visual-legend .critical i{background:#a6403b}.rs-visual-legend .check i{background:linear-gradient(90deg,#37785a 0 33%,#b08428 33% 66%,#a6403b 66%)}.rs-visual-legend .snow i{background:#5e8da4}.rs-visual-legend .wind i{background:#c27145}.rs-visual-legend .good i{background:#37785a}.rs-visual-legend .warn i{background:#b08428}
.rs-view[data-rs-panel="3d"] .rs-hint{display:flex;align-items:center;justify-content:center;min-height:34px;padding:8px 12px;border-top:1px solid #e1e8e4;background:#fff;color:#67776f;font-size:9.5px;line-height:1.35;text-align:center}
@media(max-width:700px){.rs-svg{min-height:390px}.rs-view-head{padding:12px}.rs-visual-legend{gap:7px;padding:9px 10px}.rs-visual-legend span{flex:1 1 calc(50% - 7px)}.rs-axo-tools{grid-template-columns:repeat(5,minmax(0,1fr))}.rs-view[data-rs-panel="3d"] .rs-hint{font-size:9px}}
@media(max-width:420px){.rs-svg{min-height:345px}.rs-visual-legend span{flex-basis:100%}.rs-view-head b{font-size:14px}.rs-view-head small{font-size:10px}}

.rs-focus-switch{display:flex;gap:6px;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid #e2e9e5;background:#f9fbfa}.rs-focus-switch button{min-height:32px;border:1px solid #dce5e0;border-radius:9px;background:#fff;padding:6px 10px;color:#607168;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.rs-focus-switch button.is-active{background:#eaf5ef;border-color:#a9cbbb;color:#245b46}.rs-focus-switch button:hover{border-color:#a9cbbb}
@media(max-width:520px){.rs-focus-switch{display:grid;grid-template-columns:1fr 1fr}.rs-focus-switch button:first-child{grid-column:1/-1}}
