:root{color-scheme:light;--body:#f3f4f5;--panel:#fff;--ink:#202322;--muted:#727978;--line:#e5e8e7;--soft:#f5f6f6;--lime:#d8f36a;--green:#355344;--danger:#a74444;--font:"Malgun Gothic","맑은 고딕",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-family:var(--font);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-width:320px;height:100%}body{background:var(--body);color:var(--ink);overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button,a,input,textarea,select,summary{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #687c2a}button:disabled{opacity:.4;cursor:not-allowed}button{border:0}a{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:22px;line-height:1.55;letter-spacing:-1px}h2{font-size:17px;line-height:1.6;letter-spacing:-.5px}h3{font-size:16px;line-height:1.6}button{font-size:14px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:100;left:15px;top:-70px;background:var(--ink);color:#fff;padding:12px 18px;border-radius:6px}.skip-link:focus{top:12px}.app-shell{height:100vh;height:100dvh;display:flex;flex-direction:column}.app-header{height:76px;min-height:76px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 25px;position:relative;z-index:5}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:23px;font-weight:800;letter-spacing:-1px;white-space:nowrap}.brand-light{font-size:20px;font-weight:400;margin-left:5px;letter-spacing:-.8px}.brand-mark{width:35px;height:35px;background:var(--ink);color:var(--lime);display:grid;place-items:center;border-radius:10px}.brand-mark svg{width:26px;height:26px;stroke-width:2}.header-divider{width:1px;height:26px;background:var(--line)}.project-meta{display:flex;align-items:center;gap:14px;min-width:0}.project-name{background:transparent;border:1px solid transparent;padding:8px 6px;border-radius:5px;font-size:15px;width:200px;max-width:100%;font-weight:600}.project-name:hover,.project-name:focus{border-color:var(--line);background:var(--soft)}.save-status{font-size:12px;color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.save-status:before{content:"";width:5px;height:5px;border-radius:50%;background:#8ba87d}.header-actions{margin-left:auto;display:flex;gap:10px;align-items:center;flex-shrink:0}.history-actions{display:flex;gap:2px;border-right:1px solid var(--line);padding-right:13px;margin-right:3px}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;background:transparent;color:#68706e;padding:6px}.icon-button:hover{background:#f0f2f1;color:var(--ink)}.button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border-radius:7px;border:1px solid transparent;font-weight:600;font-size:14px;line-height:1.35;text-decoration:none;white-space:nowrap;transition:background .15s,box-shadow .15s}.button svg{width:17px;height:17px}.button-primary{background:var(--lime);border-color:var(--lime);color:#242d16}.button-primary:hover{background:#cce95b;border-color:#cce95b}.button-secondary{background:#fff;border-color:#dfe3e1}.button-secondary:hover{background:#f5f7f6;border-color:#c9cfcc}.button-quiet{background:transparent;color:#626b67;font-weight:400}.button-quiet:hover{background:#e8ece9}.button-ink{background:var(--ink);color:#fff}.button-ink:hover{background:#3c4340}.full-width{width:100%}.text-button{font-size:13px;padding:5px 0;background:transparent;color:#68706e;line-height:1.5}.text-button:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}.danger-text{color:var(--danger)}.small-button{background:var(--soft);font-size:13px;display:inline-flex;gap:3px;align-items:center;padding:5px 7px;border-radius:5px}.small-button svg{width:14px;height:14px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:250px minmax(0,1fr) 300px;outline:none}.library-sidebar,.properties-sidebar{background:var(--panel);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d4dad6 transparent;min-width:0}.library-sidebar{border-right:1px solid var(--line)}.properties-sidebar{border-left:1px solid var(--line);padding-bottom:16px}.library-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:19px 10px 15px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2;background:#fff}.library-tabs button{min-height:53px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:7px 0;border-radius:7px;background:transparent;color:#737c77;font-size:12px;white-space:nowrap}.library-tabs button svg{width:19px;height:19px}.library-tabs button:hover{background:var(--soft)}.library-tabs button.active,.library-tabs button[aria-pressed=true]{background:#eef4df;color:#344426}.library-panel{padding:23px 18px 20px}.eyebrow{font-size:10px;line-height:1.7;letter-spacing:1.4px;color:#7b847b;font-weight:600;margin-bottom:7px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-heading h2{flex-shrink:0}.search-field{height:40px;margin:21px 0 13px;display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:0 10px;background:#fafbfa;color:#929b95}.search-field:focus-within{border-color:#9bad83;box-shadow:0 0 0 2px #edf3df}.search-field svg{width:16px;height:16px}.search-field input{border:0;background:transparent;outline:none;width:100%;min-width:0;font-size:14px;padding:8px 0}.category-filters{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:18px}.category-filters button{padding:6px 10px;border-radius:16px;font-size:12px;background:#f2f4f2;color:#717a74;white-space:nowrap}.category-filters button.active,.category-filters button[aria-pressed=true]{background:var(--ink);color:#fff}.preset-list{display:grid;grid-template-columns:minmax(0,1fr);gap:17px}.preset-list>button,.preset-card{width:100%;text-align:left;background:transparent;padding:0;border-radius:8px;color:var(--ink)}.preset-list>button:hover,.preset-card:hover{box-shadow:0 0 0 3px #e9efda}.preset-thumb,.preset-preview{display:block;width:100%;height:130px;overflow:hidden;border-radius:7px;background:#e7ebe4;position:relative;isolation:isolate}.preset-thumb canvas,.preset-preview canvas,.preset-card>canvas,.preset-list>button>canvas{display:block;width:100%;height:132px;object-fit:cover;border-radius:7px;pointer-events:none}.preset-thumb img,.preset-preview img{display:block;width:100%;height:100%;object-fit:cover}.preset-title,.preset-name,.preset-card>strong,.preset-list>button>strong{display:block;font-size:14px;line-height:1.6;margin-top:8px;font-weight:600}.preset-description,.preset-meta,.preset-card>small,.preset-list>button>small{display:block;font-size:12px;color:#8a928b;margin-top:3px;line-height:1.5}.preset-card.active,.preset-list>button[aria-pressed=true]{outline:2px solid #a3ba67;outline-offset:4px}.panel-footnote{border-top:1px solid var(--line);font-size:12px;line-height:1.9;color:#8b928d;margin-top:25px;padding-top:17px}.panel-description{font-size:14px;color:#7d857e;line-height:1.9;margin:12px 0 20px}.library-file-actions,.stack-actions{display:flex;flex-direction:column;gap:9px;margin-top:20px}.file-button{cursor:pointer}.file-button:focus-within,.image-drop:focus-within{outline:2px solid #687c2a;outline-offset:3px}.saved-list{display:flex;flex-direction:column;gap:11px;margin-top:20px}.saved-item,.saved-card{border:1px solid var(--line);border-radius:7px;padding:12px;background:#fafbfa;font-size:14px;line-height:1.7}.saved-item strong,.saved-card strong{display:block}.saved-item button,.saved-card button{font-size:12px;margin:8px 8px 0 0;background:transparent;color:#65715d;padding:4px 0}.empty-state{font-size:14px;line-height:1.9;padding:22px 13px;background:#f7f8f6;border:1px dashed #dce2da;border-radius:7px;color:#828a82}.csv-input{font-family:var(--font);font-size:13px!important;line-height:1.8!important;white-space:pre;overflow:auto;min-height:235px!important}.batch-list{display:grid;gap:12px;margin-top:18px}.batch-list canvas{width:100%;height:auto;border-radius:6px}.batch-list>div,.batch-list>button{max-width:100%;min-width:0}.file-input{font-size:13px!important;padding:9px!important}.file-input::file-selector-button{border:0;background:#e9eee5;padding:6px;border-radius:4px;margin-right:6px;font:inherit}.editor-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--body)}.workspace-toolbar{min-height:68px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 22px;border-bottom:1px solid #e6e9e7}.ratio-tools{display:flex;align-items:center;gap:12px;min-width:0}.toolbar-label{font-size:12px;color:#858e87;white-space:nowrap}.ratio-tabs{display:flex;gap:4px;padding:3px;border:1px solid #e0e5df;background:#eaedea;border-radius:8px}.ratio-tabs button{height:32px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:5px;background:transparent;font-size:12px;color:#757e76;white-space:nowrap}.ratio-tabs button.active,.ratio-tabs button[aria-pressed=true]{background:#fff;color:#252b24;box-shadow:0 1px 3px #1d2a1a0a}.ratio-icon{display:inline-block;width:12px;height:12px;border:1.2px solid currentColor;border-radius:1px;opacity:.7}.ratio-portrait{width:10px;height:13px}.ratio-story{width:8px;height:14px}.ratio-wide{width:15px;height:9px}.multi-toggle{font-size:12px;padding:7px 8px;min-height:34px}.multi-toggle[aria-pressed=true]{background:var(--ink);color:#fff}.multi-toggle svg{width:16px;height:16px}.stage-area{min-width:0;min-height:200px;flex:1;display:flex;align-items:center;justify-content:center;padding:26px;overflow:auto;background-image:radial-gradient(#cdd3cf 0.65px,transparent .65px);background-size:12px 12px}.stage-wrap{position:relative;display:grid;line-height:0;max-width:100%;max-height:100%;width:fit-content;flex:0 1 auto}.stage-wrap canvas{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 250px);background:#fff;box-shadow:0 12px 35px #23342112,0 2px 5px #24311d08;touch-action:none;cursor:default}.stage-wrap canvas:focus-visible{outline:2px solid #8d9f63;outline-offset:6px}.selection-box{position:absolute;border:1.5px solid #d8f36a;box-shadow:0 0 0 1px #27321a60;pointer-events:none;z-index:2}.selection-box:before,.selection-box:after{content:"";position:absolute;width:7px;height:7px;border:1px solid #a6b575;background:#fff;box-shadow:0 0 0 1px #26341c20}.selection-box:before{left:-4px;top:-4px}.selection-box:after{right:-4px;bottom:-4px}.multi-grid{width:100%;max-width:1020px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-self:flex-start}.multi-grid>div,.multi-grid>button,.multi-preview,.preview-card{min-width:0;max-width:100%;padding:12px;background:#fff;border:1px solid #e1e6df;border-radius:8px;text-align:left}.multi-grid canvas{display:block;width:100%;height:auto;max-height:370px;object-fit:contain;background:#edf0eb}.multi-grid strong,.multi-grid p,.multi-grid small,.multi-preview figcaption{display:block;font-size:12px;color:#6d786c;margin-top:9px;line-height:1.6}.workspace-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 24px 4px;flex-shrink:0}.workspace-bottom p{font-size:12px;line-height:1.7;color:#818a83}.canvas-size{font-size:11px;color:#8a938b;white-space:nowrap;font-variant-numeric:tabular-nums}.keyboard-hint{font-size:10px;color:#a0a69f;line-height:1.6;padding:0 24px 14px}.keyboard-hint span{margin:0 7px}.canvas-warnings{font-size:13px;line-height:1.7;margin:7px 22px;padding:10px 13px;background:#fff2d9;border:1px solid #eddbb5;border-radius:6px;color:#8a652c;flex-shrink:0}.canvas-warnings:empty{display:none}.property-section{padding:18px 18px 17px;border-bottom:1px solid var(--line)}.property-section .section-heading{margin-bottom:11px}.image-drop{display:flex;align-items:center;gap:9px;border:1px dashed #d0d9ce;background:#fafcf8;border-radius:6px;min-height:59px;padding:10px;cursor:pointer;transition:background .15s}.image-drop:hover,.image-drop.dragover,.image-drop.is-dragover{border-color:#9bae79;background:#f0f6e8}.upload-symbol{display:grid;place-items:center;width:30px;height:31px;border-radius:5px;background:#edf2e8;color:#788770;flex-shrink:0}.upload-symbol svg{width:19px;height:19px}.image-drop strong{font-size:12px;font-weight:400;line-height:1.7;display:block}.image-drop small{font-size:10px;letter-spacing:.2px;color:#a1aa9d;display:block;margin-top:1px}.upload-arrow{width:16px;height:16px;margin-left:auto;color:#8c9882}.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:13px}.field>span:first-child,.export-ratios legend{font-size:14px;line-height:1.4;color:#737c75}.field input:not([type=color]):not([type=range]):not([type=checkbox]),.field select,.field textarea{width:100%;min-width:0;border:1px solid #dfe4de;border-radius:5px;background:#fff;padding:9px 10px;font-size:14px;line-height:1.5}.field textarea{resize:vertical;min-height:80px}.field input:hover,.field textarea:hover,.field select:hover{border-color:#bec9b9}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9caa82}.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field-row .field{margin-bottom:12px}.background-basics{margin-top:13px;grid-template-columns:84px minmax(0,1fr)}.color-control{height:39px;display:flex;align-items:center;gap:9px;padding:5px;border:1px solid #dfe4de;border-radius:5px;font-size:14px;background:#fff;min-width:0}.color-control input{width:100%;height:27px;padding:0;border:0;background:none;cursor:pointer;min-width:0}.color-control:has(>span:not(.sr-only)) input{width:35px;flex-shrink:0}.color-control input::-webkit-color-swatch-wrapper{padding:0}.color-control input::-webkit-color-swatch{border:0;border-radius:3px}.color-control input::-moz-color-swatch{border:0;border-radius:3px}.color-control>span{font-size:13px;color:#7d8875}.advanced-settings{font-size:13px;border-top:1px solid #f0f2ef;padding-top:4px}.advanced-settings summary{font-size:12px;line-height:1.7;color:#8a9387;cursor:pointer;padding:4px 0;list-style:none;display:flex;align-items:center;gap:6px}.advanced-settings summary:before{content:"+";font-size:16px;color:#9ca693;font-weight:300}.advanced-settings[open] summary:before{content:"−"}.details-body{padding-top:14px}.range-field{gap:10px;margin-bottom:17px}input[type=range]{appearance:none;width:100%;height:4px;border-radius:2px;background:#e5e9e2;accent-color:#7f9560;margin:6px 0;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;border:2px solid #fff;background:#7d9560;box-shadow:0 0 0 1px #cad4bd}input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;border:2px solid #fff;background:#7d9560;box-shadow:0 0 0 1px #cad4bd}.field-note{font-size:12px;color:#939b90;line-height:1.8;overflow-wrap:anywhere}.text-section{padding-top:15px}.layer-list{display:flex;gap:5px;flex-wrap:wrap;max-height:86px;overflow:auto;margin-bottom:10px;scrollbar-width:thin}.layer-list button,.layer-item,.layer-button{background:#f4f6f2;color:#7e8877;font-size:11px;line-height:1.5;border:1px solid #e6ebe1;border-radius:4px;padding:5px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-list button.active,.layer-item.active,.layer-button.active,.layer-list button[aria-pressed=true]{border-color:#c6d2b5;background:#edf3e4;color:#4a5d3c}.text-value-field{margin-bottom:0}.text-value-field textarea{font-size:15px;line-height:1.8;min-height:82px;height:88px;padding:10px 11px}.layer-actions{display:flex;align-items:center;gap:12px;margin:3px 0 12px}.layer-actions>.text-button{font-size:12px}.layer-order{display:flex;margin-left:auto;gap:0}.layer-order .icon-button{width:27px;height:26px;padding:5px}.layer-order svg{width:16px;height:16px}.font-row{grid-template-columns:minmax(0,1fr) 66px 44px;gap:8px}.input-unit{display:flex;align-items:center;position:relative}.input-unit input{padding-right:25px!important;appearance:textfield}.input-unit input::-webkit-inner-spin-button{appearance:none}.input-unit>span{font-size:11px;color:#a5aca1;position:absolute;right:8px;pointer-events:none}.position-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.position-row .field>span:first-child{font-size:12px}.text-options{display:flex;flex-direction:column;gap:12px;margin-top:5px}.text-options label{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;color:#7d8677;cursor:pointer}.text-options input,.export-ratios input{appearance:none;width:14px;height:14px;border:1px solid #cbd4c2;background:#fff;border-radius:3px;margin:0;flex-shrink:0;display:grid;place-content:center;cursor:pointer}.text-options input:checked,.export-ratios input:checked{background:var(--lime);border-color:#b3c663}.text-options input:checked:after,.export-ratios input:checked:after{content:"";width:6px;height:3px;border-left:1.5px solid #4e5f2f;border-bottom:1.5px solid #4e5f2f;transform:translateY(-1px) rotate(-45deg)}.property-footer{font-size:10px;color:#a7afa2;display:flex;gap:6px;align-items:center;padding:18px}.studio-dot{width:4px;height:4px;background:#bcc9aa;border-radius:50%}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(90vw,620px);z-index:40;background:#283026;color:#fff;padding:12px 18px;border-radius:9px;box-shadow:0 8px 28px #17251525;font-size:14px;line-height:1.7}.export-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #d9dfd5;border-radius:15px;padding:28px;background:#fff;color:var(--ink);box-shadow:0 25px 100px #14200d28}.export-dialog::backdrop{background:#19211860;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dialog-heading h2{font-size:24px;letter-spacing:-1px}.dialog-description{font-size:14px;line-height:1.9;color:#818a7a;margin:13px 0 22px}.export-ratios{border:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:20px 0}.export-ratios legend{margin-bottom:10px}.export-ratios label{position:relative;display:flex;align-items:flex-start;gap:7px;border:1px solid #e0e6d9;border-radius:7px;padding:11px 9px;cursor:pointer}.export-ratios label:has(input:checked){background:#f5f9eb;border-color:#c4d59d}.export-ratios input{margin-top:3px;width:13px;height:13px}.export-ratios strong{display:block;font-size:14px;line-height:1.6}.export-ratios small{display:block;font-size:10px;color:#929b89;line-height:1.6;white-space:nowrap}.export-summary{font-size:13px;color:#7f8b72;line-height:1.8;padding:11px 14px;background:#f5f7f1;border-radius:6px}.export-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.export-dialog #export-result{margin-top:12px}.export-dialog #export-result:empty{display:none}
@media(min-width:1600px){.app-header{padding-left:28px;padding-right:28px}.workspace{grid-template-columns:250px minmax(0,1fr) 300px}.stage-area{padding:36px}.stage-wrap canvas{max-height:calc(100dvh - 250px);max-width:920px}.workspace-toolbar{padding-left:30px;padding-right:30px}.property-section{padding:22px 20px}}
@media(max-width:1250px){.app-header{padding:0 18px;gap:15px}.project-name{width:165px}.project-meta{gap:8px}.save-status{display:none}.workspace-toolbar{padding-left:15px;padding-right:15px}.toolbar-label{display:none}.ratio-tabs button{padding:0 8px}.stage-area{padding:22px}.workspace-bottom{padding-left:19px;padding-right:19px}.header-actions{gap:7px}.history-actions{padding-right:8px;margin-right:0}.multi-toggle{font-size:11px;gap:5px;padding-left:5px;padding-right:5px}}
@media(max-width:1050px){.workspace{grid-template-columns:215px minmax(0,1fr) 280px}.app-header{height:68px;min-height:68px}.brand{font-size:21px;gap:8px}.brand-light{font-size:18px}.brand-mark{width:32px;height:32px}.header-divider{display:none}.project-name{width:145px;font-size:13px}.button{padding-left:11px;padding-right:11px}.header-actions .button{font-size:12px;gap:5px}.history-actions{border-right:0;padding-right:0}.workspace-toolbar{flex-wrap:wrap;gap:6px;padding-top:10px;padding-bottom:10px;min-height:65px}.ratio-tools{gap:0}.multi-toggle{padding:3px 4px;min-height:29px}.ratio-tabs{gap:1px}.ratio-tabs button{height:29px;padding:0 7px;font-size:11px}.ratio-icon{display:none}.library-panel{padding-left:14px;padding-right:14px}.library-tabs{padding-left:6px;padding-right:6px}.library-tabs button{font-size:11px}.property-section{padding-left:15px;padding-right:15px}.stage-area{padding:17px}.workspace-bottom{flex-wrap:wrap;gap:3px;padding-top:11px}.keyboard-hint{padding-left:19px;font-size:9px}.workspace-bottom p{font-size:11px}.stage-wrap canvas{max-height:calc(100dvh - 240px)}}
@media(max-width:800px){body{overflow:auto}.app-shell{height:auto;min-height:100dvh}.app-header{height:auto;min-height:68px;flex-wrap:wrap;padding:14px 16px;gap:12px;position:sticky;top:0;z-index:10}.brand{margin-right:auto}.project-meta{order:3;flex:1 1 100%;border-top:1px solid var(--line);padding-top:9px}.project-name{width:100%;font-size:14px;padding-left:0}.save-status{display:inline-flex}.header-actions{gap:4px;margin-left:0}.header-actions .button{min-height:35px;padding:8px;font-size:12px}.header-actions .button svg{width:15px;height:15px}.header-actions #save-template-btn span{display:none}.history-actions{gap:0}.history-actions .icon-button{width:28px;height:31px}.workspace{display:flex;flex-direction:column;min-height:0}.library-sidebar{border:0;border-bottom:1px solid var(--line);overflow:visible;order:2}.library-tabs{padding:10px 13px;position:static;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.library-tabs button{flex-direction:row;justify-content:center;min-height:39px;font-size:13px;gap:7px}.library-tabs button svg{width:17px;height:17px}.library-panel{padding:18px}.library-panel .section-heading h1 br{display:none}.library-panel h1{font-size:21px}.library-panel .eyebrow{font-size:10px}.search-field{margin-top:14px}.category-filters{margin-bottom:14px}.preset-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.preset-thumb,.preset-preview,.preset-card>canvas,.preset-list>button>canvas{height:150px}.panel-footnote{margin-top:20px;font-size:12px}.editor-workspace{order:1;min-height:490px}.workspace-toolbar{padding:12px 16px;min-height:60px;flex-wrap:nowrap}.ratio-tabs button{height:31px;padding:0 10px;font-size:12px}.multi-toggle{font-size:12px;min-height:32px;padding:6px}.stage-area{min-height:320px;height:460px;padding:22px;overflow:auto}.stage-wrap canvas{max-height:410px;max-width:100%}.workspace-bottom{padding:12px 18px 3px;flex-wrap:nowrap}.keyboard-hint{padding:0 18px 12px;font-size:10px}.workspace-bottom p{font-size:11px}.canvas-size{font-size:10px}.multi-grid{gap:13px}.multi-grid canvas{max-height:290px}.properties-sidebar{order:3;border:0;border-top:1px solid var(--line);overflow:visible;display:grid;grid-template-columns:1fr 1fr;align-items:start;padding-bottom:0}.property-section{padding:20px;border-bottom:0}.image-section{border-right:1px solid var(--line)}.property-footer{grid-column:1/-1;border-top:1px solid var(--line);padding:14px 20px}.text-section{padding-top:20px}.image-drop strong{font-size:13px}.image-drop small{font-size:11px}.field-note{font-size:12px}.library-file-actions,.stack-actions{flex-direction:row;flex-wrap:wrap}.saved-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.batch-list{grid-template-columns:repeat(2,minmax(0,1fr))}.csv-input{min-height:190px!important}.canvas-warnings{margin-left:18px;margin-right:18px}}
@media(max-width:520px){.brand{font-size:19px}.brand-light{font-size:17px}.brand-mark{width:30px;height:30px;border-radius:8px}.brand-mark svg{width:22px;height:22px}.app-header{gap:9px;padding:11px 13px}.header-actions .button{padding:8px 9px}.header-actions #export-btn{font-size:12px}.history-actions .icon-button{width:25px}.header-actions .button svg{width:14px;height:14px}.header-actions #save-template-btn{padding:8px}.project-meta{padding-top:5px}.project-name{font-size:13px}.save-status{font-size:10px}.workspace-toolbar{padding:11px 12px;gap:5px}.ratio-tabs{padding:2px;gap:1px}.ratio-tabs button{font-size:11px;padding:0 8px;height:29px}.multi-toggle{font-size:11px;gap:4px;padding:4px;min-height:29px}.multi-toggle svg{width:14px;height:14px}.stage-area{height:390px;min-height:270px;padding:19px}.stage-wrap canvas{max-height:355px}.multi-grid{gap:10px}.multi-grid>div,.multi-grid>button,.multi-preview,.preview-card{padding:8px}.multi-grid canvas{max-height:210px}.workspace-bottom{padding-left:14px;padding-right:14px;gap:10px}.workspace-bottom p{font-size:10px}.canvas-size{font-size:9px}.keyboard-hint{font-size:9px;padding-left:14px;padding-right:14px}.properties-sidebar{display:block}.image-section{border-right:0;border-bottom:1px solid var(--line)}.property-section{padding:20px}.library-tabs{padding:9px}.library-tabs button{font-size:12px;gap:5px}.library-tabs button svg{width:15px;height:15px}.preset-list{gap:15px 12px}.preset-thumb,.preset-preview,.preset-card>canvas,.preset-list>button>canvas{height:125px}.saved-list{grid-template-columns:1fr}.export-dialog{padding:22px 18px}.dialog-heading h2{font-size:22px}.export-ratios{grid-template-columns:repeat(2,minmax(0,1fr))}.export-ratios label{padding:12px}.export-ratios small{font-size:11px}.export-actions{flex-direction:column-reverse}.export-actions .button{width:100%}.toast{bottom:15px;font-size:13px;width:max-content;max-width:calc(100vw - 26px)}}
.preset-caption{display:block;padding-top:8px}.preset-caption strong{display:block;font-size:14px;line-height:1.65;font-weight:600}.preset-caption small{display:block;font-size:12px;color:#697369;line-height:1.7;margin-top:2px}.preset-card>canvas.preset-thumb{width:100%;height:143px;object-fit:cover}.saved-card h3{font-size:14px;line-height:1.7}.saved-card p{font-size:12px;color:#697369;margin-top:3px}.saved-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.saved-actions .button.subtle{font-size:12px;min-height:29px;padding:4px 7px;margin:0;border:1px solid #dce4d5;background:#fff}.layer-item{display:inline-flex;align-items:center;gap:5px}.layer-type{width:16px;height:16px;display:inline-grid;place-items:center;font-size:10px;border-radius:3px;background:#e7eddf;color:#728060;flex-shrink:0}.ratio-card{margin:0;min-width:0;max-width:100%;padding:12px;background:#fff;border:1px solid #e1e6df;border-radius:8px}.ratio-card figcaption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.ratio-card figcaption strong{font-size:13px;color:#4a5846;font-weight:600;margin:0}.ratio-card figcaption span{font-size:12px;color:#8a9483}.ratio-edit{width:100%;font-size:12px;color:#61734f;background:#f2f6eb;border:1px solid #e0e9d4;padding:7px;border-radius:5px;margin-top:10px}.ratio-edit:hover{background:#eaf1de}.batch-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:8px;text-align:left}.batch-card>span{display:block;padding:7px 2px 0;font-size:12px;line-height:1.6;color:#697369}.library-tabs button[aria-selected=true]{background:#eef4df;color:#344426}#canvas-warnings[data-warning=false]{background:transparent;border:0;margin-top:0;margin-bottom:0;padding-top:5px;padding-bottom:5px;color:#687b5b;font-size:12px}.toast[data-kind=error]{background:#773c3c;color:#fff}
/* Keep control labels readable even in the compact editor and mobile layout. */
.library-tabs button,.category-filters button,.ratio-tabs button,.multi-toggle,.header-actions .button,.text-options label,.position-row .field>span:first-child,.image-drop strong{font-size:14px}.field>span:first-child,.export-ratios legend{color:#606c61}.field-note,.panel-description,.panel-footnote,.keyboard-hint,.canvas-size,.workspace-bottom p,.preset-description,.preset-meta,.preset-card>small,.preset-list>button>small,.property-footer,.image-drop small,.dialog-description,.export-ratios small{color:#697369}.library-tabs button,.category-filters button,.ratio-tabs button{color:#657063}.library-tabs button.active,.library-tabs button[aria-pressed=true]{color:#344426}.category-filters button.active,.category-filters button[aria-pressed=true]{color:#fff}.ratio-tabs button.active,.ratio-tabs button[aria-pressed=true]{color:#252b24}
@media(min-width:801px){.stage-wrap canvas{max-height:calc(100dvh - 300px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.quick-form{border:1px solid var(--line);border-radius:8px;padding:12px;margin:0 0 20px;background:#fff}.quick-form>summary{font-size:14px;font-weight:600;cursor:pointer}.quick-form[open]>summary{margin-bottom:14px}.quick-form .field{margin-top:12px}.quick-form .field:last-child{margin-bottom:0}
.bg-tool{margin:8px 0 12px;padding:12px;border:1px solid #dde3d9;border-radius:8px;background:#f6f8f3}.bg-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.bg-tool-heading>span{font-size:12px;color:#697369}.bg-action-row{display:flex;gap:7px;margin-top:9px}.bg-action-row .button{min-height:32px;padding:6px 12px;font-size:14px}.bg-status-title{font-size:14px;font-weight:600;margin-top:8px}.bg-status-detail{font-size:13px;line-height:1.45;color:#5d665d;margin-top:3px;overflow-wrap:anywhere}.bg-tool progress{width:100%;height:7px;margin:7px 0 0;accent-color:#5c7838}.bg-result-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:9px}.bg-notice{font-size:13px;line-height:1.45;margin-top:8px;color:#805b14}.bg-tool[data-phase=error],.bg-tool[data-phase=unsupported]{border-color:#d9b6a8}.bg-tool[data-phase=error] .bg-status-title{color:#9a3823}.bg-tool[data-phase=ready] .bg-status-title{color:#31572e}
.bg-tool{margin-bottom:8px;padding:10px}
.blank-start-card{margin:18px 0 12px}.blank-start-card .field-note{margin-top:7px;font-size:13px;line-height:1.6}.keep-photo-option{display:flex;align-items:center;gap:7px;font-size:14px;line-height:1.6;margin-bottom:12px;cursor:pointer}.keep-photo-option input{accent-color:#59773b}.text-heading-actions{display:flex;align-items:center;gap:12px}.text-heading-actions .text-button{font-size:13px}.text-empty{margin-bottom:12px;font-size:14px;line-height:1.6}.text-section :disabled{opacity:.45}#brand-clear{margin-bottom:16px}canvas[data-transparent="true"]{background-color:#fff;background-image:linear-gradient(45deg,#e5e7e5 25%,transparent 25%),linear-gradient(-45deg,#e5e7e5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e7e5 75%),linear-gradient(-45deg,transparent 75%,#e5e7e5 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
