.gcode-start-3d { display: block; width: 100%; margin-top: 7px; padding: 9px 12px; border: 1px solid #2563eb; border-radius: 8px; background: #eff6ff; color: #1e40af; font-weight: 700; cursor: pointer; }
.gcode-start-3d:hover { background: #dbeafe; }
.cnc3d-backdrop { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; padding: 18px; background: rgba(9, 18, 35, .78); box-sizing: border-box; }
.cnc3d-dialog { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; border-radius: 12px; overflow: hidden; background: #f8fafc; box-shadow: 0 20px 70px rgba(0, 0, 0, .35); }
.cnc3d-head { display: flex; align-items: center; min-height: 52px; box-sizing: border-box; padding: 8px 60px 8px 14px; color: #0f172a; font-weight: 700; direction: ltr; }
.cnc3d-head span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cnc3d-head .cnc3d-close { position: absolute; top: 8px; right: 12px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #334155; font-size: 27px; cursor: pointer; line-height: 1; }
.cnc3d-head .cnc3d-close:hover { background: #e2e8f0; color: #0f172a; }
.cnc3d-frame { flex: 1; width: 100%; border: 0; background: #e8edf3; }
.cnc3d-status { padding: 4px 14px 9px; color: #475569; font-size: 12px; }
