.nodal-shell{--node-lime:#c5ef64}.nodal-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:18px 0}.nodal-toolbar label{margin:0;min-width:180px}.nodal-hint,#nodal-status{font-size:14px;color:#b6c3ab}#nodal-status{min-height:22px;color:#c6ed78}.nodal-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid #45513e;border-radius:16px;overflow:hidden;background:#121711}#nodal-canvas{height:650px;overflow:auto;background:radial-gradient(#3a4434 1px,transparent 1px);background-size:24px 24px;overscroll-behavior:contain}#nodal-map{display:block;max-width:none;touch-action:pan-x pan-y}#nodal-map .nodal-node{cursor:grab;outline:none;touch-action:none}#nodal-map .nodal-node:focus rect{stroke:white;stroke-width:3}#nodal-map [data-nodal-port]{cursor:crosshair;touch-action:none}#nodal-map .nodal-edge{cursor:pointer}#nodal-map .nodal-edge:hover{stroke:#c5ef6438}#nodal-details{padding:20px;border-left:1px solid #45513e;max-height:650px;overflow:auto;background:#1c221b}#nodal-details h3{margin-top:0}#nodal-details label{font-size:14px}#nodal-details input,#nodal-details select,#nodal-details textarea{width:100%;min-width:0}#nodal-details .inline input{width:auto}#nodal-details p{font-size:14px;line-height:1.5}#nodal-details textarea{min-height:120px}.nodal-step{display:flex;gap:8px;align-items:center}.nodal-step label{flex:1}.nodal-step button{padding:4px 9px}.nodal-delete{color:#ffc0a8!important;margin-top:18px}.nodal-toolbar button{font-size:14px}.nodal-layout svg text{user-select:none;pointer-events:none}@media(max-width:1050px){.nodal-layout{grid-template-columns:1fr}#nodal-canvas{height:480px}#nodal-details{max-height:none;border-left:0;border-top:1px solid #45513e}}@media(prefers-reduced-motion:reduce){.nodal-shell *{scroll-behavior:auto}}
#nodal-list{padding:20px;display:grid;gap:10px}#nodal-list button{display:flex;justify-content:space-between;text-align:left;gap:15px}#nodal-list button span{font-size:14px;color:#bbcba4}
.nodal-shell{background:#151a14;color:#eef3e8;padding:22px;border-radius:18px;min-width:0}.nodal-shell .muted{color:#b4bfa9}.nodal-shell button,.nodal-shell input,.nodal-shell select,.nodal-shell textarea{background:#252e21;color:#eff4e9;border-color:#59664a}.nodal-shell button.primary{background:#dafa63;color:#202819;border-color:#dafa63}.nodal-toolbar label{font-size:14px}.nodal-toolbar select{max-width:230px}.nodal-shell .section-head{gap:20px}.nodal-shell #nodal-details{display:block}.nodal-shell #nodal-details h4{margin:20px 0 8px}.nodal-shell #nodal-details>p{margin-bottom:12px}.nodal-shell #nodal-details>label{margin:12px 0}.nodal-shell #nodal-details form{gap:12px}.nodal-shell input[type=checkbox]{accent-color:#b8e256}@media(max-width:600px){.nodal-shell{padding:14px}.nodal-toolbar button{min-height:44px}.nodal-toolbar label{width:100%}.nodal-toolbar select{max-width:none}}
.workspace-screen .nodal-shell button{width:auto}.workspace-screen .nodal-toolbar{display:flex;flex-direction:row;align-items:end}.workspace-screen .nodal-toolbar>button{flex:0 0 auto}.workspace-screen .nodal-toolbar>label{flex:0 1 230px}.workspace-screen #nodal-list button{width:100%}.workspace-screen .nodal-shell input,.workspace-screen .nodal-shell textarea,.workspace-screen .nodal-shell select{width:100%}
#nodal-canvas{overflow:hidden;cursor:grab;touch-action:none;position:relative}#nodal-map{width:100%;height:100%;touch-action:none}#nodal-canvas.is-panning,#nodal-canvas.is-panning *{cursor:grabbing!important}#nodal-canvas.nodal-list-mode{overflow:auto;cursor:auto;touch-action:pan-y}#nodal-details{cursor:auto}.nodal-source{background:#303d24;border-left:3px solid #b6de61;border-radius:7px;padding:10px;color:#eff4e4;font-size:14px}[data-nodal="home"]{border-color:#b9d76a!important}.nodal-shell[aria-busy="true"]{opacity:.85}

.nodal-name-dialog{width:min(560px,calc(100vw - 32px));max-width:560px;border:1px solid #72894a;border-radius:16px;padding:clamp(20px,5vw,32px);color:#f5f7ef;background:#20251e;box-shadow:0 24px 80px #0008}.nodal-name-dialog::backdrop{background:#111b}.nodal-name-dialog form{display:grid;gap:18px}.nodal-name-dialog h2{margin:0}.nodal-name-dialog label{display:grid;gap:8px}.nodal-name-dialog input{width:100%;min-height:48px;padding:12px;border:1px solid #788659;border-radius:8px;background:#272d24;color:inherit;font:inherit}.nodal-name-dialog .row{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.nodal-name-dialog button{min-height:46px;padding:10px 16px;border:1px solid #788659;border-radius:8px;background:#272d24;color:inherit;font:inherit;cursor:pointer}.nodal-name-dialog button.primary{background:#d7ff58;border-color:#d7ff58;color:#1b2118}.nodal-name-dialog button:focus-visible,.nodal-name-dialog input:focus-visible{outline:3px solid #d7ff58;outline-offset:2px}

#nodal-map .nodal-edge{pointer-events:stroke}#nodal-map .nodal-edge.is-selected{stroke:#c5ef6480!important;stroke-width:20!important}#nodal-map .nodal-edge:focus{outline:none;stroke:#c5ef64!important;stroke-width:3}

.nodal-color-picker{position:relative;display:grid;gap:7px}.nodal-color-picker>label{font-size:14px}.nodal-color-trigger{display:flex!important;align-items:center;gap:10px;width:100%!important;min-height:46px;text-align:left;border:1px solid #59664a;border-radius:8px;padding:10px 12px;font:inherit;cursor:pointer}.nodal-color-trigger:focus-visible,.nodal-color-option:focus-visible{outline:3px solid #c5ef64;outline-offset:2px}.nodal-color-swatch{width:13px;height:13px;min-width:13px;border-radius:3px;background:var(--swatch);border:1px solid #ffffff66;display:inline-block}.nodal-color-chevron{margin-left:auto;font-size:18px;line-height:1}.nodal-color-menu{position:absolute;z-index:30;left:0;right:0;top:100%;margin-top:4px;padding:4px;border:1px solid #687752;border-radius:8px;background:#222b20;box-shadow:0 12px 28px #0009;max-height:min(320px,50vh);overflow:auto}.nodal-color-option{display:flex!important;align-items:center;justify-content:flex-start!important;gap:10px;width:100%!important;min-height:38px;padding:7px 10px;border:1px solid transparent!important;border-radius:5px;text-align:left;font:inherit;cursor:pointer}.nodal-color-option:hover,.nodal-color-option[aria-pressed="true"]{background:#34452b!important;border-color:#c5ef64!important}.nodal-color-option span:last-child{font-size:14px}

.nodal-toolbar button[aria-pressed="true"]{background:#34452b;border-color:#c5ef64;color:#eef5e6}.nodal-toolbar [data-nodal-selection-count]{font-size:14px;align-self:center}.nodal-node{touch-action:none}
