.bb-app{width:100%;max-width:1200px;margin:0 auto;background:transparent;padding:32px 24px 40px;color:#1e293b;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.bb-title{margin:0 0 8px;font-size:2rem;font-weight:700;display:flex;align-items:center;gap:12px;color:#0f172a;letter-spacing:-.02em}.bb-logo{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:6px;background:#1e293b;font-weight:600;font-size:.9rem;color:#fff}.bb-desc{margin:0 0 32px;color:#64748b;font-size:1rem;line-height:1.6;max-width:800px}.bb-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:24px;padding:20px;background:#fff;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 1px 3px rgba(0,0,0,.05)}.bb-button,.bb-controls select{border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;padding:10px 16px;font-size:.9rem;outline:none;transition:all .2s ease;font-family:inherit}.bb-controls select{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;background-size:16px;padding-right:36px}.bb-controls select:hover{border-color:#94a3b8;background-color:#f8fafc}.bb-button:focus,.bb-controls select:focus{outline:2px solid #1e293b;outline-offset:2px}.bb-button{cursor:pointer;background:#1e293b;border:1px solid #1e293b;font-weight:500;color:#fff;display:inline-flex;align-items:center;gap:6px}.bb-button:hover{background:#334155;border-color:#334155}.bb-button:active{background:#0f172a}.bb-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr);gap:24px;margin-top:0}@media (max-width:900px){.bb-grid{grid-template-columns:minmax(0,1fr)}}.bb-card{border-radius:16px;border:1px solid #e2e8f0;background:#fff;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.05);transition:box-shadow .2s ease}.bb-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08)}.bb-card-title{margin:0 0 16px;font-size:1.25rem;font-weight:600;display:flex;align-items:center;gap:10px;color:#0f172a}.bb-badge{display:inline-flex;padding:4px 10px;border-radius:6px;font-size:.7rem;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569;text-transform:uppercase;letter-spacing:.05em;font-weight:600}.bb-summary-row{display:flex;flex-wrap:wrap;gap:10px;font-size:.9rem;margin-bottom:8px}.bb-pill{padding:6px 12px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569}.bb-highlight{color:#3b82f6;font-weight:600}.bb-math{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9rem;color:#1e293b;background:#f8fafc;padding:14px 16px;border-radius:10px;border:1px solid #e2e8f0;margin:12px 0;line-height:1.6}.bb-plot{width:100%;height:320px;display:block;border-radius:12px;overflow:visible}.bb-plot-bg{fill:#fff;stroke:#e2e8f0;stroke-width:1.5}.bb-axis{stroke:#94a3b8;stroke-width:1.5}.bb-constraint-line{stroke:#64748b;stroke-width:1.5;stroke-dasharray:5 4;opacity:.7}.bb-feasible-poly{fill:rgba(59,130,246,.1);stroke:#3b82f6;stroke-width:2}.bb-branch-line{stroke:#f97316;stroke-width:2;stroke-dasharray:6 4;opacity:.8}.bb-point-relax{fill:#3b82f6;stroke:#fff;stroke-width:2}.bb-point-int{fill:#10b981;stroke:#fff;stroke-width:2}.bb-legend-bg{fill:hsla(0,0%,100%,.95);stroke:#e2e8f0;stroke-width:1.5}.bb-legend-text{fill:#475569;font-size:.75rem;font-weight:500}.bb-plot-placeholder{font-size:.9rem;color:#94a3b8;padding:40px 20px;text-align:center;background:#f8fafc;border-radius:12px;border:2px dashed #cbd5e1}.bb-tick{stroke:#94a3b8;stroke-width:1.5}.bb-tick-label{fill:#64748b;font-size:.7rem;font-weight:500}.bb-node-list{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;margin-bottom:16px;padding-right:4px}.bb-node-list::-webkit-scrollbar{width:6px}.bb-node-list::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.bb-node-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.bb-node-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.bb-node-empty{font-size:.9rem;color:#94a3b8;text-align:center;padding:20px}.bb-node-chip{width:100%;text-align:left;padding:10px 14px;border-radius:10px;border:1px solid #e2e8f0;background:#f8fafc;color:#1e293b;font-size:.85rem;display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;transition:all .2s ease}.bb-node-chip:hover{background:#f1f5f9;border-color:#cbd5e1;transform:translateX(2px)}.bb-node-chip--active{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.bb-node-chip-id{font-weight:600;color:#0f172a}.bb-node-chip-status{font-size:.75rem;color:#64748b;text-align:right;flex-shrink:0}.bb-tree{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.8rem;max-height:280px;overflow:auto;background:#f8fafc;border-radius:10px;border:1px solid #e2e8f0;padding:16px;margin:0;white-space:pre-wrap;color:#475569;line-height:1.6}.bb-tree::-webkit-scrollbar{width:6px;height:6px}.bb-tree::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.bb-tree::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.bb-tree::-webkit-scrollbar-thumb:hover{background:#94a3b8}.bb-footer{margin-top:32px;padding-top:24px;border-top:1px solid #e2e8f0;font-size:.85rem;color:#64748b;text-align:center;line-height:1.6}.bb-mode-toggle{display:inline-flex;border-radius:6px;overflow:hidden;border:1px solid #e2e8f0;margin-bottom:20px;background:#fff}.bb-mode-btn{padding:8px 16px;background:transparent;color:#64748b;border:none;font-size:.9rem;cursor:pointer;transition:background .15s ease;font-weight:400}.bb-mode-btn:hover{background:#f8fafc}.bb-mode-btn--active{background:#1e293b;color:#fff;font-weight:500}.bb-input-num{border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;padding:8px 12px;font-size:.9rem;outline:none;transition:all .2s ease;font-family:inherit}.bb-input-num.small{width:80px}.bb-input-num.tiny{width:70px}.bb-input-num:hover{border-color:#94a3b8}.bb-input-num:focus{border-color:#1e293b;outline:none}.bb-custom-obj{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bb-custom-obj select{border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;padding:8px 12px;font-size:.9rem;cursor:pointer;transition:all .2s ease}.bb-custom-obj select:hover{border-color:#94a3b8}.bb-custom-constraints{margin-bottom:20px;padding:20px;background:#fff;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 1px 3px rgba(0,0,0,.05)}.bb-custom-constraints-header{display:flex;justify-content:space-between;align-items:center;font-size:.9rem;color:#475569;margin-bottom:12px;font-weight:600}.bb-add-constraint-btn{border-radius:6px;border:1px solid #cbd5e1;background:#fff;color:#475569;padding:6px 12px;font-size:.85rem;cursor:pointer;transition:background .15s ease;font-weight:400}.bb-add-constraint-btn:hover{background:#f8fafc}.bb-custom-constraints-grid{display:flex;flex-direction:column;gap:8px}.bb-custom-constraint-row{display:flex;align-items:center;gap:8px;font-size:.9rem;padding:8px;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.bb-custom-constraint-row select{border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;padding:6px 10px;font-size:.85rem;cursor:pointer}.bb-remove-constraint-btn{border-radius:4px;border:1px solid #e2e8f0;background:#fff;color:#64748b;width:24px;height:24px;font-size:.9rem;line-height:1;cursor:pointer;transition:background .15s ease;display:flex;align-items:center;justify-content:center;font-weight:400}.bb-remove-constraint-btn:hover{background:#fee2e2;color:#dc2626;border-color:#fecaca}