:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#343a35;background:#f8f7f4;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--accent: #e96b48;--accent-soft: #faece5;--ink: #343a35;--muted: #92948e;--line: #e9e8e2;--panel: #fdfcf9;--green: #527360}*{scrollbar-width:thin}:root{scrollbar-color:var(--scroll-thumb, #c7ccbe) transparent}::-webkit-scrollbar{width:11px;height:11px}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb, #c7ccbe);border:3px solid transparent;border-radius:8px;background-clip:padding-box}::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-thumb-hover, #a8b09b)}*{box-sizing:border-box;overscroll-behavior:none}html,body,#app{height:100%;overflow:hidden}body{position:fixed;inset:0;margin:0;touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%;user-select:none;-webkit-user-select:none}.app-shell{-webkit-touch-callout:none}input,textarea,[contenteditable]{user-select:text;-webkit-user-select:text}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:inherit;background:none;border:0;transition:background .15s,color .15s,box-shadow .15s}button:disabled{opacity:.35;cursor:not-allowed}button:not(:disabled):active{transform:translateY(1px)}a{color:inherit;text-decoration:none}input,textarea,select{color:inherit;min-width:0}input[type=number]::-webkit-inner-spin-button{opacity:0}input[type=number]:hover::-webkit-inner-spin-button{opacity:1}input[type=range]{appearance:none;width:100%;height:3px;background:var(--line, #dfdfd7);border-radius:2px;margin:17px 0 8px;accent-color:var(--accent);cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border:2px solid var(--panel);background:#55694f;border-radius:50%;box-shadow:0 0 0 1px #55694f}input[type=range]::-moz-range-thumb{width:10px;height:10px;border:2px solid var(--panel);background:#55694f;border-radius:50%}input[type=checkbox]{accent-color:var(--accent)}h2,h3,p{margin:0}h2{font-size:14px;font-weight:600;letter-spacing:-.2px}h3{font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}h3>svg{color:var(--text-muted, #999d92)}kbd{font-family:inherit;font-size:10px;color:var(--text-muted, #8c9086);background:var(--surface-soft, #f1f1eb);padding:3px 5px;border-radius:4px;white-space:nowrap}hr{border:0;border-top:1px solid var(--line);margin:6px 0}svg{flex-shrink:0}.app-shell{height:100%;min-height:480px;display:flex;flex-direction:column;overflow:hidden}.text-button{padding:6px 0;font-size:12px}.text-button:hover{color:var(--accent)}.status-dot{display:inline-block;width:5px;height:5px;background:#7b9271;border-radius:50%;flex-shrink:0}.status-dot.warning{background:#e39146}.icon-button{padding:0;width:30px;height:30px;border-radius:5px;color:var(--text-muted, #7e8578);flex-shrink:0}.icon-button:hover:not(:disabled){background:var(--surface-hover, #ebece5);color:var(--ink, #384c3c)}.button{border:1px solid var(--line, #dedfd6);background:var(--panel);border-radius:6px;white-space:nowrap}.button:hover:not(:disabled){background:var(--surface-hover, #f0f0e8);border-color:var(--line, #cbd0c1)}.button.primary{background:var(--accent);color:var(--on-inverse, white);border-color:var(--accent);box-shadow:0 2px 2px #73381306}.button.primary:hover:not(:disabled){background:#dc5e3d;border-color:var(--accent-border, #dc5e3d)}.editor-body{flex:1;display:flex;min-height:0}.tool-rail{width:66px;min-width:66px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:20px 0 16px;z-index:20}.tool-rail-main,.tool-rail-bottom{display:flex;align-items:center;flex-direction:column;gap:8px}.tool-button{position:relative;width:42px;height:42px;border-radius:7px;color:var(--text-secondary, #7b8277)}.tool-button.active{background:var(--accent-soft);color:var(--accent)}.tool-button.active:before{content:"";position:absolute;width:3px;height:21px;left:-12px;background:var(--accent);border-radius:0 3px 3px 0}.tool-button:hover{background:var(--surface-hover, #efefe7);color:var(--ink, #414e40)}.tool-button.active:hover{background:var(--accent-soft);color:var(--accent)}.tool-tooltip{pointer-events:none;position:absolute;left:49px;display:flex;align-items:center;gap:12px;background:#364236;color:var(--on-inverse, #fff);padding:9px 12px;font-size:11px;white-space:nowrap;opacity:0;border-radius:6px;box-shadow:0 4px 16px #24331e20;transform:translate(-3px);transition:.1s;z-index:80}.tool-tooltip kbd{background:#52604f;color:var(--on-inverse, #e2e5dd)}.tool-button:hover .tool-tooltip{opacity:1;transform:translate(0)}.tool-corner{position:absolute;right:8px;bottom:8px;width:0;height:0;border-bottom:4px solid var(--line, #9da293);border-left:4px solid transparent}.rail-separator{width:26px;height:1px;background:var(--line);margin:7px 0}.properties-panel{width:224px;min-width:224px;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.panel-heading{height:61px;min-height:61px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:12px}.shortcut-badge{border:1px solid var(--line, #e4e5dc);font-size:9px;color:var(--text-muted, #92988b);padding:2px 5px;border-radius:4px}.properties-scroll{overflow-x:hidden;overflow-y:auto;flex:1}.property-section{padding:21px 19px;border-bottom:1px solid var(--line)}.property-section:last-child{border-bottom:0}.property-stack{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;border-width:0 0 1px}.property-stack>h3{margin:0 0 3px}.property-stack>h3.mt{margin-top:8px}.property-stack>.mt,.property-stack>.adjustment-control{margin:0}.property-stack>.ui-toggle{min-height:0;padding:0}.property-stack>p{margin-top:-4px}.property-stack>.button{margin-top:4px}.property-stack .form-label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:10px;font-weight:400}.small{font-size:11px;line-height:1.7}.muted{color:var(--text-muted, #95998d)}.mt{margin-top:12px}.full-width{width:100%}.center{text-align:center}.field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.action-row{display:flex;flex-wrap:wrap;gap:6px}.action-row>*{flex:1 1 auto;min-width:0}.app-shell .action-row>.button{padding:0 10px;gap:6px}.label-value{display:flex;justify-content:space-between;align-items:center;font-size:10px;gap:8px}.label-value h3{margin:0}.label-value>span:last-child{white-space:nowrap}.number-field{min-width:0;border:1px solid var(--line, #e0e2d7);background:var(--surface, #fbfbf7);border-radius:5px;display:flex;gap:8px;align-items:center;padding:0 8px;font-size:11px}.number-field>span{color:var(--text-muted, #9b9f93);font-size:10px}.number-field>svg{color:var(--text-muted, #949b8a)}.number-field input{width:100%;min-width:0;background:none;border:0;padding:0;font-size:10px;height:100%}.canvas-preview-mini{height:104px;background:var(--workspace, #f1f1eb);border:1px solid var(--line, #e8e9df);border-radius:6px;display:flex;align-items:center;justify-content:center;margin-bottom:17px;overflow:hidden}.canvas-preview-mini>div{max-width:120px;max-height:76px;width:100%;border:1px solid var(--line, #dddccb);box-shadow:0 2px 4px #1f2d1910;display:flex;align-items:center;justify-content:center}.canvas-preview-mini span{font-size:9px;color:var(--text-secondary, #7f826f);background:var(--surface-overlay, #ffffff70);padding:4px 7px;border-radius:3px}.add-image-card{display:flex;flex-direction:column;width:100%;border:1px dashed var(--line, #d6dbcc);background:var(--surface, #f8f9f2);border-radius:7px;gap:5px;padding:20px 10px}.add-image-card:hover{background:var(--surface-hover, #f0f3e7);border-color:var(--line, #a9b696)}.add-image-card>span{width:39px;height:39px;border-radius:10px;background:var(--surface-sunken, #e9eddd);display:flex;align-items:center;justify-content:center;color:var(--text-muted, #899674);margin-bottom:5px}.add-image-card strong{font-size:11px;font-weight:500}.add-image-card small{font-size:9px;color:var(--text-muted, #9ca28f)}.quick-add{display:flex;gap:9px;margin-top:10px}.quick-add button{border:1px solid var(--line, #e3e5da);border-radius:5px;width:50%;font-size:10px;color:var(--text-muted, #7c8571)}.quick-add button:hover{background:var(--surface-hover, #f0f2e9)}.property-section>p+.button{margin-top:14px}.local-note{padding:17px 15px;display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);font-size:8px;color:var(--text-muted, #939a88);line-height:1.6}.local-note-icon{width:24px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--surface-soft, #f1f3e8);border-radius:6px}.local-note small{display:block;font-size:8px;color:var(--text-muted, #b0b4a6)}.alignment-buttons{display:flex;justify-content:space-between;margin-top:13px;padding-top:8px;border-top:1px solid var(--line)}h3+.alignment-buttons{margin-top:0;padding-top:0;border-top:0}.alignment-buttons .icon-button{width:25px;height:27px}.tiny-label{color:var(--text-muted, #a4a99b);font-size:9px;font-weight:400}.palette{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.palette button{width:16px;height:16px;border-radius:50%;border:1px solid #00000010}.palette button.chosen{outline:1.5px solid #7b846f;outline-offset:2px}.no-fill{color:var(--text-muted, #92998a);font-size:9px;margin-top:7px;padding-bottom:0}.shape-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.shape-button{height:45px;border:1px solid var(--line, #e0e4d8);border-radius:5px;color:var(--text-muted, #86917a)}.shape-button:hover,.shape-button.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-border, #ecc0ad)}.shape-grid+p{margin-top:13px}.brush-preview{background:var(--workspace, #f0f2e9);border-radius:5px;margin:4px 0 15px;height:57px;padding:5px;overflow:hidden}.brush-preview svg{display:block;width:100%;height:100%}.text-content{width:100%;resize:vertical;min-height:60px;max-height:220px;background:var(--surface, #fafbf6);border:1px solid var(--line, #e1e4d9);border-radius:5px;font-size:11px;line-height:1.5;padding:8px}.select-field,.input-field{border:1px solid var(--line, #dde1d4);border-radius:5px;background:var(--surface, #fdfdf9);padding:0 10px;font-size:11px}.is-selected{background:var(--surface-hover, #edf0e4)!important;color:var(--text-secondary, #60714d)!important}.danger-text{color:var(--danger, #bc6856)}.ratio-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:15px}.dimension-label{padding:13px 0;font-size:12px;color:var(--text-secondary, #718063)}.tool-description-icon{width:52px;height:52px;background:var(--surface-sunken, #edf0e5);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--text-muted, #94a181);margin-bottom:20px}.canvas-area{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--workspace, #eeeee8)}.canvas-toolbar{height:48px;min-height:48px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;border-bottom:1px solid var(--line, #e3e5dc);background:var(--surface-soft, #f6f6f0);z-index:5}.view-toggles{display:flex;align-items:center;gap:7px}.view-toggles .icon-button{width:27px;height:27px}.toolbar-divider{height:16px;width:1px;background:var(--surface-sunken, #dfe3d7);margin:0 3px}.workspace{flex:1;position:relative;overflow:hidden;background-color:var(--workspace, #eeeee8);background-image:radial-gradient(var(--workspace-dot, #cdd0c2) .65px,transparent .65px);background-size:14px 14px;touch-action:none;user-select:none}.workspace.tool-hand{cursor:grab}.workspace.tool-hand:active{cursor:grabbing}.workspace.tool-brush,.workspace.tool-shape,.workspace.tool-crop{cursor:crosshair}.workspace.tool-text{cursor:text}.artboard-position{position:absolute;top:48%;left:50%;box-shadow:0 3px 6px #3e4b3120,0 20px 45px -12px #3e4b3122;background:#fff}.artboard{display:block;overflow:visible}.artboard-label{position:absolute;top:-25px;left:0;right:0;display:flex;justify-content:space-between;color:var(--text-muted, #949b88);font-size:9px;letter-spacing:.1px;pointer-events:none}.artboard-label>span:last-child{font-size:8px;color:var(--text-muted, #a9ae9f)}.canvas-object{cursor:inherit}.tool-select .canvas-object{cursor:move}.selection-overlay{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}.hover-frame{stroke-opacity:.45;pointer-events:none}.selection-handle{fill:#fff;stroke:var(--accent);pointer-events:all}.handle-nw,.handle-se{cursor:nwse-resize}.handle-ne,.handle-sw{cursor:nesw-resize}.selection-edge{fill:transparent;stroke:none;pointer-events:all}.handle-n,.handle-s{cursor:ns-resize}.handle-e,.handle-w{cursor:ew-resize}.rotation-handle{cursor:crosshair}.crop-body{fill:transparent;stroke:none;pointer-events:all;cursor:move}.crop-edge{fill:transparent;stroke:none;pointer-events:all}.crop-handle{fill:#fff;stroke:#18221c;stroke-opacity:.45;pointer-events:none}.canvas-controls{position:absolute;bottom:52px;left:50%;transform:translate(-50%);height:39px;display:flex;align-items:center;padding:4px 7px;gap:3px;border:1px solid var(--line, #dddfd3);border-radius:8px;background:var(--surface, #fdfdf8);box-shadow:0 3px 9px #4a553418;z-index:3}.canvas-controls .icon-button{width:25px;height:27px;color:var(--text-muted, #8d9680)}.zoom-value{font-size:11px;min-width:53px;gap:2px}.zoom-value span{font-size:9px;color:var(--text-muted, #9a9f90)}.canvas-controls>span{width:1px;height:16px;background:var(--surface-sunken, #e4e7da);margin:0 7px}.fit-button{font-size:10px;padding:0 6px;color:var(--text-muted, #7a866c);white-space:nowrap}.canvas-tip{position:absolute;bottom:23px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:7px;pointer-events:none;font-size:9px;color:var(--text-muted, #9ca38f)}.tip-key{background:var(--surface-sunken, #e7e9de);border:1px solid var(--line, #dadecf);border-radius:3px;padding:2px 4px;font-size:8px;line-height:1.1}.status-bar{height:29px;min-height:29px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:var(--surface-soft, #f6f6f0);border-top:1px solid var(--line, #e1e4d8);font-size:8px;color:var(--text-muted, #9aa28d);gap:10px}.status-bar>span{display:flex;gap:6px;align-items:center;white-space:nowrap}.status-bar .status-dot{width:4px;height:4px}.status-middle{gap:10px!important}.empty-canvas-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;color:var(--text-muted, #89977b);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;text-align:center;width:260px}.empty-canvas-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:8px;pointer-events:all}.empty-canvas-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:14px 8px;border:1px solid var(--line, #e1e5d9);border-radius:9px;background:var(--surface, #fdfdf9);color:var(--text-secondary, #5f6d55);font-size:11px;font-weight:500;transition:border-color .15s,background .15s}.empty-canvas-actions button:hover{border-color:var(--line, #b9c4ad);background:var(--surface-hover, #f3f5ee);color:var(--ink, #3e4d35)}.empty-canvas-actions button svg{color:var(--text-muted, #8a9a7c)}.empty-canvas-hint strong{font-size:15px;font-weight:500}.empty-canvas-hint span{font-size:10px}.empty-canvas-hint button{pointer-events:all;background:var(--surface-overlay, #ffffffdd)}.layers-panel{width:256px;min-width:256px;background:var(--panel);border-left:1px solid var(--line);display:flex;flex-direction:column;z-index:15}.sidebar-tabs{height:61px;min-height:61px;display:flex;align-items:stretch;padding:0 16px;gap:19px;border-bottom:1px solid var(--line)}.sidebar-tabs>button{padding:0;font-size:11px;color:var(--text-muted, #92988a);gap:7px;position:relative}.sidebar-tabs>button.active{color:var(--ink, #454f3e)}.sidebar-tabs>button.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.sidebar-tabs>button>span{font-size:8px;background:var(--surface-soft, #eff0e8);padding:2px 5px;border-radius:4px;color:var(--text-muted, #8a9480)}.layers-toolbar{height:44px;min-height:44px;padding:0 17px;display:flex;align-items:center;justify-content:space-between}.layers-toolbar>span{display:flex;align-items:center;font-size:10px;gap:8px;color:var(--text-muted, #939b87)}.layer-list{overflow-x:hidden;overflow-y:auto;flex:1;padding:0 9px 10px}.layer-row{display:flex;align-items:center;gap:9px;min-height:46px;padding:6px 7px;margin-bottom:3px;border:1px solid transparent;border-radius:5px;cursor:pointer}.layer-row:hover{background:var(--surface-hover, #f2f4ea)}.layer-row.selected{background:var(--surface-hover, #faeee7);border-color:var(--line, #f3d9ca)}.layer-row.hidden .layer-name,.layer-row.hidden .layer-thumb{opacity:.4}.layer-thumb{width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--surface-soft, #f1f0e8);border:1px solid var(--line, #e9e8dd);border-radius:4px;overflow:hidden;color:var(--text-muted, #7c8770)}.layer-thumb svg{width:100%;height:100%}.layer-thumb.text-thumb svg{width:19px;height:19px}.layer-thumb img{width:100%;height:100%;object-fit:cover}.layer-name{border:0;background:transparent;min-width:0;width:100%;padding:4px 0;font-size:10px;cursor:pointer;text-overflow:ellipsis}.layer-name:focus{background:var(--surface, #fff);border-radius:3px;cursor:text}.layer-actions{display:flex;gap:1px;align-items:center;margin-left:auto}.layer-action{width:20px;height:25px;padding:0;color:var(--text-muted, #a6ad9b);opacity:0;border-radius:3px}.layer-action:hover{color:var(--text-secondary, #5e6f4e);background:var(--surface-hover, #e5e9db)}.layer-action.persistent,.layer-row:hover .layer-action,.layer-row:focus-visible .layer-action,.layer-row:has(.layer-action:focus-visible) .layer-action,.layer-row.selected .layer-action{opacity:1}.layer-row.selected .layer-action{color:var(--warning, #b39583)}.layers-bottom{height:49px;min-height:49px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-top:1px solid var(--line)}.layers-bottom>div{display:flex;gap:4px}.layers-empty{padding:70px 10px;text-align:center;color:var(--text-muted, #a0aa91);font-size:11px}.layers-empty svg{margin-bottom:15px}.layers-empty span{font-size:9px;display:block;margin-top:8px}.adjustment-fieldset{padding:0;margin:0;border:0;min-width:0}.adjustment-fieldset>.property-section:last-child{border-bottom:1px solid var(--line)}.adjustment-fieldset:disabled{opacity:.45}.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 8px}.filter-card{padding:0;display:flex;flex-direction:column;gap:7px;font-size:9px;color:var(--text-muted, #8e9781)}.filter-card>div{width:100%;height:60px;border:2px solid transparent;border-radius:6px;overflow:hidden;background:var(--surface-sunken, #e8e6d9)}.filter-card.active>div{border-color:var(--accent);box-shadow:0 0 0 2px #f7dfd3}.filter-card.active>span{color:var(--accent)}.filter-card img{width:100%;height:100%;object-fit:cover}.filter-placeholder{display:block;width:100%;height:100%;background:var(--line, #eadbc4);position:relative}.filter-placeholder i{width:23px;height:23px;background:#e87c4b;border-radius:50%;position:absolute;top:7px;right:9px}.filter-placeholder b{position:absolute;bottom:-15px;left:7px;right:7px;height:40px;background:#5c795b;border-radius:50% 50% 0 0}.adjustment-control{display:block;margin:0}.adjustment-control+.adjustment-control{margin-top:12px}.adjustment-control.is-inactive{color:var(--text-muted, #95998d)}.adjustment-control.is-inactive input[type=range]{opacity:.4;cursor:default}.mobile-panel-toggle,.close-mobile-panel{display:none!important}.drop-overlay{position:fixed;inset:8px;z-index:200;background:var(--surface-overlay, #f7faf0ef);backdrop-filter:blur(6px);border:2px dashed var(--line, #94a77a);border-radius:15px;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none}.drop-overlay svg{color:var(--text-muted, #839964);margin-bottom:20px}.drop-overlay h2{font-size:23px;font-weight:500}.drop-overlay p{margin-top:12px;font-size:13px;color:var(--text-muted, #8d9b7b)}.toast-message{position:fixed;bottom:50px;left:50%;transform:translate(-50%);max-width:min(600px,90vw);z-index:200;background:#354634;color:var(--on-inverse, #fcfff5);border:1px solid var(--line-strong, #647257);box-shadow:0 6px 25px #25371c30;border-radius:9px;padding:13px 16px;display:flex;align-items:center;gap:11px;font-size:12px;line-height:1.5}.toast-message>svg{color:var(--on-inverse, #b3c49d)}.toast-message button{margin-left:8px;color:var(--on-inverse, #c0cbb4);padding:3px}.toast-enter-active,.toast-leave-active{transition:opacity .2s,translate .2s}.toast-enter-from,.toast-leave-to{opacity:0;translate:0 10px}.modal-backdrop{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:var(--backdrop, #222c2440);backdrop-filter:blur(5px);z-index:100;padding:24px}.modal{width:470px;max-height:calc(100dvh - 48px);overflow:auto;background:var(--panel);border:1px solid var(--line, #fff);border-radius:16px;padding:30px;position:relative;box-shadow:0 24px 100px #23321e35}.modal-close{position:absolute;right:16px;top:16px}.export-preview{display:flex;gap:15px;align-items:center;background:var(--surface-soft, #f1f2e9);border:1px solid var(--line, #e5e8db);border-radius:8px;padding:12px;margin-bottom:20px}.export-preview img{width:61px;height:58px;object-fit:contain;background:var(--surface-sunken, #e8e9de);border:1px solid var(--line, #dee1d0);border-radius:3px}.export-preview strong{font-size:12px;font-weight:500;display:block;margin-bottom:7px;overflow-wrap:anywhere}.export-preview span{font-size:10px;color:var(--text-muted, #959f86)}.form-label{display:block;font-size:11px;font-weight:500;margin:18px 0 9px}.format-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.format-options button{padding:12px 6px;flex-direction:column;gap:6px;border:1px solid var(--line, #dfe4d5);border-radius:6px;font-size:12px}.format-options button>span{font-size:8px;color:var(--text-muted, #9aa58d)}.format-options button.active{border-color:var(--accent-border, #e49373);background:var(--surface-hover, #fbefe6);color:var(--danger, #d27048)}.format-options button.active>span{color:var(--warning, #c29276)}.export-toggle{margin-top:16px}.modal-submit{margin-top:23px;height:42px}.preset-sizes{display:flex;gap:8px}.preset-sizes .button{flex:1}.modal-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:26px}.modal-footer>.button{width:100%;min-width:0;white-space:normal}.modal-footer>.button:last-child:nth-child(odd){grid-column:1/-1}@media(max-width:420px){.modal-footer{grid-template-columns:minmax(0,1fr)}}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line, #e6eade)}.setting-row strong{display:block;font-size:12px;font-weight:500;margin-bottom:6px}.setting-row span{font-size:10px;color:var(--text-muted, #9aa48d);line-height:1.5;display:block}.toggle{appearance:none;width:32px;height:19px;background:var(--line-strong, #bac5b0);border-radius:12px;position:relative;cursor:pointer;flex-shrink:0;transition:.15s}.toggle:before{content:"";position:absolute;left:3px;top:3px;width:13px;height:13px;background:var(--surface, white);border-radius:50%;box-shadow:0 1px 2px #0002;transition:.15s}.toggle:checked{background:var(--accent, #e96b48)}.toggle:checked:before{left:16px}.storage-card{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line, #e3e6d9);border-radius:7px;background:var(--surface-soft, #f3f4eb);padding:15px;margin:22px 0 12px}.storage-card strong{font-size:11px;font-weight:500;display:block;margin-bottom:7px}.storage-card span{font-size:10px;color:var(--text-muted, #9aa68b)}.shortcut-list>div{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line, #e9ecdf);font-size:11px;color:var(--text-muted, #79866b)}.shortcut-list kbd{font-size:10px;background:var(--surface-sunken, #edf0e4);color:var(--text-muted, #7d896e);padding:4px 6px}.modal-help{display:flex;flex-direction:column;overflow:hidden}.modal-help .ui-heading{flex:none}.modal-help .shortcut-list{min-height:0;overflow:auto;margin:0 -30px -30px;padding:0 30px 30px;border-top:1px solid var(--line, #e9ecdf)}.about-features{display:flex;justify-content:space-between;gap:10px;margin:25px 0 30px}.about-features span{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--text-muted, #8b997b)}.about-features svg{color:var(--text-muted, #8c9d78)}.app-version{display:flex;align-items:center;justify-content:center;gap:7px}@keyframes modal-in{0%{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@media(min-width:1650px){.properties-panel{width:250px;min-width:250px}.layers-panel{width:280px;min-width:280px}.property-section{padding:24px}.layer-row{min-height:49px}.workspace{background-size:16px 16px}}@media(max-width:1250px){.properties-panel{width:205px;min-width:205px}.layers-panel{width:225px;min-width:225px}.property-section{padding:18px 15px}.panel-heading{padding:0 15px}.sidebar-tabs{gap:14px;padding:0 12px}.sidebar-tabs>button{font-size:10px;gap:5px}.layer-row{gap:7px;padding:5px 4px}.layer-list{padding:0 6px 10px}.layer-thumb{width:28px;height:28px}.layer-name{font-size:9px}.layer-action{width:17px}.canvas-toolbar{padding:0 14px}.status-bar>span:last-child{display:none}.palette{gap:6px}.palette button{width:15px;height:15px}.quick-add{gap:5px}}@media(max-width:1050px){.properties-panel{width:190px;min-width:190px}.layers-panel{width:205px;min-width:205px}.tool-rail{width:56px;min-width:56px}.tool-button.active:before{left:-7px}.tool-button{width:40px}.sidebar-tabs{gap:10px;padding:0 9px}.sidebar-tabs>button>svg{width:14px}.sidebar-tabs>button>span{display:none}.layer-actions{gap:0}.layer-name{font-size:9px}.layer-thumb{width:25px;height:25px}.layer-action{width:16px}.local-note{padding:12px 8px;font-size:7px}.local-note small{font-size:7px}.view-toggles{gap:3px}.canvas-toolbar{padding:0 10px}.property-section{padding:17px 13px}.palette{gap:5px}.palette button{width:14px;height:14px}.field-grid{gap:5px}}@media(max-width:900px){.layers-panel{position:absolute;right:0;top:var(--topbar-height);bottom:0;width:255px;transform:translate(100%);transition:transform .2s;box-shadow:-10px 0 30px #35482a14;z-index:25}.layers-panel.mobile-open{transform:translate(0)}.mobile-panel-toggle,.close-mobile-panel{display:inline-flex!important}.sidebar-tabs{padding:0 15px;gap:20px}.sidebar-tabs>.close-mobile-panel{margin-left:auto;align-self:center}.sidebar-tabs>button{font-size:11px}.sidebar-tabs>button>span{display:inline}.layer-name{font-size:10px}.layer-thumb{width:31px;height:31px}.layer-row{min-height:47px}.layer-action{width:20px}.tool-tooltip{display:none}.properties-panel{width:210px;min-width:210px}.palette{gap:7px}.palette button{width:15px;height:15px}}@media(max-width:650px){.tool-rail{width:48px;min-width:48px;padding-top:12px}.tool-button{width:36px;height:39px}.tool-button.active:before{left:-6px}.tool-rail-main{gap:5px}.tool-rail-bottom{gap:3px}.properties-panel{width:158px;min-width:158px}.panel-heading{height:48px;min-height:48px;padding:0 11px}.panel-heading h2{font-size:11px}.property-section{padding:15px 10px}.property-section h3{font-size:10px;margin-bottom:12px}.property-section .small{font-size:9px}.canvas-preview-mini{height:78px}.canvas-preview-mini>div{max-height:57px;max-width:83px}.label-value{font-size:8px}.ui-color-plain .ui-color-trigger{font-size:8px;gap:4px}.ui-color-plain .ui-color-chip{width:13px;height:13px}.add-image-card{padding:13px 4px}.add-image-card strong{font-size:10px}.add-image-card small{font-size:8px}.quick-add button{font-size:9px;gap:5px}.quick-add svg{width:13px}.local-note{display:none}.field-grid{gap:4px}.number-field{padding:0 5px;gap:3px}.number-field input{font-size:9px}.palette{gap:5px}.palette button{width:12px;height:12px}.ui-color-trigger{padding:0 5px;gap:5px;font-size:8px}.ui-color-chip{width:15px;height:15px}.alignment-buttons .icon-button{width:21px}.alignment-buttons svg{width:14px}.shape-grid{gap:5px}.shape-button{height:36px}.shape-button svg{width:19px}.canvas-toolbar{height:40px;min-height:40px;padding:0 6px}.view-toggles{gap:0}.view-toggles .icon-button{width:24px}.toolbar-divider{margin:0 2px}.canvas-controls{gap:0;padding:3px;bottom:26px;height:33px;border-radius:6px}.canvas-controls .icon-button{width:22px;height:24px}.zoom-value{font-size:9px;min-width:41px}.canvas-controls>span{margin:0 4px}.fit-button{font-size:0;gap:0;padding:0 5px}.fit-button svg{width:13px}.canvas-tip{display:none}.status-bar{font-size:7px;padding:0 6px;height:25px;min-height:25px}.status-middle{display:none!important}.layers-panel{top:var(--topbar-height)}.artboard-label{font-size:8px;top:-20px}.artboard-label>span:last-child{font-size:7px}.modal-backdrop{padding:14px}.modal{padding:25px 20px;max-height:calc(100dvh - 28px)}.modal .small{font-size:10px}.modal .label-value{font-size:11px}.modal .field-grid{gap:9px}.empty-canvas-hint{width:170px;gap:6px}.empty-canvas-actions{gap:5px}.empty-canvas-actions button{padding:8px 4px;font-size:8px;gap:4px}.empty-canvas-actions button svg{width:15px;height:15px}.empty-canvas-hint strong{font-size:11px}.empty-canvas-hint span{font-size:8px;line-height:1.6}.empty-canvas-hint svg{width:23px}.empty-canvas-hint button{font-size:8px;padding:6px}.toast-message{font-size:10px;padding:10px 12px;bottom:25px}.layer-action{opacity:1}.layer-list{padding:0 9px 10px}.layer-row{gap:9px}.text-content,.select-field{font-size:10px}.shortcut-list>div{font-size:10px}.shortcut-list kbd{font-size:8px}.modal-help .shortcut-list{margin:0 -20px -25px;padding:0 20px 25px}}@media(max-width:420px){.properties-panel{width:136px;min-width:136px}.property-section{padding:14px 8px}.view-toggles .icon-button{width:22px}.view-toggles .icon-button svg{width:14px}.canvas-toolbar{padding:0 5px}.canvas-preview-mini{height:70px}.palette{gap:4px}.palette button{width:11px;height:11px}.quick-add button{font-size:8px;gap:3px}.ui-color-compact .ui-color-text{display:none}.label-value,.ui-color-plain .ui-color-trigger{font-size:7px}.alignment-buttons .icon-button{width:18px}.tool-rail{width:44px;min-width:44px}.tool-button{width:34px}.tool-button.active:before{left:-5px}.tool-button svg{width:19px}}.mobile-properties-toggle,.close-mobile-properties{display:none!important}@media(max-width:900px){.layers-panel{visibility:hidden}.layers-panel.mobile-open{visibility:visible}}@media(max-width:650px){.mobile-properties-toggle,.close-mobile-properties{display:inline-flex!important}.properties-panel{display:none;position:absolute;left:48px;right:0;bottom:25px;width:auto;min-width:0;max-height:47dvh;z-index:24;border-top:1px solid var(--line, #d9dfcf);border-radius:12px 12px 0 0;box-shadow:0 -8px 30px #263b1c20}.properties-panel.mobile-properties-open{display:flex}.panel-heading .shortcut-badge{margin-left:auto;margin-right:10px}.properties-scroll{display:block}.properties-panel .property-section{padding:16px}.properties-panel h3,.properties-panel .small{font-size:11px}.properties-panel .label-value{font-size:10px}.properties-panel .palette{gap:9px}.properties-panel .palette button{width:21px;height:21px}.properties-panel .number-field input{font-size:12px}.properties-panel .field-grid{gap:10px}.properties-panel .alignment-buttons .icon-button{width:32px}.properties-panel .ui-color-text{display:inline}.properties-panel .ui-color-trigger{gap:9px;padding:0 10px;font-size:12px}.properties-panel .ui-color-chip{width:20px;height:20px}.view-toggles{gap:4px}.canvas-toolbar{padding:0 12px}.view-toggles .icon-button{width:28px;height:29px}.view-toggles .icon-button svg{width:17px}.canvas-controls{bottom:28px;height:38px;padding:4px 7px;gap:4px}.fit-button{font-size:10px;gap:7px}.zoom-value{font-size:11px;min-width:45px}.status-bar{font-size:8px;padding:0 12px}.artboard-label{font-size:9px}.artboard-label>span:last-child{font-size:8px}}@media(max-width:420px){.properties-panel{left:44px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.app-shell{position:relative}.sidebar-page{display:flex;flex-direction:column;flex:1;min-height:0}.language-setting select{min-width:130px;max-width:155px;flex-shrink:0}.language-setting>div{min-width:0}.setting-row.language-setting{gap:12px}@media(max-width:420px){.language-setting select{min-width:116px;max-width:128px}}.document-status.status-dirty .status-dot{background:var(--accent-soft, #d9a441)}.document-status.status-error .status-dot{background:#d2603f}.document-status.status-local .status-dot{background:var(--line, #b6bda9)}.document-status.status-saving{color:var(--text-secondary, #6f7d63)}.document-status.status-error{color:var(--danger, #b3563a)}.document-status.status-dirty{color:var(--danger, #9a7a34)}.drive-header-save.attention{background:var(--surface-soft, #fbeee6);border-color:var(--accent-border, #eab9a2);color:var(--danger, #a44b2c)}.drive-header-save.attention:hover:not(:disabled){background:var(--surface-hover, #f7e2d5);border-color:var(--accent-border, #e0a58b)}.photo-canvas-card,.project-file-card,.download-card{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;margin-top:20px;padding:13px 14px;border:1px dashed var(--line, #d7dccc);border-radius:9px;background:var(--surface, #f8f9f2);text-align:left;color:var(--ink, #54614b)}.photo-canvas-card:hover,.project-file-card:hover,.download-card:hover{background:var(--surface-hover, #f0f3e7);border-color:var(--line, #a9b696)}.photo-canvas-icon,.download-card-icon{width:36px;height:36px;border-radius:9px;background:var(--surface-sunken, #e9eddd);display:grid;place-items:center;color:var(--text-muted, #7f8d68);flex-shrink:0}.photo-canvas-text,.download-card-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.photo-canvas-text strong,.download-card-text strong{font-size:11px;font-weight:600}.photo-canvas-text small,.download-card-text small{font-size:10px;line-height:1.5;color:var(--text-muted, #96a08a)}.photo-canvas-arrow,.download-card-arrow{color:var(--text-muted, #a7b096);flex-shrink:0}.download-card-text small kbd{margin-left:7px}@keyframes spin{to{transform:rotate(360deg)}}.spinning{animation:spin 1.3s linear infinite}@media(prefers-reduced-motion:reduce){.spinning{animation:none}}.context-menu{position:fixed;z-index:180;min-width:240px;padding:6px;background:var(--panel);border:1px solid var(--line);box-shadow:0 12px 36px #30382828;border-radius:10px}.context-menu hr{border:0;border-top:1px solid var(--line);margin:5px 4px}.context-menu [role=menuitem]{width:100%;display:flex;align-items:center;gap:9px;justify-content:flex-start;text-align:left;padding:8px 9px 8px 6px;border-radius:6px;font-size:12px;color:inherit;background:transparent;border:0}.context-menu [role=menuitem]:hover:not(:disabled),.context-menu [role=menuitem]:focus-visible{background:var(--surface-hover, #f2f0e9)}.context-menu [role=menuitem]:disabled{opacity:.45;cursor:default}.context-menu .danger{color:var(--danger, #b3563a)}.context-menu kbd{margin-left:auto}.context-menu .menu-icon{width:16px;display:inline-flex;justify-content:center;color:var(--text-muted, #8a9082);flex-shrink:0}.context-menu .danger .menu-icon{color:inherit}.context-menu .menu-label{flex:1;white-space:nowrap}@media(max-width:650px){.context-menu{min-width:210px}.context-menu kbd{display:none}}.inline-text{position:absolute;padding:0;margin:0;border:0;outline:0;background:transparent;resize:none;overflow:hidden;white-space:pre;overflow-wrap:normal;caret-color:#ed6844;z-index:3;cursor:text;display:block;box-sizing:content-box}.inline-text::selection{background:var(--backdrop, #ed684455)}.canvas-object.editing{visibility:hidden}.inline-text:focus,.inline-text:focus-visible{box-shadow:none}.app-loader{position:fixed;inset:0;z-index:150;background:var(--surface-soft, #f8f9f6);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:var(--text-secondary, #6f7d63);font-size:13px;padding:24px;text-align:center}.app-loader-content{display:flex;flex-direction:column;align-items:center}.app-loader-brand{display:flex;align-items:center;gap:10px;animation:loader-breathe 2.4s ease-in-out infinite}.app-loader-brand .brand-mark{width:34px;height:36px}.app-loader-word{font-size:30px;font-weight:700;letter-spacing:-1.5px;line-height:1;color:var(--ink, #3e4d35)}.app-loader-word i{font-style:normal;color:var(--accent, #e96b48)}.app-loader-track{position:relative;width:min(220px,60vw);height:3px;margin:30px 0 20px;border-radius:3px;background:var(--surface-sunken, #e6e9df);overflow:hidden}.app-loader-track i{position:absolute;top:0;bottom:0;width:40%;border-radius:3px;background:var(--accent, #e96b48);animation:loader-slide 1.4s cubic-bezier(.65,.05,.36,1) infinite}.app-loader-text{font-size:13px;color:var(--text-secondary, #6f7d63)}.app-loader-step{font-size:11px;line-height:1.6;margin-top:6px;min-height:18px;color:var(--text-muted, #9aa28d)}@keyframes loader-slide{0%{left:-45%}to{left:105%}}@keyframes loader-breathe{0%,to{opacity:1;transform:translateY(0)}50%{opacity:.72;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.app-loader-brand{animation:none}.app-loader-track i{animation:none;width:100%;opacity:.5}}.canvas-area{position:relative}.save-progress{position:absolute;left:0;right:0;top:0;height:3px;background:var(--surface-sunken, #f1e4d8);z-index:5;overflow:hidden}.save-progress i{display:block;height:100%;background:#e97451;transition:width .25s}.document-status.status-saving{color:var(--ink, #3e5936);font-weight:600}.activity-hub{position:fixed;left:50%;bottom:50px;transform:translate(-50%);z-index:200;display:flex;flex-direction:column;align-items:center;gap:8px;width:min(600px,92vw);pointer-events:none}.activity-hub>*{pointer-events:auto;min-width:min(300px,100%);max-width:100%;box-sizing:border-box}.activity-hub .toast-message{position:static;transform:none;left:auto;bottom:auto;max-width:100%}.toast-text{flex:1;min-width:0}.hub-enter-from,.hub-leave-to{opacity:0;translate:0 10px}.hub-enter-active,.hub-leave-active{transition:opacity .2s,translate .2s}.hub-move{transition:translate .2s}.activity-hub.raised{bottom:132px}.activity-row{display:flex;align-items:center;gap:11px;padding:12px 16px;border:1px solid var(--line-strong, #647257);background:#354634;color:var(--on-inverse, #fcfff5);border-radius:9px;box-shadow:0 8px 24px #25371c30;font-size:12px}.activity-row>svg{color:var(--on-inverse, #e9bd70);flex-shrink:0}.activity-text{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.activity-text span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-bar{display:block;height:3px;width:100%;background:#ffffff30;border-radius:2px;overflow:hidden}.activity-bar b{display:block;height:100%;background:var(--accent, #e96b48);transition:width .2s}.toast-message.toast-error{background:#6f3325;border-color:var(--accent-border, #a35a45)}.toast-message.toast-error>svg{color:var(--on-inverse, #f6c9b6)}.toast-message.toast-success>svg{color:var(--on-inverse, #b3c49d)}.toast-message.toast-info>svg{color:var(--on-inverse, #c9d6bd)}.project-busy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:var(--surface-overlay, #f8f9f6e0);color:var(--ink, #3e5936);font-size:11px;font-weight:600;backdrop-filter:blur(2px);padding:12px;text-align:center}.project-busy>svg{color:var(--danger, #e97451)}.project-busy-bar{display:block;width:60%;height:4px;background:var(--surface-sunken, #dfe5d5);border-radius:2px;overflow:hidden}.project-busy-bar b{display:block;height:100%;background:#e97451;transition:width .2s}.project-status.saving{color:var(--ink, #3e5936);font-weight:600}@media(max-width:650px){.activity-hub{bottom:28px;width:calc(100% - 16px)}.activity-hub.raised{bottom:104px}.activity-row{font-size:10px;padding:8px 10px}}.header-actions{display:flex;gap:8px;align-items:center}.history-actions{display:flex;gap:2px;margin-right:4px}.history-actions .icon-button{width:28px;height:28px}.document-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.document-name{display:inline-grid;grid-template-columns:minmax(0,1fr);align-items:center;min-width:70px;max-width:min(340px,100%);margin-left:-7px}.document-name:after{content:attr(data-value) " ";grid-area:1/1;visibility:hidden;white-space:pre;font-size:12px;font-weight:600;padding:3px 7px;border:1px solid transparent}.document-title input{grid-area:1/1;width:100%;min-width:0;font-size:12px;font-weight:600;border:1px solid transparent;background:transparent;border-radius:4px;padding:3px 7px;color:var(--ink, #3e4d35)}.document-title input:hover{border-color:var(--line)}.document-title input:hover,.document-title input:focus{background:var(--surface-hover, #fff)}.document-status{font-size:9px;color:var(--text-muted, #9a9d94);display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.1px;flex-shrink:0;max-width:50%}.profile-avatar{display:flex;width:28px;height:28px;padding:0;background:var(--surface-sunken, #e9ebdf);color:var(--text-secondary, #6d765e);font-family:Georgia,serif;align-items:center;justify-content:center;border-radius:50%;margin-top:10px;font-size:14px}.profile-avatar:hover{background:var(--surface-hover, #dde3cf)}@media(max-width:720px){.header-actions{gap:3px}.header-actions .button>span{display:none}.history-actions{margin-right:0}.history-actions .icon-button{width:26px}}@media(max-width:650px){.document-title{flex-direction:column;align-items:flex-start;gap:0}.document-name{margin-left:-4px;max-width:100%}.document-name:after{font-size:10px;padding:1px 4px}.document-title input{font-size:10px;padding:1px 4px}.document-status{font-size:7px;max-width:100%}}@media(max-width:420px){.document-status{font-size:6px}.history-actions .icon-button{width:23px}}.project-file-card{margin-top:8px}.layer-parked{display:inline-flex;color:var(--text-muted, #a4ab97);margin-right:2px}.template-options button,.theme-option,.add-image-card,.photo-canvas-card,.project-file-card,.empty-canvas-actions button{transition:transform .18s var(--motion-ease, ease),box-shadow .18s var(--motion-ease, ease),border-color .15s,background .15s}.kind-card:hover,.template-options button:hover,.theme-option:hover,.add-image-card:hover,.photo-canvas-card:hover,.project-file-card:hover,.empty-canvas-actions button:hover{transform:translateY(-2px)}.add-image-card:hover,.photo-canvas-card:hover,.project-file-card:hover,.template-options button:hover,.theme-option:hover,.empty-canvas-actions button:hover{box-shadow:0 6px 16px #34452d0f}.project-card:active,.kind-card:active,.template-options button:active,.theme-option:active,.add-image-card:active,.photo-canvas-card:active,.project-file-card:active,.empty-canvas-actions button:active{transform:translateY(0)}@media(prefers-reduced-motion:reduce){.project-card,.kind-card,.template-options button,.theme-option,.add-image-card,.photo-canvas-card,.project-file-card,.empty-canvas-actions button{transition:none}.project-card:hover,.kind-card:hover,.template-options button:hover,.theme-option:hover,.add-image-card:hover,.photo-canvas-card:hover,.project-file-card:hover,.empty-canvas-actions button:hover{transform:none}}:root{color-scheme:light;--text-muted: #707b69;--text-secondary: #58674f;--surface: #fff;--surface-soft: #f8f9f6;--surface-sunken: #edf0e8;--surface-hover: #e5ebdf;--line-strong: #bac5b0;--accent-border: #e9bca7;--workspace: #eeeee8;--workspace-dot: #cdd0c2;--danger: #a74f38;--warning: #946c26;--on-inverse: #fff;--scroll-thumb: #c7ccbe;--scroll-thumb-hover: #a8b09b;--focus: #e96b48;--focus-halo: #e96b4833}:root[data-theme=dark]{color-scheme:dark;color:#ededf0;background:#18191b;--ink: #ededf0;--muted: #afb1b8;--text-muted: #afb1b8;--text-secondary: #ccced4;--panel: #232427;--surface: #292a2e;--surface-soft: #1d1e21;--surface-sunken: #303136;--surface-hover: #383a40;--line: #404249;--line-strong: #646771;--accent: #f18a65;--accent-soft: #3e2c25;--accent-border: #85513d;--green: #aebed1;--danger: #f3a28a;--warning: #e4be78;--workspace: #151618;--workspace-dot: #35373d;--surface-overlay: #232427ed;--backdrop: #090a0cb3;--scroll-thumb: #4a4d55;--scroll-thumb-hover: #616570;--focus: #f18a65;--focus-halo: #f18a6545}.toggle:before{background:#fff}:root[data-theme=dark] .button.primary{color:#201b16}:root[data-theme=dark] .button.primary:hover:not(:disabled){background:#f69c79;border-color:#f69c79}:root[data-theme=dark] .toggle:checked{background:var(--accent)}:root[data-theme=dark] .library-loading-track{background:var(--accent-soft)}:root[data-theme=dark] .library-skeleton-preview:after{background:linear-gradient(90deg,transparent,#ffffff0d,transparent)}:root[data-theme=dark] .admin-page{--viz-grid: #404249;--viz-axis: #afb1b8;--viz-muted: #9699a3;--viz-error: #f3a28a}:root[data-theme=dark] .ui-heading-icon{color:var(--accent)}:root[data-theme=dark] .tool-tooltip,:root[data-theme=dark] .toast-message:not(.toast-error),:root[data-theme=dark] .activity-row{background:#303238;border-color:var(--line-strong)}:root[data-theme=dark] .tool-tooltip kbd{background:#454851}:root[data-theme=dark] input[type=range]::-webkit-slider-thumb{background:var(--text-secondary);box-shadow:0 0 0 1px var(--text-secondary)}:root[data-theme=dark] input[type=range]::-moz-range-thumb{background:var(--text-secondary)}.theme-setting{align-items:flex-start}.theme-options{display:flex;gap:10px;flex-shrink:0}.theme-option{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:7px;width:112px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:left}.theme-option.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-option:hover{background:var(--surface-soft)}.settings-card .theme-option .theme-option-label{display:flex;align-items:center;gap:6px;font-size:11px;line-height:20px;color:var(--ink);white-space:nowrap}.theme-option-label>svg:last-child:not(:first-child){margin-left:auto;color:var(--accent)}.settings-card .theme-preview{position:relative;display:block;height:54px;border-radius:5px;overflow:hidden;background:#f2f4ec;border:1px solid #dce2d5}.theme-preview:before{content:"";position:absolute;left:0;top:0;bottom:0;width:19%;background:#e1e7d9}.theme-preview i,.theme-preview b,.theme-preview em{position:absolute;display:block;border-radius:3px}.theme-preview i{top:10px;left:29%;width:53%;height:5px;background:#aab99d}.theme-preview b{top:22px;left:29%;width:27%;height:23px;background:#fff;border:1px solid #dce2d5}.theme-preview em{top:22px;left:61%;width:22%;height:23px;background:#f1ab88}.settings-card .theme-preview-dark{background:#18191b;border-color:#404249}.theme-preview-dark:before{background:#34363b}.theme-preview-dark i{background:#9197a3}.theme-preview-dark b{background:#3b3e45;border-color:#545863}.theme-preview-dark em{background:#a66a50}@media(max-width:720px){.theme-setting{flex-direction:column;gap:16px!important}.theme-options{width:100%}.theme-option{flex:1;width:auto;padding:9px}.settings-card .theme-preview{height:66px}.theme-preview b,.theme-preview em{height:34px}.settings-card .setting-row.language-setting{flex-wrap:wrap;gap:12px}.settings-card .setting-row.language-setting select{max-width:100%}.settings-card .storage-card{flex-wrap:wrap}}:focus,:focus-visible{outline:0}::-moz-focus-inner{border:0}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:not([tabindex="-1"]):focus-visible{box-shadow:0 0 0 2px var(--surface, #fff),0 0 0 4px var(--focus)}input[type=checkbox]:focus-visible,input[type=radio]:focus-visible,input[type=range]:focus-visible{box-shadow:0 0 0 2px var(--surface, #fff),0 0 0 4px var(--focus)}[role=menuitem]:focus-visible,[role=option]:focus-visible,.ui-select-options button:focus-visible,.account-menu button:focus-visible,.topbar-brand:focus-visible{box-shadow:none}:where(select,textarea,input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=hidden],[type=submit],[type=button])):focus,.number-field:focus-within,.ui-color-hex:focus-within,.library-search:focus-within,.ui-select-trigger:focus-visible,.ui-color-trigger:focus-visible,.document-title input:focus{border-color:var(--focus);box-shadow:0 0 0 3px var(--focus-halo)}.number-field input:focus,.ui-color-hex input:focus,.library-search input:focus{border-color:transparent;box-shadow:none}.layer-name:focus{box-shadow:0 0 0 2px var(--focus-halo),0 0 0 1px var(--focus)}.mobile-tool-label{display:none}:root{--mobile-dock-height: calc(72px + env(safe-area-inset-bottom, 0px)) ;--sheet-peek: 0px;--sheet-stack: 0px}@media(max-width:720px),(max-width:1024px)and (orientation:portrait),(max-height:560px){.app-shell{min-height:0}}@media(max-width:720px),(max-width:1024px)and (orientation:portrait){.library .library-layout{flex-direction:column}.library .library-sidebar{order:2;width:100%;height:var(--mobile-dock-height);min-height:var(--mobile-dock-height);padding:6px max(10px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border-right:0;border-top:1px solid var(--line);background:var(--panel);flex-direction:row;align-items:center;gap:6px;z-index:50}.library .library-sidebar nav{display:flex;flex-direction:row;flex:1;min-width:0;gap:4px}.library .library-nav{display:flex;flex:1;min-width:0;min-height:56px;padding:6px 2px;margin:0;flex-direction:column;gap:4px;border-radius:10px}.library .library-nav>span{display:block;max-width:100%;font-size:10px;line-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library .library-nav>.library-nav-tight{display:none}.library .library-nav svg{width:21px;height:21px}.library .library-nav.active{box-shadow:inset 0 2px var(--green)}.library .library-nav-kind{display:flex}.library .library-nav-trash{display:none}.library .library-content{padding:24px 18px 28px;scroll-padding-bottom:24px}.library .library-heading{gap:20px}.library .library-heading-actions{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:8px}.library-heading-actions .button{white-space:normal}.library-heading-actions .library-create{grid-column:1/-1;grid-row:1;font-size:12px}.library .library-toolbar{gap:10px;margin:22px 0}.library{--control-height: 44px}.library .library-search{max-width:none;flex-basis:100%}.library .library-sort{width:100%}.library-sort .ui-select-trigger{font-size:12px}.library-search input{font-size:14px}.library .library-banner{flex-wrap:wrap}.library .library-banner>span{flex-basis:calc(100% - 40px)}.library-page .setting-row{gap:14px}.library-page .setting-row>.button{white-space:normal}.editor-body{flex-direction:column;position:relative;padding-bottom:var(--mobile-dock-height)}.tool-rail{position:absolute;left:0;right:0;bottom:0;width:100%;min-width:0;height:var(--mobile-dock-height);padding:6px 8px calc(6px + env(safe-area-inset-bottom));flex-direction:row;border-right:0;border-top:1px solid var(--line);gap:4px;z-index:30}.tool-rail-main{flex-direction:row;flex:1;min-width:0;gap:2px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity}.tool-rail .tool-button{flex:0 0 48px;width:48px;height:56px;flex-direction:column;gap:4px;scroll-snap-align:start}.mobile-tool-label{display:block;font-size:9px;line-height:12px;max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-button.active:before{left:12px;top:0;width:24px;height:2px;border-radius:0 0 2px 2px}.tool-rail .rail-separator{height:26px;width:1px;min-width:1px;margin:0 5px}.canvas-area{min-height:0;width:100%}.tool-tooltip{display:none}.properties-panel{display:none;position:absolute;left:0;right:0;bottom:calc(var(--mobile-dock-height) + var(--filmstrip-height, 0px));width:auto;min-width:0;max-height:55%;z-index:24;border:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:0 -8px 30px #101a1820}.properties-panel.mobile-properties-open{display:flex}.app-shell.has-properties-sheet{--sheet-peek: 54px;--sheet-stack: calc(var(--sheet-over, 54px) + var(--filmstrip-height, 0px))}.properties-panel.properties-sheet{display:flex;overflow:hidden;max-height:var(--sheet-peek);transition:max-height .34s cubic-bezier(.22,.61,.36,1),height .34s cubic-bezier(.22,.61,.36,1)}.properties-panel.properties-sheet.mobile-properties-open{max-height:max(var(--sheet-peek),min(55%,calc(100% - var(--mobile-dock-height) - var(--filmstrip-height, 0px) - 250px)))}.properties-sheet .format-scroll{overflow:visible;min-height:auto}.properties-sheet:not(.mobile-properties-open) .properties-scroll{visibility:hidden;transition:visibility 0s .34s}.properties-sheet .panel-heading{position:relative;height:var(--sheet-peek);min-height:var(--sheet-peek);justify-content:flex-start;gap:9px;padding:12px 12px 0 18px;cursor:pointer;user-select:none}.properties-sheet .panel-heading h2{font-size:14px}.properties-sheet .panel-heading .shortcut-badge{display:none}.properties-sheet .close-mobile-properties{margin-left:auto}.properties-sheet:not(.mobile-properties-open) .panel-heading{border-bottom-color:transparent}.properties-sheet .panel-heading:before{content:"";position:absolute;top:7px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line-strong, #c3cab4);opacity:.75}.layers-panel{position:absolute;left:0;right:0;top:auto;bottom:var(--mobile-dock-height);width:100%;min-width:0;height:55%;border:1px solid var(--line);border-radius:16px 16px 0 0;transform:translateY(30px);visibility:hidden;opacity:0;transition:transform .2s,opacity .2s;z-index:25}.layers-panel.mobile-open{transform:none;visibility:visible;opacity:1}.mobile-properties-toggle,.close-mobile-properties,.mobile-panel-toggle,.close-mobile-panel{display:inline-flex!important}.canvas-toolbar{height:52px;min-height:52px;padding:0 10px;gap:4px}.view-toggles{gap:0}.view-toggles .icon-button{height:40px;width:32px}.canvas-controls{bottom:calc(18px + var(--sheet-peek));height:44px}.canvas-controls .icon-button{width:32px;height:36px}.canvas-tip,.status-bar{display:none}.activity-hub,.activity-hub.raised{bottom:calc(var(--mobile-dock-height) + 12px + var(--sheet-stack))}.library-content input,.library-content select,.modal input,.modal select,.text-content{font-size:16px}.library-welcome{padding:8px 0}}@media(max-width:360px){.library .library-content{padding:20px 12px}.library .library-nav>.library-nav-wide{display:none}.library .library-nav>.library-nav-tight{display:block}.tool-rail .tool-button{flex-basis:46px;width:46px}.view-toggles .icon-button{width:28px}}@media(prefers-reduced-motion:reduce){.properties-panel.properties-sheet{transition:none}.properties-sheet:not(.mobile-properties-open) .properties-scroll{transition:none}}:root{--control-height: 36px;--control-font-size: 13px;--topbar-height: 50px}.app-shell .button,.skill-guide .button,.app-shell .ui-select-trigger,.app-shell .ui-color:not(.ui-color-plain) .ui-color-trigger,.app-shell .number-field,.app-shell .ui-text-marks,.app-shell .library-search,.app-shell .select-field,.app-shell .input-field,.app-shell .quick-add button,.app-shell .shape-visualization,.ui-color-hex{box-sizing:border-box;height:var(--control-height);min-height:var(--control-height)}.app-shell .button,.skill-guide .button{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:0;padding:0 14px;gap:8px;font-size:var(--control-font-size);font-weight:500;line-height:1.25;text-align:center}.app-shell .button>svg,.skill-guide .button>svg{display:block;width:16px;height:16px;flex-shrink:0}.app-shell .button>span,.skill-guide .button>span{font-size:inherit;font-weight:inherit;line-height:inherit}.library-heading-actions{align-items:center;flex-wrap:wrap}.library-heading-actions>.button:first-child{width:var(--control-height);padding:0;flex-shrink:0}.header-actions{gap:8px}.header-actions .history-actions{gap:4px}.header-actions .history-actions .icon-button{height:var(--control-height);width:32px}.library-heading-actions .button{white-space:nowrap}.app-shell .ui-select-trigger{font-size:var(--control-font-size);font-weight:400;line-height:1.3;padding:0 12px}.ui-select-options button,.app-shell .account-menu button,.app-shell .context-menu [role=menuitem]{min-height:var(--control-height);font-size:var(--control-font-size);line-height:1.4;align-items:center}.ui-select-options button{padding:9px 12px}.ui-segmented{display:flex;gap:4px;padding:4px;background:var(--surface-sunken, #e8ecdf);border-radius:10px}.ui-segmented button{padding:8px 14px;border-radius:7px;font-size:12px;color:var(--text-secondary, #5f6b58);background:transparent;border:0;white-space:nowrap}.ui-segmented button.active{background:var(--surface-hover, #fff);color:var(--ink, #303b33);font-weight:600;box-shadow:0 1px 2px #1a291b14}.ui-segmented-small button{padding:7px 12px;font-size:11px}.context-menu{max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);overflow-y:auto}.language-select{width:170px;max-width:100%;flex-shrink:0}.admin-sort .ui-select{min-width:180px}@media(max-width:720px){.app-shell .header-actions .button{width:var(--control-height);padding:0;gap:0}.header-actions{gap:4px}.topbar-actions{padding-left:2px}.library .library-heading-actions{display:flex;flex-wrap:wrap;gap:8px}.library .library-heading-actions>.button:first-child{order:0;flex:0 0 var(--control-height)}.library .library-heading-actions>.library-create{order:1;flex:1 0 calc(100% - 52px)}.library .library-heading-actions>.button:nth-child(2),.library .library-heading-actions>.button:nth-child(3){order:2;flex:1 0 calc(50% - 4px);min-width:0}.app-shell .library-heading-actions .button{white-space:normal;padding:0 10px;gap:6px}.app-shell .modal-footer>.button{padding:0 10px}.settings-card .setting-row{flex-wrap:wrap}.language-select{width:100%}}:root{--kind-drawing: #e96b48;--kind-drawing-soft: #fdeee7;--kind-drawing-ink: #a8482c;--kind-diagram: #3b6fd6;--kind-diagram-soft: #e7eefb;--kind-diagram-ink: #2b52a3;--kind-presentation: #7860b8;--kind-presentation-soft: #eee9f8;--kind-presentation-ink: #67509c;--port: #3b6fd6;--port-fill: #fff}[data-theme=dark]{--kind-drawing: #f18a65;--kind-drawing-soft: #3e2c25;--kind-drawing-ink: #f5b199;--kind-diagram: #6f98ea;--kind-diagram-soft: #22304d;--kind-diagram-ink: #a9c2f5;--kind-presentation: #bba3ef;--kind-presentation-soft: #312840;--kind-presentation-ink: #d4c2f6;--port: #6f98ea;--port-fill: #1d2230}.kind-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;white-space:nowrap;line-height:1.2;flex-shrink:0}.kind-chip.kind-drawing{background:var(--kind-drawing-soft);color:var(--kind-drawing-ink)}.kind-chip.kind-diagram{background:var(--kind-diagram-soft);color:var(--kind-diagram-ink)}.document-title .kind-chip{margin-left:-4px}.details .kind-chip,.log-text .kind-chip{margin-left:8px;vertical-align:middle}.document-tab.kind-diagram>[role=tab] svg{color:var(--kind-diagram)}.document-tab.kind-drawing>[role=tab] svg{color:var(--kind-drawing)}.document-tab.selected.kind-diagram{box-shadow:inset 0 2px var(--kind-diagram)}.document-tab.selected.kind-drawing{box-shadow:inset 0 2px var(--kind-drawing)}.kind-filter{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line, #dfe3d6);border-radius:9px;background:var(--surface, #fbfbf6);margin-left:auto}.kind-filter button{padding:6px 10px;border-radius:6px;font-size:11px;color:var(--text-secondary, #6d786a);gap:6px}.kind-filter button small{font-size:10px;color:var(--text-muted, #9aa294);font-variant-numeric:tabular-nums}.kind-filter button:hover{background:var(--surface-hover, #f0f2ea)}.kind-filter button.active{background:var(--surface-hover, #e9ede1);color:var(--ink, #3f4a37);font-weight:600}.kind-filter button.active.kind-diagram{color:var(--kind-diagram-ink);background:var(--kind-diagram-soft)}.kind-filter button.active.kind-drawing{color:var(--kind-drawing-ink);background:var(--kind-drawing-soft)}.project-preview .project-kind{position:absolute;left:10px;bottom:10px}.project-card.kind-diagram .project-preview{background:var(--kind-diagram-soft);background-image:radial-gradient(#3b6fd633 .8px,transparent .8px);background-size:12px 12px}.project-card.kind-diagram .project-placeholder{color:var(--kind-diagram)}.project-card.kind-diagram{border-top:2px solid var(--kind-diagram)}.project-card.kind-drawing{border-top:2px solid var(--kind-drawing)}.library-toolbar .library-sort{margin-left:0}.kind-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:22px}.kind-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px 16px 16px;border:1px solid var(--line, #dfe3d6);border-radius:12px;background:var(--surface, #fbfbf6);text-align:left;transition:border-color .15s,background .15s,box-shadow .18s var(--motion-ease, ease),transform .18s var(--motion-ease, ease)}.kind-card strong{font-size:14px;color:var(--ink, #3a4433)}.kind-card small{font-size:11px;line-height:1.5;color:var(--text-secondary, #6d786a)}.kind-card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;margin-bottom:6px}.kind-card.kind-drawing .kind-card-icon{background:var(--kind-drawing-soft);color:var(--kind-drawing)}.kind-card.kind-diagram .kind-card-icon{background:var(--kind-diagram-soft);color:var(--kind-diagram)}.kind-card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.kind-card-tags span{font-size:9px;padding:3px 7px;border-radius:999px;background:var(--surface-hover, #eef0e7);color:var(--text-muted, #7f8878)}.kind-card:hover{background:var(--surface-hover, #f4f5ef)}.kind-card.kind-drawing:hover{border-color:var(--kind-drawing);box-shadow:0 0 0 3px var(--kind-drawing-soft)}.kind-card.kind-diagram:hover{border-color:var(--kind-diagram);box-shadow:0 0 0 3px var(--kind-diagram-soft)}.dialog-back{margin:-6px 0 8px -6px;color:var(--text-muted, #8a927f)}.template-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.starter-note{margin:10px 0 0;font-size:12px;color:var(--text-muted, #8b9580)}.template-options button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 13px;border:1px solid var(--line, #dfe3d6);border-radius:9px;background:var(--surface, #fbfbf6);text-align:left}.template-options button strong{font-size:12px;color:var(--ink, #3a4433)}.template-options button span{font-size:10px;line-height:1.45;color:var(--text-secondary, #6d786a)}.template-options button.active{border-color:var(--kind-diagram);background:var(--kind-diagram-soft)}.panel-heading-icon{color:var(--kind-diagram)}.property-section.shape-library-top{position:sticky;top:0;z-index:3;background:var(--panel, var(--surface));padding:14px 16px 12px}.shape-search{width:100%;max-width:none;padding:0 10px;border:1px solid var(--line, #e1e4d9);border-radius:7px;background:var(--surface, #fafbf6);display:flex;align-items:center;gap:7px;height:32px;color:var(--text-muted, #8a927f)}.shape-search input{flex:1;border:0;background:transparent;font-size:11px;color:var(--ink, #3a4433);min-width:0}.shape-group h3{display:flex;align-items:center;justify-content:space-between}.shape-group-toggle{display:inline-flex;align-items:center;gap:4px;padding:0;margin:0 0 0 -3px;border:0;background:none;font:inherit;color:inherit;cursor:pointer;text-transform:inherit;letter-spacing:inherit;min-width:0}.shape-group-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shape-group-toggle:focus-visible{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--kind-diagram);border-radius:3px}.shape-group-chevron{flex-shrink:0;transition:transform .15s;color:var(--text-muted, #8a927f)}.shape-group-chevron.open{transform:rotate(90deg)}.shape-group h3:has(.shape-group-toggle[aria-expanded=false]){margin-bottom:0}@media(prefers-reduced-motion:reduce){.shape-group-chevron{transition:none}}.port-picker{position:relative;box-sizing:border-box;width:100%;max-width:96px;aspect-ratio:8/5;margin:10px 8px 4px;border:1.5px solid var(--line, #c9cfbf);border-radius:4px;background:var(--surface, #fafbf6)}.port-picker.disabled{opacity:.45}.port-pick{position:absolute;z-index:1;width:11px;height:11px;padding:0;margin:-5.5px 0 0 -5.5px;border:1.5px solid var(--port);border-radius:50%;background:var(--port-fill);cursor:pointer;box-sizing:border-box}.port-pick.minor{width:8px;height:8px;margin:-4px 0 0 -4px}.port-pick:hover:not(:disabled){background:var(--kind-diagram-soft)}.port-pick.auto{border-style:dashed}.port-pick.chosen{background:var(--port);box-shadow:0 0 0 2px var(--kind-diagram-soft)}.port-pick:disabled{cursor:default}.port-pick:not(:disabled):active{transform:none}.port-pick:focus-visible{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--kind-diagram)}.route-hint{margin:8px 0 0;line-height:1.5}.shape-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shape-tile{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 4px 6px;border:1px solid transparent;border-radius:8px;background:var(--surface, #fafbf6);color:var(--text-secondary, #6d786a);cursor:grab;transition:border-color .15s,background .15s}.shape-tile:hover{border-color:var(--kind-diagram);background:var(--kind-diagram-soft);color:var(--kind-diagram-ink)}.shape-tile:active{cursor:grabbing}.shape-tile-art{display:block;width:44px;height:30px}.shape-tile-art svg{width:100%;height:100%;display:block}.shape-tile-label{font-size:9px;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.layer-thumb.shape-thumb{color:var(--kind-diagram)}.layer-thumb .layer-shape{display:block;width:26px;height:20px}.layer-thumb .layer-shape svg{width:100%;height:100%;display:block}.workspace.tool-connect{cursor:crosshair}.canvas-object.is-node{cursor:move}.canvas-object.is-connector{cursor:pointer}.canvas-object.editing-node text{visibility:hidden}.canvas-object.editing-connector text,.canvas-object.editing-connector rect{visibility:hidden}.inline-text.inline-connector{box-sizing:border-box;outline:1px dashed var(--port);outline-offset:0;overflow:hidden}.port-handle{fill:var(--port-fill);stroke:var(--port);pointer-events:all;cursor:crosshair;transition:fill .1s}.port-handle.minor{opacity:.75}.port-handle:hover{fill:var(--port);opacity:1}.connect-preview,.connect-target{stroke:var(--port);pointer-events:none}.selection-handle.connector-end{cursor:move}.selection-handle.connector-end.attached{fill:var(--port)}.segment-handle{fill:var(--port-fill);stroke:var(--port);opacity:.8;cursor:move}.segment-handle.horizontal{cursor:ns-resize}.segment-handle.vertical{cursor:ew-resize}.segment-handle:hover{opacity:1;fill:var(--port)}.waypoint-handle{fill:var(--port);stroke:var(--port-fill);cursor:move}.waypoint-handle:hover{fill:var(--kind-diagram-ink)}.quick-add{cursor:pointer;pointer-events:all;opacity:.85}.quick-add:hover{opacity:1}.quick-add-bg{fill:var(--port-fill);stroke:var(--port)}.quick-add-arrow{stroke:var(--port)}.quick-add:hover .quick-add-bg{fill:var(--port)}.quick-add:hover .quick-add-arrow{stroke:#fff}.inline-text.inline-node{white-space:pre-wrap;overflow-wrap:break-word;text-align:center;display:flex;align-items:center;box-sizing:border-box}.empty-canvas-actions .empty-shape{display:block;width:36px;height:24px}.empty-canvas-actions .empty-shape svg{width:100%;height:100%;display:block}.format-scroll{flex:1;overflow-x:hidden;overflow-y:auto;min-height:0}.style-presets{display:flex;flex-wrap:wrap;gap:6px}.style-chip{width:24px;height:24px;border-radius:6px;border:2px solid;padding:0;transition:transform .1s}.style-chip:hover{transform:scale(1.1)}.style-chip.chosen{box-shadow:0 0 0 2px var(--surface, #fff),0 0 0 4px var(--kind-diagram)}.route-options{display:flex;gap:6px}.route-options .button{flex:1;padding:7px 0}.form-label.compact{margin:0 0 6px;font-size:10px;color:var(--text-muted, #8a927f)}.no-fill{margin-top:8px}@media(max-width:900px){.kind-cards{grid-template-columns:1fr}.kind-filter{margin-left:0;width:100%;justify-content:stretch}.kind-filter button{flex:1;justify-content:center}.shape-palette{grid-template-columns:repeat(4,1fr)}}.shape-visualization{display:flex;gap:3px;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:9px}.shape-visualization button{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;gap:5px;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);font:inherit;font-size:11px;cursor:pointer}.shape-visualization button>svg{flex-shrink:0}.shape-visualization button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shape-visualization button[aria-pressed=true]{background:var(--kind-diagram-soft);color:var(--kind-diagram-ink);box-shadow:0 1px 3px #0000000d}.shape-visualization button:focus-visible{outline:2px solid var(--kind-diagram);outline-offset:1px}.shape-visualization-hint{margin:8px 0 12px;line-height:1.4}.shape-tile{padding:9px 3px 7px;gap:6px}.shape-tile-art{width:48px;height:42px}.shape-tile-label{font-size:10px}.kind-presentation .kind-card-icon,.kind-chip.kind-presentation{color:var(--kind-presentation-ink);background:var(--kind-presentation-soft)}@media(min-width:651px){.modal:has(.kind-cards){width:720px}}.document-tab.kind-presentation>[role=tab] svg{color:var(--kind-presentation)}.document-tab.selected.kind-presentation{box-shadow:inset 0 2px var(--kind-presentation)}.kind-filter button.active.kind-presentation{color:var(--kind-presentation-ink);background:var(--kind-presentation-soft)}.project-card.kind-presentation{border-top:2px solid var(--kind-presentation)}.project-card.kind-presentation .project-preview{background:var(--kind-presentation-soft)}.kind-card.kind-presentation:hover{border-color:var(--kind-presentation);box-shadow:0 0 0 3px var(--kind-presentation-soft)}
