@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:wght@400;500;600&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#173649;background:#eef3f4;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,.canvas:focus-visible{outline:3px solid #eaa44d;outline-offset:2px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;background:#102f43;color:#f7fbfc;display:flex;align-items:center;gap:28px;padding:0 24px;border-bottom:1px solid #315063;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;min-width:205px}.brand strong{font-family:Manrope,system-ui,sans-serif;letter-spacing:-.055em;font-size:19px;display:block;line-height:1.05}.brand small{font-size:10px;letter-spacing:.22em;color:#9fb7c5;font-weight:700;display:block;margin-top:5px}.brand-icon{display:grid;grid-template-columns:repeat(2,9px);grid-template-rows:repeat(2,9px);gap:3px;transform:rotate(-12deg)}.brand-icon i{display:block;background:#ffbd70;border-radius:3px}.brand-icon i:nth-child(2){background:#81d7c5}.brand-icon i:nth-child(3){grid-column:2;background:#f29581}.title-wrap{display:flex;flex-direction:column;gap:2px;flex:1;min-width:150px}.title-wrap input{font-family:Manrope,system-ui,sans-serif;font-weight:700;font-size:19px;color:#fff;border:0;background:transparent;padding:3px 4px;max-width:480px;width:100%;letter-spacing:-.025em;text-overflow:ellipsis}.title-wrap input:hover,.title-wrap input:focus{background:#1b4054;border-radius:6px;outline:none}.save-status{font-size:12px;color:#a7bfcb;padding-left:5px}.top-actions{display:flex;gap:7px;align-items:center}.button{border:1px solid transparent;border-radius:10px;padding:10px 16px;font-weight:700;white-space:nowrap;font-size:14px;transition:transform .15s,background .15s,border-color .15s}.button:active,.shape-item:active{transform:translateY(1px)}.button.quiet{background:transparent;color:#d6e3e9}.button.quiet:hover{background:#24495d}.button.accent{background:#ffbd70;color:#17364b;box-shadow:0 3px 0 #d98736}.button.accent:hover{background:#ffd098}.button.outline{background:#fff;border-color:#c8d7df;color:#25475a}.button.outline:hover{border-color:#60889a;background:#f5fafb}.button.danger-text{background:transparent;color:#a74f45;padding-left:4px}.button.danger-text:hover{background:#fff1ec}.chevron{display:inline-block;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-left:10px}.workspace{flex:1;display:grid;grid-template-columns:minmax(236px,264px) minmax(0,1fr) minmax(258px,292px);min-height:0;height:calc(100vh - 78px)}.palette,.inspector{background:#f8faf9;overflow:auto;display:flex;flex-direction:column}.palette{border-right:1px solid #d6e1e4;padding:25px 17px 18px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.19em;color:#63859a}.palette-intro{padding:3px 7px 29px}.palette-intro h1{font:800 27px/1.15 Manrope,system-ui,sans-serif;letter-spacing:-.055em;max-width:215px;margin:17px 0 10px;color:#143349}.palette-intro p{color:#6c8593;font-size:14px;line-height:1.55;margin:0}.section-heading{border-top:1px solid #dbe5e7;padding:17px 7px 10px;display:flex;justify-content:space-between;gap:8px;align-items:center;text-transform:uppercase;color:#4d6b7c;font-size:11px;font-weight:800;letter-spacing:.12em}.tiny-caption{color:#9bb0b8}.shape-list{display:grid;gap:6px}.shape-item{display:flex;gap:13px;align-items:center;text-align:left;width:100%;border:1px solid transparent;background:transparent;color:#24485b;border-radius:12px;min-height:69px;padding:8px 10px;transition:background .15s,border-color .15s,transform .15s}.shape-item:hover,.shape-item:focus-visible{background:#fff;border-color:#c5d9df;box-shadow:0 5px 16px #2444550d}.shape-item strong,.template-link strong{display:block;font-size:14px}.shape-item small,.template-link small{display:block;color:#7d929c;font-size:12px;margin-top:3px}.plus{margin-left:auto;font-size:19px;font-weight:400;color:#9bb2bb}.mini-shape{display:block;flex:none;width:32px;height:25px;border:2px solid #476baf;background:#e0e9fa;border-radius:6px}.mini-start{border-color:#1b8566;background:#d5f2e5;border-radius:20px}.mini-decision{width:24px;height:24px;margin:0 4px;transform:rotate(45deg);border-color:#bb792c;background:#fce7c4;border-radius:2px}.mini-document{border-color:#7857a8;background:#e8ddf7;border-radius:4px 4px 10px 4px}.mini-note{border-color:#ad6860;background:#fae2de;border-radius:7px}.palette-bottom{margin-top:auto;border:1px solid #d8e4e4;background:#edf5f3;border-radius:14px;padding:16px 14px;display:flex;gap:11px;align-items:flex-start}.palette-bottom strong{font-size:13px}.palette-bottom p{font-size:12px;color:#64808b;line-height:1.55;margin:5px 0 0}.help-mark{background:#2e8e7e;color:#fff;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}.stage{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;background:#f0f5f5}.stage-top,.stage-bottom{height:45px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;flex:none}.stage-top{border-bottom:1px solid #dde6e7}.stage-bottom{border-top:1px solid #dce7e8;height:53px}.stage-label{color:#688393;font-size:11px;font-weight:800;letter-spacing:.15em}.live-dot{display:inline-block;width:7px;height:7px;background:#69ba9f;border-radius:50%;margin-right:7px}.stage-count,.canvas-hint{font-size:12px;color:#859ca6}.canvas{flex:1;position:relative;min-height:260px;overflow:hidden;background-color:#f5f8f7;background-image:radial-gradient(#bfd0d2 1px,transparent 1px);background-size:24px 24px;touch-action:none}.canvas.is-panning{cursor:grabbing}.canvas.is-connecting{cursor:crosshair}#map-svg{display:block;width:100%;height:100%;user-select:none}.node{cursor:grab;outline:none}.node:active{cursor:grabbing}.node .shape-body{filter:drop-shadow(0 4px 5px #31566d14)}.node:hover .shape-body{filter:drop-shadow(0 7px 7px #31566d24)}.node.selected .selection-ring{stroke:#255b72;stroke-width:1.8;stroke-dasharray:5 4;fill:none}.node text{pointer-events:none}.node .port{opacity:0;transition:opacity .15s;cursor:crosshair}.node:hover .port,.node.selected .port,.canvas.is-connecting .port{opacity:1}.edge-hit{fill:none;stroke:transparent;stroke-width:18;cursor:pointer}.edge-line{fill:none;stroke:#54758b;stroke-width:2.5;pointer-events:none}.edge.selected .edge-line,.edge:hover .edge-line{stroke:#eb8a4b;stroke-width:3.5}.edge-label{cursor:pointer}.tool-cluster{display:flex;align-items:center;gap:4px;background:#fff;border:1px solid #d6e1e4;border-radius:9px;padding:2px}.icon-btn{min-width:31px;height:29px;border:0;background:transparent;color:#30556a;border-radius:6px;font-size:20px;line-height:1}.icon-btn:hover{background:#e9f2f3}.icon-btn:disabled{opacity:.35;cursor:default}.icon-btn.labeled{font-size:12px;font-weight:800;padding:0 8px}.divider{height:19px;border-left:1px solid #d7e4e8;margin:0 3px}.zoom-label{font-size:12px;min-width:40px;text-align:center;color:#607986;font-weight:700}.inspector{border-left:1px solid #d6e1e4;padding:28px 21px 16px}.inspector-header h2{font:800 22px/1.22 Manrope,system-ui,sans-serif;letter-spacing:-.045em;margin:12px 0 22px;color:#16364b}.idea-card{background:#e5f1ef;border:1px solid #cce4dd;padding:19px;border-radius:14px}.idea-icon{font-size:29px;color:#3c9b85;display:block;margin-bottom:22px}.idea-card strong{font:800 16px/1.3 Manrope,system-ui,sans-serif}.idea-card p,.inspector-copy{font-size:14px;line-height:1.55;color:#5f7c86}.idea-card p{margin:9px 0 0}.inspector-copy{margin:20px 2px 27px}.inspector-section{border-top:1px solid #d9e5e7;padding-top:20px}.template-link{background:transparent;border:0;border-bottom:1px solid #e0e9ea;width:100%;display:flex;justify-content:space-between;text-align:left;padding:17px 4px;color:#265267;align-items:center}.template-link:hover{color:#de7b44}.template-link>span:last-child{font-size:17px}.inspector-form{display:flex;flex-direction:column;gap:8px}.type-pill{align-self:flex-start;background:#e5edf1;color:#477083;border-radius:30px;padding:6px 10px;font-weight:800;letter-spacing:.1em;font-size:11px;margin-bottom:12px}.inspector-form label{font-weight:700;font-size:13px;margin-top:13px}.inspector-form label span{font-weight:400;color:#8399a3}.inspector-form input,.inspector-form textarea{width:100%;border:1px solid #c9dadd;background:#fff;color:#234457;border-radius:9px;padding:11px 12px;resize:vertical;font-size:14px;line-height:1.45}.inspector-form input:focus,.inspector-form textarea:focus{border-color:#328e81;outline:2px solid #b6dfd7}.form-actions{display:flex;gap:6px;margin-top:18px;flex-wrap:wrap}.field-hint{font-size:13px;line-height:1.5;color:#6d8993}.inspector-footer{margin-top:auto;padding-top:28px;font-size:12px;line-height:1.5;color:#96aab1}.footer-star{color:#e29c59;margin-right:6px}.empty-state{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;background:#ffffffeb;border:1px solid #dce8e7;box-shadow:0 22px 60px #284a5b17;border-radius:20px;padding:36px;max-width:430px;width:calc(100% - 40px)}.empty-state h2{font:800 23px Manrope,system-ui,sans-serif;letter-spacing:-.04em;margin:18px 0 5px}.empty-state p{font-size:14px;line-height:1.55;color:#6a8490;margin:0 0 22px}.empty-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.empty-graphic{height:68px;display:flex;align-items:center;justify-content:center}.empty-a,.empty-b{display:block;width:62px;height:42px;border-radius:10px;background:#ddedfa;border:2px solid #6594b8;transform:rotate(-5deg)}.empty-b{background:#f7e3be;border-color:#bf8b44;transform:rotate(5deg)}.empty-line{height:2px;width:48px;background:#6b8c9b;position:relative}.empty-line:after{content:'›';position:absolute;right:-1px;top:-15px;color:#6b8c9b;font-size:24px}.inline-edit{position:absolute;z-index:4;border:2px solid #2d9283;border-radius:8px;box-shadow:0 6px 18px #213a5344;background:#fff;text-align:center;color:#14394a;padding:8px;font-weight:700;font-size:15px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);background:#17394c;color:#fff;border-radius:10px;padding:11px 17px;box-shadow:0 10px 30px #14314147;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20;font-size:14px}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #d5e1e4;border-radius:17px;box-shadow:0 25px 90px #08233377;padding:0;color:#173649;width:min(520px,calc(100% - 30px));max-height:min(80vh,760px)}dialog::backdrop{background:#0d2d41a8;backdrop-filter:blur(3px)}.modal-body{padding:27px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-head h2{font:800 23px Manrope,system-ui,sans-serif;letter-spacing:-.04em;margin:0 0 6px}.modal-head p{font-size:14px;color:#6e8994;margin:0 0 20px;line-height:1.5}.close-btn{border:0;background:#ebf2f3;width:30px;height:30px;border-radius:7px;color:#3c5f71;font-size:21px;line-height:1}.modal-option{display:flex;justify-content:space-between;align-items:center;text-align:left;width:100%;border:1px solid #d7e3e5;background:#fff;padding:15px;border-radius:10px;margin-top:8px;color:#234b5f}.modal-option:hover{background:#edf6f4;border-color:#91c2b7}.modal-option strong{display:block;font-size:14px}.modal-option small{display:block;color:#829aa3;margin-top:4px;font-size:12px}.modal-option .option-icon{color:#588f92;font-size:19px}.modal-note{border-top:1px solid #dce7e7;color:#7a929c;padding-top:15px;margin-top:20px;font-size:12px;line-height:1.5}.map-row{border-bottom:1px solid #e2ebec;display:flex;gap:8px;align-items:center}.map-row .map-open{border:0;background:transparent;text-align:left;padding:15px 2px;flex:1;min-width:0;color:#234759}.map-row .map-open:hover strong{color:#208779}.map-row strong,.map-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-row strong{font-size:14px}.map-row small{font-size:12px;color:#8ba0a8;margin-top:3px}.map-remove{background:transparent;border:0;color:#aa6961;font-size:19px;padding:10px}.map-list{max-height:370px;overflow:auto}
@media(max-width:1100px){.workspace{grid-template-columns:220px minmax(0,1fr) 245px}.palette{padding:20px 11px}.inspector{padding:22px 14px}.canvas-hint{display:none}.brand{min-width:195px}}
@media(max-width:820px){.topbar{height:auto;min-height:68px;padding:10px 14px;flex-wrap:wrap;gap:7px}.brand{min-width:0;margin-right:auto}.brand strong{font-size:17px}.title-wrap{order:3;flex-basis:100%;padding:0 2px}.title-wrap input{font-size:16px}.save-status{font-size:11px}.top-actions{gap:2px}.top-actions .button{padding:8px 10px;font-size:12px}.workspace{height:calc(100vh - 104px);grid-template-columns:1fr;grid-template-rows:auto minmax(320px,1fr) auto}.palette{border-right:0;border-bottom:1px solid #d5e1e4;padding:8px 10px}.palette-intro,.section-heading,.palette-bottom{display:none}.shape-list{display:flex;overflow-x:auto;gap:4px}.shape-item{flex:0 0 auto;width:auto;min-height:51px;padding:5px 9px;gap:7px}.shape-item small,.plus{display:none}.shape-item strong{font-size:12px}.mini-shape{transform:scale(.75)}.mini-decision{transform:rotate(45deg) scale(.75)}.stage-top{height:32px}.stage-bottom{height:42px}.inspector{max-height:200px;border-left:0;border-top:1px solid #d5e1e4;padding:14px 17px}.inspector-header h2{font-size:16px;margin:3px 0 8px}.inspector-default .idea-card,.inspector-default .inspector-copy,.inspector-footer{display:none}.inspector-section{border:0;padding:0}.template-link{display:inline-flex;width:48%;padding:5px}.inspector-form{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px}.inspector-form label{margin-top:2px}.inspector-form textarea,.inspector-form input,.inspector-form label,.inspector-form .form-actions{grid-column:span 2}.inspector-form .type-pill{display:none}}
@media(max-width:560px){.brand small{font-size:8px}.top-actions .button.quiet{padding:8px 6px}.top-actions #import-btn{display:none}.stage-count{font-size:11px}.inspector{max-height:196px}.empty-state{padding:20px}.modal-body{padding:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.automation-panel{border-top:1px solid #d9e5e7;margin-top:18px;padding-top:19px;display:flex;flex-direction:column;gap:8px}.automation-panel>p{font-size:13px;line-height:1.5;color:#6d8993;margin:1px 0 6px}.automation-panel label{font-weight:700;font-size:13px;margin-top:10px}.automation-panel label span{font-weight:400;color:#8399a3}.automation-panel input,.automation-panel textarea,.automation-panel select,.inspector-form select{width:100%;border:1px solid #c9dadd;background:#fff;color:#234457;border-radius:9px;padding:11px 12px;font-size:14px;line-height:1.45}.inspector-form select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#52788a 50%),linear-gradient(135deg,#52788a 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:38px}.inspector-form select:focus-visible{outline:2px solid #b6dfd7}.automation-panel #automation-settings,.automation-panel #automation-condition-row{display:flex;flex-direction:column;gap:8px}.automation-panel #automation-condition-row .field-hint{margin:0}.readiness{border:1px solid #d7e3e5;border-radius:10px;background:#f4f8f7;margin-top:10px;padding:12px 14px;color:#315a68;font-size:13px;line-height:1.5}.readiness summary{cursor:pointer;font-weight:700}.readiness ul{padding-left:20px;margin:10px 0 0}.readiness li{margin:5px 0}.readiness p{margin:10px 0 0}.inspector-node-hint{font-size:13px;color:#6d8993}
@media(max-width:820px){.inspector{max-height:38vh}.inspector-form .automation-panel{grid-column:span 2}.inspector-form .automation-panel label,.inspector-form .automation-panel input,.inspector-form .automation-panel textarea{grid-column:auto}}
/* Amedeo's Lab editorial canvas */
:root{font-family:Inter,system-ui,sans-serif}
.brand strong,.palette-intro h1,.inspector-header h2,.idea-card strong,.modal-head h2,.empty-state h2{font-family:'Source Serif 4',Georgia,serif;letter-spacing:-.025em;font-weight:500}
.brand strong{font-size:24px}.brand small{font-size:11px;letter-spacing:.01em;text-transform:none}.brand-icon{transform:none}
.title-wrap input{font-family:Inter,system-ui,sans-serif;letter-spacing:-.02em}.palette-intro h1{font-size:29px}.inspector-header h2{font-size:25px}
.eyebrow,.section-heading,.stage-label{letter-spacing:.02em;text-transform:none;font-size:13px;font-weight:700}.tiny-caption,.live-dot{display:none}
.theme-icon{margin-left:7px}.canvas-action{border:1px solid #cbd7dc;background:transparent;color:#315166;border-radius:7px;font:600 13px Inter,system-ui,sans-serif;padding:7px 10px;white-space:nowrap}.canvas-action:hover{background:#e6f0f2}.canvas-action[aria-pressed="true"]{background:#dcebe8;border-color:#8fb6aa}
.stage-top{height:auto;min-height:48px;gap:12px;padding:7px 14px}.layout-actions{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none}.layout-actions::-webkit-scrollbar{display:none}.stage-label{padding-right:8px;white-space:nowrap}
.pane-stack{flex:1;min-height:0;display:flex;flex-direction:column}.pane{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.pane .canvas{min-height:0;flex:1}.pane-heading{height:36px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px;background:#e8eff0;border-bottom:1px solid #d5e2e5;font-size:12px}.pane-heading>span{display:flex;gap:12px;min-width:0;align-items:center}.pane-heading strong{font-weight:700}.pane-heading span span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#617885}.pane-change{background:transparent;border:0;color:#466f81;font:600 12px Inter,system-ui,sans-serif;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.pane-change:hover{color:#152f3e}
.pane svg{display:block;width:100%;height:100%;user-select:none}
.stage:not(.split) .pane-heading{display:none}.stage.split .pane{min-height:135px}.stage.split .pane.active .pane-heading{box-shadow:inset 3px 0 #a17d3d}.split-handle{height:12px;flex:none;background:#cbd9da;border-top:1px solid #a9bdc3;border-bottom:1px solid #a9bdc3;cursor:row-resize;display:grid;place-items:center;touch-action:none}.split-handle span{display:block;width:42px;height:3px;background:#7593a0;border-radius:3px}.split-handle:hover,.split-handle:focus-visible{background:#e5ecec}.empty-state.compact{padding:20px;max-width:320px}.empty-state.compact h2{margin-top:0}
.automation-panel{display:block}.automation-panel summary{cursor:pointer;font-size:13px;font-weight:700;color:#527b88;list-style:none}.automation-panel summary::-webkit-details-marker{display:none}.automation-panel summary:after{content:'+';float:right;font-size:18px;font-weight:400;line-height:15px}.automation-panel[open] summary:after{content:'−'}.automation-panel[open]>p{margin:12px 0}.automation-panel[open]>label{display:block;margin-bottom:7px}
.advanced-options{border-top:1px solid #dce7e7;margin-top:14px;padding-top:12px}.advanced-options summary{font-size:13px;font-weight:700;cursor:pointer;color:#466f81}.advanced-options .modal-option{margin-top:9px}
:root[data-theme="dark"]{color:#e9eeeb;background:#10212a}
[data-theme="dark"] .topbar{background:#172e3a;border-color:#36515b;color:#f1f2eb}
[data-theme="dark"] .brand small,[data-theme="dark"] .save-status{color:#a5bac1}
[data-theme="dark"] .title-wrap input{color:#f1f2eb}[data-theme="dark"] .title-wrap input:hover,[data-theme="dark"] .title-wrap input:focus{background:#23414d}
[data-theme="dark"] .button.quiet{color:#d4e1e3}[data-theme="dark"] .button.quiet:hover{background:#2b4955}
[data-theme="dark"] .button.accent{background:#e8c76f;color:#172e3a;box-shadow:none}[data-theme="dark"] .button.accent:hover{background:#f4d989}
[data-theme="dark"] .button.outline{background:#1e3943;color:#e9eeeb;border-color:#49636a}[data-theme="dark"] .button.outline:hover{background:#31505a}
[data-theme="dark"] .palette,[data-theme="dark"] .inspector{background:#172b35;border-color:#35505a}
[data-theme="dark"] .palette-intro h1,[data-theme="dark"] .inspector-header h2,[data-theme="dark"] .idea-card strong,[data-theme="dark"] .empty-state h2{color:#f1f2eb}
[data-theme="dark"] .eyebrow,[data-theme="dark"] .section-heading,[data-theme="dark"] .stage-label,[data-theme="dark"] .stage-count,[data-theme="dark"] .canvas-hint{color:#9db5bf}
[data-theme="dark"] .section-heading,[data-theme="dark"] .inspector-section,[data-theme="dark"] .template-link{border-color:#35505a}
[data-theme="dark"] .palette-intro p,[data-theme="dark"] .shape-item small,[data-theme="dark"] .template-link small,[data-theme="dark"] .inspector-copy,[data-theme="dark"] .idea-card p,[data-theme="dark"] .field-hint,[data-theme="dark"] .inspector-footer{color:#a9bec4}
[data-theme="dark"] .shape-item,[data-theme="dark"] .template-link,[data-theme="dark"] .inspector-form label{color:#dbe6e5}
[data-theme="dark"] .shape-item:hover,[data-theme="dark"] .shape-item:focus-visible{background:#24414c;border-color:#4d6871;box-shadow:none}
[data-theme="dark"] .palette-bottom,[data-theme="dark"] .idea-card{background:#203a43;border-color:#355660;color:#e1eae7}
[data-theme="dark"] .palette-bottom p{color:#b5cbd0}
[data-theme="dark"] .stage{background:#10212a}[data-theme="dark"] .stage-top,[data-theme="dark"] .stage-bottom{border-color:#36515b}
[data-theme="dark"] .canvas{background-color:#10212a;background-image:radial-gradient(#34505b 1px,transparent 1px)}
[data-theme="dark"] .canvas-action{border-color:#45616c;color:#d7e4e4}[data-theme="dark"] .canvas-action:hover{background:#294752}[data-theme="dark"] .canvas-action[aria-pressed="true"]{background:#35534f;border-color:#9bbda7}
[data-theme="dark"] .pane-heading{background:#1b333e;border-color:#36515b;color:#e0eae9}[data-theme="dark"] .pane-heading span span{color:#a8bdc4}[data-theme="dark"] .pane-change{color:#b9d5df}[data-theme="dark"] .pane-change:hover{color:#f1f2eb}
[data-theme="dark"] .split-handle{background:#273e48;border-color:#42606a}[data-theme="dark"] .split-handle span{background:#a2b7bd}[data-theme="dark"] .split-handle:hover,[data-theme="dark"] .split-handle:focus-visible{background:#37525c}
[data-theme="dark"] .tool-cluster{background:#203a44;border-color:#42606a}[data-theme="dark"] .icon-btn{color:#d5e4e5}[data-theme="dark"] .icon-btn:hover{background:#31515b}[data-theme="dark"] .zoom-label{color:#b6c8cc}[data-theme="dark"] .divider{border-color:#42606a}
[data-theme="dark"] .inspector-form input,[data-theme="dark"] .inspector-form textarea,[data-theme="dark"] .inspector-form select{background-color:#203a44;border-color:#496670;color:#f0f2ee}
[data-theme="dark"] .inspector-form input::placeholder,[data-theme="dark"] .inspector-form textarea::placeholder{color:#92a9b0}
[data-theme="dark"] .inspector-form label span{color:#a8bdc4}[data-theme="dark"] .type-pill{background:#2d4751;color:#c3d7d9}
[data-theme="dark"] .automation-panel{border-color:#3c5861}[data-theme="dark"] .automation-panel summary,[data-theme="dark"] .advanced-options summary{color:#d5e3df}[data-theme="dark"] .automation-panel>p{color:#a9bec4}
[data-theme="dark"] dialog{background:#19313b;border-color:#48636b;color:#e9eeeb}[data-theme="dark"] .modal-head h2{color:#f1f2eb}[data-theme="dark"] .modal-head p,[data-theme="dark"] .modal-note{color:#adbdc1}[data-theme="dark"] .close-btn{background:#2d4751;color:#e7ece9}
[data-theme="dark"] .modal-option{background:#203a44;border-color:#45616b;color:#e4eded}[data-theme="dark"] .modal-option:hover{background:#2b4852;border-color:#7ea9a7}[data-theme="dark"] .modal-option small{color:#a8bec4}[data-theme="dark"] .modal-option .option-icon{color:#d8c184}
[data-theme="dark"] .readiness{background:#203a44;border-color:#45616b;color:#d8e7e5}[data-theme="dark"] .modal-note,[data-theme="dark"] .advanced-options{border-color:#45616b}
[data-theme="dark"] .map-row{border-color:#45616b}[data-theme="dark"] .map-row .map-open{color:#e9eeeb}[data-theme="dark"] .map-row small{color:#a9bfc4}
[data-theme="dark"] .empty-state{background:#1c3540;border-color:#4a6770;box-shadow:none}[data-theme="dark"] .empty-state p{color:#b9cbd0}
[data-theme="dark"] .edge-line{stroke:#88a4aa}[data-theme="dark"] .edge-label rect{fill:#203a44;stroke:#6c8a92}[data-theme="dark"] .edge-label text{fill:#e6eae5}
@media(max-width:820px){.stage-top{padding:7px 10px}.stage-count{display:none}.layout-actions{width:100%}.stage-label{display:none}.pane-heading{height:32px}.stage.split .pane{min-height:135px}.inspector{max-height:38vh}}
@media(max-width:560px){.theme-text{display:none}.theme-icon{margin:0}.top-actions #theme-btn{padding:7px 8px}.canvas-action{padding:7px 8px;font-size:12px}}
