:root{--ink:#1b3942;--green:#125b52;--teal:#00877d;--muted:#6d8189;--line:#d8e3dd;--wash:#f3f7f4;--orange:#b8793b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--wash);color:var(--ink);font:14px/1.6 Arial,sans-serif}header{height:115px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:8px max(24px,calc((100% - 1460px)/2))}header img{width:150px;height:100px;object-fit:contain}header span{margin-left:auto;font-size:11px;letter-spacing:.12em;color:var(--muted)}header b{color:var(--green);background:#e3f0e8;border-radius:20px;padding:6px 16px}main{max-width:1580px;padding:30px 26px;margin:auto}.intro{max-width:1150px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:.14em;color:var(--teal);font-weight:bold;margin:0 0 8px}h1{font-size:clamp(30px,4vw,44px);line-height:1.15;letter-spacing:-.04em;margin:0 0 15px}h2{font-size:21px;letter-spacing:-.025em;line-height:1.3;margin:0 0 14px}h3{font-size:14px;margin:0 0 8px}p{margin:0 0 12px}.intro>p:not(.eyebrow){font-size:17px;color:var(--muted)}.basis{padding:13px 17px;border:1px solid #cbded1;border-radius:9px;background:#edf5ef;font-size:12px;color:#4f6d5b}button,input,select{font:inherit;color:inherit}button{background:white;color:var(--green);border:1px solid #c8d9d0;border-radius:7px;padding:10px 14px;cursor:pointer;font-size:12px;font-weight:600}button.primary,nav>button.active{background:var(--green);border-color:var(--green);color:white}button:disabled{opacity:.45;cursor:default}.small{padding:7px 10px;font-size:11px}nav{display:flex;flex-wrap:wrap;align-items:center;gap:9px;border:1px solid var(--line);background:white;border-radius:10px;padding:13px;margin-bottom:14px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(350px,1fr);gap:23px;align-items:start}.diagram-column{position:sticky;top:15px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:20px}.heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:14px}.heading h2{margin-bottom:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;margin-top:12px}.wide{grid-column:1/-1}label{display:block;font-size:12px;font-weight:600}label small{display:block;color:var(--muted);font-size:10px;font-weight:400;min-height:15px}input,select{width:100%;border:1px solid #cadbd1;border-radius:6px;background:#fcfdfc;padding:9px;margin-top:5px}input:disabled{background:#edf2ef;color:#6a8376}input:focus,select:focus,button:focus-visible{outline:3px solid #afd7c5;outline-offset:2px}.check{display:flex;align-items:center;gap:9px;margin:15px 0}.check input{width:auto;margin:0;accent-color:var(--green)}.hint{font-size:11px;color:var(--muted);margin-top:12px}.status{font-size:12px;color:var(--teal);margin-bottom:18px}.error{padding:12px 16px;background:#fcece5;color:#983c24;border:1px solid #e9c7b7;border-radius:8px}#plan{display:block;width:100%;touch-action:none;user-select:none;max-height:570px}.drag-target{cursor:grab;outline:none}.drag-target:focus-visible{filter:drop-shadow(0 0 4px #00877d)}.drag-target:active{cursor:grabbing}.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:10px;color:var(--muted)}.legend i{display:inline-block;width:17px;height:4px;vertical-align:middle;margin-right:5px}.legend .beam{background:var(--teal)}.legend .rtu{background:var(--orange)}.legend .cg{background:#b45f45}.joist-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.joist-cards>div{border:1px solid var(--line);border-radius:10px;padding:15px;background:#fff}.joist-cards small{display:block;font-size:10px;color:var(--muted)}.joist-cards strong{font-size:22px}.bar{height:5px;background:#e5eee7;border-radius:5px;margin:10px 0}.bar span{display:block;height:100%;background:var(--teal);border-radius:5px}.properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.properties>div{padding:10px;background:#f1f7f2;border-radius:7px}.properties small{display:block;color:var(--muted);font-size:10px}.properties strong{display:block;font-size:14px;overflow-wrap:anywhere}.notices p{padding:9px 12px;background:#fff8e9;border-left:3px solid #c7a367;color:#7c633b;font-size:11px;margin:9px 0}.charts{display:grid;grid-template-columns:1fr;gap:15px}.charts svg{width:100%;display:block;max-height:260px;touch-action:pan-y}#position{accent-color:var(--teal)}#position-label{color:var(--teal);margin-left:10px}#station{grid-template-columns:repeat(4,1fr)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left}th{font-size:10px;color:var(--muted);background:var(--wash)}details summary{font-weight:600;color:var(--green);cursor:pointer}details>p:first-of-type{margin-top:15px}a{color:var(--teal)}footer{text-align:center;border-top:1px solid var(--line);color:var(--muted);padding:22px;font-size:11px}@media(max-width:1050px){.layout{grid-template-columns:1fr}.diagram-column{position:static}.inputs{display:grid;grid-template-columns:1fr 1fr;gap:20px}.inputs>.panel{margin-bottom:0}.inputs>.panel:last-child{grid-column:1/-1}#plan{max-height:580px}}@media(max-width:680px){main{padding:22px 12px}.panel{padding:16px}.inputs{display:block}.inputs>.panel{margin-bottom:20px}.heading{flex-direction:column}.actions{margin-left:0}header{height:95px;padding:6px 15px}header img{width:130px;height:80px}header span{display:none}header b{margin-left:auto}.joist-cards{gap:6px}.joist-cards>div{padding:10px}.joist-cards strong{font-size:17px}#station{grid-template-columns:1fr 1fr}#plan{min-height:300px}}@media print{header,nav,.intro,.status,.error,footer,.actions,#layout-page,#position{display:none!important}main{max-width:none;padding:0}body{background:white}.panel{break-inside:avoid}.charts svg{max-height:200px}.notices p{background:white}details{display:none}}
