@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:Inter,Segoe UI,system-ui,sans-serif;background:#f7f5f0;overflow:hidden;color:#333}.login-screen{height:100vh;display:flex;align-items:center;justify-content:center;background:#f7f5f0}.login-box{background:#fff;border:1px solid #e5e2da;border-radius:10px;padding:36px 32px;width:320px;box-shadow:0 4px 24px #0000000f}.login-box h1{font-size:15px;color:#c0392b;margin-bottom:4px}.login-box p{font-size:11px;color:#999;margin-bottom:20px}.login-box input{width:100%;padding:10px 12px;border:1px solid #e0ddd6;border-radius:6px;font-size:13px;margin-bottom:12px;font-family:inherit}.login-box button{width:100%;padding:10px;border:none;border-radius:6px;background:#c0392b;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.login-box button:hover{background:#a93226}.login-error{font-size:11px;color:#c0392b;margin-bottom:10px}.canvas-root{width:100vw;height:100vh;position:relative;cursor:grab}.canvas-root.dragging{cursor:grabbing}.canvas-root svg{width:100%;height:100%;display:block}.bubble{cursor:pointer;transition:opacity .3s}.bubble.hidden{opacity:0;pointer-events:none}.bubble circle{transition:r .35s cubic-bezier(.34,1.56,.64,1),filter .2s;filter:drop-shadow(0 2px 6px rgba(0,0,0,.08))}.bubble:hover circle{filter:drop-shadow(0 3px 12px rgba(0,0,0,.18))}.bubble text{pointer-events:none;font-family:Inter,system-ui,sans-serif}.bubble.edge-source circle{stroke:#16a34a;stroke-width:3;stroke-dasharray:4 3}.bubble .expand-dot{opacity:.6;pointer-events:none}.edge-hit{cursor:pointer}.edge-line{fill:none;opacity:.75;pointer-events:none}.edge-line.selected{opacity:.9}#legend{position:fixed;bottom:20px;left:20px;z-index:100;display:flex;flex-direction:column;gap:8px}.legend-card{background:#fff;border:1px solid #e5e2da;border-radius:8px;padding:8px 14px;box-shadow:0 2px 8px #0000000f}.leg-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:none;border:none;padding:2px 0;font-size:10px;font-weight:700;color:#555;cursor:pointer}.leg-body{margin-top:6px}.leg{display:flex;align-items:center;gap:8px;font-size:10px;color:#888;margin-bottom:4px}.leg:last-child{margin-bottom:0}.leg-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.leg-line{flex-shrink:0}#header{position:fixed;top:20px;left:20px;z-index:100}#header .h-title{font-size:13px;font-weight:700;color:#c0392b;letter-spacing:.2px}#header .h-title-input{font-family:inherit;border:1px solid #c0392b;border-radius:4px;padding:1px 4px;background:#fff;outline:none}#header .h-sub{font-size:10px;color:#bbb;margin-top:2px}#hint{position:fixed;top:20px;left:50%;transform:translate(-50%);background:#fff;border:1px solid #e5e2da;border-radius:20px;padding:5px 14px;font-size:10px;color:#aaa;box-shadow:0 2px 8px #0000000f;pointer-events:none;z-index:100}#toolbar{position:fixed;top:20px;right:20px;z-index:100;display:flex;gap:6px;background:#fff;border:1px solid #e5e2da;border-radius:8px;padding:6px;box-shadow:0 2px 8px #0000000f}#toolbar button{border:none;background:none;font-size:11px;color:#555;padding:7px 10px;border-radius:6px;cursor:pointer;white-space:nowrap}#toolbar button:hover{background:#f0ede6;color:#222}#toolbar button.on{background:#c0392b;color:#fff}#controls{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:6px;z-index:100}.ctrl{width:34px;height:34px;border-radius:8px;background:#fff;border:1px solid #e0ddd6;box-shadow:0 2px 8px #00000014;cursor:pointer;font-size:16px;color:#555;display:flex;align-items:center;justify-content:center}.ctrl:hover{background:#f0ede6;color:#222}.panel{position:fixed;right:0;top:0;bottom:0;width:320px;background:#fff;border-left:1px solid #e5e2da;z-index:200;overflow-y:auto;padding:28px 24px;box-shadow:-4px 0 24px #0000000f}.panel .p-close{position:absolute;top:16px;right:16px;background:#f0ede6;border:none;border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:13px;color:#888;display:flex;align-items:center;justify-content:center}.panel .p-close:hover{background:#e0ddd6;color:#333}.p-edit-btn{position:absolute;top:16px;right:52px;background:none;border:1px solid #e0ddd6;border-radius:20px;padding:5px 12px;font-size:10px;font-weight:600;color:#666;cursor:pointer;font-family:inherit}.p-edit-btn:hover{background:#f0ede6;color:#222}.p-tag{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;padding:3px 8px;border-radius:3px;margin-bottom:12px}.p-title{font-size:17px;font-weight:700;color:#1a1a1a;line-height:1.3;margin-bottom:4px}.p-sub{font-size:11px;color:#999;margin-bottom:18px}.p-sec-label{font-size:9px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#bbb;margin-bottom:7px;margin-top:14px;display:flex;justify-content:space-between;align-items:center}.p-item{font-size:12px;color:#444;line-height:1.65;padding:5px 0;border-bottom:1px solid #f0ede6;display:flex;gap:6px}.p-item:last-child{border-bottom:none}.p-item.bullet:before{content:"·";color:#ccc;flex-shrink:0}.p-item input{flex:1;border:1px solid transparent;font:inherit;padding:2px 4px;border-radius:3px}.p-item input:focus{border-color:#e0ddd6;outline:none}.type-row{display:flex;align-items:center;gap:6px;padding:5px 0;border-bottom:1px solid #f0ede6}.type-row:last-child{border-bottom:none}.type-row input[type=color]{width:26px;height:26px;padding:1px;border:1px solid #e0ddd6;border-radius:5px;flex-shrink:0}.type-row input[type=text]{flex:1;border:1px solid #e0ddd6;border-radius:4px;padding:4px 6px;font:inherit;font-size:12px}.type-dashed{display:flex;align-items:center;gap:4px;font-size:10px;color:#888;white-space:nowrap}.p-warn{color:#d97706;font-size:11px}.context-menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:250}.context-menu{position:fixed;z-index:251;background:#fff;border:1px solid #e5e2da;border-radius:8px;box-shadow:0 4px 20px #0000001f;padding:4px;min-width:170px}.context-menu button{display:block;width:100%;text-align:left;border:none;background:none;font:inherit;font-size:12px;color:#333;padding:8px 10px;border-radius:5px;cursor:pointer}.context-menu button:hover{background:#f0ede6}.context-menu button.danger{color:#c0392b}.context-menu button.danger:hover{background:#fdecea}.context-menu hr{border:none;border-top:1px solid #f0ede6;margin:4px 0}.field{margin-bottom:12px}.field label{display:block;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#aaa;margin-bottom:5px}.field input[type=text],.field input[type=number],.field textarea,.field select{width:100%;padding:7px 9px;border:1px solid #e0ddd6;border-radius:5px;font-size:12px;font-family:inherit}.field textarea{resize:vertical;min-height:50px}.field input[type=color]{width:100%;height:30px;border:1px solid #e0ddd6;border-radius:5px;padding:2px}.field.row{display:flex;align-items:center;gap:8px}.field.row label{margin-bottom:0}.btn{display:inline-block;border:1px solid #e0ddd6;background:#f7f5f0;border-radius:6px;padding:7px 12px;font-size:11px;cursor:pointer;color:#444}.btn:hover{background:#f0ede6}.btn.primary{background:#c0392b;border-color:#c0392b;color:#fff}.btn.primary:hover{background:#a93226}.btn.danger{background:#fff;border-color:#dc2626;color:#dc2626}.btn.danger:hover{background:#fef2f2}.btn.small{padding:3px 8px;font-size:10px}.btn-row{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.section-block{border:1px solid #f0ede6;border-radius:6px;padding:10px;margin-bottom:10px}.section-block input[type=text]{margin-bottom:6px}.list-panel .list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.list-panel h2{font-size:15px;color:#1a1a1a}.list-row{padding:10px 0;border-bottom:1px solid #f0ede6}.list-row .name{font-size:12.5px;font-weight:600;color:#222}.list-row .meta{font-size:10.5px;color:#999;margin-top:2px}.list-row .badge{display:inline-block;font-size:9px;font-weight:700;padding:2px 6px;border-radius:3px;margin-top:4px}.badge.High{background:#fdecea;color:#c0392b}.badge.Medium{background:#fffbeb;color:#b45309}.badge.Low{background:#f0fdf4;color:#15803d}
