/* Siluetra desktop UI. Every surface uses the same semantic palette in both themes. */
:root{
  color-scheme:light;
  --surface-app:#e6e7e8;--surface-toolbar:#e8e9ea;--surface-toolbar-secondary:#f0f1f2;
  --surface-tools:#dedfe1;--surface-panel:#f7f7f6;--surface-inspector:#fafaf9;--surface-panel-elevated:#f0f1f0;
  --surface-input:#ffffff;--surface-canvas:#c7c9cb;--surface-artboard:#ffffff;--surface-preview:#fafaf8;
  --surface-floating:#ffffff;--surface-popover:#ffffff;--surface-modal:#f7f8f7;--surface-menu:#ffffff;
  --surface-tooltip:#fcfdfb;--surface-status:#e6e7e8;--surface-hover:#dfe3e1;
  --border-subtle:#e2e4e3;--border-default:#cdd1cf;--border-strong:#b4bab7;
  --text-primary:#292e2c;--text-secondary:#606962;--text-muted:#7d857f;--text-canvas:#62686b;
  --accent:#277451;--accent-hover:#205f43;--accent-soft:#dcece2;--accent-text:#1d6845;--primary-text:#ffffff;
  --selection:#25865d;--selection-soft:#bfe5d0;--danger:#a3423d;--warning:#946b2d;
  --drawing-color:#303633;--demo-paper:#f2f3ef;--demo-guide:#b9c3bc;
  --shadow-floating:0 5px 18px #151b1a26,0 1px 3px #151b1a12;
  --shadow-menu:0 8px 25px #151b1a30;--shadow-modal:0 20px 70px #11181750;
  --shadow-artboard:0 2px 7px #11181725;--backdrop:#11181766;
  --radius-control:4px;--radius-floating:7px;--radius-modal:9px;
  --font-ui:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  --text-title:13px;--text-panel:12px;--text-body:11px;--text-caption:10px;
  --motion-fast:130ms;--dock-width:232px;--inspector-width:248px;
  /* Compatibility aliases for existing vector and control components. */
  --ink:var(--text-primary);--muted:var(--text-secondary);--line:var(--border-default);--surface:var(--surface-floating);
  --panel:var(--surface-panel);--field:var(--surface-input);--hover:var(--surface-hover);--wash:var(--surface-app);
  --select:var(--selection);--focus:var(--selection);--elevated:var(--surface-floating);
}
:root[data-theme=dark]{
  color-scheme:dark;
  --surface-app:#18191b;--surface-toolbar:#202124;--surface-toolbar-secondary:#2b2d30;
  --surface-tools:#222427;--surface-panel:#282a2d;--surface-inspector:#2d2f32;--surface-panel-elevated:#333539;
  --surface-input:#383a3e;--surface-canvas:#45474b;--surface-artboard:#ffffff;--surface-preview:#f0f1ed;
  --surface-floating:#36383c;--surface-popover:#303236;--surface-modal:#2d2f32;--surface-menu:#303236;
  --surface-tooltip:#35373b;--surface-status:#222427;--surface-hover:#414449;
  --border-subtle:#383b3f;--border-default:#414449;--border-strong:#595d63;
  --text-primary:#e3e5e8;--text-secondary:#b4b9be;--text-muted:#9299a1;--text-canvas:#c7ccd0;
  --accent:#2c7955;--accent-hover:#358663;--accent-soft:#294638;--accent-text:#95d3ae;
  --selection:#39a372;--selection-soft:#a4ddbf;--danger:#e8a09a;--warning:#d7b477;
  --shadow-floating:0 6px 22px #00000055,0 1px 3px #00000035;
  --shadow-menu:0 8px 30px #00000066;--shadow-modal:0 20px 75px #00000099;
  --shadow-artboard:0 2px 8px #00000040;--backdrop:#08090b99;
}
*{box-sizing:border-box}body{margin:0;font:var(--text-body)/1.45 var(--font-ui);color:var(--text-primary);background:var(--surface-app)}
button,input,select,textarea{font:inherit;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:var(--radius-control);background:transparent;padding:5px 8px;cursor:pointer;white-space:nowrap;transition:background var(--motion-fast),border-color var(--motion-fast),color var(--motion-fast)}
button:hover{background:var(--surface-hover)}button:active:not(:disabled){background:var(--accent-soft)}button:disabled{opacity:.35;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--selection);outline-offset:2px}
input,select,textarea{width:100%;min-width:0;height:27px;border:1px solid var(--border-default);border-radius:var(--radius-control);background:var(--surface-input);padding:3px 6px;font-variant-numeric:tabular-nums;transition:border-color var(--motion-fast)}input:hover,select:hover{border-color:var(--border-strong)}
input[type=checkbox]{width:13px;height:13px;accent-color:var(--accent);vertical-align:middle}input[type=color]{height:25px;padding:2px}input[type=range]{height:20px;padding:0;accent-color:var(--accent);border:0;background:transparent}input[type=number]{appearance:textfield}input::-webkit-inner-spin-button{appearance:none}
.ui-icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}.icon-button{width:30px;height:30px;padding:5px}.primary,button.primary{background:var(--accent);color:var(--primary-text);border-color:var(--accent)}.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--primary-text)}.danger{color:var(--danger)}.secondary{border-color:var(--border-default);background:var(--surface-panel-elevated)}.hidden{display:none!important}
.divider{width:1px;height:20px;display:inline-block;background:var(--border-default);margin:0 4px;flex-shrink:0}.ghost{border:0}.empty-state{padding:10px 0;color:var(--text-secondary);font-size:11px}
/* Application bar and document controls. */
.editor{height:100dvh;min-height:500px;display:flex;flex-direction:column;overflow:hidden;user-select:none;background:var(--surface-app)}
.topbar{height:55px;display:flex;align-items:center;padding:0 12px;gap:14px;background:var(--surface-toolbar);border-bottom:1px solid var(--border-strong);flex-shrink:0}
.brand{display:flex;align-items:center;gap:8px;font-size:23px;font-weight:600;letter-spacing:-.7px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--accent);color:var(--primary-text);border-radius:6px;font:italic 31px/1 Georgia,serif;letter-spacing:-3px;padding-right:3px}.brand small{font-size:9px;letter-spacing:1.8px;font-weight:400;margin-left:12px;color:var(--text-muted)}.brand.compact{font-size:19px;padding:0 2px;gap:7px;flex-shrink:0}.compact .brand-mark{width:28px;height:28px;font-size:28px;border-radius:5px}
.document-area{border-left:1px solid var(--border-default);padding-left:14px;min-width:165px;max-width:300px;width:252px;flex:0 1 252px}.document-title{display:flex;gap:6px;align-items:center}.topbar #project-name{height:23px;border:1px solid transparent;padding:0 4px;background:transparent;font-size:var(--text-title);font-weight:600;letter-spacing:.15px;text-overflow:ellipsis;flex:1;min-width:70px}.topbar #project-name:hover{border-color:var(--border-default)}.topbar #project-name:focus{background:var(--surface-input);border-color:var(--border-strong)}
#variant-button{height:21px;padding:1px 6px;font-size:10px;gap:3px;border:1px solid var(--border-default);background:var(--surface-panel-elevated)}#variant-button .ui-icon{width:11px;height:11px}#variant-button[aria-expanded=true]{background:var(--accent-soft);border-color:var(--selection);color:var(--accent-text)}.save-state{padding-left:4px;font-size:9px;color:var(--text-muted);line-height:16px}.save-state:before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--text-muted);margin-right:5px;vertical-align:2px}
.document-view{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.view-tabs{display:flex;align-items:center;padding:2px;gap:2px;background:var(--surface-app);border:1px solid var(--border-strong);border-radius:5px}.view-tabs button{font-size:11px;min-width:66px;height:27px;padding:3px 10px;color:var(--text-secondary)}.view-tabs button.active{background:var(--surface-panel-elevated);color:var(--text-primary);border-color:var(--border-strong);font-weight:600}.view-tabs button.active:after{content:'';width:4px;height:4px;background:var(--accent-text);border-radius:50%;margin-left:2px}
.structure-state{gap:4px;padding:4px 6px;max-width:114px;font-size:10px;color:var(--text-secondary)}.structure-state .ui-icon{width:14px;height:14px}.structure-state[data-state=linked]{color:var(--accent-text)}.structure-state[data-state=unlinked]{color:var(--warning)}
.top-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}.app-action-group{display:flex;align-items:center;gap:1px;border-left:1px solid var(--border-default);padding-left:8px;margin-left:3px}.top-actions .icon-button{width:29px;height:29px}.top-actions #export{height:29px;padding:4px 11px;margin-left:4px;font-size:11px;font-weight:600}.top-actions #history-button[aria-expanded=true],#quick-theme[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-text)}
/* Secondary, context-sensitive command bar. */
.context-bar{height:39px;display:flex;align-items:center;gap:0;padding:0 10px;background:var(--surface-toolbar-secondary);border-bottom:1px solid var(--border-strong);flex-shrink:0;min-width:0;position:relative;z-index:4}.context-breadcrumb{width:140px;max-width:140px;min-width:60px;flex-shrink:2;font-size:10px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:12px}.tool-group{display:flex;align-items:center;gap:7px;height:25px;padding:0 10px;border-left:1px solid var(--border-default);flex-shrink:0}.tool-group-label{font-size:8px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--text-muted)}.tool-group>div{display:flex;align-items:center;gap:1px}.tool-group .ghost{height:27px;padding:3px 6px;font-size:10px;gap:4px;color:var(--text-secondary)}.tool-group .ghost:hover{color:var(--text-primary)}.tool-group .ghost.active{background:var(--accent-soft);color:var(--accent-text)}.tool-group .ui-icon{width:15px;height:15px}.context-bar label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px}.context-bar input[type=range]{width:100px}.context-bar input[type=number]{width:50px;height:24px}.toolbar-overflow{margin-left:auto;position:relative;flex-shrink:0}.toolbar-overflow>summary{display:flex;align-items:center;justify-content:center;width:30px;height:28px;cursor:pointer;list-style:none;border-radius:4px;color:var(--text-secondary)}.toolbar-overflow>summary:hover{background:var(--surface-hover)}.toolbar-overflow>summary::-webkit-details-marker{display:none}.toolbar-menu{position:absolute;right:0;top:32px;width:230px;padding:5px;background:var(--surface-menu);border:1px solid var(--border-strong);border-radius:7px;box-shadow:var(--shadow-menu);max-height:calc(100dvh - 145px);overflow:auto;z-index:25;display:flex;flex-direction:column}.toolbar-menu button{height:29px;justify-content:flex-start;font-size:11px;padding:4px 8px}.toolbar-menu .ui-icon{width:16px;height:16px}
/* Primary tools and fixed docks. */
.workspace{display:flex;flex:1;min-height:0}.tools{width:49px;display:flex;flex-direction:column;align-items:center;gap:0;background:var(--surface-tools);border-right:1px solid var(--border-strong);padding:7px 0;flex-shrink:0;overflow-y:auto;scrollbar-width:none}.tool-cluster{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:4px 0}.tool-cluster+.tool-cluster{border-top:1px solid var(--border-default);margin-top:5px;padding-top:9px}.tools button{position:relative;width:35px;height:34px;padding:7px;color:var(--text-secondary);border-radius:4px}.tools button .ui-icon{width:20px;height:20px}.tools button:hover{color:var(--text-primary);background:var(--surface-hover)}.tools button.active{color:var(--accent-text);background:var(--accent-soft)}.tools button.active:before{content:'';position:absolute;left:-6px;top:8px;height:18px;width:2px;border-radius:1px;background:var(--accent-text)}
.library{width:var(--dock-width);background:var(--surface-panel);border-right:1px solid var(--border-strong);display:flex;flex-direction:column;flex-shrink:0}.properties{width:var(--inspector-width);background:var(--surface-inspector);border-left:1px solid var(--border-strong);display:flex;flex-direction:column;flex-shrink:0;overflow:hidden}.dock-header{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:12px;font-weight:600;color:var(--text-primary);background:var(--surface-toolbar-secondary);border-bottom:1px solid var(--border-default);flex-shrink:0}.dock-header>span{display:flex;align-items:center;gap:6px}.dock-header .ui-icon{width:14px;height:14px;color:var(--text-muted)}.dock-header small{font-weight:400;color:var(--text-muted);font-size:9px;text-transform:uppercase;letter-spacing:.4px}
.library-tabs{display:flex;align-items:stretch;padding:0 6px;height:33px;flex-shrink:0;background:var(--surface-panel-elevated);border-bottom:1px solid var(--border-default);gap:2px}.library-tabs button{flex:1;padding:6px 5px 5px;font-size:10px;color:var(--text-muted);border-radius:0;border-bottom:2px solid transparent}.library-tabs button.active{background:var(--surface-panel);color:var(--text-primary);font-weight:600;border-bottom-color:var(--selection)}.library-tabs button:hover{color:var(--text-primary)}#library-content{padding:10px;overflow:auto;min-height:0;flex:1}.library-tip{font-size:9px;color:var(--text-muted);padding:8px 11px;border-top:1px solid var(--border-default);line-height:1.6;flex-shrink:0}.resource-search-wrap{position:relative;margin-bottom:5px}.resource-search-wrap>.ui-icon{position:absolute;left:7px;top:6px;width:15px;height:15px;color:var(--text-muted);pointer-events:none}#resource-search{height:28px;padding-left:27px;font-size:11px;background:var(--surface-input)}
#library-content details>summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;font-size:10px;font-weight:600;color:var(--text-secondary);padding:12px 2px 8px;letter-spacing:.55px;text-transform:uppercase}#library-content details>summary:before{content:'';width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);margin-right:4px;flex-shrink:0}#library-content details[open]>summary:before{transform:rotate(45deg)}#library-content details[open]>summary{color:var(--text-primary)}summary::-webkit-details-marker{display:none}.category{font-size:10px;color:var(--text-muted);letter-spacing:.6px;margin:12px 2px 8px;font-weight:600}
.resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.resource-card{position:relative;border-radius:4px;min-width:0}.resource{display:flex;flex-direction:column;width:100%;height:100%;padding:5px;text-align:left;white-space:normal;background:transparent;border:1px solid transparent;border-radius:4px;gap:6px}.resource:hover{border-color:var(--border-strong);background:var(--surface-panel-elevated)}.resource:active,.resource.is-dragging{border-color:var(--selection);background:var(--accent-soft)}.resource svg:not(.ui-icon){display:block;width:100%;height:51px;padding:5px;background:var(--surface-preview);border:1px solid var(--border-subtle);border-radius:3px}.resource span{display:block;font-size:9px;line-height:1.35;width:100%;min-height:24px;color:var(--text-secondary)}.resource:hover span{color:var(--text-primary)}.resource-star{position:absolute;right:5px;top:5px;width:21px;height:21px;padding:4px;color:var(--drawing-color);opacity:0;background:var(--surface-preview);border-radius:3px}.resource-card:hover .resource-star,.resource-card:focus-within .resource-star,.resource-star.active{opacity:1}.resource-star .ui-icon{width:13px;height:13px}.resource-star.active{color:var(--accent)}.resource-star.active .ui-icon{fill:var(--accent-soft)}
.object-category>summary{border-bottom:1px solid var(--border-default);margin-bottom:5px}.object-category>summary strong{flex:1;font-size:10px;font-weight:600}.object-category:empty{display:none}#library-content summary button{padding:2px;color:var(--text-muted)}#library-content summary button .ui-icon{width:14px;height:14px}#library-content .object-group>summary{padding:6px 4px;font-size:10px;text-transform:none;letter-spacing:0;background:var(--surface-panel-elevated);border-radius:3px;font-weight:500}#library-content .object-group>summary [data-name]{flex:1}.object-row{display:flex;align-items:center;gap:5px;min-height:29px;padding:3px 4px;border-radius:3px;margin:1px 0}.object-row:hover{background:var(--surface-panel-elevated)}.object-row.active{background:var(--accent-soft)}.object-row .name{font-size:10px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1;cursor:pointer}.object-icon{width:16px;display:flex;color:var(--text-muted)}.object-icon .ui-icon{width:15px;height:15px}.object-row button{padding:3px;opacity:0;color:var(--text-muted)}.object-row button .ui-icon{width:13px;height:13px}.object-row:hover button,.object-row:focus-within button,.object-row.active button,.object-row.is-locked button{opacity:1}.object-row.is-locked .name{color:var(--text-muted)}
/* Canvas stays separate from all application surfaces. */
.canvas-wrap{min-width:0;flex:1;position:relative;display:flex;flex-direction:column;background:var(--surface-canvas)}.canvas-label{position:absolute;left:16px;right:16px;top:12px;display:flex;justify-content:space-between;pointer-events:none;font-size:9px;color:var(--text-canvas);letter-spacing:.5px;z-index:1}#canvas{width:100%;height:100%;flex:1;min-height:0;touch-action:none;outline:none}.artboard{stroke:var(--border-strong);stroke-width:.6;vector-effect:non-scaling-stroke;filter:drop-shadow(var(--shadow-artboard))}#art{pointer-events:none}
#canvas .selbox{fill:none;stroke:var(--selection);stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}.handle,.node{fill:var(--surface-artboard);stroke:var(--selection);stroke-width:1.4;vector-effect:non-scaling-stroke;cursor:move}.handle{cursor:nwse-resize}.rotate-handle{cursor:grab}.node.active{fill:var(--selection)}.bez{fill:var(--selection-soft);stroke:var(--selection);stroke-width:1.2;vector-effect:non-scaling-stroke;cursor:move}.bend-handle{fill:var(--selection-soft);stroke:var(--selection);stroke-width:1.6;vector-effect:non-scaling-stroke;cursor:ns-resize}.axis-line{stroke:var(--text-canvas);stroke-width:1;stroke-dasharray:6 7;opacity:.55;vector-effect:non-scaling-stroke}.user-guide{stroke:var(--text-canvas);stroke-dasharray:3 6;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.6}.guide{stroke:var(--warning);stroke-dasharray:4 3;stroke-width:1;vector-effect:non-scaling-stroke}.object-move-control{cursor:move}.object-move-control circle{fill:var(--surface-artboard);stroke:var(--selection);stroke-width:1.3;vector-effect:non-scaling-stroke}.object-move-control path{stroke:var(--selection);stroke-width:1.2;vector-effect:non-scaling-stroke}.edge-selected,.edge-hover{fill:none;stroke:var(--selection);stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:round}.edge-hover{stroke-width:5;opacity:.4}.construction-highlight{fill:none;stroke:var(--selection);stroke-width:2.5;opacity:.55;vector-effect:non-scaling-stroke;pointer-events:none}.erase-highlight{stroke:var(--danger);stroke-width:4;opacity:.65}
/* Compact inspector; section dividers rather than form cards. */
#properties{flex:1;overflow:auto;min-height:0}.prop-title{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;font-size:10px;font-weight:600;letter-spacing:.65px;color:var(--text-secondary);border-bottom:1px solid var(--border-default)}.prop-title .ui-icon{width:15px;height:15px;color:var(--text-muted)}.prop-section{padding:12px;border-bottom:1px solid var(--border-default)}.prop-section h3{font-size:10px;font-weight:600;letter-spacing:.3px;margin:0 0 11px}.prop-section p{font-size:10px;color:var(--text-secondary);line-height:1.6;margin:5px 0 9px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}.field{min-width:0}.field.full{grid-column:1/-1}.field label{display:block;font-size:10px;color:var(--text-secondary);margin-bottom:3px;line-height:1.35}.field input,.field select{font-size:11px;height:26px}.field input[type=checkbox]{height:13px}.field input[type=color]{height:26px}.field input[type=range]{height:20px}.field-value{position:relative}.field-value input{padding-right:25px}.field-unit{position:absolute;right:6px;top:5px;font-size:9px;color:var(--text-muted);pointer-events:none}.field input[type=checkbox]+label{display:inline}.inspector-section{border-bottom:1px solid var(--border-default)}.inspector-section>summary{display:flex;align-items:center;gap:6px;padding:10px 12px;cursor:pointer;list-style:none;font-size:10px;font-weight:600;color:var(--text-primary)}.inspector-section>summary:before{content:'';width:5px;height:5px;border-right:1px solid var(--text-muted);border-bottom:1px solid var(--text-muted);transform:rotate(-45deg)}.inspector-section[open]>summary:before{transform:rotate(45deg)}.inspector-section>summary:hover{background:var(--surface-panel-elevated)}.inspector-section-body{padding:2px 12px 12px}.inspector-section-body>h3{display:none}.prop-buttons{display:flex;flex-wrap:wrap;gap:4px}.prop-buttons button{padding:4px 6px;font-size:10px;white-space:normal;line-height:1.3;min-height:25px;color:var(--text-secondary);background:var(--surface-panel-elevated);border:1px solid transparent}.prop-buttons button:hover{background:var(--surface-hover);border-color:var(--border-default);color:var(--text-primary)}.prop-buttons [data-action=delete]{color:var(--danger)}.prop-note{padding:12px;color:var(--text-muted);font-size:9px;line-height:1.7}.document-preview{height:135px;background:var(--surface-preview);border:1px solid var(--border-subtle);border-radius:3px;margin-bottom:12px}.document-preview svg{width:100%;height:100%}
/* Bottom application status and navigation. */
.statusbar{height:31px;flex-shrink:0;display:flex;align-items:center;gap:14px;background:var(--surface-status);border-top:1px solid var(--border-strong);padding:0 10px;font-size:10px;color:var(--text-secondary)}.status-hint{display:flex;align-items:center;min-width:100px;flex:1;gap:7px}.status-hint .ui-icon{width:13px;height:13px;color:var(--text-muted)}#hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;color:var(--text-muted)}#object-count{white-space:nowrap;font-size:9px;color:var(--text-muted)}#status{display:none}.canvas-bottom{display:flex;align-items:center;gap:3px;margin-left:auto;flex-shrink:0}.canvas-bottom button{height:24px;padding:2px 6px;font-size:9px;color:var(--text-secondary)}.canvas-bottom .ui-icon{width:13px;height:13px}.canvas-bottom button.active{background:var(--accent-soft);color:var(--accent-text);border-color:var(--border-default)}.state-label{font-size:8px;font-weight:600;margin-left:2px}.zoom-group{display:flex;align-items:center;gap:0;padding-left:5px;margin-left:4px;border-left:1px solid var(--border-default)}.zoom-group #zoom{font-variant-numeric:tabular-nums;width:47px;font-size:10px;border:1px solid var(--border-default);background:var(--surface-panel-elevated)}.zoom-group .icon-button{width:24px;padding:3px}.zoom-edit{width:68px;display:flex;align-items:center;gap:2px;color:var(--text-muted);font-size:10px}.zoom-edit input{width:50px;height:24px;padding:2px 5px;font-size:10px}.zoom-edit.hidden{display:none}
/* Floating construction/history palettes. */
.floating-palette{position:fixed;z-index:18;width:286px;max-height:calc(100dvh - 100px);display:flex;flex-direction:column;background:var(--surface-floating);border:1px solid var(--border-strong);border-radius:var(--radius-floating);box-shadow:var(--shadow-floating);overflow:hidden;animation:surface-in var(--motion-fast) ease-out}.floating-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;background:var(--surface-panel-elevated);border-bottom:1px solid var(--border-default);cursor:move;touch-action:none;user-select:none;flex-shrink:0}.floating-header strong{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}.floating-header strong .ui-icon{width:16px;height:16px;color:var(--accent-text)}.floating-header small{display:block;font-size:9px;font-weight:400;color:var(--text-muted);margin-top:2px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floating-header button{width:24px;height:24px;padding:4px;color:var(--text-secondary)}.floating-header button .ui-icon{width:16px;height:16px}.floating-body{padding:11px;overflow:auto;min-height:0}.selection-chip{font-size:9px;color:var(--text-muted);border-bottom:1px solid var(--border-subtle);padding-bottom:8px;margin-bottom:10px}.floating-body .fields{gap:8px}.palette-actions{display:flex;justify-content:space-between;gap:4px;border-top:1px solid var(--border-default);margin-top:11px;padding-top:8px}.palette-actions button{font-size:10px;padding:4px}.palette-actions [data-palette-delete]{color:var(--danger)}.history-palette{left:355px;top:95px;width:288px;z-index:19}.history-list{overflow:auto;max-height:350px;padding:5px}.history-list>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;text-align:left;width:100%;padding:8px;font-size:10px;white-space:normal}.history-list button.current{background:var(--accent-soft);font-weight:600}.history-list button small{font-size:8px;margin-left:auto;color:var(--text-secondary)}.state-dot{display:inline-block;width:5px;height:5px;flex-shrink:0;border:1px solid var(--text-muted);border-radius:50%}.current .state-dot{background:var(--accent-text);border-color:var(--accent-text)}.edge-confirm{position:fixed;bottom:47px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:8px 11px;background:var(--surface-popover);border:1px solid var(--border-strong);border-radius:6px;box-shadow:var(--shadow-floating);z-index:21;font-size:11px}.edge-confirm button{height:26px}
/* Menus, popovers and single-X application windows. */
.context,.appearance-popover,.zoom-popover,.variants-popover{position:fixed;z-index:25;background:var(--surface-menu);border:1px solid var(--border-strong);border-radius:6px;box-shadow:var(--shadow-menu);overflow:hidden;animation:surface-in var(--motion-fast) ease-out}.context{min-width:245px;padding:5px;max-height:calc(100dvh - 24px);overflow:auto}.context button{display:flex;width:100%;justify-content:flex-start;gap:7px;text-align:left;font-size:11px;padding:5px 8px;height:29px}.context .ui-icon{width:16px;height:16px;color:var(--text-secondary)}.menu-label{flex:1;overflow:hidden;text-overflow:ellipsis;min-width:0}.context kbd{font:9px var(--font-ui);color:var(--text-muted);margin-left:auto}.context hr{border:0;border-top:1px solid var(--border-default);margin:5px 2px}.context details>summary{list-style:none;cursor:pointer;padding:6px 8px;font-size:10px;color:var(--text-secondary);display:flex;align-items:center;justify-content:space-between}.context details>summary:after{content:'';width:5px;height:5px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg)}.context details[open]>summary:after{transform:rotate(135deg)}.context details[open]{background:var(--surface-panel-elevated)}.context details button{padding-left:15px}.context [data-action=delete]{color:var(--danger)}
.appearance-popover{width:188px;padding:5px}.popover-caption{font-size:9px;letter-spacing:.5px;text-transform:uppercase;color:var(--text-muted);padding:7px 8px}.appearance-popover button{width:100%;display:flex;justify-content:flex-start;gap:8px;font-size:11px;height:31px;padding:6px 8px}.appearance-popover button.current{background:var(--accent-soft);color:var(--accent-text)}.appearance-popover .theme-check{margin-left:auto;width:13px;height:13px}.variants-popover{width:280px;max-height:calc(100dvh - 85px);display:flex;flex-direction:column;background:var(--surface-popover)}.popover-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:600;padding:8px 10px;border-bottom:1px solid var(--border-default);background:var(--surface-panel-elevated)}.popover-title button{width:24px;height:24px;padding:4px}.variant-list{padding:5px;overflow:auto}.variant-row{display:flex;align-items:center;min-height:35px;padding:0 3px;border-radius:3px}.variant-row.current{background:var(--accent-soft)}.variant-name{flex:1;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:6px 5px;min-width:0;font-size:11px}.variant-name small{margin-left:auto;color:var(--text-secondary);font-size:8px}.variant-actions{display:flex;opacity:0}.variant-row:hover .variant-actions,.variant-row:focus-within .variant-actions{opacity:1}.variant-actions button{width:24px;height:24px;padding:4px}.variant-actions .ui-icon{width:14px;height:14px}.variant-actions [data-variant-op=delete]{color:var(--danger)}.variant-row input{height:27px;font-size:11px;width:190px}.variant-footer{border-top:1px solid var(--border-default);padding:5px;display:flex;flex-direction:column}.variant-footer button{justify-content:flex-start;font-size:10px;padding:6px 8px}
dialog{padding:0;width:480px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 36px);border:1px solid var(--border-strong);border-radius:var(--radius-modal);background:var(--surface-modal);color:var(--text-primary);box-shadow:var(--shadow-modal);overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:var(--backdrop)}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid var(--border-default);background:var(--surface-toolbar-secondary);flex-shrink:0}.modal-header h2{margin:0;font-size:16px;font-weight:600}.modal-close{width:27px;height:27px;padding:5px;color:var(--text-secondary)}.modal-content{padding:16px 18px;overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.modal-content>p:first-child{margin-top:0}dialog p{font-size:11px;line-height:1.7;color:var(--text-secondary)}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:11px 18px;border-top:1px solid var(--border-default);background:var(--surface-panel-elevated);flex-shrink:0}.modal-footer button{height:28px;font-size:11px}.modal-footer button:not(.primary){border-color:var(--border-default)}.modal-content details{border-top:1px solid var(--border-default);padding:9px 0}.modal-content summary{cursor:pointer;font-size:11px;font-weight:600}.modal-content .fields{margin-top:10px}dialog table{width:100%;font-size:11px;border-collapse:collapse;margin-top:10px}dialog td{padding:6px 0;border-bottom:1px solid var(--border-default)}dialog td:last-child{text-align:right;color:var(--text-secondary)}.setting-check{display:flex;align-items:center;gap:8px;font-size:11px;margin:11px 0}dialog:has(.settings-layout){width:640px}.settings-layout{display:grid;grid-template-columns:130px 1fr;gap:18px;min-height:320px}.settings-layout nav{display:flex;flex-direction:column;gap:3px;border-right:1px solid var(--border-default);padding-right:12px}.settings-layout nav button{justify-content:flex-start;text-align:left;font-size:11px;padding:8px;color:var(--text-secondary)}.settings-layout nav button.active{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.settings-pages h3{font-size:13px;font-weight:600;margin:0 0 15px}.settings-pages p{font-size:11px}.preset-list>div{display:flex;align-items:center;gap:5px;padding:8px 0;border-bottom:1px solid var(--border-default)}.preset-list span{flex:1;font-size:11px}.preset-list button{font-size:10px;border-color:var(--border-default)}.modifier-card{padding:8px;border:1px solid var(--border-default);border-radius:4px}.modifier-head{display:flex;align-items:center;justify-content:space-between;font-size:10px}.modifier-head label{display:flex;align-items:center;gap:5px}.modifier-head button{padding:2px}.modifier-card>.fields{margin-top:8px}
#toast{position:fixed;bottom:47px;left:50%;transform:translateX(-50%);background:var(--surface-tooltip);border:1px solid var(--border-strong);box-shadow:var(--shadow-floating);color:var(--text-primary);padding:9px 14px;border-radius:5px;z-index:50;pointer-events:none;opacity:0;transition:opacity var(--motion-fast);font-size:11px}#toast.show{opacity:1}
/* Delayed teaching cards. All animation stays isolated from document geometry. */
.tool-learning-card{position:fixed;z-index:60;width:280px;pointer-events:none;padding:12px;background:var(--surface-tooltip);color:var(--text-primary);border:1px solid var(--border-strong);border-radius:7px;box-shadow:var(--shadow-menu);animation:surface-in var(--motion-fast) ease-out}.tool-card-heading{display:flex;align-items:center;gap:8px}.tool-card-heading>.ui-icon{width:19px;height:19px;color:var(--accent-text)}.tool-card-heading strong{font-size:12px;font-weight:600}.tool-card-heading kbd{margin-left:auto;min-width:20px;padding:1px 4px;text-align:center;font:10px var(--font-ui);color:var(--text-secondary);border:1px solid var(--border-default);border-radius:3px;background:var(--surface-input)}.tool-learning-card p{font-size:11px;line-height:1.55;color:var(--text-secondary);margin:9px 0 11px}.tool-card-demo{height:125px;background:var(--demo-paper);border:1px solid var(--border-subtle);border-radius:4px;overflow:hidden}.tool-demo{width:100%;height:100%;fill:none;stroke:var(--drawing-color);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.tool-card-footer{margin-top:8px;font-size:9px;color:var(--text-muted)}.demo-garment{stroke:var(--drawing-color);fill:var(--surface-artboard)}.demo-line{fill:none;stroke:var(--drawing-color)}.demo-selection{stroke:var(--selection);fill:none;stroke-width:1.4}.demo-node,.demo-anchors rect{stroke:var(--selection);fill:var(--surface-artboard);stroke-width:1.3}.demo-stitch{stroke:var(--drawing-color);stroke-dasharray:3 3;fill:none}.demo-handle{stroke:var(--selection);opacity:.65}.demo-axis{stroke:var(--demo-guide);stroke-dasharray:3 4}.demo-cursor{fill:var(--drawing-color);stroke:var(--surface-artboard);stroke-width:1.1}.demo-panel{fill:var(--accent-soft);stroke:var(--selection)}.demo-cord{stroke:var(--drawing-color);stroke-width:5}.demo-before{fill:none;stroke:var(--demo-guide);animation:demo-before 2.6s infinite}.demo-after{fill:none;stroke:var(--drawing-color);animation:demo-after 2.6s infinite}.demo-emerge,.demo-select{animation:demo-emerge 2.6s infinite}.demo-later{animation:demo-later 2.6s infinite}.demo-move{animation:demo-move 2.6s infinite}.demo-node-move{animation:demo-node 2.6s infinite}.demo-node .demo-anchors rect:nth-child(2){display:none}.demo-rough{stroke:var(--text-muted);stroke-dasharray:240;animation:demo-rough 2.6s infinite}.demo-smooth{stroke:var(--drawing-color);animation:demo-smooth 2.6s infinite}.demo-draw-cursor{animation:demo-draw-cursor 2.6s infinite}.demo-reveal{stroke-dasharray:250;animation:demo-reveal 2.6s infinite}.demo-pen .demo-anchors rect{animation:demo-emerge 2.6s infinite}.demo-pen .demo-anchors rect:nth-child(2){animation-name:demo-later}.demo-pen .demo-anchors rect:nth-child(3){animation-name:demo-smooth}.demo-pen-cursor{animation:demo-pen-cursor 2.6s infinite}.demo-edge-cursor{animation:demo-edge-cursor 2.6s infinite}.demo-erase{animation:demo-erase 2.6s infinite}.demo-erase-cursor{animation:demo-erase-cursor 2.6s infinite}.demo-shape{transform-origin:center;animation:demo-shape 2.6s infinite}.demo-type{fill:var(--drawing-color);stroke:none;animation:demo-type 2.6s infinite}.demo-caret{stroke:var(--selection);animation:demo-caret 2.6s infinite}
@keyframes surface-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@keyframes demo-before{0%,20%{opacity:1}50%,100%{opacity:0}}@keyframes demo-after{0%,20%{opacity:0}50%,100%{opacity:1}}
@keyframes demo-emerge{0%,16%{opacity:0}30%,90%{opacity:1}100%{opacity:0}}@keyframes demo-later{0%,40%{opacity:0}57%,90%{opacity:1}100%{opacity:0}}
@keyframes demo-move{0%,25%,100%{transform:translate(0,0)}60%,90%{transform:translate(37px,4px)}}@keyframes demo-node{0%,20%,100%{transform:translate(0,0)}50%,90%{transform:translate(0,-25px)}}
@keyframes demo-rough{0%{stroke-dashoffset:240;opacity:1}45%{stroke-dashoffset:0;opacity:1}60%,100%{stroke-dashoffset:0;opacity:0}}@keyframes demo-smooth{0%,45%{opacity:0}62%,90%{opacity:1}100%{opacity:0}}
@keyframes demo-draw-cursor{0%{transform:translate(24px,74px);opacity:1}20%{transform:translate(78px,50px)}45%{transform:translate(171px,56px);opacity:1}60%,100%{transform:translate(171px,56px);opacity:0}}
@keyframes demo-reveal{0%,10%{stroke-dashoffset:250}65%,90%{stroke-dashoffset:0}100%{stroke-dashoffset:250}}@keyframes demo-pen-cursor{0%,15%{transform:translate(30px,76px)}40%{transform:translate(100px,35px)}65%,95%{transform:translate(170px,70px)}100%{transform:translate(30px,76px)}}
@keyframes demo-edge-cursor{0%{transform:translate(93px,20px)}30%,90%{transform:translate(93px,86px)}100%{transform:translate(93px,20px)}}
@keyframes demo-erase{0%,45%{opacity:1}58%,95%{opacity:0}100%{opacity:1}}@keyframes demo-erase-cursor{0%{transform:translate(65px,29px);opacity:1}45%,70%{transform:translate(112px,74px);opacity:1}95%,100%{transform:translate(112px,74px);opacity:0}}
@keyframes demo-shape{0%,12%{transform:scale(.02);opacity:0}20%{opacity:1}60%,90%{transform:scale(1);opacity:1}100%{transform:scale(1);opacity:0}}@keyframes demo-type{0%,15%{clip-path:inset(0 100% 0 0)}65%,90%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 100% 0 0)}}@keyframes demo-caret{0%,24%,51%,76%,100%{opacity:0}25%,50%,75%,99%{opacity:1}}
.version{font-size:10px;letter-spacing:1.2px;color:var(--text-muted)}
@media(max-width:1250px){:root{--dock-width:212px;--inspector-width:228px}.topbar{gap:9px;padding:0 9px}.document-area{width:215px;flex-basis:215px;padding-left:10px}.brand.compact{font-size:0}.document-view{gap:4px}.context-breadcrumb{max-width:100px}.tool-group{padding:0 7px;gap:5px}.tool-group-label{font-size:7px}.tool-group .ghost{padding:3px 5px}.statusbar{gap:8px}#object-count{display:none}}
@media(max-width:1050px){:root{--dock-width:188px;--inspector-width:215px}.topbar{gap:7px}.document-area{width:180px;flex-basis:180px;min-width:130px}.structure-state{max-width:82px;font-size:9px}.top-actions #help,.top-actions #save{display:none}.tool-group.secondary-group{display:none}.context-breadcrumb{max-width:90px}.tool-group-label{display:none}.document-view .view-tabs button{min-width:54px;padding:3px 6px}.top-actions #export{padding:4px 7px}.app-action-group{padding-left:5px}.status-hint{min-width:50px}.canvas-bottom button{padding:2px 4px}}
@media(max-width:820px){:root{--dock-width:154px;--inspector-width:190px}.document-area{min-width:100px;width:155px;flex-basis:155px}.topbar #project-name{font-size:11px}.structure-state{display:none}.top-actions #history-button{display:none}.topbar #export span{display:none}.document-view .view-tabs button{min-width:45px;font-size:10px}.tools{width:44px}.tools button{width:33px}.library-tabs{padding:0 2px}.library-tabs button{font-size:9px;padding:5px 3px}.dock-header{padding:0 9px}.dock-header small{display:none}.resource-grid{gap:4px}.resource svg:not(.ui-icon){height:42px}.tool-group .ghost{padding:3px 5px;font-size:9px}.context-breadcrumb{display:none}#hint{max-width:170px}.canvas-bottom button .status-text{display:none}.templates{grid-template-columns:repeat(3,1fr)}.version{display:none}}
@media(max-width:620px){:root{--dock-width:125px;--inspector-width:170px}.topbar{padding:0 6px;gap:5px}.document-area{min-width:85px;padding-left:5px}.top-actions #undo,.top-actions #redo{width:25px}.top-actions #settings,.top-actions #help{display:none}.app-action-group{padding-left:3px}.tool-group{padding:0 4px}.tool-group .ghost .ui-icon{display:none}.library-tip{display:none}.resource-grid{grid-template-columns:1fr}.prop-section,.inspector-section-body{padding:9px}.settings-layout{grid-template-columns:95px 1fr;gap:10px}.settings-layout nav{padding-right:6px}.status-hint{display:none}.statusbar{padding:0 5px}.canvas-bottom{width:100%;justify-content:flex-end}.start-main{padding:0 20px;margin-top:30px}.start h1{font-size:34px}.templates{grid-template-columns:repeat(2,1fr)}.section-label span,.recent small{display:none}.floating-palette{width:270px}.history-palette{left:50px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}.floating-palette,.context,.variants-popover,.appearance-popover,.tool-learning-card{animation:none!important}.tool-demo *{animation:none!important;stroke-dashoffset:0;opacity:1}.tool-demo .demo-before,.tool-demo .demo-rough,.tool-demo .demo-draw-cursor,.tool-demo .demo-erase,.tool-demo .demo-erase-cursor{opacity:0}.tool-demo .demo-move{transform:translate(37px,4px)}.tool-demo .demo-node-move{transform:translate(0,-25px)}.tool-demo .demo-pen-cursor{transform:translate(170px,70px)}.tool-demo .demo-type{clip-path:inset(0)}.tool-demo .demo-edge-cursor{transform:translate(93px,86px)}}

input.zoom-edit{height:24px;width:58px;padding:2px 5px;font-size:10px;background:var(--surface-input);border:1px solid var(--selection)}.resource-star.active .ui-icon{fill:var(--accent-soft)}.floating-header strong{display:flex;align-items:center;gap:6px}.dock-header>span{font-size:9px;color:var(--text-muted)}
/* Siluetra launcher: project work takes precedence over templates. */
.start{min-height:100dvh;background:var(--surface-app)}.start-head{height:64px;padding:0 26px;border-bottom:1px solid var(--border-strong);background:var(--surface-toolbar);display:flex;align-items:center;justify-content:space-between}.brand-mark{font:inherit;padding:5px;letter-spacing:normal}.brand-mark svg{width:100%;height:100%}.start-head .brand{font-size:22px}.launcher-layout{display:grid;grid-template-columns:186px 1fr;min-height:calc(100dvh - 64px)}.launcher-nav{padding:24px 14px;border-right:1px solid var(--border-default);background:var(--surface-tools);display:flex;flex-direction:column;gap:5px}.launcher-nav button{justify-content:flex-start;font-size:12px;padding:9px 12px}.launcher-nav button.active{background:var(--surface-hover);font-weight:600;border-left:2px solid var(--selection)}.launcher-storage{margin-top:auto;padding:18px 12px;color:var(--text-muted);font-size:10px}.start-main{max-width:none;width:100%;margin:0;padding:32px 38px}.launcher-actions{display:flex;gap:8px;margin-bottom:32px}.launcher-actions button{height:34px;padding:6px 15px;font-size:12px}.recent-top{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.recent-top h1{font-size:16px;font-weight:600;letter-spacing:0;line-height:1.4;margin:0}.recent-view{display:flex;gap:3px}.recent-view button{width:28px;height:28px;padding:5px;color:var(--text-muted)}.recent-view .active{color:var(--accent-text);background:var(--accent-soft)}.recents{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;align-items:start}.recent{display:block;position:relative;border:1px solid var(--border-default);border-radius:5px;background:var(--surface-panel);overflow:hidden;padding:0}.recent:hover{border-color:var(--border-strong)}.recent-open{display:flex;flex-direction:column;width:100%;text-align:left;align-items:stretch;padding:0;gap:0;white-space:normal;border-radius:0}.recent-preview{height:178px;display:block;background:var(--surface-preview);border-bottom:1px solid var(--border-subtle)}.recent-preview svg{width:100%;height:100%;display:block}.recent-name{font-size:12px;font-weight:600;padding:12px 38px 2px 12px}.recent-open small{font-size:10px;padding:0 12px 12px;color:var(--text-muted)}.recent-more{position:absolute;right:7px;bottom:19px;opacity:0;background:var(--surface-panel);width:27px;height:27px;padding:5px}.recent:hover .recent-more,.recent:focus-within .recent-more{opacity:1}.recents.list-view{display:flex;flex-direction:column;gap:6px}.list-view .recent{width:100%}.list-view .recent-open{display:grid;grid-template-columns:64px minmax(150px,1fr) 210px;align-items:center;gap:14px}.list-view .recent-preview{height:58px;border:0;border-right:1px solid var(--border-default)}.list-view .recent-name,.list-view .recent-open small{padding:0}.list-view .recent-more{bottom:15px;right:8px}.start-note{font-size:10px;color:var(--text-muted);margin-top:24px;letter-spacing:0}.launcher-empty{grid-column:1/-1;min-height:260px;border:1px dashed var(--border-strong);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--text-secondary)}.launcher-empty>.ui-icon{width:32px;height:32px;color:var(--text-muted)}.launcher-empty strong{font-weight:500;font-size:14px}.launcher-empty span{font-size:11px}.launcher-empty button{margin-top:7px}.new-document-templates{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}dialog:has(.new-document-templates){width:850px}.template{display:flex;align-items:stretch;flex-direction:column;padding:0;border:1px solid var(--border-default);border-radius:5px;background:var(--surface-panel);text-align:left;overflow:hidden;white-space:normal}.template svg{width:100%;height:155px;background:var(--surface-preview)}.template strong{font-size:12px;font-weight:600;padding:12px 10px 3px}.template span{font-size:10px;color:var(--text-secondary);padding:0 10px 12px}.template small{display:block;font-size:9px;color:var(--text-muted);margin-top:3px}.template:hover{border-color:var(--border-strong);background:var(--surface-hover)}.template.active{border-color:var(--selection);box-shadow:inset 0 0 0 1px var(--selection);background:var(--accent-soft)}.template.active strong:after{content:'';width:5px;height:5px;border-radius:50%;display:inline-block;margin-left:8px;background:var(--accent-text)}.list-view .recent-open small{padding-right:45px}@media(max-width:1050px){.launcher-layout{grid-template-columns:155px 1fr}.start-main{padding:25px}.new-document-templates{gap:6px}.template svg{height:130px}}@media(max-width:820px){.launcher-layout{grid-template-columns:130px 1fr}.launcher-nav{padding:20px 8px}.launcher-nav button{font-size:10px;padding:8px}.list-view .recent-open{grid-template-columns:55px 1fr}.list-view .recent-open small{display:none}.new-document-templates{grid-template-columns:repeat(3,1fr)}}
.selection-header{padding:15px 12px;display:flex;align-items:flex-start;gap:9px;background:var(--surface-panel-elevated);border-bottom:1px solid var(--border-strong)}.selection-header>.ui-icon{width:23px;height:23px;padding:2px;margin-top:3px;color:var(--text-secondary)}.selection-header>div{min-width:0;display:flex;flex-direction:column;gap:3px}.selection-header small{font-size:8px;letter-spacing:.7px;color:var(--text-secondary)}.selection-header strong{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.selection-header span{font-size:9px;color:var(--text-muted)}.inspector-quick{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:10px 12px;border-bottom:1px solid var(--border-default);background:var(--surface-inspector)}.inspector-quick button{font-size:10px;justify-content:flex-start;padding:5px;gap:5px;min-height:29px;background:var(--surface-panel-elevated);border-color:var(--border-default);white-space:normal;text-align:left}.inspector-quick .ui-icon{width:15px;height:15px;color:var(--text-secondary)}.inspector-section>summary{background:var(--surface-panel-elevated);padding:9px 12px;margin-bottom:0}.inspector-section-body{padding-top:10px}.inspector-section-body .prop-section{padding:0 0 10px;border:0}.inspector-section-body .prop-section h3{font-size:9px;color:var(--text-secondary)}.inspector-section-body .prop-section p{display:none}.inspector-section-body .prop-buttons{margin-top:8px}.inspector-section-body .prop-buttons .ui-icon{width:13px;height:13px}.modifier-summary{display:flex;gap:3px;align-items:center;border-bottom:1px solid var(--border-subtle);padding:3px 0}.modifier-summary>button:first-child{flex:1;min-width:0;justify-content:flex-start;text-align:left;gap:7px;padding:5px 3px}.modifier-summary span{display:flex;flex-direction:column}.modifier-summary strong{font-size:10px;font-weight:500}.modifier-summary small{font-size:9px;color:var(--text-muted);margin-top:2px}.modifier-summary .ui-icon{width:15px;height:15px}.modifier-summary.active{border-left:2px solid var(--selection);background:var(--accent-soft);padding-left:5px}.modifier-summary .icon-button{width:23px;height:23px;padding:4px}.document-inspector-preview{height:155px;background:var(--surface-preview);margin:12px;border:1px solid var(--border-default);border-radius:3px}.document-inspector-preview svg{width:100%;height:100%}.document-summary{font-size:9px;color:var(--text-secondary);padding:0 12px 9px}.construction-summary{display:flex;align-items:center;gap:6px;font-size:10px;margin-top:9px}.object-group>summary{gap:5px}.object-group>summary:before{color:var(--text-muted)}.object-group>summary .ui-icon{width:13px;height:13px}.context .danger{color:var(--danger)}
.tool-learning-card.small-tooltip{padding:7px 9px;width:auto;min-width:90px;max-width:230px;background:#303437;color:#f6f7f8;border-color:#4a5054;border-radius:4px;box-shadow:var(--shadow-floating)}.small-tooltip .tool-card-heading strong{font-size:11px;font-weight:500}.small-tooltip .tool-card-heading kbd{color:#d7dddf;background:#444a4d;border-color:#60696d;font-size:9px}.context-tool-hint{font-size:10px;color:var(--text-secondary);white-space:nowrap}.tool-group.secondary-group{display:none}@media(min-width:1251px){.tool-group.secondary-group{display:flex}}.context-bar{overflow:visible}.context-breadcrumb{width:120px;max-width:120px}.context-bar .tool-group{padding:0 7px}.context-bar .ghost{padding:3px 5px}
.canvas-drop-target{box-shadow:inset 0 0 0 2px var(--selection)}

.recent-top h1{font-family:var(--font-ui)}.component-fields{margin-top:10px}

/* Document and shared vector color surfaces. */
.new-document-layout{display:grid;grid-template-columns:1fr 280px;gap:20px}.new-document-layout h3{font-size:9px;letter-spacing:.8px;color:var(--text-secondary);margin:0 0 12px}.new-document-layout .new-document-templates{grid-template-columns:repeat(3,1fr);gap:8px}.new-document-layout .template svg{height:116px}.new-document-layout .template strong{padding:8px 8px 3px;font-size:11px}.new-document-layout .template span{padding:0 8px 8px;font-size:9px}.document-setup{border-left:1px solid var(--border-default);padding-left:20px}.document-setup small{font-size:10px;line-height:1.6;color:var(--text-muted);display:block;margin-top:14px}.orientation{display:flex;gap:5px;margin-top:10px}.orientation button{font-size:10px;border-color:var(--border-default)}.document-setup [data-prop=newCustomPpi]{max-width:100%}.color-palette{top:110px;left:335px;width:268px;z-index:24}.color-palette .fields{grid-template-columns:repeat(3,1fr);margin-top:10px}.color-palette label{font-size:10px;gap:4px}.color-targets{display:flex;gap:5px;margin-bottom:10px}.color-targets button{flex:1;font-size:10px;border-color:var(--border-default)}.color-targets button.active{background:var(--accent-soft);color:var(--accent-text)}.color-sv{height:130px;position:relative;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--hue);touch-action:none;cursor:crosshair;border-radius:3px}.color-sv i{position:absolute;pointer-events:none;width:10px;height:10px;border:1.5px solid white;border-radius:50%;box-shadow:0 0 0 1px #222;transform:translate(-50%,-50%)}.color-hue{width:100%;margin-top:10px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);height:12px;border-radius:6px;appearance:none}.color-hue::-webkit-slider-thumb{appearance:none;width:8px;height:17px;background:white;border:1px solid #333;border-radius:3px}.color-swatches{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.color-swatch{width:22px;height:22px;border:1px solid var(--border-strong);padding:0;background:var(--swatch);border-radius:3px}.color-swatch:hover{outline:2px solid var(--selection);outline-offset:1px}.no-color{background:linear-gradient(135deg,transparent 45%,#d45454 46%,#d45454 54%,transparent 55%),white}.color-palette h4{font-size:10px;font-weight:500;margin:12px 0 0}.appearance-swatch{font-size:10px;border:1px solid var(--border-default);justify-content:flex-start;gap:6px}.appearance-swatch:before{content:'';width:18px;height:18px;background:var(--swatch);border:1px solid var(--border-strong);border-radius:2px}.fill-hover{fill:#357e6214;stroke:var(--selection);stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}.demo-color{fill:#334b3d;stroke:none}.tool-learning-card{z-index:2147483000;isolation:isolate}.tool-cluster svg{pointer-events:none}.panel-parent>summary{display:flex;gap:5px;font-size:11px;align-items:center;padding:6px 2px}.panel-parent .object-row{padding-left:14px}.panel-subtitle{font-size:8px;color:var(--text-muted);padding:6px 14px 2px;letter-spacing:.6px}
@media(max-width:850px){.new-document-layout{grid-template-columns:1fr 235px;gap:12px}.document-setup{padding-left:12px}.new-document-layout .new-document-templates{grid-template-columns:repeat(2,1fr)}.color-palette{left:80px}}

.rail-colors{position:relative;min-height:44px;width:40px;margin:10px 0 5px}.tools .rail-swatch{position:absolute;width:23px;height:23px;padding:0;border:2px solid var(--surface-tools);outline:1px solid var(--border-strong);border-radius:2px}.rail-colors #active-fill{left:3px;top:1px;z-index:2}.rail-colors #active-stroke{left:13px;top:12px;z-index:1}
/* Free hierarchy and shared workspace surfaces */
.library-tabs button{font-size:14px}.layer-row{min-height:34px;gap:4px;transition:background 150ms,opacity 150ms;position:relative}.layer-row .name{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:14px}.layer-row .name small{color:var(--text-muted);font-size:12px}.layer-disclosure{width:18px!important;flex-shrink:0}.layer-disclosure:disabled{visibility:hidden}.layer-row button{padding:3px;width:23px;flex-shrink:0}.layer-row[data-drop-position=above]:before,.layer-row[data-drop-position=below]:after{content:'';position:absolute;height:2px;background:var(--selection);left:4px;right:4px;top:0}.layer-row[data-drop-position=below]:after{top:auto;bottom:0}.layer-row[data-drop-position=inside]{background:var(--selection-soft);outline:1px solid var(--selection)}.layer-row[data-drop-position=forbidden]{cursor:not-allowed;background:var(--surface-hover)}.layer-dragging{opacity:.93;box-shadow:0 5px 18px #0003;background:var(--surface-floating)}.layers-footer{position:sticky;bottom:0;display:flex;gap:8px;border-top:1px solid var(--border-default);padding:5px;background:var(--surface-panel)}.layers-footer button:last-child{margin-left:auto}.layers-footer button{width:30px;height:30px;padding:6px}.layer-rename{width:100%;min-width:40px;font-size:14px}.layer-tree{min-height:90px}.dependent-layer{color:var(--text-secondary)}
.workspace{position:relative;flex-wrap:wrap}.canvas-wrap{order:2;flex:1;min-width:200px}.dock-left{order:1}.dock-right{order:3}.dock-bottom{order:4;width:100%;flex-direction:row;max-height:220px}.dockable-panel .floating-header,.dockable-panel .dock-header{cursor:grab;user-select:none;touch-action:none}.workspace-menu{position:relative}.workspace-menu summary{cursor:pointer;padding:6px;font-size:14px}.workspace-menu>div{position:absolute;top:100%;right:0;z-index:500;width:270px;background:var(--surface-menu);padding:8px;box-shadow:0 5px 20px #0003;border-radius:6px}.workspace-menu button{display:block;width:100%;text-align:left;padding:8px;font-size:14px}.fabric-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:8px 0 14px}.fabric-tiles button{display:flex;flex-direction:column;gap:5px;align-items:center;font-size:13px;padding:7px;border:1px solid var(--border-default)}.fabric-tiles button.active{border-color:var(--selection);background:var(--accent-soft)}.fabric-swatch{display:block;width:54px;height:42px;border-radius:4px;background-color:#344454}.fabric-waffle{background-image:repeating-linear-gradient(0deg,transparent 0 7px,#8b97a944 7px 8px),repeating-linear-gradient(90deg,transparent 0 7px,#8b97a944 7px 8px)}.fabric-rib{background-image:repeating-linear-gradient(90deg,transparent 0 4px,#8b97a966 4px 5px)}.fabric-denim,.fabric-twill,.fabric-jersey{background-image:repeating-linear-gradient(135deg,transparent 0 4px,#8b97a944 4px 5px)}.fabric-terry{background-image:radial-gradient(ellipse at center,transparent 30%,#8b97a955 35%,transparent 45%);background-size:8px 10px}.fabric-fleece{background-image:repeating-linear-gradient(25deg,transparent 0 5px,#8b97a944 5px 6px)}.fabric-none{background:#344454}.floating-body output{font-size:13px;color:var(--text-secondary)}
@media(max-width:950px){.workspace-menu summary{font-size:12px}}@media(max-width:720px){.dock-header span{display:none}.layer-row .name{font-size:12px}.workspace-menu{display:none}}
.layer-row{transition:transform 150ms ease,background 150ms,opacity 150ms}.layer-drag-ghost{position:fixed;left:-2000px;top:0;width:250px;background:var(--surface-floating);opacity:.94;box-shadow:0 4px 18px #0004;border:1px solid var(--selection);border-radius:4px}.layer-drag-count{position:absolute;right:8px;top:-8px;color:white;background:var(--selection);padding:2px 6px;border-radius:10px;font-size:12px}.layer-row .object-icon svg{width:17px;height:17px}.layer-row .name{flex:1}@media(prefers-reduced-motion:reduce){.layer-row{transition:none}}
/* Bounded desktop editing shell: the list, not the workspace, scrolls. */
html,body{height:100%;overflow:hidden}.editor{height:100dvh;min-height:0;display:grid;grid-template-rows:48px 48px minmax(0,1fr) 32px;overflow:hidden}.editor.hidden{display:none}.topbar{height:auto;min-height:0;padding:5px 12px;gap:10px}.context-bar{height:auto;min-height:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;flex-shrink:0}.context-bar .tool-group{flex-shrink:0}.context-bar button,.context-tool-hint{font-size:12px}.tool-group-label{font-size:12px}.context-breadcrumb{max-width:170px;overflow:hidden;text-overflow:ellipsis;font-size:12px;flex-shrink:0}.workspace{display:flex;flex-wrap:nowrap;min-height:0;min-width:0;overflow:hidden;align-items:stretch}.canvas-wrap{min-width:0;min-height:0;flex:1}.tools{min-height:0;overflow-y:auto;flex-shrink:0}.dock-bottom{position:absolute;bottom:0;left:50px;right:0;width:auto;max-height:30%;flex-direction:row;z-index:80}.dock-header{flex:0 0 32px;min-height:32px}.library-tabs{flex-shrink:0}.library-tip{display:none}.library,.properties{min-height:0;display:flex;flex-direction:column}#properties{min-height:0;overflow:auto;flex:1}#library-content[data-rendered=objects]{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0;flex:1}#library-content[data-rendered=objects]>.resource-search-wrap{flex:0 0 auto;margin:8px}#library-content .layer-tree{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 4px}#library-content .layers-footer{flex:0 0 38px;margin-top:0;position:relative;border-top:1px solid var(--border-default);background:var(--surface-panel);display:flex;align-items:center;padding:3px 8px}.layer-mirror-badge{color:var(--selection);display:flex}.layer-mirror-badge svg{width:14px;height:14px}.floating-header{flex:0 0 auto;min-height:38px}.floating-body{flex:1;min-height:0;overflow:auto}.dockable-panel .floating-header:active,.dockable-panel .dock-header:active{cursor:grabbing}.fabric-swatch svg{width:100%;height:100%;display:block}.fabric-swatch{background-image:none!important}.statusbar{min-height:0;height:auto;overflow:hidden}.resource-grid .resource span{font-size:12px}
@media(max-width:1440px){.document-area{width:190px;min-width:140px}.topbar{gap:7px}.topbar .brand{font-size:16px}.top-actions{gap:6px}.context-bar .secondary-group{display:none}.context-bar .toolbar-overflow{flex-shrink:0}.topbar .structure-state{max-width:125px}.status-hint{max-width:36%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.context-bar .toolbar-menu{position:fixed;top:96px;right:290px;max-height:calc(100dvh - 140px);overflow:auto;z-index:500}.context-bar input[data-eraser-radius]{width:52px}.context-bar select{font-size:13px}.dockable-panel[style*="order: 5"]{order:5}
/* Command discovery keeps the existing narrow tool rail usable on laptops. */
.command-results{display:flex;flex-direction:column;max-height:min(52dvh,420px);overflow:auto;margin-top:12px;gap:3px}
.command-results button{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:10px 12px;flex-shrink:0;background:var(--panel,#fff);border:1px solid transparent}
.command-results button:hover,.command-results button:focus-visible{background:#e2eee7;border-color:#357e62;outline:0}
.command-results kbd{font-size:12px;color:#68746e}
#command-query{width:100%;font-size:16px;min-height:38px}
#command-tool{flex-shrink:0}

/* V13: compact native tool families and contextual surfaces. */
.tools{width:52px;overflow:visible;position:relative;z-index:140;padding:8px 5px;gap:3px}
.tool-family{position:relative;display:flex;align-items:center;height:34px;margin-bottom:3px}
.tool-family>button{width:36px;height:32px;padding:6px;border-radius:5px}
.tool-family>button>span,.tool-family>button>kbd{display:none}
.tool-family:has([data-tool].active)>button{background:var(--accent-soft);color:var(--selection)}
.tool-flyout>summary{position:absolute;right:-2px;bottom:1px;list-style:none;cursor:pointer;width:13px;height:16px;display:grid;place-items:center;border-radius:3px}
.tool-flyout>summary::-webkit-details-marker,.ux-menu>summary::-webkit-details-marker{display:none}
.tool-flyout>summary svg{width:12px;height:12px}.tool-flyout>summary:hover{background:var(--accent-soft)}
.tool-flyout-menu{position:fixed;left:56px;top:104px;width:245px;padding:8px;background:var(--surface-menu);border:1px solid var(--border-strong);border-radius:7px;box-shadow:0 10px 32px #0003;z-index:700}
.tool-flyout-menu>strong{display:block;padding:5px 8px;font-size:13px;color:var(--text-secondary)}
.tool-flyout-menu>button{width:100%;display:flex;gap:10px;align-items:center;text-align:left;height:36px;padding:7px;font-size:14px}.tool-flyout-menu kbd{margin-left:auto;font-size:12px}.tool-flyout-menu .ui-icon{width:20px;height:20px}
.tool-flyout-menu>button:hover,.ux-menu button:hover,.pathfinder-grid button:not(:disabled):hover,.tool-guide button:hover{background:var(--accent-soft)}
.ux-menus{display:flex;align-items:center;gap:0}.ux-menu summary{list-style:none;cursor:pointer;font-size:13px;padding:6px 7px}.ux-menu>div{position:fixed;top:46px;width:245px;max-height:calc(100dvh - 90px);overflow:auto;background:var(--surface-menu);border:1px solid var(--border-strong);border-radius:6px;box-shadow:0 8px 30px #0003;padding:6px;z-index:700}
.ux-menu button{display:flex;align-items:center;gap:8px;width:100%;font-size:14px;padding:8px;text-align:left;border-radius:4px}.ux-menu button .ui-icon{width:18px;height:18px;flex-shrink:0}
.selection-taskbar{display:flex;gap:5px;align-items:center}.selection-taskbar button{display:flex;gap:5px;align-items:center;padding:6px 8px;font-size:13px;white-space:nowrap;border-radius:5px}.selection-taskbar button:hover{background:var(--accent-soft)}
.pathfinder-popover{position:fixed;top:103px;right:276px;width:332px;max-width:calc(100vw - 30px);max-height:calc(100dvh - 155px);overflow:auto;background:var(--surface-panel);border:1px solid var(--border-strong);border-radius:7px;box-shadow:0 10px 36px #0003;z-index:550}.pathfinder-popover.hidden{display:none}.pathfinder-popover .floating-body{padding:12px}.pathfinder-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.pathfinder-grid button{display:flex;gap:7px;align-items:center;font-size:13px;padding:8px 6px;text-align:left;border:1px solid var(--border-default);border-radius:4px}.pathfinder-grid .ui-icon{width:21px;height:21px;flex-shrink:0}.ux-explanation{font-size:13px;line-height:1.5;color:var(--text-secondary);margin:0 0 12px}.context .pathfinder-grid{grid-template-columns:1fr}.context .ux-explanation{padding:8px}
button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--selection);outline-offset:2px}
.bez{fill:white;stroke:var(--selection);stroke-width:1.4;vector-effect:non-scaling-stroke;cursor:move}.bez.active{fill:var(--selection)}.node.active{fill:var(--selection);stroke:white}.node:not(.active){fill:white;stroke:var(--selection)}.anchor-hit,.handle-hit{cursor:move;pointer-events:all}.hover-anchor{fill:none;stroke:#357e62;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.65}.gradient-axis{stroke:#357e62;stroke-width:1.4;vector-effect:non-scaling-stroke;pointer-events:none}.gradient-end{fill:white;stroke:#357e62;stroke-width:1.5;vector-effect:non-scaling-stroke;cursor:move}.measure-value{font-size:13px;font-variant-numeric:tabular-nums;color:var(--selection)}
.tool-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-guide h3{grid-column:1/-1;margin:8px 0 0;font-size:14px}.tool-guide button{display:grid;grid-template-columns:24px 1fr auto;gap:5px;text-align:left;padding:10px;border:1px solid var(--border-default);border-radius:5px}.tool-guide button>span{grid-column:2/-1;font-size:13px;line-height:1.5}.tool-guide button strong{font-size:14px}.tool-guide kbd{font-size:12px}.export-scope{display:flex;gap:8px;align-items:center;margin-bottom:15px;font-size:14px}.export-scope button{padding:6px;border:1px solid var(--border-default);border-radius:5px}
.layer-row:hover{background:var(--accent-soft)}.layer-row.active{box-shadow:inset 3px 0 var(--selection)}.layer-row.is-locked .name{color:var(--text-secondary)}.layer-row:focus-within{outline:1px solid var(--selection);outline-offset:-1px}.layer-kind{font-size:12px;color:var(--text-secondary);flex-shrink:0}.resource-kind{font-size:12px;color:var(--text-secondary);padding:0 6px 5px}.resource-grid .resource{min-height:95px}.resource-grid .resource svg{max-height:58px}.resource-empty{font-size:14px;line-height:1.5;padding:12px}
@media(max-width:1440px){.topbar{padding:5px 8px;gap:5px}.document-area{width:150px;min-width:110px}.document-view{gap:4px}.structure-state{display:none}.top-actions #save span{display:none}.top-actions #save{width:30px;padding:5px}.ux-menu summary{padding:5px}.context-breadcrumb{max-width:135px}.pathfinder-popover{right:270px}.status-hint{max-width:26%}}
@media(max-height:650px){.tools{overflow-y:auto}.tool-family{height:29px;margin-bottom:0}.tool-family>button{height:28px}.tool-flyout-menu{max-height:calc(100dvh - 120px);overflow:auto}}
@media(max-width:1000px){.ux-menus{display:none}.pathfinder-popover{right:15px}.tool-guide{grid-template-columns:1fr}.document-area{min-width:80px}.document-view .view-tabs button{padding:5px}}

.resource-use-hint{font-size:12px;color:var(--text-secondary);margin:4px 0 9px}.tool-flyout[open]>summary,.ux-menu[open]>summary{background:var(--accent-soft);color:var(--selection)}

.dialog-error{color:#b53b3b;font-size:14px;line-height:1.5;border-left:3px solid currentColor;padding:7px 10px;background:#c7484810}.dialog-error.hidden{display:none}.context-bar:has(.tool-group input){scrollbar-width:thin}.tools{flex-direction:column}.command-results button:disabled{cursor:not-allowed}

/* V14 stabilization: interface SVGs never enter document space. */
.ui-icon{width:20px;height:20px;max-width:20px;max-height:20px;flex:0 0 20px;overflow:visible}
.tool-guide{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}
.tool-guide button{min-width:0;white-space:normal;grid-template-columns:20px minmax(0,1fr) auto;align-items:start;height:auto;overflow-wrap:anywhere}
.tool-guide button>span,.tool-guide button>strong{min-width:0;white-space:normal;overflow-wrap:anywhere}.tool-guide button>span{line-height:1.5}.tool-guide kbd{white-space:nowrap}.modal-content{min-width:0;overflow-x:hidden}.modal-content>*{max-width:100%}.modal-content .fields{min-width:0}.pathfinder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pathfinder-grid button{min-width:0;white-space:normal;overflow-wrap:anywhere}.command-results button span{min-width:0;white-space:normal}.dock-header{gap:6px}.dock-header span{margin-left:auto}.resource-kind{display:block;line-height:1.3}.rail-swatch{background-size:100% 100%!important}.paint-status{padding:8px 12px;font-size:13px;line-height:1.4;color:var(--text-secondary)}
@media(max-width:600px){.tool-guide{grid-template-columns:minmax(0,1fr)}}
/* Existing panel workflow: selected spans, garment completion and face preview. */
.panel-edge-region{fill:var(--warning);fill-opacity:.28;fill-rule:evenodd;stroke:none;pointer-events:none}.panel-edge-option{fill:var(--selection);fill-opacity:.06;fill-rule:evenodd;stroke:var(--selection);stroke-opacity:.4;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}.panel-edge-auto{fill:none;stroke:var(--selection);stroke-width:2;stroke-dasharray:5 4;opacity:.6;vector-effect:non-scaling-stroke;pointer-events:none}.panel-edge-conflict{stroke:var(--danger);opacity:.65}.panel-outline-toggle{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}#panel-preview{flex-wrap:wrap;max-width:calc(100% - 24px)}

.panel-edge-owner{fill:none;stroke:var(--selection);stroke-width:1;stroke-opacity:.3;vector-effect:non-scaling-stroke;pointer-events:none}
