:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-synthesis:none;line-height:1.45;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:25px;letter-spacing:-.8px;margin-bottom:2px}h2{font-size:19px}h3{font-size:14px;letter-spacing:-.1px;margin:0}h4{font-size:13px;margin:0 0 8px}small{font-size:11px}label{display:block}select,input[type=text],input[type=password],input[type=number],input[type=email],.field-group>input,.account-form input,.template-new input,.project-control input,.batch-titles input{width:100%;background:var(--input);border:1px solid var(--border);color:var(--text);padding:9px 10px;border-radius:8px;outline:none;min-height:37px}input[type=color]{padding:0;height:35px;width:100%;border:1px solid var(--border);background:var(--panel);border-radius:5px}input[type=range]{accent-color:var(--accent);width:100%;height:6px}input[type=checkbox]{accent-color:var(--accent);width:15px;height:15px}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 17px) 16px,calc(100% - 12px) 16px;background-size:5px 5px;background-repeat:no-repeat;padding-right:28px}.muted{color:var(--muted);font-size:12px}.tiny{font-size:11px}.error{color:var(--danger)}:root,[data-theme=dark]{--bg:#101923;--sidebar:#121f2b;--panel:#1b2936;--panel2:#223342;--input:#14222f;--text:#f1f5f9;--muted:#97a9b9;--border:#344555;--accent:#22b8ad;--accentHover:#40d3c4;--accentInk:#071e1c;--danger:#ff7c82;--shadow:0 4px 24px rgba(0,0,0,.13)}[data-theme=light]{--bg:#f4f7f9;--sidebar:#fff;--panel:#fff;--panel2:#f1f6f8;--input:#f8fbfc;--text:#1e293b;--muted:#66788d;--border:#dce5ea;--accent:#008e87;--accentHover:#00746e;--accentInk:#fff;--danger:#cd3a44;--shadow:0 4px 24px rgba(30,65,82,.055)}body{background:var(--bg);color:var(--text)}.app{display:flex;min-height:100vh}.sidebar{width:238px;min-width:238px;background:var(--sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:20}.brand{height:74px;display:flex;align-items:center;gap:11px;padding:0 22px;font-size:19px;letter-spacing:-.5px;border-bottom:1px solid var(--border)}.brand em{font-style:normal;color:var(--accent)}.brand-icon{width:37px;height:37px;display:flex;align-items:center;justify-content:center;background:#22b8ad24;border-radius:10px;color:var(--accent)}.sidebar-title{color:var(--muted);font-size:9px;letter-spacing:1.1px;margin:28px 19px 14px}.sidebar nav{display:flex;flex-direction:column;gap:5px;padding:0 11px}.sidebar nav button{display:flex;align-items:center;gap:11px;background:transparent;border:0;color:var(--muted);padding:12px 11px;border-radius:9px;text-align:left;font-size:12px;font-weight:550}.sidebar nav button:hover{background:var(--panel);color:var(--text)}.sidebar nav button.active{background:#22b8ad1f;color:var(--accent)}.sidebar-bottom{margin-top:auto;padding:18px 19px;border-top:1px solid var(--border)}.sidebar-bottom p{font-size:12px;font-weight:700;margin:0 0 5px}.sidebar-bottom span{display:block;color:var(--muted);font-size:11px;line-height:1.5}.sidebar-bottom-actions button{border:0;background:none;color:var(--muted);display:flex;align-items:center;gap:8px;margin-top:12px;padding:4px 0;font-size:12px}.main{min-width:0;flex:1}.topbar{height:74px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:var(--sidebar)}.breadcrumbs{font-size:12px;color:var(--muted)}.breadcrumbs span{padding:0 10px;opacity:.6}.breadcrumbs strong{color:var(--text);font-weight:600}.top-actions,.heading-actions,.toolbar-right,.icon-actions,.row-space,.layer-actions{display:flex;align-items:center;gap:9px}.top-actions .version{font-size:10px;color:var(--muted);background:var(--panel);border:1px solid var(--border);padding:3px 7px;border-radius:5px}.top-actions button{font-size:12px}.page{padding:24px 26px 38px;max-width:1900px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.page-heading p{color:var(--muted);font-size:12px;margin:0}.primary,.secondary,.ghost,.subtle{border-radius:8px;font-size:12px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;padding:10px 14px;white-space:nowrap;min-height:38px}.primary{background:var(--accent);color:var(--accentInk)}.primary:hover:not(:disabled){background:var(--accentHover)}.secondary{background:var(--panel);border-color:var(--border);color:var(--text)}.secondary:hover{background:var(--panel2)}.ghost{background:transparent;color:var(--muted);padding:8px}.ghost:hover,.subtle:hover{color:var(--text);background:var(--panel2)}.subtle{background:transparent;border-color:var(--border);color:var(--muted);padding:8px 10px}.full{width:100%}.large{padding:14px 18px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);min-width:0}.section-pad{padding:19px}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--border)}.panel-header .count{background:var(--panel2);border-radius:5px;font-size:11px;padding:2px 7px;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(180px,230px) minmax(350px,1fr) minmax(230px,278px);align-items:stretch;gap:15px}.file-panel,.settings-panel{min-height:630px}.upload-box{margin:14px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:125px;width:calc(100% - 28px);border:1.5px dashed var(--border);background:var(--input);border-radius:9px;color:var(--accent)}.upload-box strong{color:var(--text);font-size:12px}.upload-box small{color:var(--muted)}.upload-box:hover{border-color:var(--accent)}.files-list{padding:0 9px;display:flex;flex-direction:column;gap:5px;max-height:520px;overflow:auto}.file-item{border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);display:flex;gap:9px;align-items:center;text-align:left;padding:7px;width:100%}.file-item:hover{background:var(--panel2)}.file-item.active{background:#22b8ad1a;border-color:#22b8ad66}.file-item img{width:42px;height:42px;object-fit:cover;border-radius:5px;background:var(--input)}.file-item span:nth-child(2){flex:1;min-width:0}.file-item strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item small{display:block;color:var(--muted);font-size:10px}.file-trash{color:var(--muted)}.file-trash:hover{color:var(--danger)}.empty-hint{color:var(--muted);font-size:11px;text-align:center;padding:10px 14px}.canvas-panel{overflow:hidden;display:flex;flex-direction:column;min-height:630px}.canvas-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid var(--border);gap:10px}.canvas-toolbar button,.icon-actions button,.layer-actions button{border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:7px;min-width:32px;min-height:32px;padding:6px;display:inline-flex;align-items:center;justify-content:center}.canvas-toolbar .mode-switch{display:flex;gap:6px}.canvas-toolbar .mode-switch button{gap:6px;padding:7px 11px;font-size:11px;font-weight:650}.canvas-toolbar button.active,.icon-actions button:hover{background:#22b8ad1a;color:var(--accent);border-color:#22b8ad59}.canvas-body{min-height:475px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px 16px;position:relative;background-color:var(--input);background-image:linear-gradient(45deg,rgba(120,145,167,.04) 25%,transparent 25%,transparent 75%,rgba(120,145,167,.04) 75%),linear-gradient(45deg,rgba(120,145,167,.04) 25%,transparent 25%,transparent 75%,rgba(120,145,167,.04) 75%);background-size:20px 20px;background-position:0 0,10px 10px}.image-stage{display:inline-flex;position:relative;max-width:100%;touch-action:none;user-select:none;cursor:crosshair;box-shadow:0 8px 30px #00000040}.image-stage img{max-width:100%;max-height:54vh;width:auto;height:auto;display:block;pointer-events:none;user-select:none}.crop-rect{position:absolute;border:2px solid var(--accent);box-shadow:0 0 0 9999px #00000061;cursor:move;touch-action:none}.crop-grid{width:100%;height:100%;background:linear-gradient(90deg,transparent 33.15%,rgba(255,255,255,.6) 33.4%,rgba(255,255,255,.6) 33.65%,transparent 33.9%,transparent 66.15%,rgba(255,255,255,.6) 66.4%,rgba(255,255,255,.6) 66.65%,transparent 66.9%),linear-gradient(transparent 33.15%,rgba(255,255,255,.6) 33.4%,rgba(255,255,255,.6) 33.65%,transparent 33.9%,transparent 66.15%,rgba(255,255,255,.6) 66.4%,rgba(255,255,255,.6) 66.65%,transparent 66.9%);pointer-events:auto}.crop-handle{width:15px;height:15px;position:absolute;right:-8px;bottom:-8px;border:3px solid var(--accent);background:#fff;border-radius:3px;cursor:nwse-resize}.canvas-caption{font-size:11px;color:var(--muted);text-align:center;margin:17px 0 0}.canvas-empty{text-align:center;max-width:310px}.canvas-empty .empty-icon{display:flex;align-items:center;justify-content:center;width:110px;height:110px;margin:0 auto 20px;border-radius:25px;background:#22b8ad1a;color:var(--accent)}.canvas-empty h2{margin:0 0 7px}.canvas-empty p{font-size:12px;color:var(--muted);margin-bottom:20px}.canvas-footer{padding:11px 14px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.settings-scroll{overflow:auto;max-height:750px;padding:15px;display:flex;flex-direction:column;gap:18px}.field-group{display:flex;flex-direction:column;gap:8px}.field-group>label,.settings-panel label,.batch-grid label,.project-control label,.account-form label{font-size:11px;color:var(--muted)}.field-group label input,.field-group label select{margin-top:5px}.field-title{font-size:12px;font-weight:650;display:flex;justify-content:space-between;color:var(--text)}.field-title span{color:var(--muted);font-weight:400}.two-inputs,.grid-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.two-inputs label,.grid-inputs label{color:var(--muted);font-size:11px}.two-inputs input,.grid-inputs input{margin-top:4px}.icon-actions button{flex:1;min-height:36px}.range-field>div{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.range-field>div input{width:56px;text-align:center;min-height:27px;padding:3px;font-size:11px}.check-label{display:flex;align-items:center;gap:8px;color:var(--text)!important;font-size:12px!important}.check-label input{flex-shrink:0}.toast{margin:10px 26px 0;padding:11px 13px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:9px;background:#22b8ad1f;border:1px solid rgba(34,184,173,.45);color:var(--text);font-size:12px}.toast>span{display:flex;gap:8px;align-items:center}.toast svg{color:var(--accent);flex-shrink:0}.toast.danger{border-color:#ff7c8280;background:#ff7c8214}.toast.danger svg{color:var(--danger)}.toast button{background:transparent;border:0;color:var(--muted)}.preview-section{margin-top:15px;display:flex;align-items:center;gap:18px;padding:15px 20px}.preview-section p{font-size:11px;color:var(--muted);margin:4px 0}.preview-section img{max-width:220px;max-height:130px;border-radius:6px;object-fit:contain;margin-left:auto}.batch-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1fr) minmax(280px,1fr);gap:15px}.batch-grid .panel-header{padding:0 0 13px;margin-bottom:14px}.batch-files{max-height:550px;overflow:auto}.batch-file{display:flex;align-items:center;gap:11px;padding:8px 0;border-bottom:1px solid var(--border)}.batch-file img{width:47px;height:42px;object-fit:cover;border-radius:5px}.batch-file span{min-width:0}.batch-file strong,.batch-file small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.batch-file strong{font-size:11px;color:var(--text)}.batch-file small{color:var(--muted)}.row-space{justify-content:space-between;margin-bottom:10px}.preset-checks{max-height:520px;overflow:auto}.preset-check{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:10px 3px}.preset-check span{min-width:0}.preset-check strong{font-size:11px;color:var(--text);display:block}.preset-check small{color:var(--muted)}.batch-grid .section-pad>label{margin:12px 0}.batch-titles{max-height:240px;overflow:auto}.batch-titles label{display:block;margin-bottom:9px}.batch-titles input{margin-top:3px}.batch-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}.batch-summary>div{padding:13px 7px;border-radius:8px;background:var(--panel2);text-align:center}.batch-summary span{display:block;color:var(--muted);font-size:10px}.batch-summary strong{font-size:25px}.progress-wrap{margin:10px 0}.progress-track{height:8px;border-radius:5px;background:var(--panel2);overflow:hidden}.progress-track>div{height:100%;background:var(--accent);transition:width .15s}.progress-wrap small{color:var(--muted)}.empty-card,.info-note{border:1px dashed var(--border);padding:17px;border-radius:9px;color:var(--muted);font-size:12px;margin:12px 0}.info-note{border-style:solid;background:var(--input)}.two-panels{display:grid;grid-template-columns:1.2fr 1fr;gap:15px}.two-panels .panel-header{padding:0 0 14px;margin-bottom:17px}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}.library-card{text-align:left;display:flex;flex-direction:column;gap:5px;padding:10px;background:var(--input);border:1px solid var(--border);border-radius:9px;color:var(--text)}.library-card:hover{border-color:var(--accent)}.library-card strong{font-size:12px}.library-card span{font-size:11px;color:var(--muted)}.preset-art{height:80px;background:linear-gradient(130deg,#22b8ad4d,#22b8ad0a);display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--accent)}.delete-chip{color:var(--danger)!important;display:flex;gap:4px;align-items:center;margin-top:4px}.template-new{display:flex;gap:8px}.template-row{display:flex;align-items:center;gap:8px;padding:11px 0;border-bottom:1px solid var(--border)}.template-row span{display:flex;align-items:center;gap:8px;flex:1;font-size:12px}.project-control{display:flex;gap:15px;align-items:end;margin-bottom:20px}.project-control label{flex:1}.project-control input{margin-top:5px}.project-item{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);padding:12px 0}.project-tile{width:45px;height:45px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--panel2);color:var(--accent)}.project-item div:nth-child(2){flex:1}.project-item strong,.project-item small{display:block}.project-item small{color:var(--muted)}.account-layout{display:grid;grid-template-columns:1fr 1fr;gap:15px}.account-layout .panel{max-width:700px}.account-layout p{color:var(--muted);font-size:12px;margin-top:13px}.account-form{margin-top:20px;display:flex;flex-direction:column;gap:12px}.account-form input{margin-top:5px}.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:23px 0}.account-stats>div{padding:15px 8px;border:1px solid var(--border);border-radius:9px}.account-stats strong{font-size:25px;display:block}.account-stats span{color:var(--muted);font-size:11px}.mobile-menu,.hide-mobile,.sidebar-overlay{display:none}.designer-shell{flex:1;min-width:0}.designer-tools{display:flex;flex-wrap:wrap;gap:7px;padding:10px 12px;border-bottom:1px solid var(--border)}.designer-tools button{background:var(--panel2);border:1px solid var(--border);color:var(--text);padding:7px 9px;border-radius:7px;display:flex;align-items:center;gap:5px;font-size:11px}.designer-tools button:hover{border-color:var(--accent)}.designer-tools .designer-save{margin-left:auto;color:var(--accent)}.designer-layout{display:grid;grid-template-columns:minmax(0,1fr) 155px;min-height:485px}.designer-preview{padding:20px 15px;background:var(--input);display:flex;flex-direction:column;align-items:center;justify-content:center}.designer-stage{position:relative;width:100%;max-width:960px;aspect-ratio:16/9;background:var(--panel2);background-size:cover;background-position:center;box-shadow:0 7px 24px #00000029}.designer-stage .canvas-container{width:100%!important;height:100%!important}.designer-stage canvas{max-width:100%;max-height:100%}.designer-stage .upper-canvas,.designer-stage .lower-canvas{width:100%!important;height:100%!important}.designer-preview .muted{text-align:center;margin:13px 0}.designer-side{border-left:1px solid var(--border);padding:12px 10px;font-size:11px}.designer-side h3{margin:7px 0 10px}.designer-side label{font-size:11px;color:var(--muted);margin:9px 0}.designer-side input{margin-top:4px}.layer-list{max-height:165px;overflow:auto}.layer-list button{border:1px solid transparent;border-bottom-color:var(--border);padding:8px 7px;color:var(--text);background:transparent;text-align:left;width:100%;overflow:hidden;text-overflow:ellipsis}.layer-list button.active{color:var(--accent);background:var(--panel2)}.layer-actions{padding:9px 0}.layer-actions button{min-width:28px;min-height:28px}@media(max-width:1380px){.sidebar{width:208px;min-width:208px}.page{padding:19px}.workspace{grid-template-columns:190px minmax(280px,1fr) 238px;gap:10px}.settings-scroll{padding:11px}.designer-layout{grid-template-columns:minmax(0,1fr) 130px}.canvas-toolbar .mode-switch button{padding:7px}}@media(max-width:1120px){.workspace{grid-template-columns:180px minmax(330px,1fr)}.settings-panel{grid-column:1/-1;min-height:auto}.settings-scroll{max-height:none;display:grid;grid-template-columns:repeat(3,1fr);align-items:start}.settings-scroll .full,.settings-scroll>.check-label{grid-column:auto}.batch-grid{grid-template-columns:1fr 1fr}.batch-grid>.panel:last-child{grid-column:1/-1}.sidebar{width:185px;min-width:185px}.sidebar nav button{font-size:11px;gap:7px}.page{padding:17px}.two-panels{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;transform:translate(-102%);transition:transform .2s;width:235px}.sidebar.open{transform:translate(0)}.sidebar-overlay{display:block;position:fixed;inset:0;background:#0000008c;z-index:15}.hide-mobile,.mobile-menu{display:flex;background:transparent;border:0;color:var(--text)}.hide-mobile{margin-left:auto}.mobile-menu{margin-right:10px}.topbar{padding:0 14px;height:61px}.page{padding:15px}.page-heading{align-items:flex-start}.page-heading h1{font-size:21px}.heading-actions{flex-direction:column}.top-actions .version,.top-actions span{display:none}.workspace{display:flex;flex-direction:column}.file-panel,.settings-panel,.canvas-panel{min-height:auto}.files-list{max-height:130px;flex-direction:row;overflow-x:auto}.file-item{min-width:180px;max-width:230px}.canvas-body{min-height:350px}.canvas-footer{flex-direction:column}.settings-scroll{display:grid;grid-template-columns:1fr 1fr}.batch-grid,.two-panels,.account-layout{grid-template-columns:1fr}.batch-grid>.panel:last-child{grid-column:1}.project-control{align-items:stretch;flex-direction:column}.designer-layout{grid-template-columns:1fr}.designer-side{border-left:0;border-top:1px solid var(--border)}.preview-section{flex-wrap:wrap}.preview-section img{margin:0}.designer-tools .designer-save{margin-left:0}}@media(max-width:450px){.heading-actions button{font-size:0;min-width:40px;padding:8px}.heading-actions svg{width:18px}.settings-scroll{grid-template-columns:1fr}.canvas-toolbar .mode-switch button{font-size:10px}.library-grid{grid-template-columns:repeat(2,1fr)}.batch-summary strong{font-size:20px}}.topbar{height:58px;padding:0 19px}.editor-page{padding:12px 15px 25px}.editor-page .workspace{grid-template-columns:minmax(0,1fr) minmax(258px,286px);gap:12px}.editor-page .canvas-panel,.editor-page .settings-panel{min-height:calc(100vh - 95px)}.editor-page .settings-scroll{max-height:calc(100vh - 150px);padding:12px;gap:13px}.editor-page .settings-panel .panel-header{padding:11px 14px}.editor-page .canvas-toolbar{min-height:51px;padding:8px 12px}.editor-page .canvas-body{min-height:360px;flex:1;padding:15px;overflow:hidden}.editor-page .canvas-footer{padding:8px 12px}.top-work-action{min-height:32px;padding:6px 10px}.asset-strip{padding:8px 11px 10px;border-bottom:1px solid var(--border);background:var(--panel);min-height:115px}.strip-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:7px}.strip-heading>strong{font-size:11px;display:flex;align-items:center;gap:6px;white-space:nowrap}.strip-heading .count{color:var(--muted);font-weight:400;background:var(--panel2);border-radius:4px;padding:1px 5px}.strip-controls{display:flex;align-items:center;gap:7px}.strip-controls span{color:var(--muted);font-size:10px;white-space:nowrap}.strip-controls .subtle{min-height:25px;padding:3px 6px;font-size:10px}.strip-controls .secondary{min-height:26px;padding:3px 8px;font-size:10px}.strip-list{display:flex;align-items:stretch;gap:9px;overflow-x:auto;overflow-y:hidden;padding-bottom:5px;scrollbar-width:thin;min-height:63px}.strip-item{position:relative;display:flex;align-items:center;flex-shrink:0;min-width:124px;max-width:168px;border-radius:7px;background:var(--input);border:1px solid var(--border);padding:3px 18px 3px 4px}.strip-item.active{border-color:var(--accent);background:#22b8ad1a}.strip-open{background:transparent;border:0;display:flex;align-items:center;gap:5px;min-width:0;color:var(--text);padding:0}.strip-open img{width:46px;height:45px;object-fit:cover;border-radius:4px;flex-shrink:0}.strip-open span{font-size:10px;max-width:79px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.strip-check{position:absolute;left:5px;top:4px;background:#0a0f14bf;display:flex;align-items:center;justify-content:center;border-radius:3px;z-index:2;padding:1px;cursor:pointer}.strip-check input{width:14px;height:14px;margin:0}.strip-delete{position:absolute;right:2px;top:2px;border:0;color:var(--muted);background:none;padding:1px}.strip-delete:hover{color:var(--danger)}.strip-placeholder{width:100%;min-height:49px;display:flex;justify-content:center;align-items:center;gap:8px;background:var(--input);border:1px dashed var(--border);border-radius:7px;color:var(--muted);font-size:12px}.strip-placeholder:hover{border-color:var(--accent);color:var(--text)}.output-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:220px;max-height:calc(100vh - 325px);margin:auto}.output-stage img{max-width:100%;max-height:calc(100vh - 325px);width:auto;height:auto;object-fit:contain;box-shadow:0 10px 32px #00000042;background:repeating-conic-gradient(#9993 0% 25%,transparent 0% 50%) 50%/16px 16px}.preview-wait{font-size:12px;color:var(--muted)}.preview-status{position:absolute;right:5px;top:5px;border-radius:6px;background:#0c1923d4;padding:5px 9px;font-size:11px;color:#fff}.crop-caption{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:14px;color:var(--muted);font-size:11px}.crop-caption .primary{min-height:29px;padding:5px 9px}.crop-mini-preview{position:absolute;right:16px;bottom:15px;display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--panel);border:1px solid var(--border);padding:6px;border-radius:7px;box-shadow:0 6px 25px #0003;pointer-events:none;z-index:2}.crop-mini-preview span{font-size:9px;color:var(--muted)}.crop-mini-preview img{max-width:110px;max-height:82px;object-fit:contain}.settings-hint{font-size:11px;margin:0;padding:9px}.batch-apply-field p{margin:0;font-size:11px;line-height:1.55;color:var(--muted)}.batch-apply-field p strong{color:var(--text);font-weight:600}.editor-page .designer-preview{padding:12px}@media(max-width:1150px){.editor-page .workspace{grid-template-columns:minmax(0,1fr) 250px}.editor-page .settings-panel{grid-column:auto}.editor-page .settings-scroll{display:flex;flex-direction:column;max-height:calc(100vh - 150px)}.editor-page .canvas-body{min-height:350px}.strip-controls span{display:none}}@media(max-width:900px){.editor-page .workspace{grid-template-columns:1fr}.editor-page .settings-panel,.editor-page .canvas-panel{min-height:initial}.editor-page .settings-panel{grid-column:auto}.editor-page .settings-scroll{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.output-stage,.output-stage img{max-height:58vh}}@media(max-width:620px){.topbar{padding:0 9px}.editor-page{padding:8px}.top-work-action{font-size:0;min-width:32px;padding:5px}.top-work-action svg{width:17px;height:17px}.top-actions,.canvas-toolbar .mode-switch{gap:3px}.canvas-toolbar .mode-switch button{font-size:10px;gap:3px;padding:5px}.editor-page .settings-scroll{grid-template-columns:1fr}.strip-controls{gap:3px}.strip-heading>strong{font-size:10px}.crop-mini-preview{right:6px;bottom:6px}.crop-mini-preview img{max-width:65px;max-height:60px}}.sidebar{width:244px;min-width:244px;position:sticky;top:0;transition:width .18s ease,min-width .18s ease;overflow:visible}.sidebar-content{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.sidebar-assets{display:flex;flex:1;min-height:0;flex-direction:column;border-top:1px solid var(--border);margin-top:19px}.sidebar-assets .asset-strip{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;padding:13px 10px 9px;background:transparent;border-bottom:0}.sidebar-assets .strip-heading{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px}.sidebar-assets .strip-heading>strong{font-size:12px;flex:1}.sidebar-assets .strip-controls{width:100%;justify-content:space-between;gap:5px}.sidebar-assets .strip-controls span{font-size:10px}.sidebar-assets .strip-controls .secondary,.sidebar-assets .strip-controls .subtle{font-size:10px;padding:5px 6px;min-height:28px}.sidebar-assets .strip-list{display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;padding-bottom:8px}.sidebar-assets .strip-item{min-width:0;max-width:none;width:100%;min-height:60px;flex-shrink:0;padding:5px 19px 5px 5px}.sidebar-assets .strip-open{width:100%;gap:8px;overflow:hidden;text-align:left}.sidebar-assets .strip-open img{width:56px;height:48px;flex-shrink:0}.sidebar-assets .strip-open span{font-size:11px;max-width:125px;flex:1;overflow:hidden;text-overflow:ellipsis}.sidebar-assets .strip-placeholder{padding:12px 8px;min-height:98px;white-space:normal;text-align:center;line-height:1.4;flex-direction:column}.sidebar-assets .strip-delete{right:4px;top:5px}.sidebar-bottom{padding:13px 16px}.sidebar-collapse-handle{position:absolute;right:-12px;top:45%;transform:translateY(-50%);height:68px;width:24px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--accent);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:22;box-shadow:var(--shadow);padding:0}.sidebar-collapse-handle:hover{background:var(--panel2);border-color:var(--accent)}.sidebar.collapsed{width:16px;min-width:16px}.sidebar.collapsed .sidebar-content{visibility:hidden;pointer-events:none}.sidebar.collapsed .sidebar-collapse-handle{right:-18px;width:32px}.toast{position:fixed;top:13px;left:50%;transform:translate(-50%);z-index:110;max-width:min(540px,calc(100vw - 30px));width:max-content;min-width:240px;margin:0;box-shadow:0 12px 42px #00000047;backdrop-filter:blur(13px);background:var(--panel);border-color:var(--accent);border-radius:11px;line-height:1.45;animation:toast-pop .18s ease-out}.toast.danger{background:var(--panel);border-color:var(--danger)}.toast>span{min-width:0;overflow-wrap:anywhere}.toast button{flex-shrink:0;min-width:25px;min-height:25px;display:flex;align-items:center;justify-content:center}@keyframes toast-pop{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}.editor-page .canvas-body{min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px;overflow:hidden}.editor-page .output-stage,.editor-page .crop-stage-viewport{height:min(67vh,650px);min-height:275px;width:100%;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:1;margin:0;max-height:none;min-width:0}.editor-page .output-stage img,.editor-page .crop-stage-viewport .image-stage img{display:block;max-height:min(62vh,610px);max-width:100%;width:auto;height:auto;object-fit:contain}.editor-page .crop-stage-viewport .image-stage{position:relative;max-width:100%;max-height:100%;min-width:0;flex:0 1 auto}.editor-page .crop-caption{min-height:32px;margin:7px 0 0}.editor-page .crop-mini-preview{bottom:12px}@media(max-width:1380px){.sidebar{width:225px;min-width:225px}}@media(max-width:1120px){.sidebar{width:215px;min-width:215px}.sidebar-assets .strip-controls span{display:none}}@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;min-width:250px;transform:translate(-105%);transition:transform .2s ease;overflow:visible}.sidebar.collapsed{width:250px;min-width:250px}.sidebar.collapsed .sidebar-content{visibility:visible;pointer-events:auto}.sidebar-collapse-handle{display:none}.sidebar.open{transform:translate(0)}.sidebar-assets{max-height:none}.editor-page .output-stage,.editor-page .crop-stage-viewport{height:min(56vh,470px);min-height:210px}.editor-page .output-stage img,.editor-page .crop-stage-viewport .image-stage img{max-height:min(52vh,440px)}.toast{top:10px}}.topbar{display:flex;align-items:center;gap:12px;min-height:58px;height:auto;padding:7px 13px}.breadcrumbs{flex-shrink:0;font-size:13px}.editor-top-tools{display:flex;gap:3px;align-items:center;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;padding:0 2px;scrollbar-width:thin}.editor-top-tools .tool-btn,.canvas-zoom button,.panel-header-buttons button,.sort-arrows button{border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:31px;height:32px;flex-shrink:0;padding:5px;cursor:pointer}.editor-top-tools .tool-btn:hover:not(:disabled),.panel-header-buttons button:hover,.canvas-zoom button:hover,.sort-arrows button:hover{background:var(--panel2);color:var(--text);border-color:var(--border)}.editor-top-tools .tool-btn.active{background:#22b8ad29;border-color:var(--accent);color:var(--accent)}.editor-top-tools .tool-btn:disabled{opacity:.35}.editor-top-tools .tool-separator{width:1px;height:21px;margin:0 4px;flex:0 0 1px;background:var(--border)}.preset-top-select{display:flex;gap:7px;align-items:center;flex:0 0 auto;font-size:11px;color:var(--muted)}.preset-top-select select{width:240px;max-width:28vw;min-height:34px;height:34px;font-size:11px;padding:4px 25px 4px 10px;background-color:var(--input)}.top-actions{margin-left:auto;flex-shrink:0;gap:3px}.editor-page .editor-workspace{display:flex;gap:9px;align-items:stretch;position:relative;min-height:calc(100vh - 90px)}.editor-page .editor-workspace>.canvas-panel{flex:1 1 0;min-width:250px;min-height:calc(100vh - 90px)}.editor-page .editor-workspace>.custom-settings-panel{flex:0 0 266px;min-width:0;min-height:calc(100vh - 90px);display:flex;flex-direction:column;position:relative;overflow:visible}.editor-page .editor-workspace>.settings-collapsed{flex:0 0 25px;width:25px;min-width:25px;background:var(--panel2)}.editor-page .custom-settings-panel .panel-header{padding:8px 10px;min-height:43px}.editor-page .custom-settings-panel .settings-scroll{flex:1;max-height:calc(100vh - 133px);display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:11px}.editor-page .custom-settings-panel .field-group{margin:0;padding-bottom:12px;border-bottom:1px solid var(--border)}.editor-page .custom-settings-panel .field-group:last-child{border-bottom:0}.editor-page .custom-settings-panel label{font-size:11px}.editor-page .custom-settings-panel .range-field{margin:12px 0 4px}.editor-page .custom-settings-panel .check-label{white-space:normal}.panel-header-buttons{display:flex;gap:2px;align-items:center}.panel-header-buttons button{height:27px;min-width:26px;padding:4px}.settings-rail-btn{width:100%;height:100%;min-height:280px;padding:9px 2px;border:0;background:none;color:var(--accent);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px}.settings-rail-btn span{font-size:10px;writing-mode:vertical-rl;white-space:nowrap;letter-spacing:.4px;color:var(--muted)}.settings-organizer{position:absolute;right:5px;top:48px;z-index:70;width:min(440px,calc(100vw - 50px));max-height:calc(100vh - 115px);overflow-y:auto;background:var(--panel);border:1px solid var(--accent);border-radius:11px;box-shadow:0 12px 40px #00000059;padding:14px}.organizer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.organizer-heading strong{display:flex;gap:8px;align-items:center}.settings-organizer .muted{font-size:11px;line-height:1.4;margin:0 0 12px}.settings-sort-list{display:flex;flex-direction:column;gap:4px}.settings-sort-row{display:flex;align-items:center;gap:6px;background:var(--panel2);border:1px solid var(--border);border-radius:6px;padding:5px 6px;min-height:38px;cursor:grab}.settings-sort-row:hover{border-color:var(--accent)}.settings-sort-row .drag-grip{color:var(--muted);flex-shrink:0}.settings-sort-row label{display:flex;align-items:center;gap:5px;flex:1;min-width:0;font-size:11px;line-height:1.2}.settings-sort-row label span{white-space:normal}.settings-sort-row select{width:51px;flex-shrink:0;min-height:27px;height:27px;padding:3px 15px 3px 5px;background-position:calc(100% - 12px) 12px,calc(100% - 7px) 12px;font-size:10px}.sort-arrows{display:flex;gap:0}.sort-arrows button{min-width:22px;width:22px;height:26px;padding:3px}.organizer-presets{display:flex;flex-direction:column;gap:9px;margin-top:15px;padding-top:12px;border-top:1px solid var(--border)}.organizer-presets>label{font-size:11px;display:flex;flex-direction:column;gap:4px}.organizer-presets button{min-height:32px;padding:7px 10px}.organizer-file-actions{display:flex;gap:6px;flex-wrap:wrap}.tool-activity-label{display:flex;gap:7px;align-items:center;padding:6px 10px;background:var(--panel2);border-bottom:1px solid var(--border);color:var(--muted);font-size:11px}.editor-page .canvas-body{overflow:hidden;position:relative;min-height:0}.editor-page .canvas-body:has(.designer-shell){display:block;padding:0;overflow-y:auto}.editor-page .designer-shell{width:100%;min-width:0}.editor-page .designer-layout{grid-template-columns:minmax(0,1fr) 165px;min-height:350px}.editor-page .designer-preview{min-width:0;padding:10px}.editor-page .designer-tools{padding:8px;gap:5px;flex-wrap:wrap}.crop-stage-viewport{overflow:hidden;touch-action:none}.crop-floating-actions{position:absolute;right:17px;bottom:15px;z-index:10;display:flex;gap:7px}.crop-floating-actions button{width:37px;height:37px;display:flex;align-items:center;justify-content:center;border-radius:8px;cursor:pointer;box-shadow:0 3px 12px #0007}.crop-accept{background:var(--accent);color:var(--accentInk);border:1px solid var(--accent)}.crop-reject{background:var(--panel);color:var(--text);border:1px solid var(--border)}.crop-floating-label{position:absolute;left:12px;bottom:19px;font-size:11px;color:var(--text);background:var(--panel);border:1px solid var(--border);padding:6px 9px;border-radius:8px;pointer-events:none}.zoomable-image-stage{transform-origin:center center}.output-stage{overflow:hidden}.output-stage img{transform-origin:center center}.canvas-zoom{display:flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0}.canvas-zoom input{width:90px;accent-color:var(--accent)}.canvas-zoom span{width:37px;text-align:center;font-variant-numeric:tabular-nums;font-size:11px}.canvas-zoom button{min-width:25px;width:25px;height:26px;padding:3px}@media(max-width:1460px){.editor-page .editor-workspace>.custom-settings-panel{flex-basis:240px}.preset-top-select span{display:none}.preset-top-select select{width:185px}.editor-page .canvas-footer{flex-wrap:wrap}}@media(max-width:1100px){.editor-page .editor-workspace{gap:6px}.editor-page .editor-workspace>.custom-settings-panel{flex-basis:216px}.editor-page .editor-workspace>.settings-collapsed{flex-basis:25px}.editor-top-tools .tool-btn{min-width:28px}.editor-page .designer-layout{grid-template-columns:1fr}.editor-page .designer-side{border-left:0;border-top:1px solid var(--border)}}@media(max-width:850px){.topbar{flex-wrap:wrap}.breadcrumbs{width:auto}.editor-top-tools{order:3;flex:1 1 100%;padding:3px 0}.editor-page .editor-workspace{flex-wrap:wrap}.editor-page .editor-workspace>.canvas-panel{flex:1 1 100%;min-height:460px}.editor-page .editor-workspace>.custom-settings-panel{flex:1 1 220px;min-height:auto}.editor-page .custom-settings-panel .settings-scroll{max-height:none}.editor-page .editor-workspace>.settings-collapsed{flex:0 0 25px}.editor-page .output-stage,.editor-page .crop-stage-viewport{height:min(53vh,500px)}.settings-organizer{top:60px;right:5px}}@media(max-width:550px){.editor-page .editor-workspace>.custom-settings-panel{flex:1 1 100%}.editor-page .editor-workspace>.settings-collapsed{flex:0 0 25px}.editor-page .canvas-footer{flex-direction:row;flex-wrap:wrap;justify-content:center}.crop-floating-label{bottom:auto;top:12px}.preset-top-select select{width:200px;max-width:80vw}}@media(min-width:851px){.editor-page .editor-workspace>.settings-collapsed{flex:0 0 25px;max-width:25px}}.editor-page .canvas-body,.editor-page .canvas-body:has(.designer-shell){display:flex;align-items:center;justify-content:center;overflow:hidden;padding:12px;min-height:0}.editor-canvas-viewport{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:min(68vh,650px);min-height:260px;max-width:100%;overflow:hidden;margin:auto}.editor-image-surface{position:relative;display:inline-block;flex:0 1 auto;max-width:100%;max-height:100%;transform-origin:center center;box-shadow:0 9px 28px #0005;touch-action:none;line-height:0}.editor-image-surface>img{display:block;max-height:min(62vh,605px);max-width:100%;width:auto;height:auto;object-fit:contain;user-select:none;pointer-events:none}.editor-image-surface.is-cropping{cursor:crosshair}.editor-image-surface .crop-rect{z-index:6;line-height:normal}.editor-canvas-viewport .crop-floating-actions{position:absolute;right:12px;bottom:13px;z-index:30}.editor-canvas-viewport .crop-floating-label{z-index:30;bottom:18px;left:12px;max-width:calc(100% - 112px);line-height:1.3}.editor-canvas-viewport .preview-status{z-index:20}.designer-shell.designer-floating{position:absolute;inset:0;width:100%;height:100%;z-index:10;overflow:visible;pointer-events:none}.designer-floating .designer-overlay-canvas{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;background:transparent;box-shadow:none;pointer-events:auto}.designer-floating .designer-overlay-canvas .canvas-container{position:absolute!important;inset:0;width:100%!important;height:100%!important}.designer-floating .designer-overlay-canvas .upper-canvas,.designer-floating .designer-overlay-canvas .lower-canvas{width:100%!important;height:100%!important}.designer-floating .designer-float-tools{position:absolute;top:8px;left:8px;z-index:18;display:flex;align-items:center;gap:4px;max-width:calc(100% - 16px);flex-wrap:wrap;width:max-content;padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--panel);box-shadow:0 6px 20px #0007;pointer-events:auto;line-height:normal}.designer-floating .designer-float-tools button{min-width:28px;min-height:30px;height:30px;padding:5px 7px;border:1px solid transparent;border-radius:6px;background:var(--input);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:11px}.designer-floating .designer-float-tools button:hover,.designer-floating .designer-float-tools button.active{border-color:var(--accent);color:var(--accent)}.designer-floating .designer-float-tools .designer-save{margin-left:0;background:var(--accent);color:var(--accentInk)}.designer-floating .designer-float-inspector{position:absolute;right:8px;top:58px;z-index:18;display:flex;flex-direction:column;gap:7px;width:min(215px,78%);max-height:calc(100% - 64px);overflow-y:auto;min-width:0;padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:9px;box-shadow:0 9px 25px #0009;pointer-events:auto;line-height:normal}.designer-floating .designer-float-inspector .layer-list{max-height:155px;overflow-y:auto}.designer-floating .designer-float-inspector label{font-size:11px}.designer-inspector-head{display:flex;justify-content:space-between;align-items:center}.designer-inspector-head button{display:flex;align-items:center;justify-content:center;border:0;background:none;color:var(--text)}.designer-floating .designer-floating-status{position:absolute;bottom:14px;left:12px;z-index:20;background:var(--panel);border-radius:7px;padding:8px 12px;line-height:normal;color:var(--text)}.editor-page .editor-workspace{overflow-x:auto;scrollbar-width:thin;min-width:0}.editor-page .editor-workspace>.canvas-panel{min-width:330px}.editor-page .editor-workspace>.custom-settings-panel{flex:0 0 234px}.editor-page .editor-workspace>.settings-collapsed{flex:0 0 25px}.editor-page .custom-settings-panel .settings-scroll{gap:8px;min-height:120px}.editor-page .custom-settings-panel .field-group{border-bottom:0;padding-bottom:6px}.settings-movable{padding:7px 8px;border:1px solid var(--border);border-radius:8px;background:var(--panel2);min-width:0}.settings-movable:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}.settings-movable .field-group{padding-top:0!important}.setting-drag-heading{display:flex;align-items:center;gap:5px;margin:-3px -4px 8px;padding:4px;color:var(--muted);font-size:10px;cursor:grab;user-select:none;border-radius:5px;line-height:1.1}.setting-drag-heading:hover{color:var(--accent);background:var(--input)}.setting-drag-heading svg{flex:0 0 auto}.settings-drop-empty{font-size:11px;border:1px dashed var(--accent);min-height:105px;display:flex;align-items:center;justify-content:center}.toolbar-tip{position:fixed;z-index:400;transform:translate(-50%);pointer-events:none;white-space:normal;max-width:260px;width:max-content;background:#101923;color:#f1f5f9;border:1px solid #344555;border-radius:7px;box-shadow:0 8px 24px #0007;padding:7px 10px;font-size:12px;line-height:1.3}.project-item .project-identity{flex:1;min-width:0}.project-name-line{display:flex;align-items:center;gap:8px;min-height:24px}.project-name-line>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-hover-actions{display:flex;gap:2px;opacity:0;visibility:hidden;transition:opacity .15s;flex-shrink:0}.project-item:hover .project-hover-actions,.project-item:focus-within .project-hover-actions{opacity:1;visibility:visible}.project-hover-actions button{display:flex;align-items:center;justify-content:center;width:27px;height:27px;padding:4px;border:1px solid transparent;border-radius:6px;background:var(--panel2);color:var(--muted);cursor:pointer}.project-hover-actions button:hover{color:var(--accent);border-color:var(--border)}.project-hover-actions button:last-child:hover{color:var(--danger)}.project-dialog-backdrop{position:fixed;inset:0;background:#0009;z-index:500;display:flex;align-items:center;justify-content:center;padding:16px}.project-dialog{width:min(420px,100%);display:flex;flex-direction:column;gap:16px;background:var(--panel);padding:22px;border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 45px #0009}.project-dialog-head,.project-dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.project-dialog-head h2{margin:0;font-size:19px}.project-dialog>label{display:flex;flex-direction:column;gap:7px;font-size:13px}.project-dialog-actions{justify-content:flex-end}@media(hover:none){.project-hover-actions{opacity:1;visibility:visible}}@media(max-width:850px){.editor-page .editor-workspace>.canvas-panel{min-width:min(100%,330px)}.editor-canvas-viewport{height:min(56vh,470px)}.editor-image-surface>img{max-height:min(52vh,430px)}.editor-page .editor-workspace>.custom-settings-panel{flex:1 1 220px}}@media(max-width:550px){.designer-floating .designer-float-tools{top:4px;left:4px;max-width:calc(100% - 8px)}.designer-floating .designer-float-tools button span{display:none}.designer-floating .designer-float-inspector{right:4px;top:48px}.editor-page .editor-workspace>.custom-settings-panel{flex:1 1 100%}}.settings-organizer{position:fixed;right:16px;top:75px;z-index:120}@media(max-width:850px){.settings-organizer{top:112px;right:8px}}.designer-floating .designer-float-tools{overflow:visible}.designer-floating .designer-float-tools button:disabled{opacity:.35}.designer-variables-popover{position:absolute;top:calc(100% + 6px);left:24px;z-index:21;display:flex;flex-direction:column;gap:3px;min-width:170px;padding:6px;border:1px solid var(--border);border-radius:9px;background:var(--panel);box-shadow:0 10px 28px #0007;pointer-events:auto}.designer-floating .designer-float-tools .designer-variables-popover button{justify-content:flex-start;padding:8px 10px;height:auto;min-height:32px}.designer-layer-row{display:flex;align-items:center;gap:2px;min-width:0;border-radius:7px;border:1px solid transparent}.designer-layer-row.active{border-color:var(--accent);background:#22b8ad1a}.designer-layer-row .designer-layer-select{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.designer-layer-row>button:not(.designer-layer-select){width:27px;flex:0 0 27px;display:grid;place-items:center;padding:5px}.batch-titles-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:4px 0 10px}.batch-titles-heading h4{margin:0}.batch-csv-actions{display:flex;gap:5px;flex-wrap:wrap}.batch-csv-actions .subtle{font-size:10px;min-height:30px;padding:5px 7px}.batch-cover-entry{padding:9px 0;border-bottom:1px solid var(--border);min-width:0}.batch-cover-entry>strong{display:block;font-size:11px;margin-bottom:7px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.batch-cover-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.batch-cover-fields input{min-width:0;min-height:33px;font-size:11px;padding:7px}@media(max-width:680px){.batch-cover-fields{grid-template-columns:1fr}.batch-csv-actions .subtle{min-height:30px}}.editor-canvas-viewport.can-pan{cursor:grab}.editor-canvas-viewport.can-pan:active{cursor:grabbing}.editor-canvas-viewport.can-pan .editor-image-surface:not(.is-cropping){cursor:grab}.editor-image-surface.is-cropping,.editor-image-surface.is-cropping .crop-rect,.editor-image-surface.is-cropping .crop-grid,.editor-image-surface.is-cropping .crop-handle{touch-action:none;user-select:none;-webkit-user-select:none}.editor-image-surface.is-cropping .crop-rect{cursor:move}.editor-image-surface.is-cropping .crop-handle{cursor:nwse-resize;z-index:3}.batch-preview-trigger{margin:10px 0 4px}.batch-preview-backdrop{position:fixed;inset:0;z-index:120;background:#050d18bf;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(4px)}.batch-preview-dialog{width:min(1100px,100%);height:min(86vh,900px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 80px #0008;overflow:hidden;color:var(--text)}.batch-preview-top,.batch-preview-bottom{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px 20px}.batch-preview-top{border-bottom:1px solid var(--border)}.batch-preview-top h2{margin:0;font-size:18px}.batch-preview-top p{margin:4px 0 0;color:var(--muted);font-size:12px}.batch-preview-bottom{border-top:1px solid var(--border);flex-wrap:wrap}.batch-preview-bottom span{font-size:11px;color:var(--muted)}.batch-preview-bottom>div{display:flex;align-items:center;gap:8px}.batch-preview-list{flex:1;min-height:0;overflow:auto;padding:18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;align-content:start}.batch-preview-card{border-radius:10px;border:1px solid var(--border);background:var(--panel2);overflow:hidden;display:flex;flex-direction:column}.batch-preview-image{height:190px;padding:10px;display:flex;align-items:center;justify-content:center;background:var(--input)}.batch-preview-image img{max-height:100%;max-width:100%;object-fit:contain;border-radius:4px}.batch-preview-error{font-size:11px;color:var(--danger);line-height:1.5;padding:12px;text-align:center}.batch-preview-caption{padding:11px;display:flex;flex-direction:column;gap:6px;min-width:0}.batch-preview-caption strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.batch-preview-caption small{font-size:10px;color:var(--muted)}.batch-preview-caption button{margin-top:4px;width:100%}@media(max-width:620px){.batch-preview-backdrop{padding:6px}.batch-preview-dialog{height:95vh}.batch-preview-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}.batch-preview-image{height:130px}.batch-preview-bottom{padding:10px}}.preset-export-chip{color:var(--accent)!important;display:flex;gap:4px;align-items:center;margin-top:5px;font-size:11px;cursor:pointer}.preset-export-chip:hover{text-decoration:underline}.editor-page .editor-workspace{display:flex;flex-wrap:nowrap;align-items:stretch;gap:10px;overflow-x:hidden!important;min-width:0;width:100%}.editor-page .editor-workspace>.canvas-panel{flex:1 1 0;min-width:0;max-width:100%}.editor-page .editor-workspace>.settings-dock{flex:0 1 clamp(255px,35vw,520px);width:clamp(255px,35vw,520px);max-width:min(48%,520px);min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(min-content,max-content);align-content:start;gap:9px;min-height:0;max-height:calc(100vh - 95px);overflow-x:hidden;overflow-y:auto;padding:1px 2px 8px 0}.editor-page .settings-dock>.custom-settings-panel{width:100%;min-width:0;max-width:100%;min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column}.editor-page .settings-dock>.settings-collapsed{min-height:44px;height:44px;overflow:hidden}.editor-page .settings-dock .settings-scroll{display:flex;flex-direction:column;gap:8px;max-height:none;overflow-y:visible;overflow-x:hidden;min-width:0;padding:9px}.editor-page .settings-dock .settings-rail-btn{min-height:44px;flex-direction:row;justify-content:center;gap:8px}.editor-page .settings-dock .settings-rail-btn span{writing-mode:horizontal-tb}.editor-page .settings-dock .settings-movable,.editor-page .settings-dock .field-group,.editor-page .settings-dock .two-inputs,.editor-page .settings-dock .grid-inputs,.editor-page .settings-dock .range-field{min-width:0;max-width:100%}.editor-page .settings-dock input,.editor-page .settings-dock select{max-width:100%;min-width:0}.editor-page .settings-dock .panel-header{min-width:0;flex-shrink:0}.editor-page .settings-dock .panel-header h3{white-space:nowrap}.compare-state{position:absolute;left:14px;top:14px;z-index:30;padding:5px 9px;border:1px solid var(--accent);background:var(--panel);color:var(--accent);font-size:11px;border-radius:7px;pointer-events:none}@media(min-width:1530px){.editor-page .editor-workspace>.settings-dock.multi{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1050px){.editor-page .editor-workspace>.settings-dock{flex-basis:260px;width:260px;max-width:40%}}@media(max-width:850px){.editor-page .editor-workspace{flex-direction:column}.editor-page .editor-workspace>.canvas-panel{flex:1 1 auto;min-height:420px}.editor-page .editor-workspace>.settings-dock{flex:1 1 auto;width:100%;max-width:100%;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr));overflow-y:visible}}@media(max-width:550px){.editor-page .editor-workspace>.settings-dock{grid-template-columns:minmax(0,1fr)}}.designer-style-buttons{display:flex;gap:6px;margin:8px 0}.designer-style-buttons button{flex:1;padding:8px;border:1px solid var(--border);border-radius:6px;background:var(--panel2);color:var(--text);cursor:pointer}.designer-style-buttons button:hover:not(:disabled){border-color:var(--accent)}.designer-float-inspector label{display:flex;flex-direction:column;gap:4px;min-width:0}.designer-float-inspector select,.designer-float-inspector input{min-width:0;max-width:100%}.export-history-item{flex-wrap:wrap;gap:8px}@media(max-width:760px){.export-history-item .secondary{flex:1}}.editor-canvas-viewport.manual-pan{cursor:grab}.editor-canvas-viewport.manual-pan:active{cursor:grabbing}.editor-top-tools .text-tools-trigger{gap:4px;white-space:nowrap;padding:0 8px;min-width:78px}.editor-top-tools .text-tools-trigger>span{font-size:12px;font-weight:600}.designer-tools-popover{position:fixed;z-index:210;width:min(510px,calc(100vw - 16px));max-height:min(65vh,420px);overflow-y:auto;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 15px 42px #0009;line-height:1.3}.designer-tools-popover-heading{display:flex;align-items:center;gap:8px;margin-bottom:9px}.designer-tools-popover-heading strong{font-size:13px}.designer-tools-popover-heading>span{color:var(--muted);font-size:11px;flex:1;min-width:0}.designer-tools-popover-heading>button{display:flex;align-items:center;justify-content:center;width:27px;height:27px;border:0;background:transparent;color:var(--muted);cursor:pointer;border-radius:7px}.designer-tools-popover-heading>button:hover{background:var(--panel2);color:var(--text)}.designer-tools-actions{display:flex;flex-wrap:wrap;gap:5px;position:relative}.designer-tools-actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;padding:6px 8px;border:1px solid var(--border);border-radius:7px;background:var(--input);color:var(--text);cursor:pointer;font-size:12px}.designer-tools-actions button:hover,.designer-tools-actions button.active{border-color:var(--accent);color:var(--accent)}.designer-tools-actions button:disabled{opacity:.38;cursor:default}.designer-tools-actions .designer-save{background:var(--accent);color:var(--accentInk);border-color:var(--accent)}.designer-variable-wrap{position:relative;display:flex}.designer-tools-popover .designer-variables-popover{position:absolute;left:0;top:calc(100% + 5px);z-index:2;width:166px;display:flex;flex-direction:column;gap:4px;padding:6px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 9px 25px #0008}.designer-tools-popover .designer-variables-popover button{justify-content:flex-start;min-height:30px}.designer-format-switch{margin-top:10px;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--panel2);display:flex;align-items:flex-start;gap:9px;cursor:pointer}.designer-format-switch input{margin-top:3px;accent-color:var(--accent);flex-shrink:0}.designer-format-switch span{display:flex;flex-direction:column;gap:2px}.designer-format-switch strong{font-size:12px;font-weight:600}.designer-format-switch small{font-size:11px;color:var(--muted);line-height:1.4}.designer-layers-window{position:fixed;z-index:205;width:min(286px,calc(100vw - 16px));max-height:min(75vh,620px);display:flex;flex-direction:column;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 38px #0009;overflow:hidden;line-height:1.4}.designer-layers-drag-handle{padding:11px 12px;touch-action:none;user-select:none;cursor:grab;background:var(--panel2);border-bottom:1px solid var(--border);flex:0 0 auto}.designer-layers-drag-handle:active{cursor:grabbing}.designer-layers-drag-handle strong{display:inline-flex;align-items:center;gap:6px;font-size:13px}.designer-layers-drag-handle small{font-weight:400;font-size:10px;color:var(--muted)}.designer-layers-content{padding:11px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overscroll-behavior:contain}.designer-layers-content .layer-list{max-height:170px;overflow-y:auto}.designer-layers-content .designer-layer-row>button:not(.designer-layer-select){width:27px;min-width:27px}.designer-layers-content .designer-layer-row button{background:var(--input);color:var(--text);border:1px solid transparent;border-radius:6px;cursor:pointer}.designer-layers-content .designer-layer-row button:hover{border-color:var(--accent)}.designer-layers-content .layer-actions{display:flex;gap:5px;align-items:center}.designer-layers-content .layer-actions>button{padding:6px;flex:1;background:var(--panel2);border:1px solid var(--border);color:var(--text);border-radius:7px;cursor:pointer}.designer-layers-content .layer-actions>button:disabled{opacity:.35;cursor:default}.designer-layers-content>h3{font-size:12px;margin:4px 0 0}.designer-layers-content label{display:flex;flex-direction:column;gap:4px;font-size:11px}.designer-layers-content input,.designer-layers-content select{min-width:0;max-width:100%;color:var(--text)}.designer-layers-content .designer-style-buttons{display:flex;gap:5px}.designer-layers-content .designer-style-buttons button{min-width:0}.canvas-zoom .hand-zoom-btn{display:inline-flex;gap:5px;padding:0 8px;min-width:68px;align-items:center}.canvas-zoom .hand-zoom-btn.active{background:#22b8ad29;color:var(--accent);border-color:var(--accent)}.canvas-zoom .hand-zoom-btn span{font-size:11px;font-weight:600}@media(max-width:600px){.designer-tools-popover{max-height:min(52vh,370px)}.designer-tools-popover-heading>span{display:none}.designer-layers-window{max-height:57vh}}
