.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.sidebar{width:320px;background:#1a1a2e;border-right:2px solid #16213e;display:flex;flex-direction:column;padding:20px;overflow-y:auto;box-shadow:2px 0 10px #0000004d}.sidebar-header{margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #16213e}.sidebar-header h2{color:#4facfe;font-size:24px;font-weight:700;margin-bottom:8px;letter-spacing:-.5px}.version-badge{display:inline-block;margin:6px 0 0;padding:2px 8px;background:#f0a5001f;border:1px solid #f0a50088;border-radius:10px;color:#f0a500;font-size:11px;font-weight:600;letter-spacing:.3px;font-family:Consolas,Monaco,monospace;cursor:default;-webkit-user-select:none;user-select:none}.subtitle{color:#888;font-size:14px;font-weight:400}.sidebar-section{margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid #16213e}.sidebar-section:last-of-type{border-bottom:none}.sidebar-section h3{color:#eee;font-size:16px;font-weight:600;margin-bottom:15px;text-transform:uppercase;letter-spacing:.5px;font-size:13px}.sidebar-input{width:100%;padding:12px;background:#0f0f1e;border:1px solid #16213e;border-radius:6px;color:#eee;font-size:14px;margin-bottom:10px;transition:all .2s ease}.sidebar-input:focus{outline:none;border-color:#4facfe;box-shadow:0 0 0 3px #4facfe1a}.sidebar-input::placeholder{color:#555}.btn{width:100%;padding:12px 16px;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px}.btn-primary{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4facfe66}.btn-secondary{background:#16213e;color:#eee;border:1px solid #4facfe}.btn-secondary:hover{background:#1a1a2e;transform:translateY(-2px);box-shadow:0 4px 12px #4facfe33}.btn-danger{background:#dc3545;color:#fff}.btn-danger:hover{background:#c82333;transform:translateY(-2px);box-shadow:0 4px 12px #dc354566}.button-group{display:flex;flex-direction:column;gap:8px}.node-info{display:flex;flex-direction:column;gap:10px}.node-id{color:#888;font-size:12px;font-family:Courier New,monospace;padding:8px;background:#0f0f1e;border-radius:4px;border:1px solid #16213e}.instructions-list{list-style:none;padding:0}.instructions-list li{color:#aaa;font-size:13px;line-height:1.8;padding-left:20px;position:relative;margin-bottom:8px}.instructions-list li:before{content:"→";position:absolute;left:0;color:#4facfe;font-weight:700}.sidebar-footer{margin-top:auto;padding-top:20px;border-top:1px solid #16213e;text-align:center}.footer-text{color:#4facfe;font-size:14px;font-weight:600;margin-bottom:4px}.footer-subtext{color:#666;font-size:11px;text-transform:uppercase;letter-spacing:1px}.family-node{transition:all .2s ease}.family-node.selected{box-shadow:0 0 0 3px #4a90e2,0 4px 15px #4a90e266!important}.family-node:hover{transform:scale(1.02);box-shadow:0 4px 20px #0000004d}.react-flow__handle{transition:all .2s ease}.react-flow__handle:hover{background:#4a90e2!important;transform:scale(1.2)}.family-node[data-family-label]{animation:familyPulse 2s ease-in-out infinite}@keyframes familyPulse{0%,to{box-shadow:0 4px 15px #2d5a8766}50%{box-shadow:0 4px 20px #2d5a8799}}.node-editor{position:fixed;right:20px;top:20px;width:300px;background:#1a1a2e;border:1px solid #16213e;border-radius:8px;padding:20px;z-index:1000;box-shadow:0 4px 20px #00000080}.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #16213e}.editor-header h3{margin:0;color:#eee;font-size:18px}.close-btn{background:none;border:none;color:#eee;font-size:24px;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.close-btn:hover{color:#ff6b6b}.editor-content{display:flex;flex-direction:column;gap:15px}.editor-field{display:flex;flex-direction:column;gap:5px}.editor-field label{color:#aaa;font-size:12px;font-weight:700}.editor-input{background:#0f0f1e;border:1px solid #16213e;border-radius:4px;padding:8px 12px;color:#eee;font-size:14px}.editor-input:focus{outline:none;border-color:#4a90e2}.editor-actions{display:flex;gap:10px;margin-top:10px}.btn{flex:1;padding:10px;border:none;border-radius:4px;cursor:pointer;font-weight:700;font-size:14px}.edge-editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;background:transparent}.edge-editor{position:fixed;z-index:1000;width:260px;background:#1a1a2e;border:1px solid #f0a500;border-radius:10px;box-shadow:0 10px 30px #0000008c;color:#eee;font-size:13px;padding:12px 14px;animation:edge-editor-pop .12s ease-out}@keyframes edge-editor-pop{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.edge-editor-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.edge-editor-title{font-weight:600;color:#f0a500;font-size:13px}.edge-editor-close{background:none;border:none;color:#888;font-size:20px;line-height:1;cursor:pointer;padding:0 4px}.edge-editor-close:hover{color:#fff}.edge-editor-label{background:#ffffff0a;border:1px solid #333;border-radius:6px;padding:6px 8px;margin-bottom:10px;color:#ccc;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edge-editor-actions{display:flex;flex-direction:column;gap:6px}.edge-editor-actions .btn{width:100%;padding:7px 10px;border-radius:6px;border:1px solid transparent;cursor:pointer;font-size:12px;font-weight:500;transition:background .15s,border-color .15s}.btn-toggle-divorce{background:#c0392b2e;border-color:#c0392b;color:#ff8878}.btn-toggle-divorce:hover{background:#c0392b52}.btn-toggle-remarry{background:#27ae602e;border-color:#27ae60;color:#7de3a8}.btn-toggle-remarry:hover{background:#27ae6052}.edge-editor-actions .btn-danger{background:#c0392b1a;border-color:#c0392b55;color:#e07a6b}.edge-editor-actions .btn-danger:hover{background:#c0392b47;border-color:#c0392b;color:#fff}.toast-container{position:fixed;top:70px;right:20px;z-index:2000;display:flex;flex-direction:column;gap:8px;max-width:360px;pointer-events:none}.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border-radius:8px;background:#1a1a2e;border:1px solid #333;box-shadow:0 6px 24px #00000073;color:#eee;font-size:13px;cursor:pointer;animation:toast-in .18s ease-out;min-width:240px}@keyframes toast-in{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.toast-icon{font-size:16px;line-height:1.2;flex-shrink:0}.toast-message{flex:1;line-height:1.4}.toast-success{border-color:#27ae60}.toast-success .toast-icon{color:#7de3a8}.toast-error{border-color:#c0392b}.toast-error .toast-icon{color:#ff8878}.toast-info{border-color:#4a90e2}.toast-info .toast-icon{color:#82b5f5}.project-bar{position:fixed;top:10px;left:50%;transform:translate(-50%);z-index:1000;display:flex;align-items:center;gap:16px;padding:8px 14px;background:#141420eb;border:1px solid #333;border-radius:10px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 4px 12px #0006;color:#eee;font-size:13px}.project-bar-left,.project-bar-right{display:flex;align-items:center;gap:8px}.project-bar-label{color:#aaa;font-weight:500}.project-bar-select{background:#1a1a2e;color:#eee;border:1px solid #444;border-radius:4px;padding:4px 8px;font-size:13px;min-width:160px;cursor:pointer}.project-bar-select:hover{border-color:#4a90e2}.project-btn{background:#2a2a40;color:#eee;border:1px solid #444;border-radius:4px;padding:5px 10px;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s}.project-btn:hover{background:#3a3a55;border-color:#4a90e2}.project-menu-wrapper{position:relative}.project-menu{position:absolute;top:calc(100% + 4px);right:0;background:#1a1a2e;border:1px solid #444;border-radius:6px;box-shadow:0 4px 16px #00000080;min-width:180px;padding:4px;display:flex;flex-direction:column;gap:2px;z-index:1001}.project-menu button{text-align:left;background:transparent;color:#eee;border:none;padding:8px 12px;font-size:13px;cursor:pointer;border-radius:4px}.project-menu button:hover:not(:disabled){background:#2a2a40}.project-menu button:disabled{color:#555;cursor:not-allowed}.project-menu-sep{height:1px;background:#333;margin:4px 0}.project-menu-danger{color:#e24a4a!important}.project-menu-danger:hover:not(:disabled){background:#4a2020!important}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#0f0f1e;color:#eee}.app-container{display:flex;height:100vh;width:100vw;overflow:hidden;background:#0f0f1e}.sidebar{width:300px;background:#1a1a2e;border-right:1px solid #16213e;padding:20px;overflow-y:auto}.sidebar-header{margin-bottom:30px}.sidebar-header h2{margin:0 0 5px;color:#eee;font-size:24px}.subtitle{margin:0;color:#888;font-size:12px}.sidebar-section{margin-bottom:30px}.sidebar-section h3{margin:0 0 15px;color:#eee;font-size:16px}.sidebar-input{width:100%;padding:10px;margin-bottom:10px;background:#0f0f1e;border:1px solid #16213e;border-radius:4px;color:#eee;font-size:14px}.sidebar-input:focus{outline:none;border-color:#4a90e2}.btn{width:100%;padding:10px;margin-bottom:10px;border:none;border-radius:4px;cursor:pointer;font-weight:700;font-size:14px}.btn-primary{background:#4a90e2;color:#fff}.btn-primary:hover{background:#357abd}.btn-secondary{background:#5a5a8a;color:#fff}.btn-secondary:hover{background:#4a4a7a}.btn-danger{background:#ff6b6b;color:#fff}.btn-danger:hover{background:#e55a5a}.node-info{background:#0f0f1e;padding:15px;border-radius:4px;border:1px solid #16213e}.node-id{margin:0 0 10px;color:#888;font-size:12px}.button-group{display:flex;gap:10px;margin-top:10px}.button-group .btn{margin-bottom:0}.instructions-list{list-style:none;padding:0;margin:0}.instructions-list li{padding:8px 0;color:#aaa;font-size:13px;border-bottom:1px solid #16213e}.instructions-list li:last-child{border-bottom:none}.sidebar-footer{margin-top:auto;padding-top:20px;border-top:1px solid #16213e}.footer-text{margin:0 0 5px;color:#888;font-size:12px;font-weight:700}.footer-subtext{margin:0;color:#666;font-size:10px}.reactflow-wrapper{flex:1;height:100%}.react-flow{background:#0f0f1e}.react-flow__node{border-radius:8px;font-size:14px;font-weight:500;transition:all .2s ease}.react-flow__node:hover{box-shadow:0 0 15px #4facfe4d;transform:scale(1.02)}.react-flow__node.selected{box-shadow:0 0 20px #4facfe99;border-color:#4facfe!important}.react-flow__edge-path{stroke:#16213e;stroke-width:2}.react-flow__edge.selected .react-flow__edge-path{stroke:#4facfe;stroke-width:3}.react-flow__controls{background:#1a1a2e!important;border:1px solid #16213e!important;border-radius:8px}.react-flow__controls-button{background:#1a1a2e!important;border-bottom:1px solid #16213e!important;color:#eee!important}.react-flow__controls-button:hover{background:#16213e!important}.react-flow__minimap{background:#0f0f1e!important;border:1px solid #16213e!important;border-radius:8px}.react-flow__attribution{background:#1a1a2ecc!important;padding:4px 8px;border-radius:4px;color:#888!important}.family-node{position:relative;transition:all .2s ease}.family-node.selected{box-shadow:0 0 0 2px #4a90e2}.family-node:hover{transform:scale(1.02)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#0f0f1e}::-webkit-scrollbar-thumb{background:#16213e;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#1a1a2e}.layout-controls-panel{margin:12px 0 0 12px!important}.layout-controls-container{display:flex;flex-direction:column;gap:6px}.layout-toggle-btn{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#1a1a2e;border:1px solid #16213e;border-radius:6px;color:#aaa;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #0000004d}.layout-toggle-btn:hover{background:#16213e;border-color:#2d5a87;color:#eee}.layout-toggle-btn.active{background:#1e3a5f;border-color:#4a90e2;color:#fff}.layout-toggle-btn.active:hover{background:#2d5a87;border-color:#4a90e2}.orientation-toggle-btn{display:flex;align-items:center;gap:6px;padding:5px 10px;background:#0f0f1e;border:1px solid #16213e;border-radius:4px;color:#888;font-size:11px;font-weight:400;cursor:pointer;transition:all .2s ease;margin-left:4px}.orientation-toggle-btn:hover{background:#1a1a2e;border-color:#2d5a87;color:#aaa}.layout-toggle-icon,.orientation-icon{font-size:14px;line-height:1}.layout-toggle-text,.orientation-text{font-size:11px;letter-spacing:.5px}.language-toggle-btn{display:flex;align-items:center;gap:4px;padding:5px 10px;background:#0f0f1e;border:1px solid #16213e;border-radius:4px;color:#888;font-size:11px;font-weight:600;cursor:pointer;transition:all .2s ease;margin-left:4px}.language-toggle-btn:hover{background:#1a1a2e;border-color:#4a90e2;color:#fff}.language-icon{font-size:12px}.language-text{font-size:10px}[dir=rtl] .sidebar{border-right:none;border-left:1px solid #16213e}[dir=rtl] .layout-controls-panel{margin:12px 12px 0 0!important}[dir=rtl] .language-toggle-btn,[dir=rtl] .orientation-toggle-btn{margin-left:0;margin-right:4px}
