.step-image{margin:12px 0;max-width:280px}.step-image a{display:block;border:1px solid var(--line,#39404c);border-radius:10px;overflow:hidden;color:inherit;text-decoration:none}.step-image img{display:block;width:100%;max-height:170px;object-fit:contain;background:#fff}.step-image a span,.step-image figcaption{display:block;padding:8px 10px;font-size:.9rem;overflow-wrap:anywhere}.step-image figcaption{color:var(--muted,#b3bac5)}
.step-image-dialog{box-sizing:border-box;width:min(1100px,100%);max-width:100%;max-height:100dvh;padding:16px;color:#fff;background:#10131a;border:1px solid #424958;border-radius:12px}.step-image-dialog::backdrop{background:#000b}.step-image-dialog form{position:sticky;top:0;z-index:2;padding-bottom:12px;background:#10131a}.step-image-large{overflow:auto;max-height:76dvh}.step-image-large img{display:block;max-width:100%;height:auto;margin:auto;background:#fff}.step-image-dialog p{overflow-wrap:anywhere}
.step-editor-list{display:grid;gap:12px}.step-editor-row{padding:14px;border:1px solid var(--line,#39404c);border-radius:12px;min-width:0}.step-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.step-editor-heading>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.step-editor-row textarea{min-height:72px!important}.step-editor-row details{margin-top:12px}.step-editor-row summary{cursor:pointer;padding:12px 0}.step-editor-row .step-file{margin:12px 0}.step-editor-row input[type=file]{max-width:100%;font-size:1rem}.step-editor-row>label{margin-top:12px}.step-editor-row input,.step-editor-row textarea{box-sizing:border-box;width:100%}
.stage-plan-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--line,#39404c);border-radius:10px;text-decoration:none;gap:8px}.stage-controls{align-items:end;flex-wrap:wrap}.floorplan-shell{max-width:1200px;margin:0 auto;padding:20px}.floorplan-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.floorplan-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.floorplan-tools button{min-width:44px;min-height:44px}.floorplan-view{overflow:auto;width:100%;height:min(65dvh,700px);border-radius:10px;background:#fff;overscroll-behavior:contain}.floorplan-stage{position:relative;min-width:100%;width:100%;line-height:0}.floorplan-stage>img{display:block;width:100%;height:auto}.floorplan-point{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border:3px solid #fff;border-radius:50%;background:#102740;color:#fff;font-size:1rem;font-weight:800;box-shadow:0 1px 6px #0009;line-height:1;cursor:pointer}.floorplan-point.active{background:#ed1e78}.floorplan-highlight{position:absolute;box-sizing:border-box;background:#ffef0055;border:3px solid #111;pointer-events:none}.floorplan-options{display:grid;gap:10px}.floorplan-options input,.floorplan-options select,.floorplan-editor input,.floorplan-editor textarea,.floorplan-editor select{box-sizing:border-box;width:100%;font:inherit;padding:10px;border:1px solid #49505d;border-radius:8px;background:#181d26;color:#fff;min-height:44px}.floorplan-results{display:grid;gap:6px;max-height:280px;overflow:auto;margin:12px 0}.floorplan-results button{font:inherit;text-align:left;color:inherit;background:#1b2330;border:1px solid #3a4555;border-radius:8px;padding:12px;min-height:44px;overflow-wrap:anywhere}.floorplan-results button.active{border-color:#ffef00}.floorplan-detail{border-left:3px solid #ffef00;padding:12px;background:#181d26;overflow-wrap:anywhere}.floorplan-detail p{white-space:pre-wrap}.floorplan-editor{display:grid;gap:12px;margin-top:18px}.floorplan-editor label{display:grid;gap:6px}.floorplan-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.floorplan-status{white-space:pre-wrap;font-size:1rem}.floorplan-status.error{color:#ffb7b7}.floorplan-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.floorplan-header h1{font-size:1.7rem}.floorplan-note{color:var(--muted,#b3bac5);font-size:.9rem}.floorplan-view.placing{outline:3px solid #ffef00;cursor:crosshair}
@media(max-width:700px){.floorplan-layout{grid-template-columns:1fr}.floorplan-shell{padding:16px}.floorplan-view{height:46dvh;min-height:270px}.floorplan-results{grid-template-columns:1fr 1fr;max-height:220px}.step-image-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.step-editor-row{padding:10px}.stage-plan-link{flex:1}.floorplan-point{width:40px;height:40px}.floorplan-editor textarea{min-height:110px}}
