*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#eaf1f8;color:#0f172a}.top{background:#0f172a;color:white;padding:12px 18px}.top h1{margin:0;font-size:22px}.top p{margin:4px 0 0;color:#dbeafe}.app{display:grid;grid-template-columns:360px 1fr;gap:12px;padding:12px}.panel,.card{background:white;border:1px solid #d7e0ea;border-radius:12px;padding:12px}.panel{height:calc(100vh - 86px);overflow:auto;position:sticky;top:10px}h3{margin:14px 0 8px;border-top:1px solid #e2e8f0;padding-top:10px}h3:first-child{border-top:0;margin-top:0;padding-top:0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}label{font-size:12px;font-weight:bold;display:block;margin:8px 0}input,select,textarea{width:100%;padding:8px;border:1px solid #cbd5e1;border-radius:8px;margin-top:4px}button{padding:8px;border:1px solid #94a3b8;border-radius:8px;background:#f8fafc;font-weight:bold;cursor:pointer}.btnrow{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metrics{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin-bottom:12px}.metric{background:white;border:1px solid #d7e0ea;border-radius:10px;padding:8px;font-size:11px}.metric b{display:block;font-size:15px}.views{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}svg{width:100%;height:520px;background:#fbfdff;border:1px solid #d7e0ea;border-radius:10px}.views svg{height:330px}.gridLine{stroke:#e2e8f0;stroke-width:.6}.room{fill:none;stroke:#111827;stroke-width:3}.opening{fill:#dbeafe;stroke:#2563eb;stroke-width:2;stroke-dasharray:8 5}.step{fill:#d6a15c;stroke:#5f3715;stroke-width:1.2}.winder{fill:#d9a85f;stroke:#5f3715;stroke-width:1.2}.landing{fill:#d2b48c;stroke:#5f3715;stroke-width:1.5}.walk{fill:none;stroke:#10b981;stroke-width:3;stroke-dasharray:6 5}.edge{fill:none;stroke:#5c3a21;stroke-width:5;stroke-linejoin:round;stroke-linecap:round}.rail{fill:none;stroke:#111827;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.post{stroke:#111827;stroke-width:1.3}.slab{fill:#94a3b8;stroke:#334155;opacity:.55}.txt{font-size:12px;font-weight:bold;fill:#0f172a}.small{font-size:10px;fill:#334155}.ok{color:#15803d;font-weight:bold}.warn{color:#b45309;font-weight:bold}.bad{color:#b91c1c;font-weight:bold}pre{background:#0f172a;color:#dbeafe;border-radius:10px;padding:10px;max-height:260px;overflow:auto}.adminBox{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:10px;margin-top:10px}.adminBox textarea{height:230px;font-family:Consolas,monospace;font-size:11px}.hint{font-size:12px;color:#64748b}.modal{position:fixed;inset:0;background:rgba(0,0,0,.82);display:none;align-items:center;justify-content:center;z-index:9999}.modal svg{width:94vw;height:90vh;background:white}
.doorSym{fill:none;stroke:#16a34a;stroke-width:4;stroke-linecap:round}.doorArc{fill:none;stroke:#16a34a;stroke-width:2;stroke-dasharray:4 3}.windowSym{fill:none;stroke:#0284c7;stroke-width:5;stroke-linecap:round}.nicheSym{fill:none;stroke:#7c3aed;stroke-width:3;stroke-dasharray:8 4}.partitionSym{fill:none;stroke:#111827;stroke-width:4}.wallSymbol{fill:none;stroke:#334155;stroke-width:2}.glass3d{fill:#bfdbfe;stroke:#0284c7;stroke-width:1.2;opacity:.65}.door3d{fill:#dcfce7;stroke:#16a34a;stroke-width:1.2;opacity:.65}.wall3d{fill:none;stroke:#64748b;stroke-width:1.4;opacity:.9}
