:root{color:#182033;font-synthesis:none;background:#edf0f5;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input,select{font:inherit}button{color:#30384b;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #d7dce5;border-radius:8px;padding:7px 11px;transition:background .15s,border-color .15s,box-shadow .15s}button:hover:not(:disabled){background:#f4f7fb;border-color:#b7c0cf}button:disabled{color:#a8adba;cursor:not-allowed;background:#f7f8fa}button.primary{color:#fff;background:#2563eb;border-color:#2563eb}button.primary:hover:not(:disabled){background:#1d4ed8}.app-shell{flex-direction:column;height:100%;display:flex}.toolbar{z-index:30;background:#fff;border-bottom:1px solid #dfe3eb;flex:0 0 58px;align-items:center;gap:10px;height:58px;padding:0 16px;display:flex;box-shadow:0 1px 5px #141e320a}.toolbar-brand{color:#17213a;letter-spacing:-.01em;margin-right:3px;font-weight:750}.toolbar-group{align-items:center;gap:6px;padding-left:10px;display:flex;position:relative}.toolbar-group:before{content:"";background:#e5e8ee;width:1px;height:25px;position:absolute;left:0}.toolbar-group:first-of-type{padding-left:0}.toolbar-group:first-of-type:before{display:none}.toolbar-history{gap:3px}.toolbar .icon-button{width:34px;height:34px;padding:0;font-size:20px;line-height:1}.toolbar-spacer{flex:1}.toolbar button.preview-mode{color:#fff;background:#138a54;border-color:#138a54;box-shadow:0 0 0 2px #138a542e}.toolbar button.canvas-size-mode{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb2e}.toolbar button.outer-selection-mode{color:#fff;background:#7c3aed;border-color:#7c3aed;box-shadow:0 0 0 2px #7c3aed2e}.toolbar-export{min-width:92px;font-weight:700;box-shadow:0 3px 10px #2563eb2e}.toolbar .comment-add-button{color:#715100;background:#fff8d6;border-color:#e7c85f;font-weight:650}.notice{color:#7a5200;background:#fff7d6;border-bottom:1px solid #f1df9a;flex:0 0 34px;justify-content:center;align-items:center;gap:10px;min-height:34px;padding:5px 14px;font-size:13px;display:flex}.notice.error{color:#9d2222;background:#ffeded;border-color:#f4c3c3}.notice button{color:inherit;background:0 0;border:0;padding:0 5px;font-size:18px}.editor-layout{flex:1;grid-template-columns:minmax(380px,1fr) 270px;min-height:0;display:grid}.panel{scrollbar-gutter:stable;z-index:10;background:#fff;overflow:auto}.left-panel{border-right:1px solid #dfe3eb}.right-panel{scrollbar-gutter:stable;border-left:1px solid #e2e6ed;overflow-y:scroll;box-shadow:-2px 0 10px #19233708}.panel-title{z-index:2;background:#fff;border-bottom:1px solid #e5e8ef;align-items:center;height:43px;padding:0 14px;font-weight:650;display:flex;position:sticky;top:0}.panel-title-with-status{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;height:54px}.panel-title-with-status small{color:#2870dc;font-size:11px;font-weight:500}.layer-tree{padding:8px 0 20px;font:12px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}.layer-row{cursor:pointer;color:#3d4659;align-items:center;gap:3px;height:29px;padding-right:8px;display:flex;overflow:hidden}.layer-row:hover{background:#f0f4ff}.layer-row.selected{color:#174eb6;background:#dce8ff;font-weight:600}.layer-row span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tree-toggle{border:0;width:20px;padding:0;color:#687086!important;background:0 0!important}.body-row{padding-left:8px;font-weight:700}.empty-note{color:#8b92a2;text-align:center;padding:16px;font-size:13px;line-height:1.6}.properties-empty{margin-top:40px}.workspace{scrollbar-gutter:stable;background-color:#dde2ea;background-image:radial-gradient(#c2c9d5 .7px,#0000 .7px);background-size:14px 14px;justify-content:stretch;align-items:stretch;min-width:0;min-height:0;padding:24px;display:flex;overflow:auto}.workspace.original-size-workspace{justify-content:center;align-items:center;overflow:hidden}.canvas-stage{position:relative}.canvas-stage-adaptive{flex:1;min-width:640px;min-height:500px}.canvas-stage-original{flex:none}.iframe-shell{background:#fff;border-radius:2px;position:relative;overflow:hidden;box-shadow:0 8px 28px #1923412e}.iframe-shell-adaptive{position:absolute;inset:0}.iframe-shell-original{transform-origin:0 0;position:absolute;top:0;left:0}.iframe-shell iframe{background:#fff;border:0;width:100%;height:100%;display:block}.preview-mode-badge{z-index:110;color:#fff;pointer-events:none;background:#138a54eb;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:650;position:absolute;top:10px;right:12px;box-shadow:0 2px 9px #0000002e}.welcome-card{text-align:center;background:#ffffffd9;border:1px solid #d9dee8;border-radius:14px;width:min(460px,90%);margin:auto;padding:44px;box-shadow:0 8px 30px #28325014}.welcome-icon{color:#fff;background:#2563eb;border-radius:14px;justify-content:center;align-items:center;width:64px;height:64px;font-size:15px;font-weight:800;display:inline-flex}.welcome-card h2{margin:18px 0 8px;font-size:20px}.welcome-card p{color:#747c8d;margin:0;font-size:14px}.hover-overlay,.selection-overlay{pointer-events:none;z-index:100;position:absolute}.alignment-guide{z-index:99;pointer-events:none;background:#ff3b8d;position:absolute;box-shadow:0 0 0 1px #ffffffbf}.alignment-guide-vertical{width:1px;transform:translate(-.5px)}.alignment-guide-horizontal{height:1px;transform:translateY(-.5px)}.hover-overlay{background:#367eff0d;border:1px dashed #65a1ff}.selection-overlay{border:2px solid #1677ff}.selection-overlay-editing{outline-offset:0;border:0;outline:2px solid #1677ff}.selection-overlay-container{border-style:dashed;border-color:#7c3aed}.selection-overlay-container .resize-handle:after{border-color:#7c3aed}.resize-handle{box-sizing:border-box;pointer-events:auto;touch-action:none;background:0 0;border:0;width:16px;height:16px;position:absolute}.resize-handle:after{content:"";box-sizing:border-box;background:#fff;border:2px solid #1677ff;border-radius:50%;width:10px;height:10px;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0046b440}.handle-nw{cursor:nwse-resize;top:-13px;left:-13px}.handle-n{cursor:ns-resize;top:-13px;left:50%;transform:translate(-50%)}.handle-ne{cursor:nesw-resize;top:-13px;right:-13px}.handle-e{cursor:ew-resize;top:50%;right:-13px;transform:translateY(-50%)}.handle-se{cursor:nwse-resize;bottom:-13px;right:-13px}.handle-s{cursor:ns-resize;bottom:-13px;left:50%;transform:translate(-50%)}.handle-sw{cursor:nesw-resize;bottom:-13px;left:-13px}.handle-w{cursor:ew-resize;top:50%;left:-13px;transform:translateY(-50%)}.size-badge{color:#fff;white-space:nowrap;background:#1677ff;border-radius:4px;padding:3px 6px;font-size:10px;position:absolute;top:calc(100% + 7px);left:0}.properties-panel section{border-bottom:1px solid #edf0f4;padding:13px 14px 15px}.properties-panel .comments-section{background:#fffdf5;padding:0}.comments-toggle{color:#554514;background:#fffdf5;border:0;border-radius:0;justify-content:space-between;align-items:center;width:100%;height:42px;padding:0 13px;font-size:12px;font-weight:700;display:flex}.comments-toggle b{color:#382c00;background:#f5b700;border-radius:10px;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;font-size:11px;display:inline-grid}.comments-list{padding:0 10px 10px}.comments-empty{color:#8a8061;margin:0;padding:8px 4px 10px;font-size:11px;line-height:1.5}.comment-item{background:#fff;border:1px solid #eadcae;border-radius:8px;margin-top:7px;overflow:hidden}.comment-main{text-align:left;border:0;border-radius:0;grid-template-columns:25px minmax(0,1fr);align-items:start;gap:7px;width:100%;padding:9px;display:grid}.comment-main>span:last-child{min-width:0}.comment-number{color:#2d260c;background:#f5b700;border-radius:50%;place-items:center;width:21px;height:21px;font-size:10px;font-weight:800;display:grid}.comment-main strong{text-overflow:ellipsis;white-space:nowrap;color:#3d3a2d;font-size:11px;display:block;overflow:hidden}.comment-main small{color:#736b51;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px;font-size:11px;line-height:1.55;display:block}.comment-actions{justify-content:flex-end;gap:5px;padding:0 7px 7px;display:flex}.comment-actions button{color:#526078;border:0;padding:3px 7px;font-size:10px}.comment-actions .comment-delete{color:#b33a3a}.properties-panel h3{color:#626b7d;text-transform:uppercase;letter-spacing:.02em;margin:0 0 10px;font-size:12px}.property-field{color:#646d7f;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:7px;min-width:0;margin-bottom:7px;font-size:12px;display:grid}.property-field input,.property-field select{color:#263045;background:#fff;border:1px solid #d9dde5;border-radius:5px;width:100%;min-width:0;height:29px;padding:4px 7px}.property-field input:focus,.property-field select:focus{border-color:#3b82f6;outline:2px solid #bfdbfe}.property-field input:disabled{color:#747b89;background:#f3f4f7}.field-grid{grid-template-columns:1fr 1fr;gap:0 8px;display:grid}.field-grid .property-field{grid-template-columns:32px minmax(0,1fr)}.color-field input[type=color]{padding:2px}.compact-color{grid-template-columns:72px 42px;justify-content:space-between}.compact-color input[type=color]{cursor:pointer;width:42px}.color-control{margin-bottom:9px}.color-control .property-field{margin-bottom:5px}.color-palette{flex-wrap:wrap;gap:5px;margin-left:79px;display:flex}.color-swatch{border:1px solid #cdd2dc;border-radius:4px;width:20px;height:20px;padding:0;box-shadow:inset 0 0 0 1px #ffffff59}.color-swatch.recent{outline-offset:1px;outline:2px solid #b8d2ff}.panel-tip{color:#737c8f;background:#f4f7fb;border-radius:6px;margin:10px 0 0;padding:9px 10px;font-size:11px;line-height:1.5}.text-style-buttons{gap:6px;margin:2px 0 10px 79px;display:flex}.text-style-buttons button{width:34px;height:31px;padding:0;font-size:14px}.text-style-buttons button.active{color:#1459c7;background:#e7f0ff;border-color:#76a7f5}.case-buttons{grid-template-columns:1fr 1fr;gap:4px;display:grid}.case-buttons button{height:29px;padding:0 8px}.numbered-list-button{text-align:left;width:100%;height:29px;padding:0 9px}.list-buttons{flex-wrap:wrap;gap:6px;display:flex}.list-buttons .numbered-list-button{flex:82px;width:auto}.font-size-field{margin-bottom:9px}.size-stepper{grid-template-columns:31px 1fr 31px;display:grid}.size-stepper button{border-radius:0;height:29px;padding:0}.size-stepper button:first-child{border-radius:5px 0 0 5px}.size-stepper button:last-child{border-radius:0 5px 5px 0}.size-stepper input{text-align:center;border-left:0;border-right:0;border-radius:0}.align-buttons{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.align-buttons button{height:29px;padding:0}.align-buttons button.active{color:#1459c7;background:#e7f0ff;border-color:#76a7f5}.collapsible-section{padding:0!important}.section-toggle{color:#4f596c;background:#fff;border:0;border-radius:0;justify-content:space-between;align-items:center;width:100%;height:42px;padding:0 13px;font-size:12px;font-weight:650;display:flex}.collapsible-content{border-top:1px solid #edf0f4;padding:11px 12px 14px}.checkbox-field{color:#4d5668;align-items:center;gap:7px;margin:4px 0;font-size:12px;display:flex}.dialog-backdrop{z-index:1000;background:#1118277a;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.export-check-dialog{background:#fff;border:1px solid #dfe3eb;border-radius:12px;width:min(520px,100%);max-height:min(680px,100vh - 48px);padding:20px;overflow:auto;box-shadow:0 24px 70px #0f172a47}.export-check-header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px;display:flex}.export-check-header h2{color:#17213a;margin:0 0 4px;font-size:19px}.export-check-header p{color:#6b7280;margin:0;font-size:13px}.dialog-close{background:0 0;border:0;width:30px;height:30px;padding:0;font-size:22px;line-height:1}.export-check-list{gap:9px;display:grid}.export-check-item{background:#fffaf0;border:1px solid #eadfc2;border-radius:8px;grid-template-columns:32px 1fr;gap:10px;padding:11px;display:grid}.export-check-icon{color:#fff;background:#f59e0b;border-radius:7px;place-items:center;width:28px;height:28px;font-size:12px;font-weight:750;display:grid}.export-check-item strong{color:#4b3a13;margin-bottom:3px;font-size:13px;display:block}.export-check-item p{color:#786b4b;overflow-wrap:anywhere;margin:2px 0 0;font:11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.export-check-note{color:#70798a;margin:14px 0;font-size:12px;line-height:1.6}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.find-replace-dialog{background:#fff;border:1px solid #dfe3eb;border-radius:12px;width:min(480px,100%);padding:20px;box-shadow:0 24px 70px #0f172a47}.find-replace-field{color:#4f596c;grid-template-columns:76px 1fr;align-items:center;gap:10px;margin-bottom:10px;font-size:13px;display:grid}.find-replace-field input{color:#20283a;border:1px solid #d5d9e2;border-radius:6px;min-width:0;height:36px;padding:7px 10px}.find-replace-field input:focus{border-color:#3b82f6;outline:2px solid #bfdbfe}.find-replace-options{color:#606a7d;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 16px;font-size:12px;display:flex}.find-replace-options label{align-items:center;gap:6px;display:flex}.find-replace-options strong{color:#2563eb}.find-replace-message{color:#277044;margin:-6px 0 14px;font-size:12px}.comment-dialog{background:#fff;border:1px solid #dfe3eb;border-radius:12px;width:min(460px,100%);padding:20px;box-shadow:0 24px 70px #0f172a47}.comment-dialog textarea{resize:vertical;color:#20283a;border:1px solid #d5d9e2;border-radius:7px;width:100%;min-height:130px;margin-bottom:14px;padding:10px 11px;font:13px/1.55 inherit}.comment-dialog textarea:focus{border-color:#e5b400;outline:2px solid #fde68a}.export-mode-dialog{background:#fff;border:1px solid #dfe3eb;border-radius:12px;width:min(500px,100%);padding:20px;box-shadow:0 24px 70px #0f172a47}.export-mode-option{text-align:left;white-space:normal;width:100%;margin-top:10px;padding:14px 15px;display:block}.export-mode-option strong,.export-mode-option span{display:block}.export-mode-option strong{color:#20283a;margin-bottom:4px;font-size:14px}.export-mode-option span{color:#6b7280;font-size:12px;line-height:1.45}.export-mode-option-highlight{background:#fff9df;border-color:#e3bd38}@media (width<=1120px){.toolbar-brand{display:none}}@media (width<=950px){.editor-layout{grid-template-columns:minmax(360px,1fr) 250px}.toolbar{gap:6px;padding:0 9px}.toolbar-group{gap:4px;padding-left:7px}}
