:root{--ink:#172033;--muted:#64748b;--line:#dce3ec;--brand:#2563eb;--brand2:#1d4ed8;--panel:#fff;--bg:#f4f6fa}*{box-sizing:border-box}body.uml-app-shell{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;overflow-x:hidden}.uml-globalbar{height:58px;display:flex;align-items:center;padding:0 18px;background:#121827;color:#fff;border-bottom:1px solid #293246;gap:26px}.uml-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.uml-brand>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#818cf8,#7c3aed)}.uml-brand strong{font-size:.92rem}.uml-brand b{color:#a5b4fc}.uml-globalbar nav{display:flex;align-items:center;gap:4px;flex:1}.uml-globalbar nav a{padding:8px 11px;border-radius:8px;color:#cbd5e1;text-decoration:none;font-size:.76rem}.uml-globalbar nav a:hover{background:#232d42;color:#fff}.uml-user{display:flex;align-items:center;gap:10px;font-size:.75rem}.uml-user form{margin:0}.uml-user button{border:0;background:#273147;color:#fff;width:32px;height:32px;border-radius:8px}.uml-home-v2{max-width:1300px;margin:0 auto;padding:34px}.page-title h1{font-weight:800}.page-title p{color:var(--muted)}.eyebrow{font-size:.68rem;font-weight:900;letter-spacing:.14em}.uml-intro-v2{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.uml-intro-v2>div{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.uml-intro-v2>div>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eef2ff;color:var(--brand);font-size:1.1rem}.uml-intro-v2 strong,.uml-intro-v2 small{display:block}.uml-intro-v2 small{color:var(--muted);font-size:.75rem}.uml-grid-v2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.surface{background:#fff;border:1px solid var(--line);border-radius:16px}.uml-card-v2{position:relative}.uml-card-v2>a{display:grid;grid-template-columns:56px 1fr 24px;gap:14px;align-items:center;padding:20px;text-decoration:none;color:inherit}.uml-card-icon-v2{display:grid;place-items:center;width:56px;height:56px;border-radius:17px;background:linear-gradient(145deg,var(--brand),var(--brand2));color:#fff;font-size:1.35rem}.uml-card-v2 h2{font-size:1rem;margin:3px 0}.uml-card-v2 p,.uml-card-v2 small{margin:0;color:var(--muted);font-size:.75rem}.uml-card-v2 form{position:absolute;right:12px;top:10px}.uml-card-v2 form button{border:0;background:transparent;color:#94a3b8}.empty-state{display:grid;place-items:center;min-height:180px;color:#94a3b8}.empty-state i{font-size:2rem}.empty-state strong,.empty-state small{display:block}
.uml-designer{height:calc(100vh - 58px);display:flex;flex-direction:column;overflow:hidden}.uml-menubar{height:58px;display:flex;align-items:center;gap:5px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--line);z-index:10}.icon-button,.zoom-label,.action-button{height:36px;border:1px solid transparent;border-radius:8px;background:transparent;color:#465269;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.icon-button{width:36px}.icon-button:hover,.icon-button.active,.zoom-label:hover{background:#f0f2ff;color:var(--brand);border-color:#dfe1ff}.icon-button:disabled{opacity:.35}.diagram-title{width:min(300px,25vw);padding:0 8px}.diagram-title input{width:100%;border:0;outline:0;font-size:.88rem;font-weight:750;color:var(--ink)}.diagram-title span{display:block;font-size:.62rem;color:#16a34a}.diagram-title span.error{color:#dc2626}.toolbar-separator{width:1px;height:26px;background:var(--line);margin:0 5px}.zoom-label{width:54px;font-size:.7rem}.toolbar-spacer{flex:1}.action-button{gap:6px;padding:0 12px;border-color:var(--line);font-size:.72rem}.action-button:hover{background:#f8fafc;color:var(--brand)}.designer-body{display:grid;grid-template-columns:210px minmax(0,1fr) 260px;min-height:0;flex:1}.shape-palette,.property-panel{background:#fff;overflow:auto;z-index:5}.shape-palette{border-right:1px solid var(--line)}.property-panel{border-left:1px solid var(--line)}.palette-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:16px 14px 8px}.palette-heading strong{font-size:.7rem;letter-spacing:.12em}.palette-heading small{color:#94a3b8;font-size:.62rem}.palette-heading.secondary{padding-top:18px}.palette-group{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:7px 12px}.shape-item{min-height:105px;border:1px solid #e3e8f0;border-radius:10px;background:#fafbfc;padding:8px;cursor:grab}.shape-item:hover{border-color:#a5b4fc;background:#f5f4ff;box-shadow:0 4px 14px #4f46e51a}.shape-item em{display:block;margin-top:7px;font-size:.65rem;font-style:normal;color:var(--muted)}.shape-preview{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;height:62px;background:#fff;border:1.5px solid #526075;color:#334155;font-size:.6rem}.shape-preview.class-shape b{height:25px;display:grid;place-items:center;border-bottom:1px solid #7b8798}.shape-preview.class-shape>i{height:16px;border-bottom:1px solid #a6afbd}.shape-preview.class-shape>i:last-child{border:0}.shape-preview.interface-shape{text-align:center}.shape-preview.interface-shape small{font-size:.5rem}.shape-preview.package-shape{margin-top:8px;height:54px}.shape-preview.package-shape>i{position:absolute;left:-1.5px;top:-10px;width:38px;height:10px;border:1.5px solid #526075;border-bottom:0;background:#fff}.shape-preview.note-shape{background:#fff9c4;border-color:#c1a94b;clip-path:polygon(0 0,80% 0,100% 20%,100% 100%,0 100%)}.relation-tools{padding:5px 12px}.relation-tools button{width:100%;height:34px;display:flex;align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;color:#536176;font-size:.68rem}.relation-tools button:hover,.relation-tools button.active{background:#f0f2ff;color:var(--brand)}.line-demo{display:block;width:40px;border-top:2px solid currentColor;position:relative}.line-demo.dashed{border-style:dashed}.line-demo.triangle:after{content:"";position:absolute;right:-1px;top:-6px;border-left:10px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.line-demo.diamond:before{content:"◇";position:absolute;left:-3px;top:-12px;font-size:18px}.line-demo.diamond.filled:before{content:"◆"}.palette-tip{display:flex;gap:9px;margin:14px 12px;padding:11px;background:#f8fafc;border:1px solid #edf1f5;border-radius:10px;color:#64748b;font-size:.65rem;line-height:1.5}.palette-tip i{color:#eab308}.canvas-viewport{position:relative;overflow:hidden;background:#e8ebf1}.canvas-stage{position:absolute;left:0;top:0;width:3000px;height:2000px;transform-origin:0 0;background-color:#fff;box-shadow:0 2px 14px #0f172a24}.canvas-stage.grid-visible{background-image:radial-gradient(#cbd5e1 1px,transparent 1px);background-size:20px 20px}.canvas-stage.panning{cursor:grabbing}.canvas-stage>#classLayer{position:absolute;inset:0;z-index:2;pointer-events:none}.canvas-stage>svg{position:absolute;inset:0;width:100%;height:100%;z-index:5;overflow:visible;pointer-events:none}.canvas-stage svg path.edge{fill:none;stroke:#556176;stroke-width:2;pointer-events:none}.canvas-stage svg g.selected path.edge{stroke:var(--brand);stroke-width:3}.canvas-stage svg text{font:600 12px system-ui;fill:#475569;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;pointer-events:none}.canvas-stage svg #arrow path{fill:#556176}.canvas-stage svg #triangle path,.canvas-stage svg #diamond path{fill:#fff;stroke:#556176}.canvas-stage svg #diamondFill path{fill:#556176;stroke:#556176}.uml-node{pointer-events:auto;position:absolute;width:240px;min-height:90px;background:#fff;border:1.8px solid #526075;border-radius:3px;box-shadow:0 4px 12px #0f172a12;cursor:move;touch-action:none;user-select:none}.uml-node.selected{outline:2px solid var(--brand);outline-offset:3px;box-shadow:0 7px 22px #4f46e530}.uml-node header{min-height:42px;padding:8px 12px;text-align:center;background:var(--node-color,#eef2ff);border-bottom:1px solid #8792a2}.uml-node header small,.uml-node header strong{display:block}.uml-node header small{font-size:.62rem;color:#58677c}.uml-node header strong{font-size:.82rem}.uml-node.abstract header strong{font-style:italic}.uml-node section{display:flex;flex-direction:column;min-height:28px;padding:7px 10px;border-bottom:1px solid #b8c0cc;font:11px ui-monospace,SFMono-Regular,Consolas,monospace}.uml-node section:last-child{border:0}.uml-node section span{padding:1px 0}.uml-node.interface section.attributes{display:none}.uml-node.note{background:#fff9c4;border-color:#b29a38;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%);padding:15px;min-height:120px}.uml-node.note header{background:transparent;border:0;text-align:left;padding:0 0 8px}.uml-node.note section.attributes{font-family:inherit;border:0;padding:0;white-space:pre-wrap}.uml-node.note section.methods{display:none}.uml-node.package{min-height:100px;margin-top:18px}.uml-node.package:before{content:"";position:absolute;left:-1.8px;top:-20px;width:85px;height:20px;border:1.8px solid #526075;border-bottom:0;background:var(--node-color,#eef2ff)}.uml-node.package header{border:0;min-height:70px;display:grid;place-items:center}.port{position:absolute;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:var(--brand);opacity:0;z-index:3}.uml-node:hover .port,.uml-node.selected .port{opacity:1}.port.n{top:-6px;left:calc(50% - 5px)}.port.s{bottom:-6px;left:calc(50% - 5px)}.port.w{left:-6px;top:calc(50% - 5px)}.port.e{right:-6px;top:calc(50% - 5px)}.canvas-empty{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);display:grid;place-items:center;color:#94a3b8}.canvas-empty[hidden]{display:none}.canvas-empty i{font-size:2.2rem}.canvas-empty strong{margin-top:7px}.canvas-empty span{font-size:.72rem}.connection-hint{display:none;position:absolute;left:50%;bottom:18px;transform:translateX(-50%);z-index:9;padding:9px 14px;border-radius:20px;background:#1e293b;color:#fff;font-size:.7rem;box-shadow:0 5px 20px #0f172a40}.connection-hint.show{display:block}.property-empty{display:grid;place-items:center;text-align:center;padding:55px 24px;color:#94a3b8}.property-empty i{font-size:1.6rem}.property-empty strong{margin-top:7px;color:#64748b}.property-empty span{font-size:.7rem}.property-form{padding:17px}.property-form h3{font-size:.82rem;margin:0 0 16px}.property-form label{display:block;margin:11px 0 5px;color:#64748b;font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.property-form input,.property-form textarea,.property-form select{width:100%;border:1px solid #dfe5ee;border-radius:8px;padding:8px 9px;font-size:.72rem;outline:0}.property-form textarea{min-height:90px;resize:vertical;font-family:ui-monospace,monospace}.property-form input:focus,.property-form textarea:focus,.property-form select:focus{border-color:#818cf8;box-shadow:0 0 0 3px #818cf820}.property-form .color-row{display:flex;gap:6px}.color-chip{width:29px;height:29px;border-radius:7px;border:2px solid #fff;box-shadow:0 0 0 1px #d5dbe4}.color-chip.active{box-shadow:0 0 0 2px var(--brand)}.property-form .danger-btn{width:100%;margin-top:20px;padding:8px;border:1px solid #fecaca;border-radius:8px;background:#fff;color:#dc2626;font-size:.7rem}.statusbar{height:27px;display:flex;align-items:center;gap:18px;padding:0 13px;background:#fff;border-top:1px solid var(--line);color:#64748b;font-size:.62rem}.status-help{margin-left:auto}.uml-exporting .port{display:none!important}.uml-exporting .uml-node.selected{outline:0}.uml-exporting .grid-visible{background-image:none}
@media(max-width:1000px){.designer-body{grid-template-columns:190px minmax(0,1fr)}.design-flow,.property-panel{display:none}.uml-globalbar nav a span{display:none}.status-help{display:none}}@media(max-width:700px){.uml-globalbar{gap:8px}.uml-globalbar nav{display:none}.uml-user>span{display:none}.designer-body{grid-template-columns:1fr}.shape-palette{position:absolute;left:8px;top:125px;width:155px;max-height:65vh;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px #0f172a25}.palette-group{grid-template-columns:1fr}.shape-item{min-height:80px}.shape-preview{height:45px}.diagram-title{width:120px}.action-button{font-size:0;padding:0;width:36px}.action-button i{font-size:.9rem}.toolbar-separator,.icon-button#redoBtn,.icon-button#gridBtn{display:none}.uml-intro-v2,.uml-grid-v2{grid-template-columns:1fr}.uml-home-v2{padding:20px}}
.designer-body{grid-template-columns:220px 190px minmax(0,1fr) 280px;transition:grid-template-columns .22s ease}.designer-body.flow-hidden{grid-template-columns:0 190px minmax(0,1fr) 280px}.designer-body.flow-hidden .design-flow{padding-left:0;padding-right:0;border:0;overflow:hidden}.design-flow{position:relative;z-index:6;overflow:auto;padding:20px 14px;background:linear-gradient(180deg,#101b3f,#162653);color:#cbd5f0;transition:.22s}.flow-title{padding:2px 10px 15px;border-bottom:1px solid #ffffff1f;margin-bottom:10px}.flow-title span,.flow-title strong{display:block}.flow-title span{font-size:.57rem;font-weight:850;letter-spacing:.14em;color:#91a2d3}.flow-title strong{margin-top:4px;color:#fff;font-size:.88rem}.flow-step{display:flex;align-items:center;gap:11px;width:100%;padding:9px 10px;margin:3px 0;border:0;border-radius:10px;background:transparent;color:#cbd5f0;text-align:left}.flow-step>i{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:8px;background:#ffffff12;font-style:normal;font-size:.68rem;font-weight:850}.flow-step span,.flow-step b{display:block}.flow-step span{font-size:.72rem}.flow-step b{font-size:.51rem;letter-spacing:.1em;color:#8294c7}.flow-step.done>i{background:#1fac73;color:#fff}.flow-step.active{background:#ffffff13;color:#fff}.flow-step.active>i{background:#315bea}.flow-step.active b{color:#9bb0ff}.flow-progress{position:absolute;left:14px;right:14px;bottom:18px;padding:14px 10px;border-top:1px solid #ffffff1f}.flow-progress>div{height:5px;border-radius:5px;background:#ffffff18;overflow:hidden;margin-bottom:9px}.flow-progress>div span{display:block;height:100%;border-radius:5px;background:#1fac73}.flow-progress small,.flow-progress strong{display:block}.flow-progress small{font-size:.59rem;color:#91a2d3}.flow-progress strong{margin-top:2px;font-size:.7rem;color:#fff}
@media(max-width:1180px){.designer-body{grid-template-columns:0 180px minmax(0,1fr) 250px}.design-flow{padding:0;overflow:hidden}.designer-body.flow-hidden{grid-template-columns:0 180px minmax(0,1fr) 250px}}@media(max-width:1000px){.designer-body,.designer-body.flow-hidden{grid-template-columns:170px minmax(0,1fr)}.design-flow,.property-panel{display:none}}
.designer-body.palette-hidden{grid-template-columns:220px 0 minmax(0,1fr) 280px}.designer-body.property-hidden{grid-template-columns:220px 190px minmax(0,1fr) 0}.designer-body.flow-hidden.palette-hidden{grid-template-columns:0 0 minmax(0,1fr) 280px}.designer-body.flow-hidden.property-hidden{grid-template-columns:0 190px minmax(0,1fr) 0}.designer-body.palette-hidden.property-hidden{grid-template-columns:220px 0 minmax(0,1fr) 0}.designer-body.flow-hidden.palette-hidden.property-hidden{grid-template-columns:0 0 minmax(0,1fr) 0}.designer-body.palette-hidden .shape-palette,.designer-body.property-hidden .property-panel{padding-left:0;padding-right:0;border:0;overflow:hidden}@media(max-width:1180px){.designer-body.palette-hidden{grid-template-columns:0 0 minmax(0,1fr) 250px}.designer-body.property-hidden{grid-template-columns:0 180px minmax(0,1fr) 0}.designer-body.palette-hidden.property-hidden{grid-template-columns:0 0 minmax(0,1fr) 0}}
.shape-preview{align-items:center;gap:3px;text-align:center;padding:5px}.shape-preview small{font-size:.5rem;color:#778399}.mini-actor{border:0;background:transparent}.mini-actor:before{content:"◯";font-size:20px;line-height:15px}.mini-usecase{border-radius:50%}.mini-boundary{border-style:dashed}.mini-start,.mini-end{width:38px;height:38px;margin:auto;border-radius:50%;background:#334155;color:#fff}.mini-decision,.mini-relationship{width:47px;height:47px;margin:auto;transform:rotate(45deg)}.mini-decision>* ,.mini-relationship>*{transform:rotate(-45deg)}.mini-action{border-radius:18px}.mini-lifeline:after{content:"";height:24px;border-left:1px dashed #526075}.mini-activation{width:35px}.palette-summary{grid-column:1/-1;display:grid;place-items:center;text-align:center;padding:25px 8px;color:#64748b}.palette-summary i{font-size:1.7rem;color:#315bea}.palette-summary strong,.palette-summary small{display:block}.uml-node.symbol{display:grid;place-items:center;overflow:visible;border:0;box-shadow:none;background:transparent;text-align:center}.uml-node.symbol.selected{outline:2px solid var(--brand);outline-offset:6px}.uml-node.actor{height:150px}.actor-icon{position:relative;width:70px;height:100px}.actor-icon i{position:absolute;left:23px;top:0;width:25px;height:25px;border:3px solid #334155;border-radius:50%}.actor-icon b{position:absolute;left:34px;top:28px;height:42px;border-left:3px solid #334155}.actor-icon em:before,.actor-icon em:after{content:"";position:absolute;width:42px;border-top:3px solid #334155;left:14px}.actor-icon em:before{top:43px}.actor-icon em:after{top:78px}.uml-node.usecase{height:100px;border:2px solid #526075;border-radius:50%;background:#fff}.uml-node.boundary{height:260px;border:2px dashed #526075;background:#ffffff80;align-content:start;padding:14px}.uml-node.start,.uml-node.end{width:90px!important;height:90px}.uml-node.start>i,.uml-node.end>i{width:48px;height:48px;border-radius:50%;background:#334155}.uml-node.end>i{border:8px solid #334155;background:#fff}.uml-node.start span,.uml-node.end span{font-size:.65rem}.uml-node.action{height:70px;border:2px solid #526075;border-radius:26px;background:var(--node-color)}.uml-node.diamond-node{width:145px!important;height:145px}.uml-node.diamond-node>div{display:grid;place-items:center;width:100px;height:100px;transform:rotate(45deg);border:2px solid #526075;background:var(--node-color)}.uml-node.diamond-node strong{transform:rotate(-45deg);font-size:.7rem}.uml-node.lifeline{height:520px;align-content:start}.uml-node.lifeline header{width:100%;border:2px solid #526075;background:var(--node-color);padding:12px}.uml-node.lifeline>i{height:430px;border-left:2px dashed #718096}.uml-node.activation{width:52px!important;height:210px;border:2px solid #526075;background:#fff}.uml-node.requirement{border-radius:8px}.uml-node.requirement header{background:#ecf2ff}.uml-node.entity header{background:#ecfdf5}.placeholder{color:#a3adba}.summary-board{position:absolute;left:90px;top:70px;width:min(1000px,calc(100vw - 650px));min-width:650px;padding:32px;border:1px solid #dce3ec;border-radius:18px;background:#fff;box-shadow:0 14px 40px #0f172a16}.summary-board header span{font-size:.62rem;font-weight:900;letter-spacing:.14em;color:#315bea}.summary-board header h2{margin:4px 0;font-size:1.5rem}.summary-board header p{color:#64748b}.summary-board>div{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.summary-board article{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid #e3e8f2;border-radius:12px;background:#fafbfe}.summary-board article>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eaf8f2;color:#1fac73}.summary-board article small,.summary-board article strong,.summary-board article em{display:block}.summary-board article small{font-size:.62rem;color:#64748b}.summary-board article strong{font-size:.88rem}.summary-board article em{font-size:.6rem;color:#8791a8;font-style:normal}.summary-board footer{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:9px;align-items:center;padding:18px;border-radius:12px;background:#101b3f;color:#fff}.summary-board footer b{font-size:1.35rem;color:#9bb0ff}.summary-board footer span{font-size:.68rem;color:#cbd5f0}
.canvas-stage svg path.edge-hit{fill:none;stroke:transparent;stroke-width:16;pointer-events:stroke;cursor:pointer}.canvas-stage svg g:hover path.edge{stroke:#315bea;stroke-width:3}.property-empty.compact{padding:25px 18px}.property-relations{padding:0 14px 18px}.property-relations>div:first-child{display:flex;justify-content:space-between;align-items:center;padding:12px 2px 8px;border-top:1px solid #edf1f5;font-size:.68rem}.property-relations>div:first-child span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:11px;background:#eef2ff;color:#315bea}.property-relations>p{font-size:.65rem;color:#94a3b8}.property-relation-row{display:grid!important;grid-template-columns:1fr 32px!important;gap:5px;padding:5px!important;border:1px solid #e3e8f2!important;border-radius:9px;margin-bottom:6px}.property-relation-row.active{border-color:#818cf8!important;background:#f5f4ff}.property-relation-row button{border:0;background:transparent;text-align:left;min-width:0}.property-relation-row button:first-child small,.property-relation-row button:first-child strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.property-relation-row button:first-child small{font-size:.55rem;color:#64748b}.property-relation-row button:first-child strong{font-size:.65rem;color:#253047}.property-relation-row button:last-child{display:grid;place-items:center;color:#dc2626;border-radius:7px}.property-relation-row button:last-child:hover{background:#fee2e2}
.canvas-stage svg .edge-handle{fill:#fff;stroke:var(--brand);stroke-width:3;cursor:grab;pointer-events:all;filter:drop-shadow(0 2px 3px #0f172a35)}.canvas-stage svg .edge-handle:hover{fill:#e0e7ff;stroke-width:4}.canvas-stage svg g.selected path.edge-hit{stroke:#315bea33;stroke-width:20}.canvas-stage svg g.selected .edge-handle:active{cursor:grabbing}
.canvas-stage svg .edge-delete{cursor:pointer;pointer-events:all}.canvas-stage svg .edge-delete circle{fill:#fee2e2;stroke:#dc2626;stroke-width:1.5}.canvas-stage svg .edge-delete text{fill:#b91c1c;stroke:none;font:700 15px system-ui;pointer-events:none}
/* Workspace controls */
.uml-node .resize-handle{position:absolute;display:none;width:11px;height:11px;border:2px solid #fff;border-radius:3px;background:var(--brand);box-shadow:0 0 0 1px #4338ca,0 2px 6px #0f172a35;z-index:8;touch-action:none}
.uml-node.selected>.resize-handle{display:block}.resize-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.resize-handle.n{left:calc(50% - 5px);top:-7px;cursor:ns-resize}.resize-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.resize-handle.e{right:-7px;top:calc(50% - 5px);cursor:ew-resize}.resize-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.resize-handle.s{left:calc(50% - 5px);bottom:-7px;cursor:ns-resize}.resize-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.resize-handle.w{left:-7px;top:calc(50% - 5px);cursor:ew-resize}
.uml-node.selected>.port{z-index:7}.uml-node.selected>.resize-handle.n,.uml-node.selected>.resize-handle.s{margin-left:16px}.uml-node.selected>.resize-handle.e,.uml-node.selected>.resize-handle.w{margin-top:16px}
.canvas-stage svg path.edge-hit{stroke-width:24;cursor:pointer}.canvas-stage svg g.selected path.edge-hit{stroke:#315bea22;stroke-width:26}.canvas-stage svg .edge-handle{r:7;cursor:move}.canvas-stage svg .edge-segment-handle{fill:#fff;stroke:#7c3aed;stroke-width:2;pointer-events:all;cursor:move;transform-box:fill-box;transform-origin:center;transform:rotate(45deg);filter:drop-shadow(0 2px 3px #0f172a25)}.canvas-stage svg .edge-segment-handle:hover{fill:#ede9fe;stroke-width:3}.canvas-stage svg .edge-end-handle{fill:#fff;stroke:#0f766e;stroke-width:3;pointer-events:all;cursor:crosshair;filter:drop-shadow(0 2px 3px #0f172a35)}.canvas-stage svg .edge-end-handle:hover{fill:#ccfbf1;stroke-width:4}.property-tip{margin-top:13px;padding:9px 10px;border:1px solid #dfe5ee;border-radius:8px;background:#f8fafc;color:#64748b;font-size:.63rem;line-height:1.45}.uml-exporting .resize-handle,.uml-exporting .edge-handle,.uml-exporting .edge-segment-handle,.uml-exporting .edge-end-handle,.uml-exporting .edge-delete{display:none!important}
/* Connector interaction */
.canvas-stage svg #relationLayer{pointer-events:none}
.canvas-stage svg path.edge-hit{pointer-events:stroke!important;stroke:transparent;stroke-width:30!important;cursor:pointer}
.canvas-stage svg g.selected path.edge-hit{stroke:#315bea18;stroke-width:32!important}
.canvas-stage svg .edge-handle,.canvas-stage svg .edge-segment-handle,.canvas-stage svg .edge-end-handle,.canvas-stage svg .edge-delete,.canvas-stage svg .edge-route-action{pointer-events:all!important}
.canvas-stage svg .edge-route-toolbar{pointer-events:none}
.canvas-stage svg .edge-route-action{cursor:pointer}
.canvas-stage svg .edge-route-action rect{fill:#fff;stroke:#cbd5e1;stroke-width:1.2;rx:6;ry:6;filter:drop-shadow(0 3px 7px #0f172a22)}
.canvas-stage svg .edge-route-action text{font:700 10px system-ui;fill:#475569;stroke:none;paint-order:normal;pointer-events:none}
.canvas-stage svg .edge-route-action.active rect{fill:#eef2ff;stroke:#6366f1;stroke-width:1.7}
.canvas-stage svg .edge-route-action.active text{fill:#4338ca}
.canvas-stage svg .edge-route-action:hover rect{stroke:#6366f1;fill:#f5f3ff}
.uml-exporting .edge-route-toolbar{display:none!important}
/* Automatic routing and workspace grid */
.canvas-stage.grid-visible{
  background-image:radial-gradient(circle,#cbd5e1 0.8px,transparent 0.9px)!important;
  background-size:40px 40px!important;
  background-position:0 0!important;
}
.canvas-stage svg path.edge{
  fill:none;
  stroke:#64748b!important;
  stroke-width:1.8!important;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  transition:stroke .14s ease,stroke-width .14s ease,filter .14s ease;
}
.canvas-stage svg g:hover path.edge{stroke:#4f46e5!important;stroke-width:2.2!important;filter:drop-shadow(0 1px 1px #4f46e51c)}
.canvas-stage svg g.selected path.edge{stroke:#4f46e5!important;stroke-width:2.5!important;filter:drop-shadow(0 1px 2px #4f46e52c)}
.canvas-stage svg path.edge-hit{stroke-width:26!important}
.canvas-stage svg g.selected path.edge-hit{stroke:#4f46e512!important;stroke-width:28!important}
.canvas-stage svg .edge-handle{fill:#fff;stroke:#4f46e5;stroke-width:2.4;filter:drop-shadow(0 2px 4px #0f172a24)}
.canvas-stage svg .edge-segment-handle{fill:#fff;stroke:#818cf8;stroke-width:1.8;filter:drop-shadow(0 2px 4px #0f172a1f)}
.canvas-stage svg .edge-end-handle{fill:#fff;stroke:#0f766e;stroke-width:2.4;filter:drop-shadow(0 2px 4px #0f172a24)}
.canvas-stage svg .edge-route-toolbar,.canvas-stage svg .edge-route-action{display:none!important}
/* UML notation and connector endpoints */
.canvas-stage.grid-visible{
  background-image:radial-gradient(circle,#d7dde7 .7px,transparent .8px)!important;
  background-size:56px 56px!important;
}
.canvas-stage svg path.edge{
  stroke:#5d6879!important;
  stroke-width:1.65!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.canvas-stage svg g:hover path.edge{stroke:#4f46e5!important;stroke-width:2!important;filter:none!important}
.canvas-stage svg g.selected path.edge{stroke:#4338ca!important;stroke-width:2.15!important;filter:drop-shadow(0 1px 1px #4338ca18)!important}
.canvas-stage svg #arrowSolid path{fill:#5d6879;stroke:#5d6879;stroke-width:1}
.canvas-stage svg #arrowOpen path{fill:none;stroke:#5d6879;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.canvas-stage svg #triangle path{fill:#fff;stroke:#5d6879;stroke-width:1.5;stroke-linejoin:round}
.canvas-stage svg #diamond path{fill:#fff;stroke:#5d6879;stroke-width:1.5;stroke-linejoin:round}
.canvas-stage svg #diamondFill path{fill:#5d6879;stroke:#5d6879;stroke-width:1.2;stroke-linejoin:round}
.canvas-stage svg #crowOne path,.canvas-stage svg #crowMany path{fill:none;stroke:#5d6879;stroke-width:1.35;stroke-linecap:round}
.canvas-stage svg g:hover #arrowSolid path,.canvas-stage svg g.selected #arrowSolid path{fill:#4338ca;stroke:#4338ca}
.canvas-stage svg .edge-end-handle{r:5.5;fill:#fff;stroke:#6366f1;stroke-width:1.8;cursor:crosshair;filter:drop-shadow(0 1px 2px #0f172a22)}
.canvas-stage svg .edge-end-handle:hover{fill:#eef2ff;stroke:#4338ca;stroke-width:2.2}
.canvas-stage svg .edge-handle{r:5.5;stroke-width:1.9}
.canvas-stage svg .edge-segment-handle{width:8px;height:8px;stroke-width:1.5}
/* Activity notation */
.uml-node.activity-bar{width:190px!important;height:42px!important;min-height:42px!important}
.uml-node.activity-bar>i{display:block;width:170px;height:10px;border-radius:5px;background:#334155;box-shadow:0 1px 1px #0f172a1f}
.uml-node.activity-bar>small{margin-top:6px;color:#64748b;font-size:.58rem;font-weight:700}
.uml-node.object-node{height:66px;border:1.8px solid #526075;background:#fff;border-radius:2px}
.uml-node.object-node strong{font-size:.72rem}
.uml-node.merge strong{font-size:.62rem}
.uml-node.diamond-node{display:grid!important;place-items:center!important}
.uml-node.diamond-node>div{display:grid!important;place-items:center!important}
.uml-node.decision>div{border-color:#315bea;background:#eef2ff}
.uml-node.merge>div{border-color:#64748b;background:#f8fafc}
.uml-node.merge strong:after{content:none}
.uml-node.fork>i,.uml-node.join>i{height:12px!important;background:#1e293b!important;border-radius:2px!important}
.shape-item em{white-space:normal!important;display:block!important;min-height:16px!important;line-height:1.25!important}
.mini-decision,.mini-merge{width:30px!important;height:30px!important;flex:0 0 30px;display:block!important;transform:rotate(45deg);border:2px solid #526075;background:#eef2ff}
.mini-merge{background:#f8fafc;border-color:#64748b}
.mini-decision:after,.mini-merge:after{content:none!important}
.mini-fork,.mini-join{height:8px!important;width:64px!important;flex:0 0 8px;background:#1e293b!important;border-radius:2px!important}
/* Activity UML: decision dan merge sama-sama diamond murni.
   Port koneksi tidak ditampilkan pada node awal/akhir agar tidak tampak
   seperti ada banyak node tambahan saat hover atau dipilih. */
.uml-node.start>.port,.uml-node.end>.port{display:none!important}
.uml-node.decision>div,.uml-node.merge>div{border-radius:0!important}
/* Requirement notation */
.uml-node.constraint{border-radius:8px;border-style:dashed;background:#fff}
.uml-node.constraint header{background:#f8fafc}
.uml-node.constraint section.methods{display:none}
/* Sequence combined fragment */
.uml-node.sequence-fragment{min-height:190px;border:1.7px solid #526075;background:#ffffff70;border-radius:1px;box-shadow:none}
.uml-node.sequence-fragment header{display:flex;align-items:center;gap:8px;width:max-content;min-width:95px;min-height:30px;padding:5px 10px;background:#fff;border-right:1.5px solid #526075;border-bottom:1.5px solid #526075;text-align:left}
.uml-node.sequence-fragment header small{font-weight:900;color:#334155}
.uml-node.sequence-fragment header strong{font-size:.68rem}
.uml-node.sequence-fragment section.attributes{margin-top:12px;border:0;background:transparent;font-family:inherit;color:#475569}
/* Class and ERD variants */
.uml-node.enum header{background:#f5f3ff}
.uml-node.enum section.methods{display:none}
.uml-node.associative header{background:#ecfeff}
.uml-node.associative header strong:after{content:" · associative";font-weight:500;font-size:.56rem;color:#64748b}
.uml-node.associative section.methods,.uml-node.entity section.methods{display:none}
/* Palette previews for additional notation */
.mini-constraint{border-style:dashed;background:#f8fafc}
.mini-merge{width:47px;height:47px;margin:auto;transform:rotate(45deg)}
.mini-merge>*{transform:rotate(-45deg)}
.mini-fork,.mini-join{height:10px!important;width:72px!important;margin:auto;background:#334155;border:0;border-radius:5px}
.mini-objectnode{height:38px!important;border-radius:1px}
.mini-fragment{height:55px!important;align-items:flex-start!important;justify-content:flex-start!important;padding:5px!important}
.mini-fragment:before{content:"alt";border-right:1px solid #526075;border-bottom:1px solid #526075;padding:2px 8px;font-size:.5rem;font-weight:800}
.mini-enum{background:#f5f3ff}
.mini-associative{background:#ecfeff}
/* Relation preview semantics */
.line-demo.rel-inheritance:after,.line-demo.rel-realization:after{content:"";position:absolute;right:-1px;top:-6px;width:10px;height:10px;background:#fff;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg)}
.line-demo.rel-aggregation:before,.line-demo.rel-composition:before{content:"◇";position:absolute;left:-6px;top:-13px;font-size:19px;line-height:19px}
.line-demo.rel-composition:before{content:"◆"}
.line-demo.rel-directed-association:after,.line-demo.rel-flow:after,.line-demo.rel-object-flow:after,.line-demo.rel-message:after,.line-demo.rel-create:after{content:"";position:absolute;right:-1px;top:-4px;border-left:7px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent}
.line-demo.rel-async:after,.line-demo.rel-return:after,.line-demo.rel-dependency:after,.line-demo.rel-trace:after,.line-demo.rel-derive:after,.line-demo.rel-refine:after,.line-demo.rel-satisfy:after,.line-demo.rel-verify:after,.line-demo.rel-include:after,.line-demo.rel-extend:after{content:"›";position:absolute;right:-2px;top:-12px;font-size:19px;font-weight:400}
.line-demo.rel-destroy:after{content:"×";position:absolute;right:-4px;top:-12px;font-size:20px;font-weight:700}
.uml-node.boundary{height:390px}
.uml-node.systemelement header{background:#ecfeff}.uml-node.testcase header{background:#f0fdf4}.uml-node.systemelement section.methods,.uml-node.testcase section.methods{display:none}
.mini-systemelement{background:#ecfeff}.mini-testcase{background:#f0fdf4}
/* Compact component palette */
.shape-item{min-height:94px;padding:9px 8px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.shape-item .shape-preview{height:52px;margin:0;pointer-events:none}
.shape-item em{margin:0;font-size:.66rem;font-weight:750;color:#465269;line-height:1.2;text-align:center}
.shape-item:hover em{color:var(--brand)}
.shape-preview b,.shape-preview small{display:none!important}
.mini-actor:before{content:"◯";font-size:20px;line-height:15px}
.mini-actor:after{content:"";display:block;width:2px;height:22px;background:#526075;box-shadow:-10px 8px 0 -0.5px #526075,10px 8px 0 -0.5px #526075}
.mini-usecase{height:38px!important;border-radius:50%}
.mini-boundary{height:46px!important;border-style:dashed;background:#fff}
.mini-action{height:36px!important;border-radius:16px}
.mini-decision,.mini-merge{width:36px!important;height:36px!important}
.mini-start,.mini-end{width:34px!important;height:34px!important}
.mini-lifeline{height:48px!important}
.mini-lifeline:before{content:"";display:block;width:52px;height:18px;border:1.5px solid #526075;background:#fff}
.mini-lifeline:after{height:25px!important}
.mini-activation{width:16px!important;height:47px!important}
.mini-fragment:before{font-size:.48rem}
@media(max-width:700px){.shape-item{min-height:72px}.shape-item .shape-preview{height:38px}}
/* Component colors and direct delete */
/* Selected color is the single source of truth for visible component fills. */
.uml-node{--node-color:#eef2ff}
.uml-node header,
.uml-node.requirement header,
.uml-node.entity header,
.uml-node.enum header,
.uml-node.associative header,
.uml-node.systemelement header,
.uml-node.testcase header,
.uml-node.constraint header{background:var(--node-color,#eef2ff)!important}
.uml-node.note{background:var(--node-color,#fff9c4)!important}
.uml-node.note header{background:transparent!important}
.uml-node.usecase,
.uml-node.action,
.uml-node.object-node,
.uml-node.activation{background:var(--node-color,#eef2ff)!important}
.uml-node.boundary{background:transparent!important}
.uml-node.diamond-node>div{background:var(--node-color,#eef2ff)!important}
.uml-node.lifeline header{background:var(--node-color,#eef2ff)!important}
.uml-node.sequence-fragment{background:#f5f7ff!important}
.uml-node.sequence-fragment header{background:var(--node-color,#eef2ff)!important}
.uml-node.package{background:#f8f9ff!important}
.uml-node.package:before{background:var(--node-color,#eef2ff)!important}
.uml-node.actor>strong,
.uml-node.start>span,
.uml-node.end>span,
.uml-node.activity-bar>small{background:var(--node-color,#eef2ff);padding:4px 8px;border-radius:7px}
.uml-node.activity-bar>i{background:#5d6a80!important}
.uml-node.start>i,.uml-node.end>i{border-color:#64748b!important}
.uml-node.start>i{background:#64748b!important}
/* Direct delete control sits outside the component, like the relation delete control. */
.workspace-node-delete{position:absolute;z-index:20;width:24px;height:24px;display:grid;place-items:center;padding:0;border:1.5px solid #fecaca;border-radius:50%;background:#fff;color:#dc2626;font:700 18px/1 system-ui;cursor:pointer;pointer-events:auto;box-shadow:0 3px 10px #0f172a20;transition:transform .12s ease,background .12s ease,border-color .12s ease}
.workspace-node-delete:hover{transform:scale(1.08);background:#fff1f2;border-color:#f87171}
.uml-exporting .workspace-node-delete{display:none!important}
/* Color controls: presets plus a compact native custom picker. */
.property-form .color-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.color-chip{cursor:pointer}
.color-custom{position:relative!important;width:31px;height:31px;margin:0!important;border:1px solid #d5dbe4;border-radius:8px;overflow:hidden;cursor:pointer;background:#fff;display:grid!important;place-items:center}
.color-custom input{position:absolute!important;inset:-8px!important;width:48px!important;height:48px!important;padding:0!important;border:0!important;opacity:0;cursor:pointer}
.color-custom i{font-size:.8rem;color:#64748b;pointer-events:none}
/* Precision controls and template geometry */
.workspace-node-delete{
  width:22px;height:22px;
  border-width:1px;
  font-size:16px;
  box-shadow:0 2px 7px #0f172a24;
  transform-origin:center;
}
.workspace-node-delete:hover{transform:scale(1.06)}
/* Keep selection controls visually crisp and above all diagram symbols. */
.uml-node.selected{z-index:8}
.workspace-node-delete{z-index:24}
/* Canvas pan and focus positioning */
.canvas-viewport{
  cursor:grab;
  touch-action:none;
  user-select:none;
  background:#e7eaf0;
}
.canvas-stage{
  will-change:transform;
  backface-visibility:hidden;
}
.canvas-viewport.is-panning,
.canvas-viewport.is-panning .canvas-stage{
  cursor:grabbing!important;
}
.canvas-viewport.space-pan-ready{cursor:grab}
.canvas-empty{pointer-events:none}
.canvas-stage.grid-visible{
  background-position:0 0!important;
}
/* Interactive items keep their own cursor while the empty canvas remains draggable. */
.canvas-viewport .uml-node{cursor:move}
.canvas-viewport .workspace-node-delete,
.canvas-viewport svg path.edge-hit,
.canvas-viewport svg .edge-delete{cursor:pointer}
.canvas-viewport svg .edge-handle,
.canvas-viewport svg .edge-segment-handle{cursor:move}
.canvas-viewport svg .edge-end-handle{cursor:crosshair}
/* Activity node precision */
.shape-item{
  min-height:76px!important;
  padding:7px 6px!important;
  gap:5px!important;
}
.shape-item .shape-preview{
  width:62px!important;
  height:38px!important;
  min-height:0!important;
  flex:0 0 auto;
}
.shape-item em{
  font-size:.61rem!important;
  line-height:1.08!important;
}
.mini-actor:before{font-size:15px!important;line-height:11px!important}
.mini-actor:after{height:16px!important;box-shadow:-7px 6px 0 -0.5px #526075,7px 6px 0 -0.5px #526075!important}
.mini-usecase{width:58px!important;height:30px!important}
.mini-boundary{width:60px!important;height:34px!important}
.mini-action{width:58px!important;height:29px!important;border-radius:13px!important}
.mini-decision,.mini-merge{width:27px!important;height:27px!important}
.mini-start,.mini-end{width:24px!important;height:24px!important;padding:0!important}
.mini-end{background:#fff!important;border:5px solid #334155!important;box-shadow:inset 0 0 0 4px #fff!important;position:relative}
.mini-end:after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:50%;background:#334155;transform:translate(-50%,-50%);box-shadow:none!important}
.mini-fork,.mini-join{width:52px!important;height:7px!important}
.mini-objectnode{width:58px!important;height:29px!important}
.mini-lifeline{width:54px!important;height:38px!important}
/* Icon-only component palette.
   Nama komponen tetap tersedia melalui title/aria-label pada tombol. */
#paletteGroup .shape-item{
  min-height:58px!important;
  min-width:58px!important;
  padding:6px!important;
  gap:0!important;
  position:relative;
}
#paletteGroup .shape-item em{
  display:none!important;
}
#paletteGroup .shape-item .shape-preview{
  width:48px!important;
  height:38px!important;
  margin:auto!important;
  transform:none;
}
#paletteGroup .shape-item .mini-decision,
#paletteGroup .shape-item .mini-merge{
  width:28px!important;
  height:28px!important;
  transform:rotate(45deg)!important;
  border:2px solid #526075!important;
}
#paletteGroup .shape-item .mini-decision{background:#eef2ff!important;border-color:#315bea!important}
#paletteGroup .shape-item .mini-merge{background:#f8fafc!important;border-color:#64748b!important}
#paletteGroup .shape-item .mini-start,
#paletteGroup .shape-item .mini-end{
  width:30px!important;
  height:30px!important;
}
#paletteGroup .shape-item .mini-fork,
#paletteGroup .shape-item .mini-join{
  width:46px!important;
  height:7px!important;
  margin:auto!important;
}
#paletteGroup .shape-item:hover,
#paletteGroup .shape-item:focus-visible{
  background:#eef4ff;
  border-color:#315bea;
}
#paletteGroup .shape-item::after{
  content:attr(aria-label);
  position:absolute;
  z-index:30;
  left:calc(100% + 8px);
  top:50%;
  transform:translateY(-50%) translateX(-3px);
  opacity:0;
  pointer-events:none;
  white-space:nowrap;
  padding:5px 8px;
  border-radius:6px;
  background:#172554;
  color:#fff;
  font-size:.68rem;
  font-weight:700;
  box-shadow:0 6px 16px #0f172a33;
  transition:opacity .15s ease,transform .15s ease;
}
#paletteGroup .shape-item:hover::after,
#paletteGroup .shape-item:focus-visible::after{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}
/* Custom SVG palette with visible component explanations. */
#paletteGroup .shape-item{
  min-height:92px!important;
  width:100%!important;
  justify-content:flex-start!important;
  gap:2px!important;
}
#paletteGroup .shape-item::after{display:none!important}
#paletteGroup .shape-item .icon-svg{
  display:grid!important;
  place-items:center;
  width:54px!important;
  height:38px!important;
}
#paletteGroup .shape-item .icon-svg svg{
  display:block;
  width:50px;
  height:38px;
}
#paletteGroup .shape-label{
  display:block!important;
  font-size:.67rem!important;
  line-height:1.1!important;
  color:#26354f;
  text-align:center;
}
#paletteGroup .shape-description{
  display:block!important;
  max-width:120px;
  font-size:.56rem!important;
  line-height:1.15!important;
  color:#718096;
  text-align:center;
}
.mini-lifeline:before{width:42px!important;height:14px!important}
.mini-lifeline:after{height:19px!important}
.mini-activation{width:12px!important;height:35px!important}
.mini-fragment{width:60px!important;height:38px!important}
/* UML Activity nodes use a stable hit area; the visible symbol is centered precisely. */
.uml-node.start,.uml-node.end{
  width:72px!important;
  height:72px!important;
  min-height:72px!important;
  grid-template-rows:36px 22px!important;
  align-content:start!important;
  justify-items:center!important;
  padding-top:4px!important;
}
.uml-node.start>i,.uml-node.end>i{
  position:relative!important;
  width:28px!important;
  height:28px!important;
  margin:0!important;
  border-radius:50%!important;
  box-sizing:border-box!important;
}
.uml-node.start>i{
  border:0!important;
  background:#263244!important;
}
.uml-node.end>i{
  border:3px solid #263244!important;
  background:#fff!important;
}
.uml-node.end>i:after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:14px;height:14px;
  border-radius:50%;
  background:#263244;
  transform:translate(-50%,-50%);
}
.uml-node.start>span,.uml-node.end>span{
  max-width:72px!important;
  padding:0!important;
  margin:1px 0 0!important;
  background:transparent!important;
  border-radius:0!important;
  color:#475569!important;
  font-size:.58rem!important;
  font-weight:700!important;
  line-height:1.05!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Ports visually sit on the actual circle instead of the larger label hit area. */
.uml-node.start .port.n,.uml-node.end .port.n{top:0!important;left:31px!important}
.uml-node.start .port.s,.uml-node.end .port.s{top:31px!important;bottom:auto!important;left:31px!important}
.uml-node.start .port.w,.uml-node.end .port.w{left:17px!important;top:17px!important}
.uml-node.fork .port,.uml-node.join .port{display:none!important}
.uml-node.lifeline{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.uml-node.lifeline.selected{outline:0!important}
.uml-node.lifeline .port,.uml-node.lifeline>.resize-handle{display:none!important}
.uml-node.start .port.e,.uml-node.end .port.e{right:17px!important;top:17px!important}
@media(max-width:700px){
  .shape-item{min-height:66px!important}
  .shape-item .shape-preview{width:54px!important;height:34px!important}
}
/* Editor stabilization and alignment */
.alignment-guides{position:absolute;inset:0;z-index:7;pointer-events:none}
.align-guide{position:absolute;display:block;background:#e11d48;box-shadow:0 0 0 1px #fff8;opacity:.9}
.align-guide.vertical{top:0;bottom:0;width:1px}
.align-guide.horizontal{left:0;right:0;height:1px}
.multi-toolbar{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:12;display:flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #dbe2ec;border-radius:11px;background:#fffffff2;box-shadow:0 7px 22px #0f172a1f;backdrop-filter:blur(7px)}
.multi-toolbar[hidden]{display:none!important}.multi-toolbar span{padding:0 6px;color:#64748b;font-size:.62rem;font-weight:800;white-space:nowrap}.multi-toolbar button{width:28px;height:28px;border:1px solid transparent;border-radius:7px;background:#f8fafc;color:#475569;font-size:.67rem;font-weight:850;cursor:pointer}.multi-toolbar button:hover{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}
.uml-node.selected{outline-offset:2px}.uml-node.boundary,.uml-node.package{z-index:1}.uml-node:not(.boundary):not(.package){z-index:2}.uml-node.selected{z-index:8!important}
#umlSaveState{cursor:default}.diagram-title span.error{cursor:pointer;text-decoration:underline dotted}
/* Keep guides and controls out of image export. */
.uml-exporting .alignment-guides,.uml-exporting .multi-toolbar{display:none!important}
@media(max-width:700px){.multi-toolbar{max-width:calc(100% - 20px);overflow-x:auto;left:10px;right:10px;transform:none}.multi-toolbar span{display:none}}
/* V1 starter choice: only Blank or Simple Example. */
.template-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.template-choice{position:relative;display:grid;grid-template-columns:42px 1fr 18px;gap:10px;align-items:center;padding:13px;border:1px solid #dbe2ec;border-radius:14px;background:#fff;cursor:pointer;transition:.16s ease;min-height:92px}
.template-choice:hover{border-color:#a5b4fc;background:#f8faff;transform:translateY(-1px)}
.template-choice input{position:absolute;opacity:0;pointer-events:none}
.template-choice-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f1f5f9;color:#475569;font-size:1.1rem}
.template-choice strong{display:block;color:#172033;font-size:.84rem}.template-choice small{display:block;margin-top:3px;color:#64748b;font-size:.69rem;line-height:1.35}
.template-check{color:#4f46e5;opacity:0;transform:scale(.75);transition:.16s ease}
.template-choice:has(input:checked){border-color:#818cf8;background:#eef2ff;box-shadow:0 0 0 2px #c7d2fe66}
.template-choice:has(input:checked) .template-choice-icon{background:#fff;color:#4f46e5}.template-choice:has(input:checked) .template-check{opacity:1;transform:scale(1)}
@media(max-width:520px){.template-choice-grid{grid-template-columns:1fr}.template-choice{min-height:78px}}
.uml-app-frame{min-height:100vh}.uml-sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:272px;background:#0b1220;color:#fff;padding:20px 14px;display:flex;flex-direction:column}.uml-main{min-height:100vh}.uml-brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;padding:0 8px 20px;border-bottom:1px solid rgba(255,255,255,.08)}.uml-brand-logo{width:40px;height:40px;border-radius:11px;overflow:hidden;background:#2563eb;display:grid;place-items:center}.uml-brand-logo img{width:100%;height:100%;object-fit:cover}.uml-brand strong,.uml-brand small{display:block}.uml-brand small{font-size:.68rem;color:#94a3b8}.uml-nav-caption{font-size:.64rem;letter-spacing:.15em;color:#64748b;font-weight:800;padding:20px 10px 7px}.uml-sidebar nav{display:grid;gap:4px}.uml-sidebar nav a{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;color:#b6c1d1;text-decoration:none;font-size:.9rem;font-weight:700}.uml-sidebar nav a:hover,.uml-sidebar nav a.active{background:linear-gradient(135deg,rgba(37,99,235,.38),rgba(59,130,246,.15));color:#fff}.uml-sidebar-spacer{flex:1}.uml-user{display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.08);padding:16px 5px 2px}.uml-avatar{width:40px;height:40px;border-radius:11px;background:#fff;color:#111827;display:grid;place-items:center;font-weight:800}.uml-user-copy{min-width:0;flex:1}.uml-user-copy strong,.uml-user-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uml-user-copy small{font-size:.7rem;color:#94a3b8}.uml-user form{margin:0}.uml-user button{border:0;background:transparent;color:#94a3b8;width:34px;height:34px;border-radius:9px}.uml-topbar{min-height:78px;padding:14px 30px;background:rgba(255,255,255,.95);border-bottom:1px solid #e5e9f0;display:flex;align-items:center;justify-content:space-between;gap:18px}.uml-topbar strong,.uml-topbar small{display:block}.uml-topbar small{font-size:.78rem;color:#64748b}.uml-top-actions{display:flex;gap:9px;flex-wrap:wrap}.uml-dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:28px;padding:32px 36px;border-radius:24px;background:linear-gradient(120deg,#0b1220,#172554 64%,#2563eb);color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.16)}.uml-dashboard-hero:after{content:'</>';position:absolute;right:34px;top:6px;color:rgba(255,255,255,.08);font:900 9rem/1 Consolas,monospace}.uml-dashboard-hero>div{position:relative;z-index:1}.uml-dashboard-hero h1{max-width:680px;margin:8px 0 10px;font-size:clamp(1.8rem,3vw,2.7rem);font-weight:850;letter-spacing:-.05em}.uml-dashboard-hero p{max-width:680px;margin:0;color:#cbd5e1;line-height:1.65}.uml-dashboard-hero .eyebrow{color:#93c5fd}.uml-hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:23px}.uml-hero-art{width:132px;height:132px;display:grid;place-items:center;align-content:center;gap:8px;border:1px solid rgba(255,255,255,.18);border-radius:28px;background:rgba(255,255,255,.1)}.uml-hero-art i{font-size:3rem;color:#bfdbfe}.uml-hero-art small{font-size:.58rem;letter-spacing:.12em;color:#dbeafe;font-weight:800}.uml-section-heading{margin:4px 0 14px}.uml-section-heading h2{margin:5px 0 3px;font-size:1.22rem;font-weight:850}.uml-section-heading p{margin:0;color:var(--muted);font-size:.82rem}.uml-card-v2{box-shadow:0 8px 24px rgba(15,23,42,.04);transition:transform .2s,box-shadow .2s}.uml-card-v2:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(15,23,42,.1)}
@media(max-width:900px){.uml-sidebar{width:82px;padding:20px 10px}.uml-brand{justify-content:center}.uml-brand strong,.uml-nav-caption,.uml-sidebar nav a span,.uml-user-copy{display:none}.uml-sidebar nav a{justify-content:center}.uml-user{justify-content:center}.uml-user form{display:none}.uml-topbar{padding:14px 20px}.uml-top-actions a:first-child{display:none}}
@media(max-width:600px){.uml-sidebar{width:0;padding:0;overflow:hidden}.uml-topbar{padding:12px 14px}.uml-top-actions{display:none}.uml-dashboard-hero{padding:25px 22px}.uml-hero-art{display:none}}
/* Editor is a focused workspace: remove the outer navigation shell. */
body.uml-editor-shell .uml-topbar{display:none}

body.uml-editor-shell .uml-designer{height:100vh}
.uml-lock-banner{position:absolute;z-index:40;top:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #f5c2c7;border-radius:10px;background:#fff5f5;color:#842029;font-size:.78rem;box-shadow:0 8px 20px #0f172a18}.uml-lock-banner i{color:#dc3545}.uml-designer:has(.uml-lock-banner) .canvas-viewport{cursor:not-allowed}.uml-designer:has(.uml-lock-banner) .canvas-viewport>*{pointer-events:none}
.uml-team-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0;padding:18px 20px;border:1px solid #dbe4f0;border-radius:18px;background:#fff;box-shadow:0 8px 22px #0f172a0a}.uml-team-panel strong,.uml-team-panel small{display:block}.uml-team-panel small{color:#64748b;margin-top:3px}.uml-team-actions{display:flex;gap:8px;flex-wrap:wrap}.uml-team-actions form{display:flex;gap:6px}.uml-team-actions input{max-width:140px}@media(max-width:700px){.uml-team-panel{align-items:flex-start;flex-direction:column}}
.uml-team-summary{display:flex;align-items:center;gap:12px;margin:18px 0;padding:12px 15px;border:1px solid #dbe4f0;border-radius:14px;background:#fff}.uml-team-summary>i{font-size:1.15rem;color:#2563eb}.uml-team-summary span{flex:1}.uml-team-summary strong,.uml-team-summary small{display:block}.uml-team-summary small{font-size:.72rem;color:#64748b;margin-top:2px}.uml-card-open{display:inline-flex;gap:5px;margin-top:5px;color:#2563eb;font-size:.72rem;font-weight:800}.uml-card-v2>a{display:flex;align-items:flex-start;gap:12px}.uml-card-v2>a>i:last-child{margin-left:auto}.uml-card-v2 form{position:absolute;right:14px;bottom:14px}.uml-card-v2 form button{border:0;background:#fff1f2;color:#e11d48;border-radius:7px;padding:6px 8px}
/* Website Builder dashboard */
.builder-dashboard-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:28px;align-items:center;margin-bottom:26px;padding:38px;border-radius:30px;background:linear-gradient(135deg,#0f1b3d 0%,#163b84 48%,#2f66ec 100%);color:#fff;box-shadow:0 22px 55px rgba(26,67,151,.2)}
.builder-dashboard-hero:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-120px;top:-150px;background:rgba(255,255,255,.08)}
.builder-dashboard-hero h1{max-width:760px;margin:8px 0 12px;font-size:clamp(2rem,3vw,3.3rem);font-weight:800;letter-spacing:-.045em}
.builder-dashboard-hero p{max-width:760px;color:#dbe6ff;font-size:1.04rem;line-height:1.7}
.builder-hero-art{position:relative;z-index:1;display:grid;place-items:center;gap:10px;min-height:220px;border:1px solid rgba(255,255,255,.18);border-radius:26px;background:rgba(255,255,255,.08);backdrop-filter:blur(12px)}
.builder-hero-art span{width:104px;height:104px;display:grid;place-items:center;border-radius:28px;background:#fff;color:#2457cd;font-size:3.2rem;box-shadow:0 20px 50px rgba(0,0,0,.18)}
.builder-hero-art small{font-weight:800;letter-spacing:.15em;color:#dbe6ff}
.builder-feature-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}
.builder-feature-strip>div{display:flex;gap:12px;align-items:center;padding:16px 18px;background:#fff;border:1px solid #e2e8f3;border-radius:18px;box-shadow:0 8px 24px rgba(31,55,97,.06)}
.builder-feature-strip i{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#edf3ff;color:#2d5fd5;font-size:1.15rem}.builder-feature-strip span{display:grid}.builder-feature-strip strong{font-size:.9rem}.builder-feature-strip small{font-size:.76rem;color:#7a879b;margin-top:2px}
.builder-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.builder-create-grid label{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:17px;border:1px solid #dce4ef;border-radius:16px;cursor:pointer;background:#fff;transition:.16s}.builder-create-grid label:hover{border-color:#6e8ce5;box-shadow:0 10px 28px rgba(40,76,160,.08)}.builder-create-grid input{position:absolute;opacity:0}.builder-create-grid label:has(input:checked){border-color:#2f66ec;background:#f2f6ff;box-shadow:0 0 0 3px rgba(47,102,236,.1)}.builder-create-grid label>i{color:#2f66ec;opacity:0}.builder-create-grid label:has(input:checked)>i{opacity:1}.builder-template-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eef3ff;color:#2f66ec;font-size:1.25rem}.builder-create-grid label span:nth-child(3){display:grid}.builder-create-grid strong{font-size:.92rem}.builder-create-grid small{color:#7d899a;font-size:.78rem;margin-top:2px}
@media(max-width:1000px){.builder-dashboard-hero{grid-template-columns:1fr}.builder-hero-art{display:none}.builder-feature-strip{grid-template-columns:1fr 1fr}}@media(max-width:650px){.builder-dashboard-hero{padding:26px;border-radius:22px}.builder-feature-strip,.builder-create-grid{grid-template-columns:1fr}}
/* Website Builder dashboard — light product theme v1.9 */
.builder-home{background:linear-gradient(180deg,#f8fafc 0%,#f5f7fb 100%)}
.builder-dashboard-hero{background:linear-gradient(135deg,#ffffff 0%,#f5f9ff 58%,#edf4ff 100%);color:#0f172a;border:1px solid #dfe8f4;box-shadow:0 22px 55px rgba(15,23,42,.08)}
.builder-dashboard-hero:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;left:-170px;bottom:-320px;background:radial-gradient(circle,rgba(37,99,235,.14),rgba(37,99,235,0) 68%)}
.builder-dashboard-hero:after{background:radial-gradient(circle,rgba(59,130,246,.15),rgba(59,130,246,0) 70%)}
.builder-dashboard-hero .eyebrow{color:#2563eb}.builder-dashboard-hero h1{color:#0f172a}.builder-dashboard-hero p{color:#5b6b80}
.builder-hero-art{border-color:#dbe7f5;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 #fff,0 16px 34px rgba(37,99,235,.08)}
.builder-hero-art span{background:linear-gradient(145deg,#eff6ff,#dbeafe);color:#1d4ed8;box-shadow:0 16px 36px rgba(37,99,235,.12)}
.builder-hero-art small{color:#64748b}
.builder-feature-strip>div{border-color:#e5eaf1;box-shadow:0 10px 26px rgba(15,23,42,.045)}
.builder-project-card{border:1px solid #e5eaf1!important;background:#fff}.builder-project-card:hover{border-color:#c9d8f2!important}
/* Responsive project dashboards */
@media(max-width:1100px) and (min-width:701px){.uml-intro-v2{grid-template-columns:repeat(2,minmax(0,1fr))}.uml-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))}}
:root{--nl-cobalt:#2563eb}
.preview-carousel{position:relative!important;display:flex!important;align-items:center;justify-content:center;background:linear-gradient(135deg,#dbeafe,#eff6ff)!important;overflow:hidden}.preview-carousel span,.preview-carousel i,.preview-carousel b{display:block;position:absolute;border-radius:5px;background:#2563eb}.preview-carousel span{width:65%;height:8px;top:17px}.preview-carousel i{width:45%;height:6px;top:31px;background:#93c5fd}.preview-carousel b{width:22px;height:22px;bottom:9px;right:12px;background:#1d4ed8}.preview-carousel.cards{background:linear-gradient(135deg,#f1f5f9,#dbeafe)!important}.preview-carousel.cards span,.preview-carousel.cards i,.preview-carousel.cards b{position:relative;inset:auto;width:24%;height:30px;margin:2px;background:#fff;border:1px solid #bfdbfe}.preview-carousel.minimal{background:#0f172a!important}.preview-carousel.minimal span{background:#fff}.nl-quick-carousel{position:relative;overflow:hidden;border-radius:24px;padding:clamp(28px,5vw,64px);background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #dbeafe;min-height:300px}.nl-quick-slide{display:none;min-height:210px;align-items:center;gap:32px}.nl-quick-slide.active{display:flex}.nl-quick-carousel h1,.nl-quick-carousel h2{max-width:720px;font-weight:850;letter-spacing:-.04em}.nl-quick-carousel p{color:#64748b;max-width:560px}.nl-slide-art{margin-left:auto;width:190px;height:150px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(145deg,#2563eb,#1e3a8a);color:#fff;font-size:4rem;box-shadow:0 20px 35px #1d4ed833}.nl-slide-art.alt{background:linear-gradient(145deg,#0f172a,#475569)}.nl-quick-carousel-cards{background:#fff}.nl-carousel-heading{margin-bottom:22px}.nl-carousel-card-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;width:100%}.nl-carousel-card-row article{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;box-shadow:0 8px 20px #0f172a0a}.nl-carousel-card-row h4{margin:12px 0 5px}.nl-carousel-card-row p{font-size:.82rem;margin:0}.nl-quick-carousel-minimal{background:#0f172a;color:#fff;text-align:center}.nl-quick-carousel-minimal .nl-quick-slide{justify-content:center;flex-direction:column;gap:8px}.nl-quick-carousel-minimal blockquote{font-size:clamp(1.3rem,3vw,2.2rem);max-width:760px;font-weight:750;margin:0}.nl-quick-carousel-minimal p{color:#cbd5e1}.nl-quote-mark{font-size:4rem;line-height:.6;color:#93c5fd}.nl-carousel-prev,.nl-carousel-next{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#1d4ed8;box-shadow:0 5px 16px #0f172a1a;font-size:1.5rem;z-index:2}.nl-carousel-prev{left:16px}.nl-carousel-next{right:16px}.nl-carousel-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:6px}.nl-carousel-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#bfdbfe}.nl-carousel-dots button.active{width:22px;border-radius:8px;background:#2563eb}@media(max-width:700px){.nl-quick-slide.active{flex-direction:column;align-items:flex-start}.nl-slide-art{margin:0;width:100%;height:100px}.nl-carousel-card-row{grid-template-columns:1fr}.nl-quick-carousel{padding:28px 42px}}
.requirement-meta{display:flex;flex-direction:column;gap:2px;padding:7px 12px;font-size:10px;color:#475569;background:#f8fafc;border-top:1px solid #dbe3ef}.requirement-meta span{white-space:normal;line-height:1.25}.requirement-fields{padding:8px 0;border-top:1px solid #e5e7eb;margin-top:8px}.requirement-fields label{display:block;margin-top:7px}.requirement-fields input,.requirement-fields select,.requirement-fields textarea{width:100%}
/* Palette uses one outer card only; individual components have no boxes. */
#paletteGroup .shape-item{
  border:1px solid #e4eaf3!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 2px 7px rgba(15,23,42,.04)!important;
}
#paletteGroup .shape-item:hover,#paletteGroup .shape-item:focus-visible{
  border-color:#cbd9f5!important;
  border-radius:12px!important;
  background:#f8faff!important;
  box-shadow:0 5px 14px rgba(37,99,235,.08)!important;
}
.summary-dashboard{width:min(1120px,calc(100vw - 340px))!important;min-width:760px!important;max-height:calc(100vh - 100px);overflow:auto;padding:28px!important;background:#f8fafc!important}.summary-dashboard header{padding:22px;border-radius:16px;background:linear-gradient(135deg,#0f1b3d,#1e3a8a);color:#fff}.summary-dashboard header h2{margin:6px 0}.summary-dashboard header p{color:#cbd5e1}.summary-project-meta{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;margin-top:18px}.summary-project-meta span{display:grid;gap:4px;padding:10px 12px;border:1px solid #ffffff2b;border-radius:10px;background:#ffffff12;font-size:.72rem}.summary-project-meta b{font-size:.58rem;color:#bfdbfe;text-transform:uppercase}.summary-section{margin-top:16px;padding:18px;border:1px solid #e3e8f2;border-radius:15px;background:#fff}.summary-section h3{margin:0 0 12px;font-size:.86rem;color:#172554}.summary-table-wrap{overflow:auto}.summary-table-wrap table{width:100%;border-collapse:collapse;font-size:.72rem}.summary-table-wrap th,.summary-table-wrap td{padding:10px;border-bottom:1px solid #edf0f5;text-align:left}.summary-table-wrap th{color:#64748b;font-size:.62rem;text-transform:uppercase}.summary-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:.62rem;font-weight:800}.summary-status.ok{background:#dcfce7;color:#166534}.summary-status.warn{background:#fef3c7;color:#92400e}.summary-two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.summary-checks,.summary-warnings{display:grid;gap:8px;margin:0;padding-left:18px;font-size:.72rem;color:#475569}.summary-warnings .clear{color:#15803d}.traceability{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.traceability span{padding:9px 13px;border-radius:9px;background:#eef2ff;color:#26354f;font-weight:800;font-size:.7rem}.traceability i{color:#315bea;font-style:normal;font-size:1.1rem}.summary-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.summary-actions button{border:1px solid #dbe3ef;border-radius:9px;padding:9px 12px;background:#fff;color:#334155;font-size:.68rem;font-weight:750;cursor:pointer}.summary-actions button:hover{border-color:#315bea;background:#eef2ff;color:#1d4ed8}@media(max-width:800px){.summary-dashboard{width:calc(100vw - 30px)!important;min-width:0!important}.summary-project-meta,.summary-two-col{grid-template-columns:1fr}.traceability{justify-content:flex-start}}
.uml-designer:has(.designer-body.summary-mode){height:auto!important;min-height:calc(100vh - 58px);overflow:visible!important}
.designer-body.summary-mode{grid-template-columns:220px minmax(0,1fr)!important;display:grid!important;min-height:0!important;flex:0 0 auto!important;align-items:stretch}
.designer-body.summary-mode .design-flow{display:block!important;position:sticky;top:0;height:calc(100vh - 58px);max-height:calc(100vh - 58px);overflow:auto!important}
.designer-body.summary-mode .shape-palette,
.designer-body.summary-mode .property-panel{display:none!important}
.designer-body.summary-mode .canvas-viewport{grid-column:2!important;display:block!important;overflow:visible!important;background:#f8fafc;min-width:0}
.designer-body.summary-mode .canvas-stage{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;min-height:100%;overflow:visible!important;transform:none!important;background:#f8fafc!important;box-shadow:none!important}
.designer-body.summary-mode #classLayer{position:relative!important;inset:auto!important;display:block!important;min-height:100%;padding:24px;pointer-events:auto!important}
.designer-body.summary-mode .summary-dashboard{position:relative!important;left:auto!important;top:auto!important;width:min(1120px,100%)!important;min-width:0!important;max-height:none!important;margin:0 auto}
.designer-body.summary-mode .summary-dashboard,
.designer-body.summary-mode .summary-dashboard *{pointer-events:auto!important}
.designer-body.summary-mode .summary-dashboard,
.designer-body.summary-mode .summary-dashboard *{user-select:text!important;-webkit-user-select:text!important}
.designer-body.summary-mode .canvas-viewport{touch-action:auto!important}
.canvas-stage svg .edge-anchor-stem{stroke:#0f766e;stroke-width:1.5;stroke-dasharray:3 3;pointer-events:none;opacity:.9}
.canvas-stage svg .edge-end-handle{r:7!important;fill:#fff!important;stroke:#0f766e!important;stroke-width:2.5!important;cursor:crosshair!important}
.canvas-stage svg .edge-end-handle:hover{r:9!important;fill:#ccfbf1!important;stroke:#047857!important}
.uml-menubar{position:sticky!important;top:0;z-index:100!important}
.designer-body.summary-mode~.statusbar{position:relative;z-index:20}
.designer-body.summary-mode #relationLayer,.designer-body.summary-mode #canvasEmpty{display:none!important}
.uml-sidebar-note-v1{display:flex;align-items:center;gap:10px;margin:12px 16px;padding:12px;border:1px solid #e5eaf2;border-radius:12px;background:#f8fafc;color:#60708a;font-size:.82rem;font-weight:700}.uml-sidebar-note-v1 i{color:#2563eb;font-size:1rem}
.builder-create-page-v1{max-width:980px!important}.builder-create-intro-v1{margin:20px 0 24px}.builder-create-intro-v1 h1{margin:.45rem 0 .65rem;color:#14213d;font-size:clamp(1.8rem,3vw,2.5rem);font-weight:850;letter-spacing:-.035em}.builder-create-intro-v1 p{max-width:650px;color:#65748b}.builder-create-form-v1{padding:clamp(20px,4vw,36px);border:1px solid #e1e8f1;border-radius:22px;box-shadow:0 18px 50px #14213d0c}.builder-create-form-v1 .form-control-lg{min-height:54px;border-radius:12px}.builder-create-form-v1 .template-choice-grid{gap:12px}.builder-create-form-v1 .template-choice{min-height:104px}

/* V1.9.4 — balanced Website Builder project creation page. */
.uml-main>.page-wrap.builder-create-page-v1{width:min(1240px,calc(100% - 64px));max-width:1240px!important;margin:0 auto;padding:36px 0 54px}
.builder-create-page-v1 .builder-create-intro-v1{max-width:1180px;margin:0 auto 22px}
.builder-create-page-v1 .builder-create-intro-v1 h1{font-size:clamp(2rem,3.2vw,2.75rem);line-height:1.12;letter-spacing:-.045em}
.builder-create-page-v1 .builder-create-intro-v1 p{max-width:760px;margin:0;color:#687891;font-size:1rem;line-height:1.65}
.builder-create-page-v1 .builder-create-form-v1{padding:clamp(22px,3vw,34px);border-color:#e1e8f1;border-radius:20px;box-shadow:0 14px 38px rgba(17,42,83,.07)}
.builder-create-form-v1>.form-label,.builder-create-form-v1 .d-flex>div>.form-label{color:#203451;font-size:.95rem}
.builder-create-form-v1 .template-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.builder-create-form-v1 .template-choice{min-width:0;min-height:100px;grid-template-columns:42px minmax(0,1fr) 18px;gap:11px;padding:15px;border-radius:14px;background:#fff}
.builder-create-form-v1 .template-choice:hover{border-color:#9dbcf8;background:#f8faff}
.builder-create-form-v1 .template-choice:has(input:checked){border-color:#8fb2f5;background:#f2f7ff;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.builder-create-form-v1 .template-choice-icon{width:42px;height:42px;border-radius:12px;background:#edf3ff;color:#2563eb}
.builder-create-form-v1 .template-choice strong{color:#1d2f4d;font-size:.9rem}
.builder-create-form-v1 .template-choice small{color:#687891;font-size:.76rem;line-height:1.4}
.builder-create-form-v1 .template-check{color:#2563eb}
.builder-create-form-v1 .form-control-lg{font-size:1rem}
.builder-create-form-v1>.d-flex:last-child{padding-top:18px;border-top:1px solid #edf1f6}
@media(max-width:760px){.uml-main>.page-wrap.builder-create-page-v1{width:calc(100% - 36px);padding:24px 0 38px}.builder-create-page-v1 .builder-create-form-v1{padding:20px;border-radius:16px}.builder-create-form-v1 .template-choice-grid{grid-template-columns:1fr}.builder-create-page-v1 .builder-create-intro-v1{margin-bottom:18px}}
/* V1.9.5 — guest UML and Web Builder open without the product navigation rail. */
body.uml-guest-mode .uml-main{width:100%!important;margin-left:0!important}
body.uml-guest-mode.uml-editor-shell .uml-designer{height:100vh!important}
body.uml-guest-mode>.builder{width:100vw!important;margin-left:0!important}
/* Project editors use their own workspace panels; the platform sidebar remains on list and setup pages. */
body.uml-editor-shell .uml-designer{height:100dvh!important}
/* Keep the global navigation alongside signed-in diagram editors. */

/* Sequence diagram precision: participants share a fixed header and time axis. */
.uml-node.actor.sequence-participant{
  display:block!important;
  height:var(--sequence-height,610px)!important;
  min-height:var(--sequence-height,610px)!important;
  background:transparent!important;
  text-align:center!important;
}
.uml-node.actor.sequence-participant .actor-icon{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
}
.uml-node.actor.sequence-participant>strong{
  position:absolute;
  top:104px;
  left:50%;
  z-index:2;
  transform:translateX(-50%);
  white-space:nowrap;
}
.uml-node.actor.sequence-participant .sequence-actor-line{
  position:absolute;
  top:145px;
  bottom:0;
  left:50%;
  border-left:2px dashed #718096;
}
.uml-node.lifeline.sequence-participant{
  display:block!important;
  height:var(--sequence-height,610px)!important;
  min-height:var(--sequence-height,610px)!important;
  background:transparent!important;
}
.uml-node.lifeline.sequence-participant header{
  position:absolute;
  z-index:2;
  top:0;
  left:0;
  box-sizing:border-box;
  min-height:48px;
  display:grid;
  place-items:center;
  border:1.5px solid #526075;
  border-radius:8px;
  padding:8px 12px;
  background:var(--node-color,#eef2ff)!important;
  box-shadow:0 2px 5px #0f172a10;
}
.uml-node.lifeline.sequence-participant>i{
  position:absolute;
  top:48px;
  bottom:0;
  left:50%;
  height:auto;
  border-left:2px dashed #718096;
}
.uml-node.sequence-participant .port,
.uml-node.sequence-participant>.resize-handle{display:none!important}
.uml-node.sequence-participant.selected{outline:0!important}
.uml-node.actor.sequence-participant.selected>strong,
.uml-node.lifeline.sequence-participant.selected header{
  box-shadow:0 0 0 3px #315bea35,0 3px 10px #0f172a18;
}

/* Keep Sequence Execution visibly and interactively above its Lifeline. */
.uml-node.actor.sequence-participant,
.uml-node.lifeline.sequence-participant{
  z-index:1;
}
.uml-node.activation.sequence-execution{
  z-index:4;
  background:var(--node-color,#eef2ff)!important;
  border:2px solid #315bea!important;
  border-radius:3px;
  box-shadow:0 1px 4px #0f172a24;
}
.canvas-stage svg g[data-rel].selected path.edge-hit{cursor:ns-resize!important}
.canvas-stage svg g[data-rel].selected path.edge{cursor:ns-resize!important}
.canvas-stage.drawing-relation .uml-node{cursor:crosshair!important}
.canvas-stage svg path.connection-preview{fill:none;stroke:#315bea;stroke-width:3;stroke-dasharray:8 5;pointer-events:none}
.canvas-stage svg path.connection-preview.valid{stroke:#16a36a}
.canvas-stage svg path.connection-preview.invalid{stroke:#dc2626}

.uml-action-button[hidden],.action-button[hidden]{display:none!important}
