*{box-sizing:border-box}body{margin:0;background:#17181c;color:#e7e8ed;font:14px 'Segoe UI','Microsoft YaHei',sans-serif;overflow:hidden}button,input,select,textarea{font:inherit}button{border:1px solid #35373f;border-radius:9px;background:#24262c;color:#d9dce5;padding:9px 12px;cursor:pointer;transition:.15s}button:hover{background:#34373e;color:white}button:focus-visible{outline:2px solid #b4ff73}header{height:68px;display:flex;align-items:center;gap:9px;padding:0 23px;border-bottom:1px solid #30323a;background:#1c1d22}.brand{display:flex;gap:10px;align-items:center;font-size:22px;margin-right:24px;color:#b4ff73}.brand span{font-size:12px;color:#888d98;border-left:1px solid #41434b;padding-left:12px}header input{background:transparent;border:0;color:#eceef2;width:180px;font-weight:600}#saved{font-size:11px;color:#929b90;margin-right:auto}#stage{position:relative;height:calc(100vh - 68px)}#canvas{width:100%;height:100%;display:block;touch-action:none}#tools{position:absolute;left:22px;top:24px;display:flex;flex-direction:column;gap:6px;padding:8px;background:#22242a;border:1px solid #3a3c45;border-radius:15px;box-shadow:0 8px 28px #0003}#tools button{width:44px;height:44px;font-size:22px;border:0;background:transparent;padding:0}#tools button.active{background:#b4ff73;color:#192111}#welcome{position:absolute;left:50%;top:45%;transform:translate(-60%,-50%);pointer-events:none}#welcome button{pointer-events:auto;margin-right:8px}h1{font-size:40px;letter-spacing:1px;font-weight:500;margin:18px 0}#welcome p{color:#969ba8;line-height:1.9;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;color:#a1ab9c}small{display:block;color:#777e88;margin-top:22px;font-size:11px}.primary{background:#b4ff73;color:#1b2913;border-color:#b4ff73}.primary:hover{background:#c7ff97;color:#16210e}#inspector{position:absolute;right:20px;top:24px;width:196px;padding:19px;background:#22242a;border:1px solid #373941;border-radius:14px}#inspector label{display:flex;align-items:center;justify-content:space-between;margin-top:19px;color:#aeb3be}input[type=color]{width:45px;height:28px;padding:0;border:0;background:none}input[type=range]{width:100px;accent-color:#b4ff73}select{background:#30323a;color:white;border:0;border-radius:5px;padding:5px}hr{border:0;border-top:1px solid #383a42;margin:20px 0}#selection{font-size:12px;color:#aab1bf;margin-bottom:12px}#inspector button{width:100%;text-align:left;margin-top:6px;font-size:12px}#inspector p{font-size:11px;line-height:1.9;color:#818896;margin-bottom:0}footer{position:absolute;bottom:20px;right:20px;display:flex;align-items:center;gap:4px;background:#23252b;border:1px solid #393b44;border-radius:12px;padding:5px}footer button{border:0;background:transparent}footer i{height:18px;width:1px;background:#41444e}#count{font-size:11px;color:#8f97a5;padding:0 12px}#hint{position:absolute;bottom:31px;left:26px;color:#818795;font-size:12px;pointer-events:none}#toast{position:absolute;bottom:83px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#d4f7b8;color:#23311c;border-radius:10px;display:none}dialog{background:#25272e;color:#e7e8ed;border:1px solid #454854;border-radius:16px;padding:26px;min-width:380px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#0008}dialog p{color:#b5bdc9;font-size:13px;line-height:1.7}textarea{display:block;width:100%;background:#181a1f;border:1px solid #494d57;border-radius:9px;color:white;padding:12px;margin-bottom:15px;resize:vertical}#editor>div{text-align:right}.node{cursor:move}.handle{cursor:nwse-resize}@media(max-width:900px){.brand span,#saved,#inspector{display:none}header{padding:0 10px;gap:5px}header input{width:110px}.brand{margin-right:5px}header button{font-size:11px;padding:8px}#welcome{transform:translate(-45%,-50%);width:65%}h1{font-size:29px}#hint{display:none}}
.floating-panel{position:absolute;z-index:20;display:flex;align-items:center;gap:12px;padding:9px 12px;background:#282b32;border:1px solid #4a4f5b;border-radius:12px;box-shadow:0 10px 32px #0006;white-space:nowrap;user-select:none}.floating-panel[hidden],#imageTagUI[hidden],.tag-palette[hidden]{display:none!important}.floating-panel>span{font-size:12px;color:#aeb5c1}.swatches{display:flex;gap:7px;align-items:center}.swatch{width:21px;height:21px;min-width:21px;border-radius:50%;border:2px solid #272a30;padding:0;background:var(--swatch);box-shadow:0 0 0 1px #ffffff24}.swatch:hover,.swatch.chosen{background:var(--swatch);box-shadow:0 0 0 2px #fff;transform:scale(1.08)}#imageTagUI{position:absolute;z-index:25;padding:0 0 8px}.tag-trigger{display:flex;align-items:center;justify-content:center;width:29px;height:29px;padding:5px;background:#23262def;border:1px solid #666b76;box-shadow:0 3px 12px #0005}.tag-palette{position:absolute;top:30px;left:0;gap:8px;padding:12px}.palette-left .tag-palette{left:auto;right:0}.clear-tag{border:0;padding:3px 7px;font-size:12px}.group-background{cursor:move}
.asset-menu{position:absolute;z-index:50;min-width:180px;background:#292d35;border:1px solid #515967;border-radius:12px;padding:6px;box-shadow:0 12px 40px #0008}.asset-menu[hidden]{display:none}.asset-menu button{display:block;border:0;width:100%;text-align:left;background:transparent;padding:12px}.asset-menu button:hover{background:#3a424e}.connection-port{cursor:crosshair}.connection-port:hover circle{fill:#b4ff73;stroke:#b4ff73}.connection-port:hover path{stroke:#182219}#inspector{width:232px;max-height:calc(100% - 110px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#555e6e transparent}#brushPanel{border-top:1px solid #424854;margin-top:18px;padding-top:20px}#brushPanel select{max-width:148px;font-size:12px}#brushPanel label{font-size:11px;gap:4px;margin-top:14px}#brushPanel input[type=range]{width:100px}#sizeOutput{font-size:10px;color:#8794a5}.paint-colors{display:flex;flex-wrap:wrap;gap:10px;padding:17px 2px 5px}.paint-tip{font-size:10px;line-height:1.8;color:#919cac;margin:8px 0 18px}.layer-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:12px}#inspector .layer-heading button{width:28px;text-align:center;padding:4px;margin:0}.layer-row{display:flex;align-items:center;border:1px solid transparent;padding:2px;border-radius:8px}.layer-row.active{border-color:#93bf6a;background:#b4ff7310}#inspector .layer-row button{background:transparent;border:0;width:auto;margin:0;padding:7px 4px;font-size:11px}#inspector .layer-row .layer-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-actions{display:flex;gap:3px;margin-top:8px}#inspector .layer-actions button{width:auto;flex:1;text-align:center;padding:7px 3px;font-size:10px}#layersList{max-height:180px;overflow-y:auto}.tag-palette{top:auto;bottom:37px}#tools{gap:2px;max-height:calc(100% - 100px);overflow-y:auto}#tools button{flex-shrink:0;height:39px}#color{width:65px;height:32px;cursor:pointer}
#inspector .paint-colors .swatch{width:21px;min-width:21px;height:21px;flex:0 0 21px;margin:0;padding:0;border:2px solid #272a30;background:var(--swatch)}.tag-palette{top:0;bottom:auto;left:37px}.palette-left .tag-palette{right:37px;left:auto}#inspector .paint-colors .swatch:hover{background:var(--swatch)}
#ocrDialog{width:min(1160px,95vw);max-height:94vh;min-width:320px;overflow:auto;padding:24px}.ocr-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.ocr-heading h3{font-size:21px;margin:10px 0}.ocr-description{max-width:1000px;margin:5px 0 18px}.ocr-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#1d2027;border-radius:10px}.ocr-controls label{display:flex;align-items:center;gap:7px;font-size:12px;color:#b7c0ce}.ocr-controls input[type=color]{width:35px;height:26px}.ocr-controls input[type=checkbox]{accent-color:#b4ff73}#ocrStatus{padding:14px 0;color:#c6dfb0;font-size:12px;min-height:44px}.ocr-previews{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ocr-preview-title{font-size:12px;margin:0 0 8px;color:#aeb9c9}.ocr-preview{height:320px;overflow:auto;border:1px solid #444c59;border-radius:10px;background-color:#343a44;background-image:linear-gradient(45deg,#414854 25%,transparent 25%),linear-gradient(-45deg,#414854 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#414854 75%),linear-gradient(-45deg,transparent 75%,#414854 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;display:flex;align-items:center;justify-content:center}.ocr-preview>img{max-width:100%;max-height:100%;object-fit:contain;display:block}.ocr-preview>svg{display:block;flex-shrink:0}.ocr-preview>p{font-size:13px;color:#d4dce7}.ocr-edit-heading{display:flex;align-items:baseline;gap:14px;margin:20px 0 10px;font-size:12px}.ocr-edit-heading span{color:#9da8b8;font-size:11px}#ocrLines{max-height:200px;overflow-y:auto}.ocr-line-row{display:flex;align-items:center;gap:10px;margin:6px 0}.ocr-line-row>span{font-size:10px;color:#8796aa;min-width:24px}.ocr-line-row>input:not([type=color]){flex:1;min-width:0;padding:9px 12px;border:1px solid #495363;border-radius:7px;color:#e4ebf4;background:#191d24}.ocr-line-row>input[type=color]{width:30px;height:28px}.ocr-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #454d5b;margin-top:18px;padding-top:16px}.ocr-bottom>span{font-size:11px;color:#98a7bb}.ocr-bottom button{margin-left:7px}button:disabled{opacity:.45;cursor:default}#ocrQuick p{font-size:10px;line-height:1.7;color:#919cac}#ocrQuick[hidden]{display:none}@media(max-width:760px){.ocr-previews{grid-template-columns:1fr}.ocr-preview{height:220px}.ocr-bottom,.ocr-edit-heading{flex-wrap:wrap}}
#inlineEditor{position:absolute;z-index:32;transform-origin:top left;outline:2px solid #b4ff73;border-radius:3px;box-shadow:0 10px 30px #0004;overflow:visible;min-width:80px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;padding:0;cursor:text;user-select:text}#inlineEditor[hidden],#inlineToolbar[hidden],#annotationBar[hidden]{display:none!important}#inlineEditor.rich-document{padding:24px;white-space:normal}#inlineToolbar{z-index:34;padding:6px;gap:5px}#inlineToolbar button{padding:7px 10px;font-size:12px}#annotationBar{top:16px;left:50%;transform:translateX(-50%);z-index:28;font-size:12px}#annotationBar span{color:#a5b4c8;font-size:11px}#shortcutDialog{max-height:90vh;overflow-y:auto}#shortcutRows{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}#shortcutRows label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px}#shortcutRows input{width:48px;text-align:center;border:1px solid #536174;border-radius:6px;background:#1a212c;color:#d7e5f7;padding:8px;font-weight:600}.settings-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#shortcutError{color:#ff9cab;min-height:22px}.workspace-import{cursor:pointer}.rich-document{font:20px/1.65 'Segoe UI','Microsoft YaHei',sans-serif;color:#253247;background:#fff;padding:24px;box-sizing:border-box;overflow-wrap:anywhere}.rich-document *{max-width:100%;box-sizing:border-box}.rich-document p{margin:0 0 12px}.rich-document h1{font-size:32px;font-weight:700;letter-spacing:normal;line-height:1.3;margin:12px 0 18px}.rich-document h2{font-size:27px;line-height:1.35;margin:18px 0 12px}.rich-document h3{font-size:23px;line-height:1.4;margin:16px 0 10px}.rich-document ul,.rich-document ol{margin:8px 0 14px;padding-left:30px}.rich-document li{margin:4px 0}.rich-document pre{background:#eef1f5;border:1px solid #d8dfe8;border-radius:6px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;font-size:16px;line-height:1.6}.rich-document code{font-family:Consolas,monospace;font-size:.88em;background:#edf0f5;padding:1px 4px}.rich-document pre code{background:transparent;padding:0}.rich-document blockquote{margin:14px 0;border-left:4px solid #93a8c4;padding:6px 16px;color:#596b84}.rich-document table{border-collapse:collapse;width:100%;margin:14px 0;font-size:17px}.rich-document td,.rich-document th{border:1px solid #bfcbd9;padding:9px 12px;text-align:left;vertical-align:top}.rich-document th{background:#edf2f7;font-weight:700}.rich-document a{color:#2867b0;text-decoration:underline}.rich-document hr{border:0;border-top:1px solid #bac7d8;margin:18px 0}.rich-measurer{position:fixed!important;left:-20000px!important;top:0!important;visibility:hidden!important;pointer-events:none!important;height:auto!important;contain:layout style}
#canvas{user-select:none;-webkit-user-select:none;outline:none}
#documentDialog{width:min(1150px,95vw);max-height:94vh;padding:20px;overflow:hidden}#documentDialog[open]{display:flex;flex-direction:column;gap:12px}.document-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.document-view-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-view-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.document-view-controls span{font-size:12px;color:#a4b7cf;padding:0 12px}#documentPagePreview{overflow:auto;min-height:240px;max-height:72vh;text-align:center;background:#161c25;padding:16px;border-radius:10px}#documentPagePreview img{display:block;max-width:100%;height:auto;margin:auto;box-shadow:0 5px 24px #0006}#documentViewStatus{font-size:12px;color:#e3ca8e;line-height:1.6}.layer-multi-tip{font-size:10px;color:#8496af;line-height:1.6;padding:6px 0}.layer-folder-row{display:flex;align-items:center;gap:0;padding:4px 0;margin:5px 0;background:#323b49;border-radius:7px}.layer-folder-row.selected-folder{outline:1px solid #b4ff73}#inspector .layer-folder-row button{width:auto;border:0;background:transparent;padding:6px 3px;margin:0;font-size:11px}#inspector .layer-folder-row .layer-folder-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.layer-row input[type=checkbox],.layer-folder-row input[type=checkbox]{width:12px;height:12px;accent-color:#b4ff73;margin:0 3px;flex-shrink:0}.grouped-layer{margin-left:10px}.group-name-label{cursor:text}#groupNameInput{position:absolute;z-index:42;height:29px;border:1px solid #b4ff73;border-radius:6px;padding:4px 8px;background:#222d3d;color:#eaf1fb;font:14px 'Microsoft YaHei',sans-serif}#groupNameInput[hidden]{display:none}#inspector .layer-row button{font-size:10px}#layersList{max-height:260px}.group-drop-highlight{filter:drop-shadow(0 0 3px #ffffff55)}
.image-name-label{cursor:text}#imageNameInput{position:absolute;z-index:45;height:25px;border:1px solid #b4ff73;border-radius:5px;padding:3px 7px;background:#222d3d;color:#eaf1fb;font:11px 'Microsoft YaHei',sans-serif}#imageNameInput[hidden]{display:none}#groupNameInput{font-size:11px;height:25px}.tag-trigger{width:24px;height:24px;padding:3px}.tag-palette{top:auto;bottom:35px;left:0;right:auto}.palette-left .tag-palette{right:0;left:auto}
#shortcutDialog{width:min(830px,95vw)}#shortcutRows{grid-template-columns:1fr 1fr;gap:13px 26px}#shortcutRows input{width:160px;min-width:100px;font-size:12px;cursor:pointer;text-overflow:ellipsis}#shortcutRows input.recording{outline:1px solid #b4ff73;background:#283b32}#imageNameInput,#groupNameInput{font-size:10px}@media(max-width:650px){#shortcutRows{grid-template-columns:1fr}}
#exitImageGroup[hidden]{display:none}
#desktopWindow.window-pinned{color:#b4ff73;border-color:#759d4b;background:#293a25}#desktopWindow{white-space:nowrap}
#toast{pointer-events:none}
