/* The design editor is a single drawing surface; flight-result styles stay separate. */
main{max-width:none;padding:0 24px}.projectbar{padding:15px 0 10px;gap:16px}.project-title{margin:0}.project-title input{font-size:25px;max-width:360px}.save-status{font-size:10px;margin-top:3px}.project-actions .button{height:35px}.tabs{gap:20px;margin:0;border-bottom:1px solid var(--line)}.tabs>button{height:39px;padding:7px 2px 10px;font-size:12px}.tabs>button.active{border-color:#507d2a}.message{margin:10px 0;font-size:12px}
.component-ribbon{display:flex;align-items:flex-start;gap:12px;padding:13px 0 12px;border-bottom:1px solid #e8ece4}.component-ribbon .component-tree{display:flex;align-items:flex-start;gap:9px;flex:1;min-width:0;max-height:126px;overflow-x:auto;overflow-y:hidden;padding:0 0 3px}.component-ribbon .tree-group{flex:0 0 auto;min-width:135px;max-width:350px;margin:0}.component-ribbon .component-item{display:flex;align-items:center;gap:3px;margin:0;border:0;background:transparent;border-radius:7px;position:relative}.component-ribbon .component-row{margin:0;min-width:0;width:auto;max-width:300px;padding:7px 10px!important;border:1px solid #e0e6da;background:#f8faf5;border-radius:7px;gap:7px}.component-ribbon .component-row strong{font-size:11px;line-height:1.3;font-weight:550;white-space:nowrap}.component-ribbon .component-row small{display:none}.component-ribbon .part-icon{width:17px;height:21px;color:#758269}.component-ribbon .component-item.selected .component-row{border-color:#6f943f;background:#edf4e3;box-shadow:inset 0 0 0 1px #6f943f22}.component-ribbon .component-item.selected .part-icon{color:#507d2a}.component-ribbon .component-row:after{display:none}.component-ribbon .tree-children{display:flex;flex-wrap:wrap;gap:5px;max-width:330px;border-left:1px solid #d9e3d0;margin:5px 0 0 15px;padding:0 0 0 9px}.component-ribbon .child-part .component-row{padding:4px 7px!important;border-color:#e7eae2;background:#fff}.component-ribbon .child-part .part-icon{width:12px;height:16px}.component-ribbon .child-part strong{font-size:9px}.component-ribbon .tree-actions{position:static;flex:0 0 auto;display:none;min-width:0;padding:1px;background:white;border:1px solid #dce4d4;border-radius:5px}.component-ribbon .component-item.selected .tree-actions{display:flex}.component-ribbon .tree-actions button{width:19px;height:18px;border:0;font-size:11px}.component-ribbon .motor-tree-row{width:auto;display:flex;gap:5px;margin:0;padding:4px 7px;border-color:#dce6d2;background:#f1f6eb}.component-ribbon .motor-tree-row strong{font-size:9px}.component-ribbon .motor-tree-row small{display:none}.ribbon-add{width:33px;height:33px;flex:0 0 33px;border:1px dashed #9caf83;border-radius:7px;background:#f8faf5;color:#507d2a;font-size:23px;line-height:1}.ribbon-add:hover{background:#edf4e3}
.rocket-workspace{position:relative}.workspace-toolbar{height:46px;display:flex;align-items:center;justify-content:space-between;gap:10px}.selected-caption{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;font-weight:600;color:#526446}.selected-caption .part-icon{width:16px;height:20px;color:#66894a}.workspace-tools{display:flex;align-items:center;gap:8px}.workspace-tools>span{font-size:10px;color:#8b9681;margin-right:5px}.workspace-tools .button{height:29px;padding:0 10px;font-size:10px;background:#fff}.workspace-tools .zoom-controls{display:flex;gap:2px}.workspace-tools .zoom-controls button{height:29px;min-width:27px;border:1px solid #e0e6d8;background:#fff;border-radius:4px;font-size:12px;color:#687b58}.workspace-tools .zoom-controls button:nth-child(2){font-size:10px}
.rocket-workspace .canvas-wrap{position:relative;min-height:0;height:clamp(560px,67vh,720px);background:#fcfdf9;background-image:radial-gradient(#dfe7d6 .65px,transparent .65px);background-size:18px 18px;border:0;border-radius:10px;overflow:hidden}.rocket-workspace #rocket-view{display:block;width:100%;height:100%;min-height:0;overflow:visible}.rocket-workspace #rocket-view [data-id]{cursor:pointer;transition:filter .15s}.rocket-workspace #rocket-view [data-id]:hover{filter:drop-shadow(0 0 3px #74964f88)}.part-callouts,#callout-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.part-callouts{z-index:3}#callout-lines{z-index:2;overflow:visible}.part-callout{position:absolute;pointer-events:auto;min-width:0;padding:11px 13px;background:#fffffff5;border:1px solid #dbe4d2;border-radius:8px;box-shadow:0 5px 18px #364c2510}.part-callout .field{margin:0;min-width:0}.part-callout .field>span{font-size:10px;line-height:1.3;color:#6e7c62;margin-bottom:6px;display:block}.part-callout .input-wrap{position:relative;display:flex;align-items:center;min-width:0}.part-callout input,.part-callout select{width:100%;min-width:0;height:33px;border:1px solid #dde5d5;border-radius:5px;background:#fff;color:#29422b;padding:5px 29px 5px 8px;font-size:13px;box-shadow:none}.part-callout select{font-size:11px;padding-right:18px}.part-callout input:focus,.part-callout select:focus{outline:2px solid #a8c38a66;border-color:#729d49}.part-callout input[type=color]{padding:3px}.part-callout .input-wrap em{position:absolute;right:8px;bottom:8px;font-size:10px;color:#8b977f;font-style:normal;pointer-events:none}.part-callout .override-check{font-size:9px;margin:6px 0 0;gap:5px;color:#718263}.part-callout .override-check input{width:12px;height:12px;padding:0;accent-color:#507d2a}.callout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.callout-fields.single{grid-template-columns:1fr}.callout-note{font-size:9px;line-height:1.4;margin:6px 0 0;color:#849175}.callout-note.warning{color:#a16b28}.callout-join{display:flex;gap:9px;align-items:center;font-size:11px;color:#5b7547}.callout-join button{height:32px;border:1px dashed #9ab97d;background:#f3f8eb;color:#42642c;border-radius:5px;padding:0 10px;font-size:11px}.workspace-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 2px 11px}.workspace-footer .viewer-legend{border:0;padding:0;background:none;gap:14px;font-size:10px}.workspace-footer .viewer-legend b,.workspace-footer .mm-note{display:none}.workspace-hint{font-size:10px;color:#8a947f}.live-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;border-top:1px solid #e7ecdf;padding:13px 0 8px}.live-overview .rocket-readout{position:static;max-width:none;background:none;font-size:10px;padding:0 16px 0 0;border-radius:0;border-right:1px solid #e3e9dc;pointer-events:auto;text-align:left}.live-overview .rocket-readout:last-child{border:0;padding:0}.live-overview .rocket-readout>div{gap:8px;flex-wrap:nowrap;justify-content:space-between}.live-overview .rocket-readout strong{font-size:11px;color:#354e31}.live-overview .preview-status{font-size:9px;max-width:none}.workspace-ghost{cursor:pointer;pointer-events:all}.workspace-ghost:hover{filter:drop-shadow(0 0 4px #8eb66e66)}.workspace-ghost .ghost-fill{fill:#a9bf8230;stroke:#8ba765;stroke-width:1.3;stroke-dasharray:5 4}.workspace-ghost .ghost-plus{fill:#fff;stroke:#8da96d;stroke-width:1.2}.workspace-ghost text{font:11px var(--font);fill:#6d8a4d;pointer-events:none}.workspace-edge{cursor:pointer}.workspace-edge circle{fill:#fff;stroke:#9cb783;stroke-width:1.2}.workspace-edge:hover circle{fill:#edf5e4;stroke:#507d2a}.workspace-edge text{font:20px var(--font);fill:#6c9148;pointer-events:none}.workspace-edge path{stroke:#a3b78c;fill:none;stroke-width:1}
.leader-path{fill:none;stroke:#9aac8b;stroke-width:1.15;stroke-linecap:round}.leader-origin{fill:#fff;stroke:#749253;stroke-width:1.2}#part-dimensions{fill:none;stroke:#a5b594;stroke-width:1}.connection-enter .leader-path{stroke-dasharray:100;animation:draw-callout .44s cubic-bezier(.35,0,.25,1) var(--callout-delay,0ms) both}.connection-enter .leader-origin{transform-box:fill-box;transform-origin:center;animation:callout-origin .44s ease-out var(--callout-delay,0ms) both}.callout-enter{animation:reveal-callout .24s ease-out calc(360ms + var(--callout-delay,0ms)) both}.callout-fields{gap:12px}.workspace-tooltip{position:absolute;z-index:10;pointer-events:none;max-width:220px;padding:7px 10px;border-radius:5px;background:#334c2d;color:#fff;font-size:11px;line-height:1.35;box-shadow:0 3px 10px #233b3520}.workspace-tooltip[hidden]{display:none}@keyframes draw-callout{from{stroke-dashoffset:100;opacity:0}20%{opacity:1}to{stroke-dashoffset:0;opacity:1}}@keyframes reveal-callout{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes callout-origin{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.connection-enter .leader-path,.connection-enter .leader-origin,.callout-enter{animation:none}}
.connection-menu{position:absolute;z-index:8;width:225px;max-width:calc(100% - 24px);background:#fff;border:1px solid #dbe4d2;border-radius:9px;box-shadow:0 10px 28px #283f2520;padding:7px}.connection-menu p{font-size:10px;color:#8a967d;padding:4px 7px;margin:0 0 5px}.connection-menu button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:9px;border:0;border-radius:5px;background:#fff;font-size:12px}.connection-menu button:hover{background:#f1f6e9}.connection-menu .part-icon{width:16px;height:20px;color:#77955b}
.properties-dialog{width:min(590px,calc(100% - 32px));max-height:88vh;padding:0;border-radius:12px}.properties-dialog>.dialog-heading{position:sticky;top:0;z-index:3;background:#fff;padding:20px 24px;border-bottom:1px solid #e4eadc;margin:0}.properties-dialog h2{font:600 20px var(--display)}.properties-dialog #inspector{display:block!important;max-height:none;padding:23px 24px}.properties-dialog .field-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.properties-dialog .selected-part-label{display:none}.properties-dialog .field{margin-bottom:14px}.properties-dialog .field select{font-size:12px}.properties-dialog .field input{font-size:13px}.properties-dialog .field-note{font-size:11px}.properties-dialog .override-check{font-size:11px}.motor-settings-dialog{width:min(740px,calc(100% - 32px));padding:0;max-height:90vh;border-radius:12px}.motor-settings-dialog>.dialog-heading{margin:0;padding:20px 24px;border-bottom:1px solid #e2e9d9}.motor-settings-dialog .design-motor{border:0;margin:0;border-radius:0}.motor-settings-dialog .design-motor .settings-section{display:block;padding:20px 24px}.motor-settings-dialog #motor-name{font:600 20px var(--display);margin:18px 0 8px}.motor-settings-dialog #motor-plot{width:100%;height:130px;max-width:420px}.motor-settings-dialog .design-motor .field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.motor-settings-dialog #remove-motor{display:inline-block;margin:10px 0}.motor-settings-dialog .design-motor .field-note{font-size:11px}.workspace-footer+.live-overview{margin-top:0}
.component-ribbon{padding-top:8px;padding-bottom:8px}.component-ribbon .tree-group{max-width:none}.component-ribbon .tree-children{max-width:none;flex-wrap:nowrap}.component-ribbon .tree-group .component-item{background:transparent!important}.component-ribbon .component-tree{max-height:90px}.workspace-toolbar{height:38px}.rocket-workspace .canvas-wrap{height:clamp(500px,calc(100vh - 230px),760px)}
.motor-ribbon-item{display:flex;align-items:center;gap:3px;flex:0 0 auto}.component-ribbon .motor-remove{width:23px;height:24px;flex:0 0 23px;padding:0;border:1px solid #e4d7ce;border-radius:5px;background:#fff8f3;color:#a45139;font-size:15px;line-height:1}.component-ribbon .motor-remove:hover{background:#fbe7de;border-color:#c88d76}.motor-settings-dialog #remove-motor{color:#a45139;border:1px solid #e4d7ce;border-radius:5px;background:#fff8f3;padding:7px 11px;font-size:12px}.workspace-tools .button:disabled{opacity:.45;cursor:default}
.part-callout[data-callout="tip-sweep"] .callout-fields>.field:last-child{grid-column:1/-1}
.rocket-workspace .canvas-wrap.compact-workspace{display:block;height:760px;overflow:visible}.compact-workspace .part-callouts{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:12px;padding:0 7px;top:405px;bottom:auto;height:auto}.compact-workspace .part-callout{position:static!important;width:auto!important;min-width:0;box-shadow:none}.compact-workspace .part-callout.wide-callout{grid-column:1/-1}.compact-workspace #callout-lines{display:none}.compact-workspace #rocket-view{height:405px}.compact-workspace .callout-fields{gap:8px}
@media(min-width:1600px){main{padding:0 36px}.projectbar{padding-top:18px}.rocket-workspace .canvas-wrap{height:clamp(540px,calc(100vh - 230px),800px)}}
@media(max-width:800px){main{padding:0 12px}.project-title input{font-size:22px;max-width:230px}.project-actions{margin:0;display:flex}.project-actions .button{font-size:10px;padding:0 9px}.component-ribbon{padding-top:10px}.component-ribbon .component-tree{max-height:117px}.workspace-toolbar{height:45px}.workspace-tools>span{display:none}.workspace-tools .button{font-size:9px;padding:0 7px}.selected-caption{font-size:11px}.rocket-workspace .canvas-wrap{height:620px}.part-callout{padding:9px}.part-callout .field>span{font-size:9px}.part-callout input{font-size:12px}.part-callout select{font-size:10px}.live-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.live-overview .rocket-readout:nth-child(2){border:0}.workspace-hint{font-size:9px;max-width:220px;text-align:right}.properties-dialog .field-row{grid-template-columns:1fr 1fr!important}}
@media(max-width:520px){.projectbar{display:flex;align-items:center}.project-title input{font-size:20px;max-width:150px}.project-actions .button{font-size:0;gap:0;width:30px;height:31px;padding:0}.project-actions .button>span{font-size:14px}.project-actions .button.primary{font-size:10px;width:auto;padding:0 8px;gap:4px}.project-actions .button.primary>span{font-size:8px}.save-status{font-size:8px;max-width:170px}.workspace-tools{gap:4px}.workspace-tools .zoom-controls{display:none}.workspace-tools .button{padding:0 7px}.rocket-workspace .canvas-wrap{height:760px;overflow:visible}.part-callouts{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px;padding:0 7px;top:405px;bottom:auto;height:auto}.part-callout{position:static!important;width:auto!important;min-width:0;box-shadow:none}.part-callout.wide-callout{grid-column:1/-1}#callout-lines{display:none}.callout-fields{gap:6px}.rocket-workspace #rocket-view{height:405px}.workspace-footer{padding-top:7px;align-items:flex-start}.workspace-hint{max-width:165px}.live-overview{margin-top:0}.live-overview .rocket-readout{font-size:9px}.live-overview .rocket-readout strong{font-size:10px}.component-ribbon .tree-group{min-width:120px}.component-ribbon .tree-children{max-width:250px}.component-ribbon .component-row strong{font-size:10px}.component-ribbon .child-part strong{font-size:8px}}

/* Corner values stay visible while a selected part uses the middle rows. */
.rocket-workspace #workspace-canvas{height:clamp(560px,calc(100vh - 230px),900px)}
.rocket-workspace #workspace-canvas.has-callouts{min-height:760px}
.rocket-workspace #rocket-view:focus{outline:none}
.rocket-workspace .live-overview{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;margin:0;padding:0;pointer-events:none;z-index:4}
.rocket-workspace .live-overview .rocket-readout{position:absolute;width:218px;max-width:calc(50% - 28px);height:auto;padding:9px 11px;border:1px solid #e1e8d9;border-radius:6px;background:#fffffff0;font-size:10px;pointer-events:auto;text-align:left;box-shadow:none}
.rocket-workspace .live-overview .rocket-readout>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:nowrap;line-height:1.55}
.rocket-workspace .live-overview .rocket-readout strong{font-size:11px;max-width:65%;text-align:right;color:#354e31;white-space:normal}
.rocket-workspace .live-overview .preview-status{display:block;margin-top:3px;font-size:9px;line-height:1.4}
.rocket-workspace #view-mass{top:16px;left:16px;right:auto;bottom:auto}
.rocket-workspace #view-balance{top:16px;right:16px;left:auto;bottom:auto}
.rocket-workspace #view-flight{bottom:16px;left:16px;top:auto;right:auto}
.rocket-workspace #view-motor{bottom:16px;right:16px;top:auto;left:auto}
.rocket-workspace #workspace-canvas.compact-workspace{min-height:0;height:405px}
.rocket-workspace .compact-workspace .live-overview{height:405px;bottom:auto}
.rocket-workspace .compact-workspace .live-overview .rocket-readout{padding:7px 8px;font-size:9px;max-width:calc(50% - 20px)}
.rocket-workspace .compact-workspace .live-overview .rocket-readout strong{font-size:9px}
.rocket-workspace .compact-workspace #view-mass,.rocket-workspace .compact-workspace #view-flight{left:10px}
.rocket-workspace .compact-workspace #view-balance,.rocket-workspace .compact-workspace #view-motor{right:10px}
.component-ribbon .motor-tree-row.selected{border-color:#6f943f;background:#edf4e3;box-shadow:inset 0 0 0 1px #6f943f22}
.part-callout[data-callout="payload"] .callout-fields>.field:first-child{grid-column:1/-1}
.motor-actions{margin-top:8px;justify-content:space-between}
.motor-actions button:last-child{color:#a45139;border-color:#d4b8a9;background:#fff8f3}
.palette-heading{grid-column:1/-1;font-size:12px;margin:7px 0 0;color:#5b7547}
#add-dialog{max-height:88vh;overflow:auto}
.flight-diagnostics{margin-bottom:18px;padding:16px 20px;border:1px solid #dccca6;border-left:4px solid #ac843c;border-radius:8px;background:#fffbef;color:#66522f;line-height:1.65;overflow-wrap:anywhere}
.flight-diagnostics.is-stopped{border-color:#dfb8a8;border-left-color:#aa543b;background:#fff7f2;color:#743e2e}
.flight-diagnostics h3{font:600 17px var(--display);margin:0 0 8px}
.flight-diagnostics p,.flight-diagnostics ul{margin:8px 0 0}
.flight-diagnostics ul{padding-left:20px}
.flight-diagnostics .flight-stop-reason{font-weight:600}
@media(max-width:600px){.flight-diagnostics{padding:13px 15px;font-size:12px}.flight-diagnostics h3{font-size:16px}}
