:root{font:14px Microsoft YaHei,Arial,sans-serif;color:#4d5575;background:#f4f5fa;--pink:#f8e7f1;--blue:#e8efff;--blue-border:#cfddfb;--accent:#df6dc7;--muted:#8b8fac;--line:#e5e4ee;--panel:#fffdfd}*{box-sizing:border-box}body{margin:0;height:100vh;overflow:hidden}button,select,input{font:inherit;color:inherit;border:1px solid #deddeb;border-radius:8px;background:#fff;padding:8px 12px;min-height:36px}button{cursor:pointer;white-space:nowrap;transition:background .12s,border-color .12s}button:hover{border-color:#dba7d0;background:#fff7fc}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #dc7ac9;outline-offset:1px}header{height:65px;display:flex;align-items:center;gap:8px;padding:8px 14px;background:#fbedf5;border-bottom:1px solid #ead9e7;overflow-x:auto;scrollbar-width:thin}header button{height:44px;padding:0 16px;border-color:#eed3e5;background:#fff9fd}.brand{height:48px;display:flex;align-items:center;gap:10px;padding-right:20px;margin-right:4px;border-right:1px solid #e5d3e2;color:#a95e9d;font-size:20px;white-space:nowrap}.brand img{width:44px;height:44px;object-fit:contain}.primary{background:#f9e2f1;border-color:#efc6e2;color:#9c518f;margin-left:0}nav{height:48px;display:flex;align-items:center;gap:8px;padding:5px 20px;background:#fbf0f7;border-bottom:1px solid #e6e2ed;overflow-x:auto}nav select{margin-right:5px;min-width:100px}.privacy{margin-left:auto;color:#648e80;white-space:nowrap}main{height:calc(100vh - 113px);display:grid;grid-template-columns:minmax(335px,23vw) minmax(500px,1fr) minmax(280px,20vw);min-height:0}.left,.right{background:#f8f7fa;overflow:auto;border-right:1px solid #e1dfeb;scrollbar-color:#d8d4e2 transparent}.right{border-right:0;border-left:1px solid #dddbe5;padding:0 10px 9px}.tabs{display:flex;position:sticky;top:0;background:#f4f3f8;z-index:2;border-bottom:1px solid #e6e3ec}.tabs button{flex:1;border:0;border-radius:0;background:#edf0fa;padding:13px 5px;color:#576286}.tabs .active{background:#f5deec;color:#a94f94;font-weight:600}.pane{display:none}.pane.active{display:block}section{padding:8px 12px 18px}h3{font-size:14px;color:#9d6baa;margin:12px 4px 8px;font-weight:650}.wide{width:100%;margin:4px 0;background:#eaf0ff;border-color:#d3def9;color:#516897}label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 2px;color:#545d80}label input{width:58%;min-width:94px;text-align:left;padding:7px 10px}.workspace{position:relative;overflow:auto;background:#edf1fb;padding:24px 10px 30px}.ruler{position:sticky;top:0;height:25px;background:#f9faff;border-bottom:1px solid #d9dbea;color:#606b8d;white-space:nowrap;z-index:1;padding-left:25px;line-height:24px;font-variant-numeric:tabular-nums}canvas{display:block;width:min(100%,1200px);height:auto;aspect-ratio:1200/760;margin:0 auto 20px;background:#edf1fb;transform-origin:top center;touch-action:none}.workspace footer{position:fixed;bottom:0;left:23vw;right:20vw;background:#f7f6fa;border-top:1px solid #ebe8f0;padding:4px 10px;color:#777f9c;z-index:3}.right h3{margin:0 -10px;padding:7px 10px;background:#efeff3;border-bottom:1px solid #d9d8df;color:#4e5675;font-weight:500}.right #props{height:calc(100% - 122px);min-height:140px;border:1px solid #e1deea;border-radius:9px;background:#fff;padding:10px;color:#89869a;margin:8px 0}.item{display:flex;align-items:center;gap:8px;padding:6px;border:1px solid #eee;border-radius:7px;margin:4px 0;cursor:pointer;overflow:hidden}.item img{width:44px;height:34px;object-fit:contain}.item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item.sel{background:#fae4f3;border-color:#e8c6df}dialog{width:min(520px,90vw);border:1px solid #e6cce1;border-radius:16px;padding:26px;color:#514a68;box-shadow:0 18px 60px #45385844}dialog::backdrop{background:#29243c88}dialog h2{color:#a85b98}dialog p{line-height:1.9}dialog a,dialog button{display:inline-block;margin:12px 8px 0 0;padding:10px 14px;background:#f8e3f1;text-decoration:none;color:#875577;border-radius:8px}.left section>label input,.left section>input{height:38px}.left section .item{background:#fff}.right .wide{margin-top:4px}@media(max-width:1050px){main{grid-template-columns:310px minmax(400px,1fr) 250px}.workspace footer{left:310px;right:250px}.brand{font-size:17px}header button{padding:0 10px}}@media(max-width:800px){body{overflow:auto}header,nav{min-width:800px}main{min-width:800px;height:calc(100vh - 113px);grid-template-columns:280px minmax(400px,1fr)}.right{display:none}.workspace footer{left:280px;right:0}}.layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px 0}.layer-actions button{white-space:normal;padding:6px 4px;font-size:12px}label.check{justify-content:flex-start;gap:8px}.check input{width:auto;min-width:0;min-height:0}#queue .queue-item{display:grid;grid-template-columns:44px minmax(0,1fr) repeat(3,28px);gap:4px;padding:4px}#queue .queue-item button{min-width:0;min-height:28px;padding:2px 4px;border-radius:5px}#canvas{display:block;width:min(100%,1200px);height:auto;aspect-ratio:1200/760;margin:0 auto 20px;background:#edf1fb;transform-origin:top center;touch-action:none}.canvasline{display:flex;align-items:flex-start;width:min(100%,1232px);margin:0 auto;overflow:visible}.canvasline #rulerY{flex:0 0 32px;width:32px;height:auto;aspect-ratio:32/760;margin:0;background:#f9faff;touch-action:none}.canvasline #canvas{width:calc(100% - 32px);max-width:1200px;margin:0 auto 20px}.ruler{padding:0 0 0 32px}.ruler #rulerX{display:block;width:100%;height:25px;aspect-ratio:auto;margin:0;touch-action:none}.nav-check{white-space:nowrap}#guidesDialog{max-height:90vh;overflow:auto}#guideList{width:100%;margin:8px 0}.context-menu{position:fixed;z-index:20;min-width:190px;display:flex;flex-direction:column;padding:5px;background:#fffdfd;border:1px solid #e6cce1;border-radius:9px;box-shadow:0 8px 28px #41354c33}.context-menu[hidden]{display:none}.context-menu button{border:0;text-align:left;border-radius:5px;background:transparent;min-height:32px;padding:6px 10px}.context-menu button:hover{background:#f8e3f1}:root{--theme-bg:#f9f6fc;--theme-surface:#fffcff;--theme-fg:#514c66;--theme-accent:#f3d9eb;--theme-canvas:#edf1fa}body{background:var(--theme-bg);color:var(--theme-fg)}button,select,input{background:var(--theme-surface);color:var(--theme-fg);border-color:var(--theme-accent)}button:hover{background:var(--theme-accent);border-color:var(--theme-accent)}header{background:var(--theme-accent);border-color:var(--theme-accent)}nav,.tabs,.tabs button{background:var(--theme-bg);color:var(--theme-fg)}main,.left,.right{background:var(--theme-bg)}.brand{color:var(--theme-fg);border-color:var(--theme-accent)}.tabs .active{background:var(--theme-accent);color:var(--theme-fg)}h3,label{color:var(--theme-fg)}.wide,.primary{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-fg)}.workspace,.canvasline,.ruler,#canvas{background:var(--theme-canvas)}.ruler,.ruler #rulerX,.canvasline #rulerY{background:var(--theme-surface);color:var(--theme-fg)}.workspace footer,.right h3{background:var(--theme-bg);border-color:var(--theme-accent);color:var(--theme-fg)}.item,.left section .item{background:var(--theme-surface);border-color:var(--theme-accent)}.item.sel,.tabs .active{background:var(--theme-accent);border-color:var(--theme-accent)}.right #layers .item{cursor:grab}.right #layers .item.dragging{opacity:.45}.right #layers .item.drop-before{box-shadow:inset 0 3px 0 var(--theme-accent)}.right #layers .item.drop-after{box-shadow:inset 0 -3px 0 var(--theme-accent)}dialog,.context-menu{background:var(--theme-surface);border-color:var(--theme-accent);color:var(--theme-fg)}dialog h2{color:var(--theme-fg)}.context-menu button:hover,dialog a,dialog button{background:var(--theme-accent);color:var(--theme-fg)}.site-home{color:#8d5b87;text-decoration:none;border:1px solid #eed3e5;border-radius:8px;padding:9px 10px;white-space:nowrap;background:#fff9fd}.site-home:hover{background:#fff1f9}.import-dialog{width:min(720px,calc(100vw - 32px));max-height:85vh;padding:20px;border:1px solid var(--line,#e5e4ee);border-radius:14px;box-shadow:0 18px 60px #39233a33;color:var(--theme-fg,#4d5575);background:var(--theme-surface,#fffdfd)}.import-dialog::backdrop{background:#24223766}.import-dialog h2{margin:0 0 8px;color:#9d6baa}.import-dialog>p{margin:0 0 14px;color:#737894}.import-queue-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}.import-queue-toolbar span{margin-left:auto;color:#737894}.import-queue-list{display:flex;flex-direction:column;gap:6px;min-height:96px;max-height:54vh;overflow:auto;padding:2px}.pending-import{display:grid;grid-template-columns:64px minmax(0,1fr) 38px;align-items:center;gap:10px;min-height:60px;padding:6px 8px;border:1px solid var(--line,#e5e4ee);border-radius:9px;background:var(--theme-surface,#fff);cursor:grab}.pending-import:active{cursor:grabbing}.pending-import img{width:60px;height:46px;object-fit:contain;border-radius:5px;background:var(--theme-canvas,#f0f2f9)}.pending-import span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pending-import button{min-width:32px;padding:4px 8px;color:#aa588f}.import-queue-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.import-dialog button:disabled{cursor:not-allowed;opacity:.55}.queue-notice{margin:0 0 10px;padding:8px 10px;border-radius:8px;background:#fff2ed;color:#984a32}.queue-notice[hidden]{display:none}.queue-preview-hint{display:flex;width:60px;height:46px;align-items:center;justify-content:center;overflow:hidden;border-radius:5px;padding:3px;background:#fff2ed;color:#984a32;font-size:9px;line-height:1.2;text-align:center}label select#textFont{width:58%;min-width:94px;padding:7px 10px}.layer-actions .preview-quality{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;font-size:13px}.preview-quality input{width:90px;min-width:0}
