:root{color-scheme:dark;font-family:'Noto Sans KR',sans-serif;background:#080808;color:#eee}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.ws-home{font-size:13px;color:#aaa}.ws-home:hover{color:#fff}#ws-upload{width:min(620px,calc(100% - 40px));margin:0 auto;min-height:calc(100svh - 42px);display:flex;flex-direction:column;justify-content:center}#ws-upload .ws-home{align-self:flex-start;margin-bottom:36px}h1{font-size:38px;line-height:1.3;margin:0 0 28px;font-weight:700}#ws-drop{border:1px dashed #555;min-height:220px;border-radius:8px;display:grid;place-items:center;font-size:20px;position:relative;background:#101010;cursor:pointer}#ws-drop:hover,#ws-drop.dragover{border-color:#fff}#ws-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}#ws-status{font-size:14px;min-height:20px;color:#aaa}#ws-status.error{color:#ff9d9d}.ws-legal{text-align:center;font-size:11px;color:#666;margin:10px}#text-editor-app{--ecbg:#080808;--ecpanel:#101010;--ecpanel2:#181818;--ecline:#303030;--ectext:#eee;--ecmuted:#aaa;--ecaccent:#f5f5f5;--ecstage:#181818;font-family:'Noto Sans KR',sans-serif;font-size:14px}#text-editor-app #toolbar{padding:12px 18px;gap:8px;background:#080808}#toolbar .ws-home{margin-right:auto;white-space:nowrap;font-size:12px}#text-editor-app button,#text-editor-app label.btn{font-size:14px;line-height:1.4;border-radius:6px;padding:9px 12px}#text-editor-app #toolbar button{color:#000;background:#fff;border:1px solid #fff}#text-editor-app #toolbar button.on{background:#aaa;border-color:#aaa}#text-editor-app #tools{border:0;gap:8px;overflow:visible}#text-editor-app #tools button{border:1px solid #fff}#text-editor-app #toolbar .sep,#text-editor-app #info,.editcaret,.ws-unused{display:none!important}.ws-compression{color:#aaa;display:flex;gap:6px;align-items:center;font-size:12px;margin-left:8px}.ws-compression select{max-width:155px;padding:8px;border:1px solid #444;border-radius:5px;background:#161616;color:#eee;font-size:12px}#text-editor-app #stage{padding:26px;background:#181818}#text-editor-app #inspector{width:224px;min-width:224px;flex:0 0 224px;padding:18px 16px;background:#101010;border-left:1px solid #303030;overflow:auto}#text-editor-app #inspector:not([hidden]){display:flex;flex-direction:column;gap:14px}#text-editor-app #inspector[disabled]{opacity:1;pointer-events:auto}#text-editor-app #inspector .ws-field{display:flex;flex-direction:column;gap:7px;margin:0;color:#aaa;font-size:12px}#text-editor-app #inspector input,#text-editor-app #inspector select{width:100%;height:36px;padding:6px 8px;background:#1a1a1a;color:#eee;border:1px solid #444;border-radius:5px;font-size:14px}#text-editor-app #inspector input[type=color]{padding:3px}#text-editor-app #inspector .segmented{flex-shrink:0;justify-content:stretch}#text-editor-app #inspector button{flex:1;font-size:13px;padding:8px 6px;min-width:0}#text-editor-app #inspector button.on{color:#000}#text-editor-app #fToggles{display:flex;gap:5px;margin:0}#fToggles [data-t=italic]{font-style:italic}#fToggles [data-t=underline]{text-decoration:underline}#fToggles [data-t=strike]{text-decoration:line-through}.ws-rotate{display:flex;gap:6px}#text-editor-app #contextbar{background:#101010;border-color:#333}#text-editor-app #contextbar button{font-size:14px}#text-editor-app #viewbar{background:#101010;border-color:#333;padding:6px 14px;justify-content:center}#text-editor-app #viewbar .btn{padding:6px 12px}#viewbar .viewsep,#viewbar .viewbar-right,#viewbar #vbCollapse,#viewbar #pageInput,#viewbar #pageTotal{display:none!important}#text-editor-app #viewbar .label{font-size:12px}#text-editor-app .editor{font-family:Arial,sans-serif}#text-editor-app .para-handle,#text-editor-app .obj-handle,#text-editor-app .rot-handle{background:#fff;border-color:#444}.ws-ink{position:absolute;left:0;top:0;z-index:20;touch-action:none;cursor:crosshair}.ws-sign-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}dialog{color:#eee;background:#101010;border:1px solid #444;border-radius:8px;padding:24px;width:min(600px,calc(100% - 32px))}dialog::backdrop{background:#000a}dialog h2{font-size:24px;margin:0 0 20px}dialog button{background:#fff;color:#000;border:0;border-radius:6px;padding:10px 18px}#ws-sign-canvas{width:100%;height:200px;background:#fff;border-radius:4px;touch-action:none}#toast{font-size:14px!important;background:#eee!important;color:#000!important;z-index:100!important}#text-editor-app .ecmenu{display:none!important}#text-editor-app #inspector .ws-field:has(#ws-opacity)::after{content:'0% 투명, 100% 불투명';font-size:10px;color:#777}
@media(max-width:1000px){#toolbar .ws-home{width:100%;margin-bottom:3px}#text-editor-app #inspector{width:190px;min-width:190px;flex-basis:190px}#text-editor-app #toolbar button{padding:8px 10px;font-size:13px}.ws-compression{margin-left:auto}}
@media(max-width:650px){h1{font-size:32px}#ws-drop{min-height:200px}#text-editor-app #toolbar{padding:10px;gap:6px}#text-editor-app #toolbar button{padding:8px;font-size:12px}#text-editor-app #tools{gap:6px}#text-editor-app #main{flex-direction:column}#text-editor-app #stage{padding:14px;min-height:35vh}#text-editor-app #inspector{width:100%;min-width:0;max-height:200px;flex-basis:auto;border-left:0;border-top:1px solid #333}#text-editor-app #inspector:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ws-compression select{max-width:125px}.ws-compression{margin-left:0}}

#text-editor-app #toolbar .btn.icon{width:auto;min-width:34px;height:auto;white-space:nowrap}#text-editor-app #inspector #fSize{font-size:14px;font-weight:400;height:36px;line-height:1.4;padding:6px 8px;text-align:left}#text-editor-app #viewbar #pageLabel{display:inline-block!important}#text-editor-app #inspector input[type=color]{border-radius:5px;min-height:36px}#text-editor-app #toolbar{font-family:"Noto Sans KR",sans-serif}

#text-editor-app #inspector #fSize{height:36px!important;font-size:14px!important;line-height:1.4!important}#text-editor-app #toolbar #addImage{width:auto!important;min-width:86px!important;height:36px!important}#text-editor-app #toolbar button,#text-editor-app #toolbar #tools button{min-height:36px}#text-editor-app #viewbar .btn.icon{width:auto;min-width:32px;white-space:nowrap}#text-editor-app #inspector input[type=color]::-webkit-color-swatch{border-radius:2px!important}

#text-editor-app #inspector:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:10px 8px;align-content:start}
#text-editor-app #inspector>.ws-field{grid-column:span 2;gap:5px;order:5}
#text-editor-app #inspector>.ws-field:has(#fFamily){order:0}
#text-editor-app #inspector>.ws-field:has(#fSize),#text-editor-app #inspector>.ws-field:has(#fLine){grid-column:span 1;order:1}
#text-editor-app #inspector>.ws-field:has(#fColor),#text-editor-app #inspector>.ws-field:has(#ws-opacity){grid-column:span 1;order:2}
#text-editor-app #inspector>#fToggles{grid-column:span 2;order:3}
#text-editor-app #inspector>#fAlign{grid-column:span 2;order:4}
#text-editor-app #inspector>.ws-field:has(#ws-valign){order:6}
#text-editor-app #inspector>.ws-field:has(#ws-rotate-left){order:7}
#text-editor-app #inspector>.ws-field:has(#ws-pen-width){order:8}
#text-editor-app #inspector input,#text-editor-app #inspector select,#text-editor-app #inspector #fSize{height:32px!important;flex:none!important;min-width:0;width:100%}
#text-editor-app #inspector button{padding:7px 5px}

#text-editor-app #empty{display:none!important}#text-editor-app #toolbar svg{display:block;flex-shrink:0}

#text-editor-app #toolbar{flex-wrap:wrap!important;overflow-x:visible!important}#text-editor-app #toolbar>*{flex-shrink:0}

/* Focused toolbar and workspace panels. */
#text-editor-app #toolbar{gap:8px;padding:10px 14px;align-items:center}
#text-editor-app #toolbar .ws-icon-button,#text-editor-app #toolbar #addImage{width:44px!important;min-width:44px!important;height:44px!important;padding:10px!important;display:inline-flex;align-items:center;justify-content:center}
#text-editor-app #toolbar #tools{gap:8px;flex-shrink:0}
#text-editor-app #toolbar #undo,#text-editor-app #toolbar #redo{width:40px!important;min-width:40px;height:44px!important;padding:9px!important}
#text-editor-app #toolbar svg{width:23px;height:23px;flex:none}
#text-editor-app #toolbar #save{min-width:148px!important;height:48px!important;margin-left:auto;padding:10px 18px!important;font-size:19px!important;font-weight:700;gap:10px;flex-shrink:0}
#text-editor-app #toolbar #save svg{width:21px;height:21px}
#text-editor-app #toolbar .dirty::after{display:none}
.ws-compression{margin-left:8px;font-size:14px}.ws-compression select{font-size:14px;max-width:155px;min-height:42px}
#ws-sidepanel{width:272px;min-width:272px;flex:0 0 272px;background:#101010;border-left:1px solid #303030;display:flex;flex-direction:column;min-height:0;overflow:hidden}
#text-editor-app #ws-sidepanel #inspector{position:relative;width:100%;min-width:0;flex:1 1 auto;max-height:none;border:0;overflow:auto;padding:16px;transform:none}
.ws-panel-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #333;padding:8px;gap:6px}
#text-editor-app .ws-panel-tabs button{flex:1;background:#141414;border:1px solid transparent;font-size:16px;padding:8px;color:#aaa}
#text-editor-app .ws-panel-tabs button.on{color:#fff;border-color:#555;background:#222}
#ws-layer-panel:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
.ws-layer-heading{display:flex;justify-content:space-between;align-items:center;padding:16px;font-size:13px;color:#999;flex-shrink:0}
.ws-layer-heading strong{font-weight:500;color:#ccc}
#ws-layer-list{position:relative;overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#444 transparent}
.ws-layer-spacer{position:relative;width:100%}
.ws-layer-row{position:absolute;left:0;right:0;height:44px;display:flex;align-items:center;border-bottom:1px solid #202020;gap:2px;padding-right:5px}
#text-editor-app .ws-layer-row button{background:transparent;border:0;border-radius:3px;color:#aaa;width:32px;min-width:32px;height:36px;padding:7px;display:flex;align-items:center;justify-content:center}
#text-editor-app .ws-layer-row button:hover{background:#2b2b2b;color:#fff}
#text-editor-app .ws-layer-row .ws-layer-name{flex:1;min-width:0;width:auto;display:block;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;padding:8px 4px;color:#ddd}
#text-editor-app .ws-layer-row .ws-layer-name:disabled{opacity:.4}
#text-editor-app #inspector input,#text-editor-app #inspector select{font-size:15px!important}
#text-editor-app #inspector button{font-size:15px!important}
.ws-stamp-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.ws-stamp-heading h2{margin:0}.ws-upload-stamp{display:inline-flex;cursor:pointer;background:#fff;color:#000;border-radius:5px;padding:9px 13px;font-size:15px}
#ws-stamp-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;max-height:420px;overflow:auto}
.ws-stamp-item{position:relative;background:#1b1b1b;border:1px solid #333;border-radius:6px;padding:8px}
.ws-stamp-pick{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;border:0;background:none!important;color:#eee!important;padding:10px!important;font-size:14px}
.ws-stamp-pick img{display:block;max-width:100%;height:84px;object-fit:contain;background:#f2f2f2;border-radius:3px}
.ws-stamp-pick span{width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.ws-stamp-remove{position:absolute;right:4px;top:4px;padding:5px!important;background:#252525!important;color:#ddd!important;width:28px;height:28px;border-radius:4px}
#ws-stamp-empty{font-size:14px;color:#999;line-height:1.6}
.ws-stamp-placement{position:absolute;left:0;top:0;z-index:25;cursor:crosshair;touch-action:none;overflow:hidden}
.ws-stamp-placement img{position:absolute;transform:translate(-50%,-50%);height:auto;opacity:.55;pointer-events:none;left:-500px;top:-500px}
@media(max-width:1000px){#text-editor-app #toolbar>.ws-home{margin-right:auto;width:auto;max-width:none}#text-editor-app #toolbar #save{margin-left:auto}}
@media(max-width:650px){#text-editor-app #toolbar{gap:6px;padding:8px}#text-editor-app #toolbar>.ws-home{width:100%;margin-bottom:4px}#text-editor-app #toolbar .ws-icon-button,#text-editor-app #toolbar #addImage{width:40px!important;min-width:40px!important;height:40px!important;padding:9px!important}#text-editor-app #toolbar #tools{gap:6px}#text-editor-app #toolbar #save{height:46px!important;min-width:136px!important;font-size:18px!important}#ws-sidepanel{width:100%;min-width:0;flex:0 0 240px;border-left:0;border-top:1px solid #333;max-height:35vh}#text-editor-app #ws-sidepanel #inspector{max-height:none}.ws-compression{margin-left:0}.ws-panel-tabs{padding:5px}.ws-layer-heading{padding:8px 12px}.ws-stamp-heading h2{font-size:22px}}

#text-editor-app #inspector #fAlign{display:flex!important;flex:none!important;min-height:36px;width:100%;height:auto;overflow:visible}#text-editor-app #inspector #fAlign button{display:block;min-height:36px;height:auto;width:auto}
