@font-face{font-family:W2 Noto Sans KR;src:url(/assets/NotoSansKR-Regular-B3wt_HkG.ttf)format("truetype");font-weight:100 500;font-display:swap}@font-face{font-family:W2 Noto Sans KR;src:url(/assets/NotoSansKR-Bold-BnBlSYTz.ttf)format("truetype");font-weight:600 900;font-display:swap}:root{--color-accent:#2f5bea;--color-accent-hover:#1e44c4;--color-accent-soft:#eef2fe;--color-bg-app:#f4f5f7;--color-bg-canvas:#eceef2;--color-surface:#fff;--color-surface-muted:#f2f4f7;--color-border:#e4e7ec;--color-border-strong:#d0d5dd;--color-text:#101828;--color-text-secondary:#344054;--color-text-muted:#5b6474;--color-text-disabled:#98a2b3;--color-danger:#c2282d;--color-danger-bg:#fef0f0;--color-warning:#9a4a00;--color-warning-bg:#fff4e5;--color-warning-dot:#e07a00;--color-success:#12805c;--color-snap:#d6409f;--shadow-toolbar:0 4px 16px #1018281a, 0 0 0 1px #1018280a;--shadow-page:0 1px 3px #1018281a, 0 8px 24px #1018280f;--shadow-dialog:0 24px 48px #1018283d;--dim:#10182873;--radius-sm:8px;--radius-tool:9px;--radius-card:12px;--radius-bar:14px;--radius-dialog:16px;--font:"W2 Noto Sans KR", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font:400 13px/1.5 var(--font);letter-spacing:-.01em;color:var(--color-text);background:var(--color-bg-app);overflow:hidden}.num{font-variant-numeric:tabular-nums}button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}button{cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:6px;padding:0;display:inline-flex}button:disabled{color:var(--color-text-disabled);cursor:default}:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}input[type=number]::-webkit-inner-spin-button{display:none}.btn{border-radius:var(--radius-sm);height:36px;color:var(--color-text-secondary);padding:0 12px;font-weight:500}.btn:hover:not(:disabled){background:var(--color-surface-muted)}.btn-outline{border-radius:var(--radius-sm);border:1px solid var(--color-border);background:var(--color-surface);height:34px;color:var(--color-text-secondary);padding:0 12px}.btn-outline:hover:not(:disabled){background:var(--color-surface-muted)}.btn-primary{border-radius:var(--radius-sm);background:var(--color-accent);color:#fff;height:36px;padding:0 16px;font-weight:600}.btn-primary:hover:not(:disabled){background:var(--color-accent-hover)}.btn-primary:disabled{background:var(--color-border-strong);color:#fff}.btn-danger{border-radius:var(--radius-sm);background:var(--color-danger-bg);width:100%;height:40px;color:var(--color-danger);font-weight:500}.icon-btn{border-radius:var(--radius-sm);width:36px;height:36px;color:var(--color-text-secondary)}.icon-btn:hover:not(:disabled){background:var(--color-surface-muted)}.icon-btn.on{background:var(--color-accent-soft);color:var(--color-accent)}.divider{background:var(--color-border);flex-shrink:0;width:1px;height:24px}.app{flex-direction:column;height:100%;display:flex}.topbar{background:var(--color-surface);border-bottom:1px solid var(--color-border);flex-shrink:0;align-items:center;gap:16px;height:56px;padding:0 16px;display:flex}.logo{align-items:center;gap:10px;display:flex}.logo-mark{background:var(--color-accent);color:#fff;border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;font-size:12px;font-weight:700;display:flex}.logo-name{font-size:14px;font-weight:600}.filename{align-items:center;gap:8px;min-width:0;display:flex}.filename>span:first-child{white-space:nowrap;text-overflow:ellipsis;font-weight:500;overflow:hidden}.badge-warn{background:var(--color-warning-bg);height:22px;color:var(--color-warning);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:0 8px;font-size:11px;font-weight:500;display:inline-flex}.badge-warn:before{content:"";background:var(--color-warning-dot);border-radius:50%;width:6px;height:6px}.spacer{flex:1 1 0}.row{align-items:center;gap:4px;display:flex}.body{flex:1 1 0;min-height:0;display:flex}.left{background:var(--color-surface);border-right:1px solid var(--color-border);flex-direction:column;flex-shrink:0;width:208px;display:flex}.right{background:var(--color-surface);border-left:1px solid var(--color-border);flex-shrink:0;width:288px;overflow-y:auto}.center{background:var(--color-bg-canvas);flex:1 1 0;min-width:0;position:relative}.statusbar{background:var(--color-surface);border-top:1px solid var(--color-border);height:36px;color:var(--color-text-muted);flex-shrink:0;align-items:center;gap:16px;padding:0 16px;font-size:12px;display:flex}.statusbar b{color:var(--color-text);font-weight:600}.zoom{border-radius:var(--radius-sm);background:var(--color-surface-muted);align-items:center;gap:2px;height:28px;padding:0 4px;display:flex}.zoom button{width:26px;height:24px;color:var(--color-text-secondary);border-radius:6px}.zoom button:hover{background:var(--color-surface)}.zoom span{text-align:center;min-width:44px;color:var(--color-text);font-weight:500}.segment{background:var(--color-surface-muted);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;display:grid}.segment button{height:30px;color:var(--color-text-muted);border-radius:7px;font-weight:500}.segment button.on{background:var(--color-surface);color:var(--color-text);font-weight:600;box-shadow:0 1px 2px #10182814}.thumbs{flex-direction:column;flex:1 1 0;align-items:center;gap:14px;padding:4px 12px 16px;display:flex;overflow-y:auto}.thumb{border-radius:10px;flex-direction:column;align-items:center;gap:6px;padding:4px;display:flex}.thumb-frame{border:1px solid var(--color-border);background:#fff;border-radius:4px;display:flex;overflow:hidden}.thumb.on .thumb-frame{outline:2px solid var(--color-accent);outline-offset:3px}.thumb img{width:100%;height:100%;display:block}.thumb-label{color:var(--color-text-muted);font-size:11px}.thumb.on .thumb-label{color:var(--color-accent);font-weight:600}.left-hint{color:var(--color-text-muted);padding:16px;font-size:12px}.scroller{position:absolute;inset:0;overflow:auto}.pages{flex-direction:column;align-items:center;gap:24px;width:max-content;min-width:100%;padding:88px 32px 48px;display:flex}.page{box-shadow:var(--shadow-page);-webkit-user-select:none;user-select:none;background:#fff;flex-shrink:0;position:relative}.page>img{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.page-loading{color:var(--color-text-muted);justify-content:center;align-items:center;font-size:12px;display:flex;position:absolute;inset:0}.overlay{position:absolute;inset:0;overflow:visible}.overlay.tool{cursor:crosshair}.sel-box{fill:none;stroke:var(--color-accent);stroke-width:1px}.sel-line{stroke:var(--color-accent);stroke-width:1px;stroke-dasharray:3 3}.guide{stroke:var(--color-snap);stroke-width:1px;stroke-dasharray:4 3}.guide-label{background:var(--color-snap);color:#fff;pointer-events:none;border-radius:4px;align-items:center;height:18px;padding:0 6px;font-size:11px;display:flex;position:absolute}.grid-line{fill:none;stroke:#2f5bea1f;stroke-width:1px}.ghost{fill:#2f5bea0f;stroke:var(--color-accent);stroke-dasharray:4 3;stroke-width:1px}.mask-outline{fill:none;stroke:#2f5bea59;stroke-dasharray:4 3;stroke-width:1px}.handle{fill:#fff;stroke:var(--color-accent);stroke-width:1px}.size-chip{color:#fff;white-space:nowrap;pointer-events:none;background:#101828;border-radius:6px;align-items:center;height:22px;padding:0 8px;font-size:11px;display:flex;position:absolute;transform:translate(-50%)}.text-preview{pointer-events:none;white-space:pre;letter-spacing:0;font-family:W2 Noto Sans KR,Noto Sans KR,sans-serif;position:absolute;overflow:hidden}.text-edit{border:1px dashed var(--color-accent);resize:none;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere;letter-spacing:0;background:0 0;outline:none;margin:0;font-family:W2 Noto Sans KR,Noto Sans KR,sans-serif;position:absolute;overflow:hidden}.toolbar{z-index:5;border-radius:var(--radius-bar);background:var(--color-surface);box-shadow:var(--shadow-toolbar);align-items:center;gap:4px;padding:6px;display:flex;position:absolute;top:20px;left:50%;transform:translate(-50%)}.toolbar button{border-radius:var(--radius-tool);width:38px;height:38px;color:var(--color-text-secondary)}.toolbar button:hover{background:var(--color-surface-muted)}.toolbar button.on{background:var(--color-accent-soft);color:var(--color-accent)}.toolbar .divider{height:22px;margin:0 4px}.panel-head{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:18px 20px;display:flex}.panel-head h2{margin:0;font-size:14px;font-weight:600}.panel-head span{color:var(--color-text-muted);font-size:11px}.section{border-bottom:1px solid #eaecf0;flex-direction:column;gap:10px;padding:16px 20px;display:flex}.section-title{color:var(--color-text-secondary);justify-content:space-between;align-items:baseline;font-size:12px;font-weight:600;display:flex}.section-title small{color:var(--color-text-muted);font-size:11px;font-weight:400}.sub-label{color:var(--color-text-muted);font-size:11px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.field{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);align-items:center;gap:8px;height:34px;padding:0 10px;display:flex}.field:focus-within{border-color:var(--color-accent)}.field label,.field .unit{color:var(--color-text-muted);flex-shrink:0;font-size:11px}.field input{width:100%;min-width:0;color:var(--color-text);background:0 0;border:0;outline:0}.swatches{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.swatch{border:1px solid #1018281f;border-radius:50%;width:28px;height:28px;position:relative}.swatch.on{box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--color-accent)}.swatch.none{background:#fff;overflow:hidden}.swatch.none:after{content:"";background:var(--color-danger);width:2px;position:absolute;top:-2px;bottom:-2px;left:50%;transform:rotate(45deg)}.swatch.custom{border:1px dashed var(--color-border-strong);color:var(--color-text-muted);background:#fff}.swatch input{opacity:0;cursor:pointer;position:absolute;inset:0}.toggles{gap:4px;display:flex}.toggles button{border-radius:var(--radius-sm);width:34px;height:34px;color:var(--color-text-secondary)}.toggles button:hover{background:var(--color-surface-muted)}.toggles button.on{background:var(--color-accent-soft);color:var(--color-accent)}.font-name{border:1px solid var(--color-border);border-radius:var(--radius-sm);height:34px;color:var(--color-text);align-items:center;padding:0 10px;display:flex}.align-row{border-radius:var(--radius-sm);background:var(--color-surface-muted);grid-template-columns:repeat(8,1fr);gap:2px;padding:4px;display:grid}.align-row button{height:30px;color:var(--color-text-secondary);border-radius:6px}.align-row button:hover:not(:disabled){background:var(--color-surface)}.snap-state{align-items:center;gap:6px;display:flex}.snap-state i{background:var(--color-text-disabled);border-radius:50%;width:7px;height:7px}.snap-state i.on{background:var(--color-success)}.grid-size{align-items:center;gap:6px;display:flex}.grid-size input{border:1px solid var(--color-border);background:var(--color-surface);text-align:right;border-radius:6px;width:40px;height:24px;padding:0 6px}.org-bar{background:var(--color-surface);border-bottom:1px solid var(--color-border);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px;display:flex}.btn.danger:not(:disabled){color:var(--color-danger)}.badge-sel{background:var(--color-surface-muted);height:26px;color:var(--color-text-muted);border-radius:999px;align-items:center;padding:0 10px;font-size:12px;display:inline-flex}.badge-sel.on{background:var(--color-accent-soft);color:var(--color-accent);font-weight:600}.org-legend{color:var(--color-text-muted);background:var(--color-bg-canvas);flex-wrap:wrap;gap:16px;padding:10px 24px 0;font-size:12px;display:flex}.org-legend span{align-items:center;gap:6px;display:flex}.org-legend i,.org-label i{border-radius:3px;width:10px;height:10px;display:inline-block}.org-grid-wrap{background:var(--color-bg-canvas);flex-direction:column;flex:1 1 0;gap:20px;min-height:0;padding:16px 24px 32px;display:flex;overflow:auto}.org-grid{flex-wrap:wrap;gap:20px 16px;display:flex}.org-card{border-radius:10px;flex-direction:column;gap:8px;padding:6px;position:relative}.org-thumb{justify-content:center;align-items:center;width:140px;height:198px;display:flex;position:relative}.org-thumb img{box-shadow:var(--shadow-page);background:#fff;transition:transform .15s}.org-card.on .org-thumb img{outline:2px solid var(--color-accent);outline-offset:3px}.org-placeholder{box-shadow:var(--shadow-page);background:#fff}.org-check{background:var(--color-accent);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;top:-4px;right:-4px;box-shadow:0 0 0 2px #fff}.org-label{color:var(--color-text-muted);font-variant-numeric:tabular-nums;align-items:center;gap:6px;font-size:12px;display:flex}.org-card.on .org-label{color:var(--color-accent);font-weight:600}.drop-line{background:var(--color-accent);border-radius:2px;width:3px;position:absolute;top:6px;bottom:30px}.drop-line.before{left:-10px}.drop-line.after{right:-10px}.org-drop{border:2px dashed var(--color-border-strong);border-radius:var(--radius-card);height:72px;color:var(--color-text-muted);background:0 0;flex-shrink:0}.org-drop.over,.org-drop:hover{border-color:var(--color-accent);color:var(--color-accent);background:var(--color-accent-soft)}.img-list{flex-wrap:wrap;gap:10px;max-height:260px;padding:2px;display:flex;overflow:auto}.img-item{cursor:grab;width:84px;color:var(--color-text-muted);flex-direction:column;align-items:center;gap:4px;font-size:11px;display:flex}.img-item img{object-fit:contain;background:var(--color-surface-muted);border:1px solid var(--color-border);border-radius:8px;width:84px;height:84px}.search{flex-direction:column;flex:1 1 0;min-height:0;display:flex}.search-box{flex-direction:column;gap:8px;padding:0 12px 8px;display:flex}.search-meta{color:var(--color-text-muted);justify-content:space-between;align-items:center;font-size:12px;display:flex}.search-meta .row button{width:26px;height:24px;color:var(--color-text-secondary);border-radius:6px}.search-meta .row button:hover:not(:disabled){background:var(--color-surface-muted)}.results{flex-direction:column;flex:1 1 0;gap:2px;padding:0 8px 16px;display:flex;overflow-y:auto}.result{text-align:left;width:100%;color:var(--color-text-secondary);border-radius:8px;padding:8px;font-size:12px;line-height:1.5;display:block}.result:hover{background:var(--color-surface-muted)}.result.on{background:var(--color-accent-soft)}.result small{color:var(--color-text-muted);font-size:11px;display:block}.result mark{color:var(--color-text);background:#ffe58a;border-radius:2px;padding:0 1px}.hit{fill:#ffc80059;stroke:none}.hit.active{fill:#e07a0059;stroke:#e07a00;stroke-width:1px}.searchbox{width:300px;position:relative}.searchbox .field{gap:6px;height:36px;padding-right:4px}.search-count{color:var(--color-text-muted);white-space:nowrap;align-items:center;font-size:11px;display:inline-flex}.mini{width:24px;height:24px;color:var(--color-text-secondary);border-radius:6px;flex-shrink:0}.mini:hover:not(:disabled){background:var(--color-surface-muted)}.search-drop{z-index:40;border-radius:var(--radius-card);background:var(--color-surface);max-height:420px;box-shadow:var(--shadow-dialog);flex-direction:column;gap:2px;padding:6px;display:flex;position:absolute;top:42px;left:0;right:0;overflow:auto}@media (width<=1279px){.searchbox{width:220px}}.left-head{color:var(--color-text-secondary);justify-content:space-between;align-items:center;padding:14px 16px 8px;font-size:13px;font-weight:600;display:flex}.left-actions{border-top:1px solid var(--color-border);justify-content:space-between;padding:8px 10px;display:flex}.left-actions .icon-btn{width:30px;height:30px}.icon-btn.danger:not(:disabled){color:var(--color-danger)}.menu{z-index:80;border-radius:var(--radius-card);background:var(--color-surface);min-width:220px;box-shadow:var(--shadow-dialog);padding:6px;position:fixed}.menu button{width:100%;height:34px;color:var(--color-text-secondary);white-space:nowrap;border-radius:7px;justify-content:flex-start;gap:10px;padding:0 10px}.menu button:hover{background:var(--color-surface-muted)}.menu button.on{color:var(--color-accent);font-weight:600}.menu button.danger{color:var(--color-danger)}.menu-divider{background:var(--color-border);height:1px;margin:4px 6px}.zoom .zoom-value{width:auto;min-width:64px;color:var(--color-text);font-variant-numeric:tabular-nums;padding:0 6px;font-weight:500}.hint{color:var(--color-text-muted);font-size:12px}.start{justify-content:center;align-items:center;padding:32px;display:flex;position:absolute;inset:0}.drop{border:2px dashed var(--color-border-strong);background:var(--color-surface);text-align:center;border-radius:20px;flex-direction:column;align-items:center;gap:14px;width:min(640px,100%);padding:56px 32px;display:flex}.drop.over{border-color:var(--color-accent);background:var(--color-accent-soft)}.drop h1{margin:0;font-size:16px;font-weight:600}.drop-icon{background:var(--color-accent-soft);width:56px;height:56px;color:var(--color-accent);border-radius:16px;justify-content:center;align-items:center;display:flex}.drop-over{z-index:30;border:2px dashed var(--color-accent);pointer-events:none;background:#eef2feb3;border-radius:16px;position:absolute;inset:12px}.dim{z-index:50;background:var(--dim);justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.dialog{background:var(--color-surface);border-radius:var(--radius-dialog);width:480px;max-width:100%;box-shadow:var(--shadow-dialog);flex-direction:column;gap:16px;padding:24px;display:flex}.dialog h2{margin:0;font-size:18px;font-weight:700}.dialog p{color:var(--color-text-secondary);margin:0}.dialog-actions{justify-content:flex-end;gap:8px;display:flex}.save-note{min-height:78px}.segment.three{grid-template-columns:repeat(3,minmax(0,1fr))}.compress-result{align-items:center;min-height:40px;display:flex}.raster-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.raster-row.disabled{opacity:.45}.raster-row .check-row:disabled{cursor:default}.segment.small{grid-template-columns:repeat(3,auto)}.segment.small button{height:26px;padding:0 8px;font-size:12px}.radio-card{border:1px solid var(--color-border);border-radius:var(--radius-card);cursor:pointer;text-align:left;justify-content:flex-start;align-items:flex-start;gap:12px;width:100%;padding:14px 16px;display:flex}.radio-card.on{border:1.5px solid var(--color-accent);background:#f5f8ff}.radio-dot{border:1.5px solid var(--color-border-strong);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;margin-top:2px;display:flex}.radio-card.on .radio-dot{border-color:var(--color-accent)}.radio-card.on .radio-dot:after{content:"";background:var(--color-accent);border-radius:50%;width:8px;height:8px}.radio-card b{color:var(--color-text);font-weight:600;display:block}.radio-card span{color:var(--color-text-muted);font-size:12px}.note{color:var(--color-text-muted);background:var(--color-surface-muted);border-radius:var(--radius-sm);padding:10px 12px;font-size:12px}.check-row{cursor:pointer;align-items:center;gap:8px;display:flex}.check-box{border:1.5px solid var(--color-border-strong);color:#fff;border-radius:5px;justify-content:center;align-items:center;width:18px;height:18px;display:flex}.check-row.on .check-box{background:var(--color-accent);border-color:var(--color-accent)}.toast{z-index:60;color:#fff;box-shadow:var(--shadow-toolbar);background:#101828;border-radius:10px;padding:10px 16px;font-size:13px;position:fixed;bottom:56px;left:50%;transform:translate(-50%)}.toast.update{align-items:center;gap:12px;padding:8px 8px 8px 16px;display:flex}.toast.update .btn-primary{height:32px}.busy{z-index:70;color:var(--color-text-secondary);background:#f4f5f799;justify-content:center;align-items:center;gap:8px;font-weight:500;display:flex;position:fixed;inset:0}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.topbar button{white-space:nowrap;flex-shrink:0}@media (width<=1099px){.btn-label{display:none}.searchbox{width:180px}.topbar{gap:8px}}.panel-toggle{display:none}@media (width<=1279px){.panel-toggle.for-right{display:inline-flex}.right{z-index:20;box-shadow:var(--shadow-dialog);display:none;position:absolute;top:56px;bottom:36px;right:0}.right.open{display:block}}@media (width<=1023px){.panel-toggle.for-left{display:inline-flex}.left{z-index:20;box-shadow:var(--shadow-dialog);display:none;position:absolute;top:56px;bottom:36px;left:0}.left.open{display:flex}.logo-name{display:none}}
