/* MindBranch Workbench — compact, neutral editor surfaces inspired by desktop tools.
   Presentation only. Saved projects, card geometry and the original logo stay intact. */
:root{color-scheme:dark;--bg:#3b3b3b;--sidebar:#292929;--panel:#303030;--line:#171717;--muted:#ababab;--soft:#d2d2d2;--white:#ededed;--accent:#91c5a2;--accent-dark:#304b3a}
.settings-sections{display:grid;gap:20px}.settings-sections section+section{border-top:1px solid #484848;padding-top:18px}.settings-sections h3{font-size:14px;margin:0 0 6px}.settings-sections p{margin:0 0 12px}
.language-options{border:0;margin:0 0 12px;padding:0;display:flex;gap:10px;flex-wrap:wrap}.language-options legend{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:10px;padding:0}.language-options legend svg{width:17px;height:17px}.language-options label{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #505050;border-radius:5px;background:#373737;cursor:pointer;font-size:13px}.language-options label:has(input:checked){border-color:var(--accent);background:var(--accent-dark)}.language-options input{accent-color:var(--accent);margin:0!important}.language-options .language-flag{width:28px;height:20px;border-radius:2px;overflow:hidden;stroke:none;flex-shrink:0}
html,body{font-family:"Segoe UI",sans-serif;font-size:12px;color:var(--white);background:var(--bg)}
button,input,textarea,select{font-family:inherit}
button{transition:background .1s,border-color .1s,color .1s}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:1px solid var(--accent);outline-offset:1px}
.sidebar{background:#292929;border-color:#171717;padding-top:19px}
.brand{margin-bottom:25px;gap:8px}
.brand strong{font-family:inherit;font-size:17px;font-weight:600;letter-spacing:-.5px;color:#ededed}
.brand span{font-size:10px;color:#a8a8a8}
.section-head{font-size:9px;letter-spacing:1px;font-weight:550;color:#b0b0b0}
.project-list{gap:1px}
.project-entry{padding:9px 10px;border-radius:2px;color:#c8c8c8;font-weight:400;font-size:12px}
.project-entry:hover{background:#363636;color:#fff}
.project-entry.active{background:#414141;border-color:#525252;color:#fff;box-shadow:inset 2px 0 var(--accent)}
.project-entry.active svg{color:var(--accent)}
.sidebar-bottom{border-color:#454545;color:#a8a8a8}
.status-dot{background:#9ca98d}
.topbar{height:36px;background:#252525;border-color:#151515;padding:0 12px;gap:8px}
.breadcrumbs{font-size:11px;gap:8px}
.breadcrumbs strong{font-weight:500;color:#e5e5e5}
.crumb-muted,.slash{color:#a0a0a0}
.workspace-header{background:#303030;border-color:#1d1d1d;min-height:48px;padding:7px 12px;gap:10px}
.workspace-header h1{font-family:inherit;font-size:14px;letter-spacing:0;font-weight:550;margin:0 0 3px;color:#e5e5e5}
.workspace-header p{color:#a3a3a3;font-size:10px}
.toolbar-button,.action,.icon-button,.subtle-icon,.inspect-button{border-radius:3px}
.toolbar-button{padding:4px 7px;font-size:11px;border:1px solid #181818;background:#3d3d3d;color:#dedede;gap:6px}
.toolbar-button:hover,.toolbar-button.accent-outline:hover{background:#515151;color:#fff}
.toolbar-button.accent-outline{background:#3d3d3d;border-color:#181818;color:#dedede}
.assistant-launch{background:#3d3d3d!important;border:1px solid #181818!important;color:#dedede!important;border-radius:3px}
.assistant-launch:hover{background:#515151!important;color:#fff!important}
.toolbar-button svg{width:13px;height:13px}
.toolbar-button kbd,.shortcut-list kbd{background:#303030;border-color:#555;color:#bbb;border-radius:2px;font-size:9px}
.icon-button,.subtle-icon{color:#bdbdbd}
.icon-button:hover,.subtle-icon:hover{background:#494949;color:#fff}
.top-divider,.tool-divider,.inspector-rule{background:#535353}
.top-divider{height:19px}
.work-actions .action{padding:5px 9px;font-size:11px;border-radius:3px}
.action.primary{background:#606060;border-color:#1c1c1c;color:#fff;font-weight:500}
.action.primary:hover{background:#767676;border-color:#202020}
.action.secondary{background:#454545;border-color:#202020;color:#e5e5e5}
.action.secondary:hover{background:#555}
.workspace{background-color:#3b3b3b;background-image:linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px);background-size:24px 24px}
.tree-link{stroke:#b4b4b4;stroke-width:1.5;opacity:.85}
.node{background:#333;border:1px solid #1c1c1c;border-radius:4px;box-shadow:0 1px 2px #0002}
.node:hover{border-color:#858585;box-shadow:0 1px 2px #0002}
.node.selected{background:#3b3b3b;border-color:var(--accent);box-shadow:0 0 0 1px #91c5a255}
.node-color-bar{width:3px}
.node-icon,.node-root .node-icon{background:transparent;color:var(--node-color);border-radius:0}
.node-title{font-family:inherit;color:#e8e8e8;font-size:13px;font-weight:500;letter-spacing:0}
.node-root{background:#333;border-color:#1c1c1c}
.node-root .node-title{font-family:inherit;font-size:21px;font-weight:600;letter-spacing:-.4px;color:#f1f1f1}
.node-icon-button{color:#b9b9b9;border-radius:2px}
.node-icon-button:hover{background:#545454;color:#fff}
.node-document{background:#2b2b2b;border-color:#1b1b1b;color:#e2e2e2}
.node-document>label,.attachment-images h3,.document-files-head{color:#bdbdbd;font-size:10px;font-weight:500;letter-spacing:.5px}
.node-document textarea,.input-field,.note-field,.modal-input,.assistant-textarea{background:#222;color:#e6e6e6;border-color:#151515;border-radius:3px;box-shadow:inset 0 1px 2px #0002}
.node-document textarea{font-size:13px;line-height:1.65}
.node-document textarea::placeholder,.input-field::placeholder,.note-field::placeholder,.assistant-textarea::placeholder{color:#929292}
.node-document textarea:focus,.input-field:focus,.note-field:focus,.modal-input:focus,.assistant-textarea:focus{border-color:#91c5a2;box-shadow:none}
.image-preview{background:#242424;border-color:#171717;border-radius:3px}
.image-preview:hover{border-color:var(--accent)}
.inspector{background:#303030;border-color:#141414}
.inspector-head{padding:16px 15px;border-color:#191919;background:#353535}
.inspector-head strong{font-family:inherit;color:#d0d0d0;font-size:10px;font-weight:550;letter-spacing:.7px}
.inspector-body{padding:17px 15px 25px}
.inspector-field{margin-bottom:18px}
.field-label{font-size:10px;font-weight:500;color:#bcbcbc;letter-spacing:.5px}
.inspect-meta{color:#a2a2a2;font-size:10px}
.inspect-button,.inspect-button.add{background:#494949;border-color:#202020;color:#e4e4e4;font-weight:400;padding:8px 10px;font-size:11px}
.inspect-button:hover,.inspect-button.add:hover{background:#595959}
.inspect-button.danger,#deleteBranches{color:#e8aaa1}
.inspect-button.danger:hover{background:#56413e}
.tip{background:#353535;border-color:#484848;color:#b9b9b9;border-radius:3px;font-size:10px}
.canvas-hint{color:#b3b3b3;font-size:9px}
.canvas-toolbar{background:#2b2b2b;border-color:#191919;border-radius:3px;box-shadow:none;padding:3px}
.canvas-control{color:#c8c8c8;border-radius:2px;width:28px;height:28px}
.canvas-control:hover:not(:disabled){background:#505050;color:#fff}
.zoom-label,.snap-toggle{color:#d0d0d0;font-size:10px}
.snap-toggle input{accent-color:#91c5a2}
.snap-toggle:has(input:checked){color:#b4d6be}
.panel-resize:hover,.panel-resize:focus-visible{background:#91c5a255}
.branch-menu,.modal{background:#303030;border-color:#191919;border-radius:4px;box-shadow:0 8px 24px #0006;color:#e4e4e4}
.branch-menu{padding:4px}
.branch-menu button{border-radius:2px;padding:8px 10px;color:#ddd;font-size:11px}
.branch-menu button:hover:not(:disabled),.branch-menu button:focus-visible{background:#565656;color:#fff}
.modal-header h2{font-size:16px;font-weight:550;letter-spacing:-.2px}
.modal p{color:#c1c1c1}
.search-result{background:#404040;border-color:#494949;border-radius:3px;color:#e3e3e3}
.search-result:hover{border-color:var(--accent)}
.search-result small,.modal-note,.modal-empty{color:#aaa}
.keybindings-launch{background:#383838;border-color:#1b1b1b;border-radius:3px;color:#c8c8c8;padding:9px 11px;font-size:11px}
.keybindings-launch:hover{background:#505050;color:#fff}
.keybinding-row{border-color:#484848}
.keybinding-mouse select{background:#454545;color:#e5e5e5;border-color:#1c1c1c;border-radius:3px}
.assistant-tabs{background:#252525;border-color:#1b1b1b;border-radius:3px}
.assistant-tab{color:#b9b9b9;border-radius:2px}
.assistant-tab.active{background:#565656;color:#fff}
.feedback-item,.ai-messages,.ai-message{background:#3d3d3d;border-color:#1d1d1d;border-radius:3px}
.feedback-item p,.ai-message p{color:#e5e5e5!important}
.ai-message.mine{background:#4b443b}
.ai-message strong{color:#b4d6be}
.ai-status{background:#404040;border-color:#616161;color:#ccc}
.assistant-check,.small-help{color:#b7b7b7!important}
.toast{background:#424242;border-color:#757575;color:#eee;border-radius:3px}
.danger-action{background:#80483f!important;border-color:#502c26!important;color:#fff0e9!important}
.color-swatch{border-radius:3px;box-shadow:inset 0 0 0 4px #303030}
.color-swatch.active{border-color:#91c5a2;box-shadow:inset 0 0 0 4px #303030}
::selection{background:#3d6450;color:#fff}
@media(max-width:760px){.topbar{padding:0 8px}.workspace-header{padding:7px 10px}.workspace-header h1{font-size:14px}}

/* Small structural label inside the existing card header. */
.node-kind{position:absolute;left:0;right:0;top:0;height:16px;padding:2px 10px;background:#484848;border-bottom:1px solid #222;color:#dedede;font-size:8px;line-height:11px;letter-spacing:.55px;font-weight:400;pointer-events:none}.node-root .node-kind{left:0;top:0;height:16px;padding:2px 14px;font-size:8px}.node-header{padding-top:19px;padding-bottom:3px}.node-root .node-header{padding-top:23px;padding-bottom:7px}.node-color-bar{top:16px}
/* Quiet depth separates flat cards from the canvas without a visible perimeter. */
.node,.node-root{--card-shadow:0 2px 3px #0002,0 5px 12px #0002;border-color:transparent;box-shadow:var(--card-shadow)}
.node:hover,.node-root:hover{border-color:transparent;box-shadow:var(--card-shadow)}
.node.selected,.node-root.selected{border-color:transparent;box-shadow:var(--card-shadow),0 0 5px 1px color-mix(in srgb,var(--node-color) 40%,transparent),0 0 12px 3px color-mix(in srgb,var(--node-color) 22%,transparent),0 0 24px 5px color-mix(in srgb,var(--node-color) 9%,transparent);background:#333}
.node.selected .node-kind{background:#484848;color:#c6c6c6;box-shadow:none}
.node-kind{border-bottom:0}
/* Quieter typography suited to the compact, flat card surfaces. */
.node-title{font-size:14px;font-weight:550;line-height:1.25;letter-spacing:0;color:#e2e2e2}
.node-root .node-title{font-size:18px;font-weight:500;line-height:1.3;letter-spacing:0;color:#e4e4e4}
.node-kind,.node-root .node-kind{font-size:9px;font-weight:400;letter-spacing:.15px;color:#c6c6c6}

/* Project outline: independent disclosure state never rearranges the map. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sidebar .project-list{flex:0 1 auto;max-height:22vh;overflow:auto}
.registry{display:flex;flex-direction:column;flex:1;min-height:90px;margin-top:20px;overflow:hidden}
.registry-heading{display:flex;align-items:center;justify-content:space-between;padding:0 10px 9px;color:#b0b0b0;font-size:9px;font-weight:550;letter-spacing:1px}
#registryCount{color:#8e8e8e;font-weight:400;letter-spacing:0}
.registry-search{width:100%;min-width:0;padding:7px 8px;border:1px solid #181818;background:#222;color:#e3e3e3;border-radius:3px;font-size:11px}
.registry-search::placeholder{color:#929292}
.registry-scope{margin:5px 0 8px;padding:4px 6px;background:#333;border:1px solid #202020;color:#bbb;border-radius:3px;font-size:10px;width:100%}
.registry-tree{flex:1;min-height:0;overflow:auto;padding-bottom:8px}
.registry-row{display:flex;align-items:center;min-height:26px;padding-left:var(--registry-indent);border-radius:2px}
.registry-row:hover{background:#353535}.registry-row.active{background:#41464d}
.registry-toggle{flex:0 0 20px;display:grid;place-items:center;width:20px;height:24px;padding:0;border:0;background:transparent;color:#aaa}
.registry-toggle svg{width:11px;height:11px}.registry-toggle:disabled{cursor:default}
.registry-entry{display:flex;align-items:center;gap:7px;flex:1;min-width:0;padding:5px 5px 5px 0;border:0;background:transparent;color:#d2d2d2;font-size:11px;text-align:left}
.registry-entry>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.registry-dot{flex:0 0 4px;width:4px;height:12px;border-radius:1px}
.registry-row.match .registry-entry{color:#b4d6be}
.registry-project-name{padding:12px 7px 5px;color:#a6a6a6;font-size:10px;font-weight:550;border-bottom:1px solid #3b3b3b}
.registry-empty{padding:8px;color:#969696;font-size:11px;line-height:1.5}

.create-branch-mode .modal{width:min(360px,calc(100vw - 30px));padding:18px}.create-branch-mode .modal-header{margin-bottom:12px}.create-branch-mode .modal-input{font-size:16px;padding:10px 12px}

/* Three hierarchy sizes, with unchanged neutral surfaces and structural labels. */
.node-main .node-header{height:56px;min-height:56px;padding:21px 12px 5px}.node-main .node-title{font-size:15px;font-weight:450;line-height:1.3}.node-main .node-icon{width:26px;height:26px}.node-main .node-icon-button{width:26px;flex:0 0 26px}.node-main .node-kind{padding-left:12px}.create-color-field{margin-top:16px}.create-branch-mode .palette{gap:9px}

.creation-layout{border:0;padding:0;margin:16px 0 0;min-width:0}.creation-layout legend{padding:0}.layout-switch{display:flex;border:1px solid #191919;border-radius:3px;overflow:hidden;background:#272727}.layout-switch label{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;padding:9px 6px;color:#bdbdbd;font-size:11px;cursor:pointer}.layout-switch label+label{border-left:1px solid #191919}.layout-switch label:has(input:checked){background:#535353;color:#fff}.layout-switch input{width:12px;height:12px;margin:0;accent-color:#b9cce8}.layout-switch label:focus-within{outline:1px solid #9cb9df;outline-offset:-2px}

.registry-row[draggable="true"]{cursor:grab}.registry-row[draggable="true"]:active{cursor:grabbing}.registry-row.registry-dragging{opacity:.45}.registry-row.drop-before{box-shadow:inset 0 2px #95b7df}.registry-row.drop-after{box-shadow:inset 0 -2px #95b7df}

.registry-node-icon{display:flex;align-items:center;justify-content:center;flex:0 0 13px;width:13px;height:14px}.registry-node-icon svg{width:13px;height:13px;stroke-width:1.6}.node-icon svg{stroke-width:1.65}

/* Document tabs replace the duplicate project heading. */
.document-tabs{display:flex;align-items:stretch;flex:0 0 34px;min-height:34px;overflow-x:auto;overflow-y:hidden;background:#292929;border-bottom:1px solid #191919;gap:1px;scrollbar-width:thin}
.document-tabs button{border:0;background:transparent;color:#bdbdbd;font:11px 'Segoe UI',sans-serif;white-space:nowrap;padding:0 13px;cursor:pointer}
.board-tab{position:sticky;left:0;z-index:2;flex:0 0 auto;background:#292929!important;border-right:1px solid #1b1b1b!important}
.board-tab.active,.document-tab.active{background:#414141!important;box-shadow:inset 0 -2px var(--accent)}
.document-tab{display:flex;align-items:stretch;flex:0 0 auto;max-width:240px;background:#323232}
.document-tab>button:first-child{overflow:hidden;text-overflow:ellipsis;max-width:205px;text-align:left}
.document-tab.active>button,.board-tab.active{color:#f0f0f0}
.document-tab:hover{background:#454545}.document-tabs .close-document-tab{padding:0 8px;color:#999;font-size:16px}.close-document-tab:hover{color:#fff!important;background:#555}
.canvas-new-root{padding:5px 8px;border:1px solid #181818;border-radius:3px;background:#4a4a4a;color:#eee;font-size:11px;white-space:nowrap}.canvas-new-root:hover{background:#616161}
.node{transition:border-color .12s,box-shadow .22s ease-out,background .12s}
.document-view{display:flex;flex-direction:column;flex:1;min-height:0;background:#242424;overflow:hidden}
.document-format{display:flex;align-items:center;gap:4px;flex-wrap:wrap;flex:0 0 auto;padding:7px 12px;background:#333;border-bottom:1px solid #191919}
.document-format button,.document-format select{height:27px;padding:3px 9px;border:1px solid #1d1d1d;border-radius:3px;background:#494949;color:#e2e2e2;font-size:11px}
.document-format button:hover{background:#626262}.document-format .tool-divider{height:20px;margin:0 4px}
#documentSize{width:58px}
.document-scroll{flex:1;min-height:0;overflow:auto;padding:32px 24px 50px;scrollbar-gutter:stable}
.document-sheet{width:100%;max-width:760px;min-height:900px;margin:0 auto;padding:48px 64px 70px;background:#323232;box-shadow:0 2px 18px #0004;border:1px solid #3f3f3f;color:#e9e9e9;cursor:text;user-select:text}
.document-heading-label{font-size:9px;letter-spacing:1.5px;color:#909090;margin-bottom:10px;user-select:none}
#documentHeading{font-size:27px;line-height:1.25;margin:0 0 28px;font-weight:500;letter-spacing:-.5px;overflow-wrap:anywhere}
.rich-editor{min-height:680px;font-size:16px;line-height:1.7;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;cursor:text}
.rich-editor p{margin:0 0 12px}.rich-editor h1{font-size:32px;font-weight:600;line-height:1.25;margin:24px 0 16px}.rich-editor h2{font-size:24px;font-weight:550;line-height:1.3;margin:20px 0 12px}.rich-editor h3{font-size:20px;font-weight:550;line-height:1.3;margin:18px 0 10px}.rich-editor ul,.rich-editor ol{padding-left:25px;margin:10px 0 16px}.rich-editor blockquote{border-left:3px solid #777;margin:18px 0;padding-left:18px;color:#c4c4c4}
.document-attachment-section{max-width:760px;margin:20px auto 0;padding:18px 22px;background:#303030;border:1px solid #404040}
.document-attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-attachment-heading h2{margin:0;font-size:12px;font-weight:500;color:#bbb}
.app-shell.document-mode{grid-template-columns:var(--left-width) minmax(0,1fr) 0}.document-mode .inspector{display:none!important}#app.document-mode~.right-resize{display:none}
@media(max-width:1000px){.document-sheet{padding:35px}.document-scroll{padding:20px 15px 40px}}
@media(max-width:760px){.app-shell.document-mode{grid-template-columns:minmax(0,1fr)}.document-sheet{padding:24px;min-height:700px}.document-format{padding:6px}.document-format button{padding:3px 6px}}
@media(prefers-reduced-motion:reduce){.node{transition:none}}
/* The editor must scroll inside its viewport, never stretch the application grid.
   Clipping the outer containers also prevents caret scrolling from moving the whole view. */
html,body{overflow:hidden}
.app-shell{grid-template-rows:minmax(0,1fr)}
.main{min-height:0;overflow:clip}
.document-view{flex:1 1 0;height:0;min-height:0;overflow:clip}
.document-scroll{flex:1 1 0;height:0;min-height:0;overflow-x:hidden;overflow-y:scroll;overscroll-behavior-y:contain;scrollbar-width:auto;scrollbar-color:#727272 #292929}
.document-sheet,.document-attachment-section{flex-shrink:0}
/* Separate the document title from the editable body. */
#documentHeading{padding-bottom:20px;margin-bottom:28px;border-bottom:1px solid #505050}

.task-area-hint{color:#aaa;font-size:12px;margin:8px 0 18px}.document-attachment-section h2{font-size:16px}.document-attachment-section{margin-top:20px}.document-format #zipTask{margin-right:12px;white-space:nowrap}#zipTask:disabled{opacity:.55;cursor:wait}

.document-attachment-section:empty{display:none}

.attachment-image-item{position:relative;display:inline-flex;max-width:100%}.attachment-image-item .image-preview{margin:0}.attachment-remove{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;background:#383838;color:#ddd;border:1px solid #666;border-radius:3px;font:20px/1 'Segoe UI',sans-serif;cursor:pointer}.attachment-remove:hover,.attachment-remove:focus-visible{background:#6b3333;color:white;border-color:#b76c6c}.attachment-image-item>.attachment-remove{position:absolute;top:6px;right:6px;box-shadow:0 1px 3px #0008}.attachment-row>button.attachment-remove{flex:0 0 25px;width:25px;min-width:25px;padding:0;justify-content:center}

/* A clearer three-level hierarchy, matched by widthOf/heightOf for link routing. */
.node-root .node-header{height:84px;min-height:84px;padding:23px 18px 7px}.node-root .node-title{font-size:28px;font-weight:700;line-height:1.15;letter-spacing:-.5px;color:#f3f3f3}.node-root .node-icon{width:34px;height:34px}.node-root .node-icon svg{width:25px;height:25px}.node-root .node-icon-button{width:34px;flex:0 0 34px}
.node-main .node-header{height:64px;min-height:64px;padding:21px 14px 5px}.node-main .node-title{font-size:19px;font-weight:650;line-height:1.2;letter-spacing:-.2px;color:#ededed}.node-main .node-icon{width:28px;height:28px}.node-main .node-icon-button{width:28px;flex:0 0 28px}

.inherit-branch-color{padding:5px 8px;background:#383838;color:#ccc;border:1px solid #666;border-radius:3px;font-size:12px}.inherit-branch-color.active{border-color:#b5cce8;background:#454f5b;color:#fff}

/* Restore the original neutral hierarchy label bars. */
.node .node-kind,.node.selected .node-kind{display:block;height:16px;padding:2px 10px;background:#484848;color:#c6c6c6;font-size:9px;line-height:11px;font-weight:400;letter-spacing:.15px;text-shadow:none;box-shadow:none}.node-main .node-kind{padding-left:12px}.node-root .node-kind{padding-left:14px}
.node-color-bar{top:16px}.node .node-header{padding-top:19px;padding-bottom:3px}.node-main .node-header{padding-top:21px;padding-bottom:5px}.node-root .node-header{padding-top:23px;padding-bottom:7px}
.node .node-icon{width:28px;height:28px;flex:0 0 28px}.node .node-icon svg{width:21px;height:21px}.node .node-icon-button{width:28px;flex:0 0 28px}
.node-main .node-icon{width:34px;height:34px;flex-basis:34px}.node-main .node-icon svg{width:26px;height:26px}.node-main .node-icon-button{width:34px;flex-basis:34px}
.node-root .node-icon{width:42px;height:42px;flex-basis:42px}.node-root .node-icon svg{width:32px;height:32px}.node-root .node-icon-button{width:42px;flex-basis:42px}

/* Restrained color on the hierarchy bar, with neutral title surfaces. */
.node .node-header{background:#484848;transition:background .16s ease-out}
.node .node-kind,.node.selected .node-kind{background:color-mix(in srgb,var(--node-color) 60%,#414141);color:#e2e2e2}
@media(prefers-reduced-motion:reduce){.node .node-header{transition:none}}

/* Connect the branch-color side stripe to the top edge, including the label bar. */
.node .node-color-bar{top:0;z-index:2;pointer-events:none}



.node .node-description{border-top:0;box-shadow:none;padding:12px 14px 8px;display:flex;flex-direction:column;gap:0;background:#484848;overflow:hidden}.node-description-label{font-size:9px;font-weight:550;letter-spacing:.5px;color:#b9b9b9;flex:0 0 auto}.node-description-text{margin:0;flex:1;min-height:0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:18px;color:#ddd;user-select:text;cursor:text}

.branch-menu-group{padding:3px 0}.branch-menu-group+.branch-menu-group{border-top:1px solid #494949;margin-top:3px;padding-top:6px}.branch-menu-label{padding:5px 10px 4px;font-size:8px;line-height:1.3;color:#929292;letter-spacing:.8px;font-weight:400;text-transform:uppercase;cursor:default;pointer-events:none;user-select:none}.branch-menu-delete{padding-bottom:0}

/* Slightly lighter card surfaces let the existing soft shadow define their edges. */
.node,.node-root,.node.selected,.node-root.selected{background:#484848}

.color-picker-mode .modal{width:min(340px,calc(100vw - 32px))}.color-picker-mode .palette{gap:12px;justify-content:center;margin:22px 0}.color-picker-mode .color-swatch{width:28px;height:28px}.color-picker-hint{color:#bbb;font-size:12px;margin:0}.color-picker-mode .modal-actions{margin-top:18px}

#changeSelectedColors{display:flex;align-items:center;justify-content:space-between}.submenu-arrow{font-size:16px;color:#aaa;margin-left:16px}.branch-color-palette{position:fixed;z-index:60;display:grid;grid-template-columns:repeat(4,24px);gap:8px;padding:12px;background:#303030;border:1px solid #191919;border-radius:4px;box-shadow:0 5px 16px #0005}.branch-menu .branch-color-palette .color-swatch{width:24px;height:24px;min-height:24px;padding:0;display:block;border-radius:3px;background:var(--swatch);border:1px solid #777;box-shadow:none}.branch-menu .branch-color-palette .color-swatch:hover,.branch-menu .branch-color-palette .color-swatch:focus-visible{border-color:#fff;outline:1px solid #ddd;outline-offset:2px}.branch-menu .branch-color-palette .color-swatch.active{box-shadow:inset 0 0 0 2px #303030;border-color:#eee}

#branchColorItem{position:relative}#branchColorItem:has(.branch-color-palette:not(.hidden))::before,#branchColorItem:has(.branch-color-palette:not(.hidden))::after{content:"";position:absolute;top:0;bottom:0;width:9px;background:transparent}#branchColorItem::before{right:100%}#branchColorItem::after{left:100%}

.selection-marquee{position:absolute;z-index:10;border:1px solid #a1b7d3;background:#89a9d81c;pointer-events:none;border-radius:2px}.workspace.selecting,.workspace.selecting *{cursor:crosshair!important;user-select:none!important}

.registry-selection-marquee{position:fixed;z-index:30;border:1px solid #a1b7d3;background:#89a9d81c;pointer-events:none;border-radius:2px}.registry-tree.selecting,.registry-tree.selecting *{cursor:crosshair!important;user-select:none!important}

.app-shell.chat-mode{grid-template-columns:var(--left-width) minmax(0,1fr) 0}.chat-mode .inspector{display:none!important}#app.chat-mode~.right-resize{display:none}.ads-chat-view{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;background:#292929}.ads-chat-connection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 28px;background:#303030;color:#bdbdbd;font-size:11px}.ads-chat-messages{flex:1 1 0;min-height:0;overflow:auto;padding:24px max(24px,calc((100% - 800px)/2))}.ads-chat-welcome{max-width:640px;margin:50px auto;color:#aaa;line-height:1.7}.ads-chat-welcome h2{color:#e5e5e5;font-size:22px;font-weight:500}.ads-chat-welcome button{padding:10px 14px;background:#383838;color:#ddd;border:1px solid #555;border-radius:4px;font-size:12px}.ads-message{padding:16px 20px;margin:0 0 18px;background:#333;border:1px solid #424242;border-radius:5px}.ads-message.user{background:#3c4146}.ads-message-role{font-size:10px;color:#aeb9c5;margin-bottom:9px}.ads-message-text{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#e5e5e5;user-select:text}.ads-chat-composer{width:min(850px,100%);align-self:center;padding:14px 24px 18px;flex:0 0 auto}.ads-chat-composer textarea{width:100%;min-height:95px;max-height:180px;resize:vertical;background:#363636;color:#eee;border:1px solid #555;border-radius:5px;padding:13px;font-size:13px;line-height:1.6}.ads-chat-send-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.ads-chat-send-row span,.ads-chat-session-note{font-size:10px;color:#999}.ads-chat-session-note{margin:8px 0 0;line-height:1.5}.ads-chat-error{font-size:12px;color:#e7a0a0;margin:6px 0 0}.ads-chat-composer button:disabled{opacity:.45;cursor:default}.ads-chat-tab{position:static;border-left:1px solid #222!important}@media(max-width:760px){.app-shell.chat-mode{grid-template-columns:1fr}.ads-chat-connection{padding:10px 14px}}

.ads-auth-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.ads-auth-controls:has(select.hidden+select.hidden){display:none}.ads-auth-controls select{max-width:220px;padding:5px 7px;border:1px solid #555;border-radius:3px;background:#393939;color:#ddd;font-size:11px}.ads-auth-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.chatgpt-signin{border:1px solid #777;border-radius:5px;background:#eee;color:#171717;padding:9px 14px;font-size:12px;font-weight:600;white-space:nowrap}.chatgpt-signin:hover{background:#fff}.chatgpt-signin:disabled{opacity:.6;cursor:wait}

.ads-workspace-sharing{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;color:#ccc;font-size:11px}.ads-workspace-sharing input{accent-color:#91aac6}.ads-workspace-sharing span{color:#999;font-size:10px}

.ads-web-search{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:11px;color:#ddd}.ads-web-search input{accent-color:#91aac6}.ads-web-search span{font-size:10px;color:#999}.ai-inline-source{color:#aacbf1;text-decoration:underline;text-underline-offset:2px}.ai-source-list{margin-top:14px;padding-top:11px;border-top:1px solid #4b4b4b;display:flex;flex-wrap:wrap;gap:7px}.ai-source-heading{flex:0 0 100%;font-size:9px;color:#aaa;letter-spacing:.5px;text-transform:uppercase}.ai-source-list a{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 8px;border:1px solid #555;border-radius:3px;color:#c9ddf3;font-size:11px;text-decoration:none;overflow-wrap:anywhere}.ai-source-list a:hover{background:#4a5057;border-color:#8fa9c6}.ai-source-list a span{font-size:9px;color:#aaa}

.ai-search-status{font-size:10px;color:#aaa;margin-top:10px}
.ads-message-text strong{font-weight:700;color:#f3f3f3}.ads-message-text .ai-text-heading{font-size:1.1em}.ads-message-text code{font-family:Consolas,monospace;font-size:.9em;background:#242424;padding:2px 5px;border-radius:3px}.ads-message-text pre{white-space:pre-wrap;background:#242424;padding:12px;border-radius:4px;overflow:auto}.ads-message-text pre code{padding:0;background:none}
.ads-thinking{display:flex;align-items:center;gap:12px;min-height:44px;margin:0 0 18px;padding:8px 20px;color:#bfc8d0;font-size:12px}.ads-thinking-dots{display:inline-flex;align-items:center;gap:5px;height:20px}.ads-thinking-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#9bb9d5;animation:ads-thinking-pulse 1.3s ease-in-out infinite}.ads-thinking-dots i:nth-child(2){animation-delay:.16s}.ads-thinking-dots i:nth-child(3){animation-delay:.32s}@keyframes ads-thinking-pulse{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.ads-thinking-dots i{animation:none;opacity:.8}}
.ai-plan{margin-top:16px;padding:16px;background:#2c3033;border:1px solid #505b63;border-radius:5px}.ai-plan-heading{font-size:13px;font-weight:600;color:#d5e4ee}.ai-plan p,.ai-plan small{font-size:11px;color:#b5bec4}.ai-plan ul{padding-left:20px;margin:8px 0;list-style:disc}.ai-plan li{font-size:13px;margin:6px 0;color:#e5e5e5}.ai-plan li small{display:block;margin:3px 0}.ai-plan>small{display:block;margin-top:8px}.ai-plan button:disabled{opacity:.6;cursor:default}
.branch-status{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;flex:0 0 15px;--status-light:#ff505b}.branch-status.status-in_progress{--status-light:#ffd84d}.branch-status.status-done{--status-light:#47ed82}.status-lamp{display:block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--status-light) 25%,white),var(--status-light) 50%,color-mix(in srgb,var(--status-light) 80%,black));box-shadow:0 0 3px .5px var(--status-light),0 0 7px 2px color-mix(in srgb,var(--status-light) 48%,transparent),0 0 11px 2px color-mix(in srgb,var(--status-light) 16%,transparent)}.node-header>.branch-status{margin:0 3px;pointer-events:auto}.registry-entry>.branch-status{margin-right:2px}.branch-status-select{width:100%;background:#3b3b3b;color:#eee;color-scheme:dark}
.ai-edit-preview{padding-left:0!important;list-style:none!important}.ai-edit-preview li{padding:9px 0;border-bottom:1px solid #ffffff12}.ai-edit-preview li div{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.ai-edit-preview del{color:#b5bec4;text-decoration:none}.ai-edit-destructive strong{color:#f2a39e}
.tree-sort{font:inherit;font-size:11px;color:#dedede;background:#3c3c3c;border:1px solid #545454;border-radius:3px;padding:7px 8px;min-width:143px;margin-left:6px;color-scheme:dark}.tree-sort:hover{background:#464646}.tree-sort:focus-visible{outline:1px solid #91b8df;outline-offset:2px}.canvas-toolbar{max-width:calc(100% - 24px);flex-wrap:wrap}
.grid-move-status{position:absolute;bottom:76px;left:50%;transform:translateX(-50%);z-index:24;max-width:calc(100% - 32px);padding:11px 16px;border:1px solid #687682;border-radius:4px;background:#292d31f5;color:#e1eaf2;font-size:12px;line-height:1.5;box-shadow:0 4px 18px #0005;pointer-events:none}
.node{border-width:0}.node .node-header{height:var(--node-base-height);min-height:var(--node-base-height)}.node .node-header{padding-top:18px;padding-bottom:2px}.node-main .node-header{padding-top:20px;padding-bottom:4px}.node-root .node-header{padding-top:24px;padding-bottom:8px}
.node.content-open{z-index:8}


/* Color families occupy stable columns in every picker. */
.palette,#createBranchPalette,.branch-menu .branch-color-palette{display:grid;grid-template-columns:repeat(6,24px);gap:8px;justify-content:start}
.palette .inherit-branch-color{grid-column:1 / -1;grid-row:4}
.palette .color-swatch{width:24px;height:24px;margin:0}
.registry-visibility{flex:0 0 20px;width:20px;height:24px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#aaa}
.registry-visibility svg{width:14px;height:14px}.registry-visibility:hover{color:#eee}.registry-visibility[aria-pressed="false"]{color:#777}
.status-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.status-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:62px;padding:10px 3px;background:#383838;color:#bbb;border:1px solid #484848;border-radius:4px;font-size:11px;line-height:1.25;transition:background .15s,border-color .15s,color .15s}
.status-choice:hover{background:#424242;color:#eee}.status-choice[aria-pressed="true"]{background:#474747;border-color:#929292;color:#fff;box-shadow:inset 0 1px #ffffff0d}
.status-choice .branch-status{opacity:.45;transition:opacity .15s}.status-choice:hover .branch-status,.status-choice[aria-pressed="true"] .branch-status{opacity:1}

.library-view{display:flex;flex:1;min-height:0;flex-direction:column;background:#292929;overflow:hidden}.library-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #424242}.library-header h1{font-size:21px;margin:0;color:#eee}.library-header p{font-size:12px;color:#aaa;margin:6px 0 0}.library-body{display:grid;grid-template-columns:235px minmax(0,1fr);flex:1;min-height:0}.library-register{padding:16px 12px;background:#262626;border-right:1px solid #414141;overflow:auto}.library-register input{width:100%;padding:9px;background:#333;border:1px solid #505050;color:#eee;border-radius:3px;margin-bottom:16px}.library-register details{margin:0 0 14px}.library-register summary{font-size:12px;color:#c5c5c5;cursor:pointer;padding:5px}.library-register summary small{float:right;color:#888}.library-entry{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;margin-top:3px;text-align:left;background:transparent;color:#ccc;border:0;border-radius:3px;font-size:12px}.library-entry span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-entry:hover,.library-entry.active{background:#41464c;color:#fff}.library-entry-dot{width:5px;height:5px;border-radius:50%;background:#9bd3bb;flex:0 0 5px}.library-entry-dot.inactive{background:#666}.library-editor{padding:24px max(24px,calc((100% - 900px)/2));overflow:auto;min-width:0}.library-editor-head{display:flex;align-items:center;gap:16px;margin-bottom:22px}.library-editor-head input{flex:1;min-width:0;font-size:24px;font-weight:600;background:transparent;border:0;color:#eee;padding:6px 0}.library-properties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.library-properties label{color:#aaa;font-size:11px}.library-properties select{display:block;width:100%;margin-top:7px;padding:8px;color:#ddd;background:#373737;border:1px solid #505050;border-radius:3px}.library-enabled{display:flex;gap:8px;align-items:center;color:#bbb;font-size:12px;margin:14px 0 18px}.library-editor textarea{display:block;width:100%;min-height:400px;height:45vh;resize:vertical;background:#303030;color:#e6e6e6;border:1px solid #484848;border-radius:4px;padding:20px;font-size:14px;line-height:1.75}.library-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;font-size:11px;color:#999}.library-empty{max-width:580px;margin:60px auto;color:#aaa;line-height:1.8;font-size:14px}.library-empty h2{color:#eee;font-size:24px}@media(max-width:900px){.library-body{grid-template-columns:180px minmax(0,1fr)}.library-header{flex-wrap:wrap}.library-properties{grid-template-columns:1fr}}

.node .node-kind{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-mark{font-weight:650;letter-spacing:.2px}.node-mark-divider{padding:0 6px;opacity:.65}#inspectMarkPreview{overflow-wrap:anywhere}

.ads-chat-send-row{justify-content:flex-end}

.ads-chat-layout{display:flex;flex:1;min-height:0;overflow:hidden}.ads-chat-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.ads-chat-side{flex:0 0 44px;background:#292929;padding:8px 6px;border-left:1px solid #363636;overflow:auto}.ads-chat-side:has(details[open]){flex-basis:250px;padding:12px}.ads-chat-side summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:5px;color:#aaa;list-style:none;font-size:12px}.ads-chat-side summary::-webkit-details-marker{display:none}.ads-chat-side summary:hover{color:#eee}.ads-chat-side summary svg{width:18px;height:18px;flex-shrink:0}.ads-chat-side summary span{display:none}.ads-chat-side details[open] summary span{display:inline}.ads-chat-options{display:flex;flex-direction:column;gap:18px;padding:22px 5px}.ads-chat-options label{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:9px;row-gap:5px;margin:0;font-size:12px;color:#ccc;line-height:1.5}.ads-chat-options label input{margin:2px 0 0}.ads-chat-options label span{grid-column:2;color:#888;font-size:10px;margin:0}@media(max-width:850px){.ads-chat-layout{position:relative}.ads-chat-side:has(details[open]){position:absolute;right:0;top:0;bottom:0;width:250px;z-index:3;box-shadow:-8px 0 25px #0004}}

.ads-options-divider{border-top:1px solid #414141;margin:3px 0}.ads-options-caption{font-size:10px;color:#888;letter-spacing:.5px;text-transform:uppercase}.ads-chat-options .ads-chat-connection{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:0;background:transparent;overflow-wrap:anywhere}.ads-chat-options .ads-auth-controls{flex-direction:column;gap:8px;margin-top:12px}.ads-chat-options .ads-auth-controls select{width:100%;max-width:100%;min-width:0}.ads-chat-options .ads-auth-actions{display:flex;flex-direction:column;align-items:flex-start;gap:13px}.ads-chat-options .ads-auth-actions .text-link{font-size:11px}

.ads-chat-main .ads-chat-composer{width:100%;align-self:stretch;background:#252525;border-top:1px solid #4a4a4a;box-shadow:0 -5px 16px #0002;padding:18px max(24px,calc((100% - 800px)/2)) 16px}.ads-chat-main .ads-chat-composer textarea{background:#343434;border-color:#5a5a5a}

.ads-compose-box{position:relative;border:1px solid #555;border-radius:18px;background:#343434;overflow:hidden;transition:border-color .15s}.ads-compose-box:focus-within{border-color:#888}.ads-chat-main .ads-chat-composer{padding-top:14px;padding-bottom:14px}.ads-chat-main .ads-compose-box textarea{display:block;width:100%;min-height:56px;max-height:160px;margin:0;padding:16px 58px 15px 16px;resize:none;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;font-size:13px;line-height:1.65}.ads-chat-main .ads-compose-box textarea:focus-visible{outline:none}.ads-compose-send{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:34px;height:34px;min-height:0;padding:0;border:1px solid #666;border-radius:50%;background:#ddd;color:#252525;transition:background .15s,opacity .15s;font-size:20px}.ads-compose-send svg{width:20px;height:20px;stroke-width:2}.ads-compose-send:hover{background:#fff}.ads-compose-send:disabled{opacity:.35;cursor:default}

.ads-compose-send.busy svg{display:none}.ads-compose-send.busy::after{content:"…"}

.ads-message.user{background:#293e34;border-color:#43604e}.ads-message.user .ads-message-role{color:#a6c6b0}.ads-message.user .ads-message-text{color:#edf3ee}

/* Conversation layout: compact outgoing bubbles and open assistant replies. */
.ads-chat-messages .ads-message{width:100%;padding:0;margin:0 0 28px;border:0;border-radius:0;background:transparent;box-shadow:none}
.ads-chat-messages .ads-message.assistant .ads-message-role{margin-bottom:8px;color:#999;font-size:10px}
.ads-chat-messages .ads-message.user{width:fit-content;max-width:82%;margin:6px 0 28px auto;padding:12px 17px;border:0;border-radius:18px 18px 5px 18px;background:#293e34}
.ads-chat-messages .ads-message.user .ads-message-role{display:none}
.ads-chat-messages .ads-message.user .ads-message-text{font-size:14px;line-height:1.65;color:#edf3ee}
.ads-chat-messages .ads-message.assistant .ads-message-text{line-height:1.8}
.ads-chat-messages .ads-message .ai-plan{margin-top:16px}
@media(max-width:760px){.ads-chat-messages .ads-message.user{max-width:92%;padding:10px 14px}.ads-chat-messages .ads-message{margin-bottom:24px}}

.ads-chat-messages .ads-message.assistant .ads-message-role{display:none}

.ads-chat-messages .ai-search-status{display:none}

.ads-chat-messages .ads-message.user{background:#185637}.ads-chat-messages .ads-message.user .ads-message-text{color:#f1faf4}
.ads-chat-messages .ads-message.user .ads-message-text{color:#fff}

.ads-compose-add{position:absolute;left:10px;bottom:10px;width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#bbb;font-size:24px;z-index:1}.ads-compose-add:hover{background:#ffffff0c;color:#fff}.ads-chat-main .ads-compose-box textarea{padding-left:50px}.ads-chat-draft-images{display:flex;flex-wrap:wrap;gap:10px;padding:0 0 12px}.ads-chat-draft-images:empty{display:none}.chat-draft-image{position:relative;width:84px;height:72px;border:1px solid #555;border-radius:8px;background:#333}.chat-draft-image img{width:100%;height:100%;object-fit:cover;border-radius:7px}.chat-draft-image button{position:absolute;right:-6px;top:-6px;width:21px;height:21px;border:1px solid #777;border-radius:50%;padding:0;background:#292929;color:#eee;font-size:15px;line-height:18px}.chat-image-loading{align-self:center;font-size:11px;color:#aaa}.ads-message-images{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}.ads-message-images img{display:block;max-width:220px;max-height:170px;width:auto;height:auto;object-fit:contain;border-radius:8px;border:1px solid #ffffff24}.ads-compose-add:disabled{opacity:.35;cursor:default}

.ads-worked-time{font-size:11px;color:#909790;margin:0 0 12px}.ads-thinking #adsThinkingTime{margin-left:5px;color:#999;font-size:11px;font-variant-numeric:tabular-nums}.ads-queued-list{margin:8px 0 20px auto;padding:12px 14px;max-width:82%;background:#26352c;border:1px dashed #4c6755;border-radius:12px}.ads-queued-caption{font-size:10px;color:#a3b7a9;margin-bottom:9px}.ads-queued-item{display:flex;gap:12px;align-items:center;padding:6px 0;color:#e0ece4;font-size:12px}.ads-queued-item span{flex:1;white-space:pre-wrap;overflow-wrap:anywhere}.ads-queued-item button{border:0;background:transparent;color:#9daea3;padding:2px 5px;font-size:17px}

.ads-steering-status{font-size:10px;color:#b4d6be;margin-bottom:6px}
.canvas-toolbar .canvas-new-root,.canvas-toolbar .tree-sort{box-sizing:border-box;height:30px;min-height:30px;margin-top:0;margin-bottom:0;padding:0 10px;border:1px solid #545454;border-radius:3px;background:#414141;font-size:11px}.canvas-toolbar .canvas-new-root:hover,.canvas-toolbar .tree-sort:hover{background:#505050}

/* Node size is independent of its position in the hierarchy. */
.node.node-size-large .node-header{padding:24px 18px 8px}.node.node-size-large .node-title{font-size:28px;font-weight:700;line-height:1.15}.node.node-size-large .node-icon{width:42px;height:42px;flex-basis:42px}.node.node-size-large .node-icon svg{width:32px;height:32px}
.node.node-size-medium .node-header{padding:20px 14px 4px}.node.node-size-medium .node-title{font-size:19px;font-weight:650;line-height:1.2;letter-spacing:-.2px}.node.node-size-medium .node-icon{width:28px;height:28px;flex-basis:28px}.node.node-size-medium .node-icon svg{width:22px;height:22px}
.node.node-size-small .node-header{padding:18px 10px 2px}.node.node-size-small .node-title{font-size:14px;font-weight:550;line-height:1.25;letter-spacing:0}.node.node-size-small .node-icon{width:24px;height:24px;flex-basis:24px}.node.node-size-small .node-icon svg{width:20px;height:20px}.node.node-size-small .node-icon-button{width:24px;flex-basis:24px}
.node-image-body{height:192px;padding:10px;background:#383838;display:flex;align-items:center;justify-content:center}.node-image-body img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.node-image-body button{border:1px dashed #777;background:transparent;color:var(--soft);padding:12px;border-radius:4px}
.node-create-menu{min-width:260px;max-width:320px;padding:10px}.node-create-heading{font-size:11px;color:var(--muted);padding:4px 8px 10px;letter-spacing:.4px}.node-create-base{padding:8px;border-bottom:1px solid #505050;margin-bottom:5px}.node-create-base>span{display:block;font-size:13px;margin-bottom:9px}.node-create-base>div{display:flex;gap:6px}.node-create-base button{flex:1!important;width:auto!important;text-align:center!important;border:1px solid #626262!important;border-radius:4px!important;padding:8px!important}.node-create-menu>button{display:flex;align-items:center;gap:10px;padding:10px 8px!important}.node-create-menu>button svg{width:20px;height:20px;color:var(--accent);flex-shrink:0}.node-create-menu small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px;line-height:1.4}

.workspace.image-drop-active::after{content:attr(data-image-drop-label);position:absolute;inset:16px;border:2px dashed var(--accent);border-radius:8px;background:#24443244;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;font-weight:600;pointer-events:none;z-index:12;text-shadow:0 1px 4px #000}

.status-visibility-toggle{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--soft);cursor:pointer}.status-visibility-toggle input{position:absolute;opacity:0;width:1px;height:1px}.status-switch-track{margin-left:auto;width:32px;height:18px;border-radius:12px;background:#555;position:relative;transition:background .15s}.status-switch-track::after{content:"";position:absolute;width:12px;height:12px;top:3px;left:3px;border-radius:50%;background:#ddd;transition:transform .15s}.status-visibility-toggle input:checked+.status-switch-track{background:#426b50}.status-visibility-toggle input:checked+.status-switch-track::after{transform:translateX(14px);background:#b2dfbf}.status-visibility-toggle input:focus-visible+.status-switch-track{outline:2px solid var(--accent);outline-offset:3px}
.workspace.panning .stage{will-change:transform}

.document-tabs .board-tab{display:inline-flex;align-items:center;gap:7px}.document-tabs .board-tab svg{width:15px;height:15px;flex:none;opacity:.8}.document-tabs .board-tab.active svg{color:var(--accent);opacity:1}

.workspace-heading {
  flex-shrink: 0;
  padding: 3px 14px 0;
  border-bottom: 1px solid #181818;
  background: #262626;
}
.workspace-heading .document-tabs {
  min-height: 36px;
  gap: 14px;
  background: transparent;
  border: 0;
}
.workspace-heading .board-tab,
.workspace-heading .document-tab {
  position: static;
  padding-inline: 3px;
  border: 0 !important;
  background: transparent !important;
}
.workspace-heading .board-tab:hover { color: #fff; }
.workspace-heading .board-tab.active,
.workspace-heading .document-tab.active {
  background: transparent !important;
  box-shadow: inset 0 -2px var(--accent);
  color: #eff7f1;
}

.canvas-toolbar { gap: 3px; padding: 3px 5px; }
.canvas-toolbar .canvas-new-root,
.canvas-toolbar .tree-sort { height: 24px; min-height: 24px; padding-inline: 7px; }
.canvas-toolbar .tree-sort { min-width: 126px; margin-left: 2px; }
.canvas-toolbar .canvas-control { width: 24px; height: 24px; }
.canvas-toolbar .canvas-control svg { width: 14px; height: 14px; }
.canvas-toolbar .tool-divider { height: 15px; margin-inline: 2px; }
.canvas-toolbar .zoom-label { min-width: 34px; }
.canvas-toolbar .snap-toggle input { width: 12px; height: 12px; }

body { display: flex; flex-direction: column; }
#app { flex: 1; min-height: 0; height: auto; }
.app-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 2px 8px;
  border-bottom: 1px solid #191919;
  background: #242424;
  position: relative;
  z-index: 20;
}
.app-menu details { position: relative; }
.app-menu summary { list-style: none; }
.app-menu summary::-webkit-details-marker { display: none; }
.app-menu button, .app-menu summary {
  display: block;
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dedede;
  font-size: 12px;
  cursor: pointer;
}
.app-menu button:hover, .app-menu summary:hover, .app-menu details[open] summary { background: #414141; }
.app-menu-items {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: max-content;
  padding: 4px;
  border: 1px solid #505050;
  border-radius: 5px;
  background: #2e2e2e;
  box-shadow: 0 6px 16px #0005;
}
.app-menu-items button { width: 100%; text-align: left; }
.workspace { overflow: clip; }

/* Media descriptions can expand without rearranging the board. */
.node.node-type-image.content-open,
.node.node-type-document.content-open { z-index: 5; }
.workspace { overflow-anchor: none; }

.workspace-heading .open-document-tabs {
  min-height: 30px;
  padding-top: 3px;
  gap: 4px;
  border-top: 1px solid #ffffff12;
}
.workspace-heading .open-document-tabs .document-tab {
  min-height: 27px;
  background: #2e2e2e !important;
  border-radius: 4px 4px 0 0;
}
.workspace-heading .open-document-tabs .document-tab.active {
  background: #37483d !important;
}
.library-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.library-header{padding:12px 16px}.library-empty{margin-top:36px}
.project-context-menu{position:fixed;z-index:10000;min-width:180px;padding:5px;background:#303030;border:1px solid #505050;border-radius:5px;box-shadow:0 6px 20px #0005}.project-context-menu button{display:block;width:100%;padding:9px 12px;border:0;background:transparent;color:#eee;text-align:left;border-radius:3px}.project-context-menu button:hover{background:#484848}.project-context-menu button:last-child{color:#efa5a5}.project-context-menu.hidden{display:none}[data-theme="light"] .project-context-menu{background:#f5f7f5;border-color:#bbc5bc}[data-theme="light"] .project-context-menu button{color:#26362a}[data-theme="light"] .project-context-menu button:hover{background:#dde8df}
.visual-node-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:16px}.visual-node-picker button{display:flex;align-items:center;gap:10px;padding:11px;text-align:left;background:#373737;border:1px solid #505050;border-radius:5px;color:#eee}.visual-node-picker svg{width:25px;height:25px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7}.visual-node-picker strong,.visual-node-picker small{display:block}.visual-node-picker small{font-size:11px;color:#b8b8b8;line-height:1.4;margin-top:4px}.visual-node-picker button[aria-pressed=true]{border-color:#9bd3bb;background:#35483e}.quick-node-ghost{position:fixed;pointer-events:none;z-index:10000;padding:15px 25px;background:#35483e;border:1px solid #9bd3bb;border-radius:5px;color:white;box-shadow:0 5px 18px #0005}.quick-node-ghost.hidden{display:none}[data-theme="light"] .visual-node-picker button{background:#eef3ee;color:#25372a}[data-theme="light"] .visual-node-picker small{color:#526457}
.node-properties-bar{display:flex;align-items:flex-start;gap:16px;padding:10px 18px;background:#2e2e2e;border-bottom:1px solid #444;flex-shrink:0;overflow-x:auto}.node-properties-bar.hidden{display:none}.node-properties-bar .inspector-field{margin:0;flex-shrink:0}.node-properties-bar .inspector-field:has(#inspectTitle){flex:1;min-width:180px}.node-properties-bar .inspector-field:has(#inspectMark){width:115px}.node-properties-bar .field-label{font-size:10px;letter-spacing:.06em;margin-bottom:6px}.node-properties-bar .input-field{height:34px;padding:6px 9px;font-size:13px;width:100%}.node-properties-bar .inspect-meta{font-size:10px;margin:4px 0 0;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-properties-bar .palette{gap:4px;margin:0}.node-properties-bar .color-swatch{width:19px;height:19px;padding:3px;border-width:1px}.node-properties-bar .status-buttons{gap:4px}.node-properties-bar .status-choice{min-height:43px;min-width:60px;padding:4px 6px;gap:3px;font-size:10px}.node-properties-bar .status-visibility-toggle{font-size:11px;margin-top:18px;gap:6px}.inspector-node-picker{grid-template-columns:1fr}.inspector-node-picker button{padding:8px}.inspector-node-picker small{font-size:10px}.inspector-body .note-field{height:230px;min-height:150px}.inspector-body .inspect-button{padding:9px;font-size:12px}[data-theme="light"] .node-properties-bar{background:#eef2ed;border-color:#c4cfc4}
.chat-mode .node-properties-bar,.document-mode .node-properties-bar{display:none}.node-properties-bar select[hidden],.inspector select[hidden]{display:none}.node-properties-bar .status-choice .branch-status{margin:0}
/* One continuous properties surface below the workspace tabs. */
.node-properties-bar{
  background:#393939;
  border-top:1px solid #505050;
  border-bottom:1px solid #202020;
  padding:16px 20px;
  gap:20px;
  min-height:104px;
  align-items:flex-start;
}
.node-properties-bar .inspector-field+.inspector-field{
  border-left:1px solid #505050;
  padding-left:18px;
}
.node-properties-bar .inspector-field:has(#inspectTitle){min-width:210px}
.node-properties-bar .field-label{color:#c9c9c9;font-size:10px;margin-bottom:9px}
.node-properties-bar .input-field{background:#2c2c2c;border:1px solid #555;border-radius:4px;height:36px}
.node-properties-bar .inspect-meta{color:#b2b2b2}
.node-properties-bar .status-choice{background:#414141;border-color:#565656;min-height:47px}
.node-properties-bar .status-choice[aria-pressed=true]{background:#505050;border-color:#8caa99}
.with-inspector:not(.chat-mode):not(.document-mode) .inspector{
  padding-top:var(--node-tabs-height,40px);
  background:#393939;
  border-left:1px solid #202020;
  position:relative;
}
.with-inspector:not(.chat-mode):not(.document-mode) .inspector::before{
  content:"";position:absolute;top:0;left:0;right:0;height:var(--node-tabs-height,40px);
  background:#262626;border-bottom:1px solid #505050;
}
.with-inspector .inspector-head{
  background:#393939;
  min-height:var(--node-properties-height,104px);
  padding:16px;
  align-items:flex-start;
  border-bottom:1px solid #202020;
  border-top:1px solid #505050;
}
.inspector-body{padding:18px 16px}
.inspector-body .field-label{color:#c9c9c9}
.inspector-body .note-field{background:#2d2d2d;border-color:#555;border-radius:4px}
.inspector-node-picker button{background:#414141;border-color:#555}
.inspector-node-picker button[aria-pressed=true]{background:#405347;border-color:#8caa99}
[data-theme="light"] .node-properties-bar,
[data-theme="light"] .with-inspector .inspector,
[data-theme="light"] .with-inspector .inspector-head{background:#e8eee8}
[data-theme="light"] .node-properties-bar .field-label,
[data-theme="light"] .inspector-body .field-label{color:#4a5b4d}
[data-theme="light"] .node-properties-bar .input-field,
[data-theme="light"] .inspector-body .note-field{background:#fafcf9;color:#233728;border-color:#bbc9bd}
.visual-node-picker button:is([data-node-choice^="base_"],[data-inspect-preset^="base_"]){min-height:64px}
.visual-node-picker button:is([data-node-choice^="base_"],[data-inspect-preset^="base_"]) svg{
  box-sizing:content-box;padding:5px;background:#ffffff08;border:1px solid #ffffff24;border-radius:4px;
}
.visual-node-picker button:is([data-node-choice="base_large"],[data-inspect-preset="base_large"]) svg{width:30px;height:30px}
.visual-node-picker button:is([data-node-choice="base_medium"],[data-inspect-preset="base_medium"]) svg{width:21px;height:21px;margin-left:4px;margin-right:5px}
.visual-node-picker button:is([data-node-choice="base_small"],[data-inspect-preset="base_small"]) svg{width:13px;height:13px;margin-left:8px;margin-right:9px}
.visual-node-picker button:is([data-node-choice="base_large"],[data-inspect-preset="base_large"]) strong{font-size:14px}
.visual-node-picker button:is([data-node-choice="base_medium"],[data-inspect-preset="base_medium"]) strong{font-size:13px}
.visual-node-picker button:is([data-node-choice="base_small"],[data-inspect-preset="base_small"]) strong{font-size:12px}
.node-properties-bar .status-buttons.status-disabled{opacity:.35}
.node-properties-bar .status-buttons.status-disabled button{cursor:default}
.node-properties-bar .status-buttons.status-disabled .status-lamp{box-shadow:none}
.workspace-heading{background:#263c31;border-bottom-color:#466452}
.workspace-heading .board-tab{color:#c5d4c9}
.workspace-heading .board-tab:hover{background:#314b3d}
.workspace-heading .board-tab.active{background:#304b3c;color:#fff;border-bottom-color:#9bd3bb}
.with-inspector:not(.chat-mode):not(.document-mode) .inspector::before{background:#263c31;border-bottom-color:#466452}
[data-theme="light"] .workspace-heading,
[data-theme="light"] .with-inspector:not(.chat-mode):not(.document-mode) .inspector::before{background:#d2e5d7}

/* Stretch the description while keeping the type picker and actions reachable. */
.with-inspector:not(.chat-mode):not(.document-mode) .inspector{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.with-inspector .inspector-head{flex-shrink:0}
.inspector-body{
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  overflow-y:auto;
  gap:16px;
}
.inspector-body>*,.inspector-body>.inspector-field{flex-shrink:0;margin:0}
.inspector-body>.inspector-field:has(#inspectNotes){
  display:flex;
  flex-direction:column;
  flex:1 0 180px;
  min-height:180px;
}
.inspector-body #inspectNotes{
  flex:1;
  height:auto;
  min-height:120px;
  resize:none;
}
.inspector-body .inspector-field:has(#inspectNotes) .inspect-meta{margin:8px 0 0}
.inspector-node-picker{margin:8px 0 0}
.node-properties-bar{align-items:stretch}
.node-properties-bar>.inspector-field{display:flex;flex-direction:column;justify-content:flex-start}
.node-properties-bar>.inspector-field:has(#inspectStatusEnabled){justify-content:center}
.node-properties-bar .status-visibility-toggle{margin:0;min-height:100%;display:flex;align-items:center}
.node-properties-bar>.inspector-field+.inspector-field{border-left:1px solid #505050}
.with-inspector:not(.chat-mode):not(.document-mode) .inspector::before{
  left:-1px;
  right:0;
  border-left:0;
}

/* Properties overlay the board so selecting a node never resizes its viewport. */
.app-shell{position:relative}
.app-shell.with-inspector:not(.chat-mode):not(.document-mode){
  grid-template-columns:var(--left-width) minmax(0,1fr) 0;
  transition:none;
}
.with-inspector:not(.chat-mode):not(.document-mode) .inspector{
  position:absolute;
  top:var(--node-tabs-height,40px);
  right:0;
  bottom:0;
  width:var(--right-width);
  padding-top:0;
  z-index:8;
}
.with-inspector:not(.chat-mode):not(.document-mode) .inspector::before{display:none}
.with-inspector:not(.chat-mode):not(.document-mode) .node-properties-bar{
  position:absolute;
  top:var(--node-tabs-height,40px);
  left:0;
  right:var(--right-width);
  z-index:8;
  box-shadow:0 4px 10px #0002;
}
.with-inspector:not(.chat-mode):not(.document-mode) .workspace-heading{
  position:relative;
  z-index:9;
}
@media(max-width:760px){
  .app-shell.with-inspector:not(.chat-mode):not(.document-mode){grid-template-columns:minmax(0,1fr) 0}
}

@keyframes node-properties-reveal{
  from{transform:translateY(-100%);opacity:0}
  to{transform:translateY(0);opacity:1}
}
.with-inspector:not(.chat-mode):not(.document-mode) .node-properties-bar:not(.hidden){
  animation:node-properties-reveal 240ms cubic-bezier(.22,.75,.25,1) both;
}
@media(prefers-reduced-motion:reduce){
  .with-inspector:not(.chat-mode):not(.document-mode) .node-properties-bar:not(.hidden){animation:none}
}

/* Keep both panels mounted while they slide back behind the workspace edges. */
.app-shell:not(.chat-mode):not(.document-mode) .inspector{
  position:absolute;
  top:var(--node-tabs-height,40px);
  right:0;
  bottom:0;
  width:var(--right-width);
  padding-top:0;
  z-index:8;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:0;
  background:#393939;
  transform:translateX(100%);
  visibility:hidden;
  pointer-events:none;
  transition:transform 240ms cubic-bezier(.22,.75,.25,1),visibility 0s 240ms;
}
.app-shell.with-inspector:not(.chat-mode):not(.document-mode) .inspector{
  transform:translateX(0);
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}
.app-shell:not(.chat-mode):not(.document-mode) .inspector::before{display:none}
.app-shell .inspector-head{
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#393939;
}
.app-shell:not(.chat-mode):not(.document-mode) .node-properties-bar{
  position:absolute;
  top:var(--node-tabs-height,40px);
  left:0;
  right:var(--right-width);
  z-index:8;
  display:flex!important;
  animation:none!important;
  transform:translateY(0);
  opacity:1;
  visibility:visible;
  transition:transform 240ms cubic-bezier(.22,.75,.25,1),opacity 240ms ease,visibility 0s;
}
.app-shell:not(.chat-mode):not(.document-mode) .node-properties-bar.hidden{
  transform:translateY(-100%);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:transform 240ms cubic-bezier(.22,.75,.25,1),opacity 240ms ease,visibility 0s 240ms;
}
.app-shell .workspace-heading{position:relative;z-index:9}
@media(prefers-reduced-motion:reduce){
  .app-shell .inspector,.app-shell .node-properties-bar{transition:none!important}
}
.app-shell:not(.chat-mode):not(.document-mode) .node-properties-bar{right:0;padding-right:20px}
.node-properties-bar .node-properties-identity{
  order:10;
  flex:0 0 calc(var(--right-width) - 20px);
  margin-left:auto;
  min-height:0;
  height:auto;
  padding:0 0 0 18px;
  border:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.app-shell:not(.chat-mode):not(.document-mode) .inspector{
  top:calc(var(--node-tabs-height,40px) + var(--node-properties-height,104px));
}

.workspace-heading{padding:0;background:#303030}
.workspace-heading #workspaceTabs{
  background:#263c31;
  padding:3px 14px 0;
  color:#edf5ee;
}
.workspace-heading #workspaceTabs .board-tab{
  color:#e2ece4;
  font-weight:500;
  text-shadow:0 1px 1px #0003;
}
.workspace-heading #workspaceTabs .board-tab svg{color:#c5dfcc;opacity:1}
.workspace-heading #workspaceTabs .board-tab.active{color:#fff;font-weight:650}
.workspace-heading #workspaceTabs .board-tab:hover{color:#fff}
.workspace-heading #documentTabs{
  background:#303030;
  padding:4px 14px 0;
  border-top:1px solid #1f2922;
}
.workspace-heading #documentTabs .document-tab{background:#393939!important;color:#ddd}
.workspace-heading #documentTabs .document-tab.active{background:#484848!important;color:#fff;box-shadow:inset 0 -2px #aeb6af}
[data-theme="light"] .workspace-heading #workspaceTabs{background:#d2e5d7}
[data-theme="light"] .workspace-heading #workspaceTabs .board-tab,
[data-theme="light"] .workspace-heading #workspaceTabs .board-tab svg{color:#25432e;text-shadow:none}
[data-theme="light"] .workspace-heading #documentTabs{background:#e5e9e4}
[data-theme="light"] .workspace-heading #documentTabs .document-tab{background:#d8ded7!important;color:#273b2b}
.workspace-heading{border-bottom-color:#444}
.workspace-heading #documentTabs{border-bottom:1px solid #444;box-shadow:none}
.workspace-heading #documentTabs .document-tab.active{box-shadow:inset 0 -2px #aaa}
.workspace-heading #workspaceTabs{position:relative}
.workspace-heading #workspaceTabs .board-tab.active{box-shadow:none!important}
.workspace-heading #workspaceTabs::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  height:2px;
  width:var(--tab-indicator-width,0px);
  transform:translateX(var(--tab-indicator-x,0px));
  opacity:var(--tab-indicator-opacity,0);
  background:#9bd3bb;
  pointer-events:none;
  transition:transform 220ms cubic-bezier(.22,.75,.25,1),width 220ms cubic-bezier(.22,.75,.25,1),opacity 120ms;
}
@media(prefers-reduced-motion:reduce){
  .workspace-heading #workspaceTabs::after{transition:none}
}

/* Let Chromium repaint text at the current zoom after motion settles. */
.stage{will-change:auto}
.workspace.panning .stage{will-change:transform}

.project-files-view{display:flex;flex-direction:column;flex:1;min-height:0;background:#292929;overflow:hidden}
.project-files-header{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid #424242;gap:16px}
.project-files-header h1{font-size:21px;margin:0;color:#eee}
.project-files-header p{color:#aaa;font-size:12px;margin:6px 0 0}
.project-files-header .toolbar-button{background:#3c5143;border:1px solid #64816d;color:#edf7ef;border-radius:4px}
.project-files-filters{display:flex;gap:10px;padding:16px 26px}
.project-files-filters input,.project-files-filters select{background:#343434;border:1px solid #505050;color:#eee;border-radius:4px;padding:9px 12px;font-size:12px;min-width:0}
.project-files-filters input{flex:1}
.project-files-filters select{max-width:230px}
.project-files-list{overflow:auto;flex:1;min-height:0;padding:0 26px 26px}
.project-file-row,.project-file-columns{display:grid;grid-template-columns:minmax(170px,2fr) minmax(120px,1fr) 135px 75px 32px;align-items:center;gap:16px}
.project-file-columns{font-size:10px;color:#999;letter-spacing:.08em;padding:12px;border-bottom:1px solid #4a4a4a}
.project-file-row{padding:12px;border-bottom:1px solid #ffffff0c;font-size:12px;color:#bbb}
.project-file-row:hover{background:#ffffff05}
.project-file-row button{border:0;background:none;color:inherit;text-align:left;padding:0}
.project-file-name{display:flex;align-items:center;gap:12px;color:#eee!important;min-width:0}
.project-file-name span,.project-file-owner{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-file-name img{width:42px;height:36px;object-fit:cover;border-radius:4px}
.project-file-name svg{width:26px;height:26px;color:#9bd3bb;flex-shrink:0;margin:5px 8px}
.project-file-owner:hover{color:#9bd3bb}
.project-file-size{font-variant-numeric:tabular-nums}
.project-file-actions{position:relative}
.project-file-actions summary{cursor:pointer;list-style:none;font-size:20px;text-align:center}
.project-file-actions>div{position:absolute;right:0;top:28px;width:155px;background:#353535;border:1px solid #555;padding:6px;z-index:2;box-shadow:0 5px 16px #0004;border-radius:4px}
.project-file-actions>div button{display:block;padding:8px;width:100%}
.project-file-actions>div button:hover{background:#464646}
.project-files-empty{max-width:480px;margin:70px auto;text-align:center;color:#aaa;font-size:14px;line-height:1.7}
.project-files-empty>svg{width:48px;height:48px;color:#9bd3bb}
.project-files-empty h2{font-size:22px;color:#eee;font-weight:500}
.project-files-empty button{margin:20px auto;background:#3c5143;border:1px solid #64816d;color:#edf7ef}
.workspace-heading #workspaceTabs .board-tab,
.workspace-heading #workspaceTabs .board-tab.active{font-weight:500}
.workspace-heading #workspaceTabs .board-tab.active svg{color:#c5dfcc}
[data-theme="light"] .project-files-view{background:#f3f5f0}
[data-theme="light"] .project-files-header h1,[data-theme="light"] .project-files-empty h2{color:#233728}
[data-theme="light"] .project-files-header p,[data-theme="light"] .project-files-empty{color:#5a6c5d}
[data-theme="light"] .project-files-filters input,[data-theme="light"] .project-files-filters select{background:#fff;color:#25372a;border-color:#c1cec1}
[data-theme="light"] .project-file-name{color:#25372a!important}
[data-theme="light"] .project-file-row{color:#506452;border-color:#d7e0d5}
@media(max-width:1000px){.project-file-row,.project-file-columns{grid-template-columns:minmax(140px,2fr) minmax(100px,1fr) 90px 65px 25px;gap:8px}.project-files-filters{flex-wrap:wrap}}

.canvas-toolbar{
  transition:right 240ms cubic-bezier(.22,.75,.25,1),max-width 240ms cubic-bezier(.22,.75,.25,1);
}
.with-inspector:not(.chat-mode):not(.document-mode) .canvas-toolbar{
  right:calc(var(--right-width) + 22px);
  max-width:calc(100% - var(--right-width) - 44px);
}
@media(prefers-reduced-motion:reduce){
  .canvas-toolbar{transition:none}
}

.task-planner-view{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:#292929}
.task-planner-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px;border-bottom:1px solid #424242}
.task-planner-header h1{margin:0;font-size:21px;color:#eee}
.task-planner-header p{margin:6px 0 0;color:#aaa;font-size:12px}
.task-planner-counts{display:flex;gap:20px;color:#aeb9af;font-size:11px}
.task-planner-counts>span{display:flex;flex-direction:column;gap:5px;min-width:45px}
.task-planner-counts strong{font-size:20px;font-weight:550;color:#e8eee9}
.task-planner-filters{display:flex;gap:10px;padding:16px 26px}
.task-planner-filters input,.task-planner-filters select{min-width:0;background:#343434;border:1px solid #505050;color:#eee;border-radius:4px;padding:9px 12px;font-size:12px}
.task-planner-filters input{flex:1}
.task-planner-filters select{max-width:240px}
.task-planner-next{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 26px 18px;padding:17px 20px;background:#2b3d32;border:1px solid #466450;border-left:3px solid #9bd3bb;border-radius:5px}
.task-planner-next>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.task-next-label{font-size:10px;letter-spacing:.1em;color:#a4c6af}
.task-planner-next strong{font-size:16px;font-weight:550;color:#eef8f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-planner-next small{font-size:11px;color:#abc0b0}
.task-planner-next button{flex-shrink:0;padding:8px 14px;border:1px solid #739880;background:#3c5945;color:#fff;border-radius:4px}
.task-planner-legend,.planner-task-row{display:grid;grid-template-columns:minmax(200px,1fr) 105px 155px 130px;gap:16px;align-items:center}
.task-planner-legend{padding:10px 38px;font-size:10px;letter-spacing:.08em;color:#999;border-bottom:1px solid #454545}
.task-planner-list{overflow:auto;flex:1;min-height:0;padding:0 26px 26px}
.planner-task-row{padding:16px 12px;border-bottom:1px solid #ffffff0c;min-height:80px}
.planner-task-row:hover{background:#ffffff04}
.planner-task-main{display:flex;gap:12px;align-items:center;min-width:0}
.planner-task-main>div{display:flex;flex-direction:column;min-width:0;gap:5px;flex:1}
.task-title{padding:0;border:0;background:none;text-align:left;color:#eee;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-title:hover{color:#b5e2c2}
.task-project{font-size:11px;color:#999}
.task-document-link{padding:4px;border:0;background:none;color:#aab7ad;flex-shrink:0}
.task-document-link svg{width:18px;height:18px}
.planner-task-row select,.task-date input{width:100%;min-width:0;background:#333;border:1px solid #505050;color:#ddd;border-radius:4px;padding:8px;font-size:11px;min-height:33px}
.task-date input{color-scheme:dark}
.task-priority.priority-high{color:#ecd09d;border-color:#716247}
.task-priority.priority-low{color:#999}
.task-date small{display:block;color:#b3c5b9;font-size:10px;margin-top:5px}
.task-date.overdue input{border-color:#885e5e}
.task-date.overdue small{color:#e5a4a4}
.task-planner-empty{margin:60px auto;text-align:center;color:#aaa;line-height:1.7;font-size:13px}
.task-planner-empty h2{font-size:20px;color:#ddd;font-weight:500}
[data-theme="light"] .task-planner-view{background:#f3f5f0}
[data-theme="light"] .task-planner-header h1,[data-theme="light"] .task-planner-empty h2,[data-theme="light"] .task-title,[data-theme="light"] .task-planner-counts strong{color:#263c2c}
[data-theme="light"] .task-planner-header p,[data-theme="light"] .task-project,[data-theme="light"] .task-planner-counts,[data-theme="light"] .task-planner-empty{color:#5e7062}
[data-theme="light"] .task-planner-filters input,[data-theme="light"] .task-planner-filters select,[data-theme="light"] .planner-task-row select,[data-theme="light"] .task-date input{background:#fff;color:#294130;border-color:#bfccbf;color-scheme:light}
[data-theme="light"] .task-planner-next{background:#deece0;border-color:#aac6af}
[data-theme="light"] .task-planner-next strong{color:#274532}
[data-theme="light"] .task-next-label,[data-theme="light"] .task-planner-next small{color:#52775c}
[data-theme="light"] .planner-task-row,[data-theme="light"] .task-planner-legend,[data-theme="light"] .task-planner-header{border-color:#d3ddd2}
@media(max-width:1100px){
  .task-planner-legend,.planner-task-row{grid-template-columns:minmax(160px,1fr) 90px 135px 110px;gap:10px}
  .task-planner-counts{gap:10px}
  .task-planner-filters{flex-wrap:wrap}
}
/* Compact task register: keep controls within a comfortable reading width. */
.task-planner-header,.task-planner-filters,.task-planner-next,.task-planner-legend,.task-planner-list{width:calc(100% - 40px);max-width:1040px;box-sizing:border-box;margin-left:auto;margin-right:auto}
.task-planner-header{padding:18px 0 14px}
.task-planner-filters{padding:12px 0;gap:8px}
.task-planner-next{padding:11px 14px;margin-bottom:12px}
.task-planner-next strong{font-size:14px}
.task-planner-next>div{gap:4px}
.task-planner-legend,.planner-task-row{grid-template-columns:minmax(190px,1fr) 82px 133px 122px;gap:12px}
.task-planner-legend{padding:8px 12px}
.task-planner-list{padding:0 0 24px}
.planner-task-row{min-height:51px;padding:8px 10px;border-left:3px solid var(--task-color);background:color-mix(in srgb,var(--task-color) 7%,#303030);margin-bottom:3px;border-radius:3px}
.planner-task-row:hover{background:color-mix(in srgb,var(--task-color) 12%,#303030)}
.planner-task-main{gap:9px}
.planner-task-main>div{gap:3px}
.task-title{font-size:12px}
.task-project{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planner-task-row select,.task-date input{padding:5px;font-size:10px;min-height:29px}
.task-locate-link{padding:3px;border:0;background:none;color:#b6bdb8;flex-shrink:0;cursor:pointer}
.task-locate-link svg,.task-document-link svg{width:15px;height:15px}
.task-status-wrap{display:flex;align-items:center;gap:8px;min-width:0}
.planner-status-lamp{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:var(--lamp);box-shadow:0 0 4px var(--lamp),0 0 8px color-mix(in srgb,var(--lamp) 45%,transparent)}
.planner-status-lamp.status-not_started{--lamp:#ff5964}
.planner-status-lamp.status-in_progress{--lamp:#f6cf4c}
.planner-status-lamp.status-done{--lamp:#52d88b}
.planner-section{font-size:11px;letter-spacing:.03em;font-weight:600;color:#bcc9c0;margin:20px 0 10px;display:flex;align-items:center;gap:12px}
.planner-section::after{content:'';height:1px;flex:1;background:#ffffff12}
.planner-group{display:flex;gap:6px;align-items:center;min-height:28px;font-size:11px;font-weight:500;color:#bfc4bf;padding-left:calc(var(--group-depth)*12px);margin:5px 0 3px}
.planner-group>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planner-group button{background:none;border:0;padding:3px;color:var(--task-color);cursor:pointer;width:20px;font-size:14px}
.planner-task-description{grid-column:1/-1;white-space:pre-wrap;overflow-wrap:anywhere;color:#cdd2ce;font-size:12px;line-height:1.6;padding:7px 25px 6px;max-height:200px;overflow:auto}
.planner-task-description:empty{display:none}
[data-theme="light"] .planner-task-row{background:color-mix(in srgb,var(--task-color) 12%,white)}
[data-theme="light"] .planner-group,[data-theme="light"] .planner-section,[data-theme="light"] .planner-task-description{color:#42574a}
@media(max-width:1000px){.task-planner-legend,.planner-task-row{grid-template-columns:minmax(140px,1fr) 65px 116px 105px;gap:8px}.task-planner-header,.task-planner-filters,.task-planner-next,.task-planner-legend,.task-planner-list{width:calc(100% - 24px)}}
/* The whole task pane owns scrolling, including the margins beside the list. */
.task-planner-view{overflow-y:auto;overflow-x:hidden}
.task-planner-view>.task-planner-header,.task-planner-view>.task-planner-filters,.task-planner-view>.task-planner-next,.task-planner-view>.task-planner-legend{flex-shrink:0}
.task-planner-list{flex:0 0 auto;overflow:visible}

/* Completion has one control: the status menu. The check is read-only. */
.task-completion-mark{display:flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:18px;color:#64d692;pointer-events:none}
.task-completion-mark svg{width:17px;height:17px;stroke-width:2.5}
.planner-task-row.is-done .task-title{text-decoration:none;color:#eee}
.task-title{line-height:1.45;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.task-planner-header{padding:16px 0 12px}
.task-planner-counts>span{flex-direction:row;align-items:baseline;gap:6px}
.task-planner-counts strong{font-size:16px}
.task-planner-next{border-width:0 0 0 3px;padding:10px 14px;min-height:62px}
.planner-group{min-height:24px;margin:3px 0;font-size:11px}
.planner-section{margin:16px 0 6px}
.planner-task-row{min-height:46px;padding-top:7px;padding-bottom:7px}
.planner-task-description{padding-left:25px}
.task-locate-link,.task-document-link{border-radius:3px;padding:5px}
.task-locate-link:hover,.task-document-link:hover{background:#ffffff12;color:#fff}
.task-locate-link:focus-visible,.task-document-link:focus-visible,.task-title:focus-visible,.planner-group button:focus-visible{outline:1px solid #9bd3bb;outline-offset:2px}
[data-theme="light"] .planner-task-row.is-done .task-title{color:#263c2c}
[data-theme="light"] .task-completion-mark{color:#23834a}
/* Readable task hierarchy, with ongoing work as the visual entry point. */
.task-title{font-size:16px;font-weight:550}
.planner-task-row{min-height:56px;padding-top:10px;padding-bottom:10px}
.planner-task-row select,.task-date input{font-size:12px;min-height:34px}
.task-planner-legend,.planner-task-row{grid-template-columns:minmax(190px,1fr) 90px 145px 145px}
.planner-group{font-size:13px;min-height:29px}
.planner-group button{font-size:16px;width:24px}
.planner-section{font-size:20px;font-weight:600;letter-spacing:0;margin:22px 0 10px;color:#e4e8e5}
.planner-section small{font-size:12px;font-weight:400;color:#abb8ae;background:#ffffff09;padding:3px 8px;border-radius:10px}
.planner-section.is-active-section{color:#f2db8c}
.planner-section.is-active-section small{color:#f2db8c;background:#f2db8c12}
.planner-task-row.is-in-progress{box-shadow:inset 0 0 0 1px #ffffff0a}
.planner-task-row.is-in-progress .task-title{font-size:16px;font-weight:550}
.planner-task-description{font-size:14px}
.task-planner-counts,.task-planner-filters input,.task-planner-filters select{font-size:13px}
.task-planner-legend{font-size:11px}
[data-theme="light"] .planner-section.is-active-section{color:#795b12}
[data-theme="light"] .planner-section.is-active-section small{color:#795b12;background:#af8b2220}
@media(max-width:1000px){.task-planner-legend,.planner-task-row{grid-template-columns:minmax(140px,1fr) 75px 130px 130px;gap:8px}}
/* Status sections are separate surfaces rather than one continuous register. */
.planner-section-panel{margin:14px 0 30px;padding:0 12px 12px;background:#2e2e2e;border:1px solid #464646;border-top:2px solid #777;border-radius:5px;overflow:hidden}
.planner-section-panel.is-active-panel{background:#30312d;border-top-color:#ddbf65;border-color:#5e5944;border-top-color:#ddbf65}
.planner-section-panel>.planner-section{margin:0 -12px 10px;padding:14px 16px;background:#343434;border-bottom:1px solid #484848}
.planner-section-panel.is-active-panel>.planner-section{background:#3a392f;border-bottom-color:#57523d}
.planner-section-panel>.planner-section::after{display:none}
.planner-section-panel>.planner-section small{margin-left:auto}
.planner-section-panel>.planner-group{padding-right:8px}
.task-planner-legend{padding-left:24px;padding-right:24px}
[data-theme="light"] .planner-section-panel{background:#edf0eb;border-color:#c6cec5;border-top-color:#8e9c90}
[data-theme="light"] .planner-section-panel.is-active-panel{background:#f5f2e7;border-color:#c8be97;border-top-color:#a78a30}
[data-theme="light"] .planner-section-panel>.planner-section{background:#e3e9e1;border-bottom-color:#c6cec5}
[data-theme="light"] .planner-section-panel.is-active-panel>.planner-section{background:#ece6cf;border-bottom-color:#c8be97}
/* Simplified planning controls: date and status only. */
.task-planner-legend,.planner-task-row{grid-template-columns:minmax(210px,1fr) 150px 150px}
@media(max-width:1000px){.task-planner-legend,.planner-task-row{grid-template-columns:minmax(140px,1fr) 130px 130px}}
/* Split planning workspace */
.task-planner-view{overflow:hidden}
.task-planner-view>.task-planner-header,.task-planner-view>.task-planner-filters{max-width:none;width:calc(100% - 40px)}
.task-planner-split{--task-split:50%;display:grid;grid-template-columns:minmax(0,var(--task-split)) 9px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.task-list-pane{min-width:0;overflow:auto;padding:0 15px 20px 20px;container-type:inline-size}
.task-list-pane .task-planner-list{width:100%;max-width:none;margin:0;padding:0}
.task-list-pane .planner-task-row{grid-template-columns:minmax(0,1fr) 145px;gap:8px;padding:10px}
.task-list-pane .planner-task-main{grid-column:1/-1}
.task-list-pane .task-title{font-size:15px}
.task-list-pane .task-date{padding-left:25px}
.task-list-pane .planner-section-panel{margin-top:8px;margin-bottom:22px;padding-left:10px;padding-right:10px}
.task-list-pane .planner-section-panel>.planner-section{margin-left:-10px;margin-right:-10px}
.task-planner-divider{cursor:col-resize;position:relative;background:#242424;touch-action:none;border-left:1px solid #464646;border-right:1px solid #464646}
.task-planner-divider::after{content:'';position:absolute;left:3px;top:45%;width:2px;height:42px;border-radius:2px;background:#707970}
.task-planner-divider:hover,.task-planner-divider:focus-visible,.task-planner-divider.resizing{background:#42604d;outline:none}
.task-date-button{display:flex;align-items:center;gap:8px;min-height:34px;border:0;border-radius:4px;padding:5px 9px;background:#ffffff08;color:#d1ddd3;cursor:pointer;font-size:12px}
.task-date-button:hover{background:#ffffff14;color:#fff}
.task-date-button small{margin:0;font-size:10px;padding:2px 5px;border-radius:3px;background:#a4c9ae16;color:#b5d4bd}
.task-date.overdue .task-date-button small{color:#edaaa5;background:#e7818115}
.task-calendar{min-width:0;overflow:auto;padding:12px 20px 24px 16px;background:#272b28}
.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.calendar-head h2{font-size:19px;font-weight:550;margin:0;text-transform:capitalize;color:#edf2ed}
.calendar-head>div{display:flex;gap:4px}
.calendar-head button{background:#343c35;border:1px solid #4a584d;border-radius:4px;padding:5px 10px;color:#e3eae4;font-size:12px;cursor:pointer}
.calendar-head button:first-child,.calendar-head button:last-child{font-size:21px;line-height:20px}
.calendar-hint{font-size:12px;color:#a7b6aa;line-height:1.5;margin:0 0 14px}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-weekdays span{text-align:center;font-size:11px;color:#9fb1a3;padding:7px 0}
.calendar-grid{border-top:1px solid #48524a;border-left:1px solid #48524a;border-radius:5px;overflow:hidden}
.calendar-day{min-height:90px;border-right:1px solid #48524a;border-bottom:1px solid #48524a;background:#2e352f;padding:5px;min-width:0}
.calendar-day.outside{background:#292e2a;color:#849087}
.calendar-day.is-today{background:#354638}
.calendar-day.is-selected{box-shadow:inset 0 0 0 2px #8db69a}
.calendar-day.drop-target{background:#47634d;box-shadow:inset 0 0 0 2px #b5e0bf}
.calendar-day-number{display:block;margin:0 0 4px auto;background:none;color:#d4dfd6;border:0;border-radius:50%;width:24px;height:24px;padding:0;font-size:12px;cursor:pointer}
.calendar-day.outside .calendar-day-number{color:#829287}
.calendar-day.is-today .calendar-day-number{background:#a5d4b0;color:#183721;font-weight:700}
.calendar-day-tasks{display:flex;flex-direction:column;gap:3px}
.calendar-day-tasks button{width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:10px;border:0;border-left:2px solid var(--task-color);border-radius:2px;padding:4px 3px;background:color-mix(in srgb,var(--task-color) 18%,#303630);color:#eef2ef;cursor:grab}
.calendar-day-tasks .calendar-more{background:none;color:#afcbb7;cursor:pointer}
.calendar-agenda{margin-top:20px}
.calendar-agenda>header{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.calendar-agenda h3{font-size:16px;font-weight:550;margin:0;text-transform:capitalize;color:#e3ece4}
.calendar-agenda>header>span{font-size:11px;color:#b1d4bb;background:#a5d4b015;padding:3px 7px;border-radius:4px}
.calendar-add{display:flex;gap:7px;margin:12px 0}
.calendar-add select{min-width:0;flex:1;background:#303931;color:#dbe5dd;border:1px solid #4c5b4f;border-radius:4px;font-size:12px;padding:8px}
.calendar-add>button{background:#406049;color:#eaf1eb;border:1px solid #67896f;border-radius:4px;padding:7px 10px;cursor:pointer}
.calendar-empty{font-size:13px;color:#98ad9e;padding:10px 0}
.calendar-agenda-row{display:flex;align-items:center;gap:10px;padding:9px 10px;margin-bottom:5px;border-left:3px solid var(--task-color);background:color-mix(in srgb,var(--task-color) 9%,#303630);border-radius:3px}
.calendar-agenda-row>button{border:0;background:none;color:#e3eae4;text-align:left;font-size:13px;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.calendar-agenda-row>.calendar-unschedule{flex:0 0 22px;color:#a9b8ad;font-size:21px;text-align:center}
.calendar-pending{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:10px;border:1px solid #94b19c55;background:#a5d4b010;border-radius:4px;margin-bottom:12px}
.calendar-pending span{font-size:12px;color:#adc7b4;width:100%}
.calendar-pending strong{font-size:13px;font-weight:500;flex:1;color:#e2ede5}
.calendar-pending button{border:0;background:none;color:#bed5c4;cursor:pointer}
[data-theme="light"] .task-calendar{background:#e9efe8}
[data-theme="light"] .calendar-head h2,[data-theme="light"] .calendar-agenda h3,[data-theme="light"] .calendar-agenda-row>button,[data-theme="light"] .calendar-pending strong{color:#294330}
[data-theme="light"] .calendar-day{background:#f8faf6;border-color:#c7d3c7}
[data-theme="light"] .calendar-day.outside{background:#e7ede4}
[data-theme="light"] .calendar-day.is-today{background:#dfecdd}
[data-theme="light"] .calendar-day-number{color:#2b5034}
[data-theme="light"] .calendar-day-tasks button,[data-theme="light"] .calendar-agenda-row{background:color-mix(in srgb,var(--task-color) 25%,white);color:#294330}
[data-theme="light"] .calendar-add select,[data-theme="light"] .calendar-head button{background:#f6faf4;color:#31543b;border-color:#b6c9b8}
[data-theme="light"] .task-date-button{color:#31543b;background:#31543b0a}
@media(max-width:1050px){.calendar-day{min-height:73px;padding:3px}.task-calendar{padding:10px}.task-list-pane{padding-left:12px;padding-right:8px}.task-list-pane .planner-group{font-size:12px}.task-list-pane .planner-section{font-size:18px}.task-list-pane .planner-task-row{grid-template-columns:minmax(0,1fr) 120px}.calendar-head h2{font-size:16px}}
.image-viewer-modal{padding:5vh 24px;align-items:center}
.image-viewer-modal>.modal{width:min(1100px,94vw);max-height:90vh;padding:16px;background:#252525}
.project-image-viewer{display:flex;align-items:center;justify-content:center;min-height:180px;background:#1c1c1c;border-radius:4px}
.project-image-viewer img{display:block;max-width:100%;max-height:75vh;object-fit:contain}
.calendar-day{min-height:70px}
.task-planner-split{grid-template-columns:minmax(0,calc(var(--task-split) - 4.5px)) 9px minmax(0,1fr)}

.node-image-body{position:relative;padding:0;overflow:hidden}.node-image-body img{object-fit:contain}

/* Keep each card and its color stripe in one stacking context when cards overlap. */
.node{isolation:isolate}

.image-resize-handle{position:absolute;right:0;bottom:0;width:22px;height:22px;border:0;border-radius:0;background:transparent;cursor:nwse-resize;touch-action:none;z-index:3}.image-resize-handle::after{content:"";position:absolute;right:4px;bottom:4px;width:11px;height:11px;background:repeating-linear-gradient(135deg,transparent 0 3px,#bbb 3px 4px,transparent 4px 6px);clip-path:polygon(100% 0,100% 100%,0 100%)}.image-resize-handle:hover::after{filter:brightness(1.5)}

.node-type-image .node-header{padding-left:6px;padding-right:4px;gap:4px}.node-type-image .node-icon{display:none}.node-type-image .node-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Slimmer color accents shared by all node types. */
.node .node-kind,.node.selected .node-kind{height:10px;padding-top:0;padding-bottom:0;font-size:8px;line-height:10px}.node .node-color-bar{width:2px}

.project-files-navigation{display:flex;align-items:center;gap:6px}.project-files-navigation .project-files-path{flex:1}.project-files-navigation .icon-button:disabled{opacity:.3;cursor:default}
#workspace>.canvas-toolbar{left:16px;right:auto}#workspace>.canvas-hint{left:auto;right:26px;text-align:right}

/* Structured tree preview: browser-only view, legacy geometry is retained. */
.outline-controls{position:absolute;right:16px;top:12px;z-index:12;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:calc(100% - 32px);padding:6px;background:#292929ef;border:1px solid #4a4a4a;border-radius:9px}.outline-controls button{background:#363636;color:#ddd;border:1px solid #505050;border-radius:5px;padding:6px 9px;font-size:11px}.outline-controls button[aria-pressed=true]{color:var(--ui-accent);border-color:var(--ui-accent)}.outline-active .outline-toggle{position:absolute;left:-32px;top:calc(var(--node-base-height)/2 - 12px);width:24px;height:24px;display:grid;place-items:center;border:1px solid #6b796f;background:#292f2b;color:#8be5b9;border-radius:6px;font-size:18px;line-height:1;z-index:5}.outline-active .node{overflow:visible}.outline-active .node-image-body{overflow:hidden;border-radius:0 0 12px 12px}.outline-active #treeSort,.outline-active .snap-toggle,.outline-active #boardAreasLayer,.outline-active .board-area-panel{display:none!important}.outline-active .node{cursor:default}

.outline-active .outline-toggle{padding:0;box-sizing:border-box}.outline-toggle svg{display:block}

.outline-active .node-header .outline-toggle{position:static;flex:0 0 24px;align-self:center;margin-left:2px;z-index:auto;background:transparent;border-color:transparent;color:var(--node-color)}.outline-active .node-header .outline-toggle:hover{background:#ffffff0d;border-color:currentColor}

.outline-active .node-header [data-action="notes"] svg{transform:none!important}.outline-active .node-header [data-action="notes"].open{color:var(--node-color)}
.outline-active .node-header .outline-toggle{position:relative;left:auto;top:auto;z-index:6;pointer-events:auto}

.outline-active .node-header .outline-toggle{border:2px solid var(--node-color);border-radius:5px}.outline-active .node-header .outline-toggle:hover{border:2px solid var(--node-color);background:#ffffff12}
.workspace .canvas-toolbar{left:16px;right:auto}.workspace .canvas-hint{left:auto;right:26px;text-align:right;max-width:calc(100% - 480px)}

#workspace>.canvas-toolbar{transition:left 240ms cubic-bezier(.22,.75,.25,1);max-width:calc(100% - 32px)}.app-shell.with-inspector:not(.chat-mode):not(.document-mode) #workspace>.canvas-toolbar{left:296px;right:auto;max-width:calc(100% - 312px)}
@media(prefers-reduced-motion:reduce){#workspace>.canvas-toolbar{transition:none}}
.node-document-sheets{flex:none;display:flex;align-items:center;gap:12px;padding:10px 20px;border-bottom:1px solid #ffffff14;background:#292b2b;min-width:0}
.node-sheet-context{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#a7b5af;padding-right:14px;border-right:1px solid #ffffff1a}
.node-sheet-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin}
.node-sheet-tab{flex:none;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px 14px;border:1px solid transparent;border-radius:8px;color:#c4ccc8;background:transparent;font:inherit;font-size:13px;cursor:pointer}
.node-sheet-tab:hover{background:#ffffff08}.node-sheet-tab.active{background:#72dfb017;color:#8be7bd;border-color:#72dfb047}
.node-sheet-actions{display:flex;gap:6px;flex:none}.node-sheet-actions button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid #ffffff1c;border-radius:7px;background:#ffffff05;color:#d7e1dc;cursor:pointer;font-size:12px}.node-sheet-actions button:hover{background:#ffffff12}.node-sheet-actions svg{width:15px;height:15px}
.node-sheet-tab:focus-visible,.node-sheet-actions button:focus-visible{outline:2px solid #72dfb0;outline-offset:-3px}
@media(max-width:780px){.node-document-sheets{flex-wrap:wrap;padding:8px 12px;gap:8px}.node-sheet-context{display:none}.node-sheet-tabs{flex-basis:100%;order:1}.node-sheet-actions{margin-left:auto}.node-sheet-tab{max-width:180px}}
.node-document-sheets .node-sheet-actions button[data-sheet-action="create"]{background:#72dfb0;border-color:#72dfb0;color:#12291e;font-weight:650}.node-document-sheets .node-sheet-actions button[data-sheet-action="create"]:hover{background:#8be9c0;border-color:#8be9c0}.node-document-sheets .node-sheet-actions button[data-sheet-action="create"]:focus-visible{outline-color:#153e2c}
