:root{color:#292f27;font-synthesis:none;--ink:#292f27;--muted:#656b5e;--paper:#fcfbf6;--line:#deddd1;--sage:#4b654c;--soft-sage:#e9ede1;--serif:"Noto Serif CJK SC", "Songti SC", SimSun, Georgia, serif;background:#f4f2e9;font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:300px;margin:0}button{font:inherit}h1,h2,h3,p{margin:0}:focus-visible{outline-offset:3px;outline:2px solid #61835f}.page{grid-template-rows:auto minmax(0,1fr);height:100dvh;display:grid;overflow:clip}.shell{width:min(1320px,100% - 96px);margin-inline:auto}.topbar{border-bottom:1px solid var(--line);background:#f9f8f1}.header-inner{justify-content:space-between;align-items:center;gap:12px;min-height:60px;display:flex}.brand{font-family:var(--serif);letter-spacing:.035em;white-space:nowrap;align-items:center;gap:11px;font-size:22px;font-weight:700;display:inline-flex}.brand-icon{color:#fffdf2;background:#496346;border-radius:13px 10px;place-items:center;width:36px;height:36px;font-size:21px;display:grid}.header-tools,.canvas-tools,.panel-title{align-items:center;gap:10px;display:flex}.header-tools .ant-btn{border-radius:22px}.import-screen{place-items:center;min-height:0;padding-block:16px;display:grid}.import-screen>.import-box{width:min(100%,580px)}.import-box{border-radius:20px}.paste-hint{color:var(--muted);white-space:nowrap;font-size:.8125rem}.import-box>.paste-hint{text-align:center;margin-top:12px}.paste-hint kbd{font:inherit;font-family:Cascadia Mono,Consolas,monospace}.slice-dropzone .ant-upload.ant-upload-drag{background:var(--paper);border-color:#97a88f;border-radius:20px}.slice-dropzone .ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover,.slice-dropzone .ant-upload.ant-upload-drag.ant-upload-drag-hover{border-color:var(--sage);background:var(--soft-sage)}.slice-dropzone .ant-upload.ant-upload-drag:focus-within{outline-offset:3px;outline:2px solid #61835f}.slice-dropzone .ant-upload.ant-upload-drag .ant-upload-btn{padding:clamp(18px,6vh,48px) 16px}.dropzone-icon{color:var(--sage);font-size:2rem}.slice-dropzone h2{margin-top:12px;font-size:1.125rem}.slice-dropzone p{color:var(--muted);margin-top:6px;line-height:1.5}.workbench{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:16px;min-height:0;padding-block:14px;display:grid}.workbench.compact{grid-template-columns:minmax(0,1fr)}.workspace,.settings{background:var(--paper);border:1px solid var(--line);border-radius:24px}.workspace{flex-direction:column;align-self:stretch;min-width:0;min-height:0;padding:12px;display:flex;position:relative}.workspace>:not(.stage){flex-shrink:0}.workspace-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;min-height:45px;margin:0 2px 9px;display:flex}.panel-title h3{font-size:.9375rem}.workspace-tools{align-items:center;gap:6px;display:flex}.workspace-tools h2{font-size:.95rem}.canvas-tools{background:#f0efe6;border-radius:22px;gap:2px;padding:3px}.canvas-tools .ant-btn{border-radius:18px;padding-inline:10px}.stage{isolation:isolate;touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair;background-color:#252a23;background-image:radial-gradient(#4b5345 1px,#0000 1px);background-size:19px 19px;border-radius:15px;flex:1;min-height:0;position:relative;overflow:hidden}.stage canvas{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.stage-axis{pointer-events:none;opacity:.35;position:absolute}.axis-x{border-bottom:1px dashed #9ca998;width:100%;top:50%}.axis-y{border-left:1px dashed #9ca998;height:100%;left:50%}.stage-label,.stage-scale{color:#dce1d1;pointer-events:none;background:#282e25;border-radius:6px;padding:5px 8px;font-size:.75rem;position:absolute}.stage-label{top:12px;left:12px}.stage-scale{bottom:12px;right:12px}.crop-frame{z-index:1;cursor:move;border:1px solid #bedcac;position:absolute;box-shadow:0 0 0 200vmax #0d110c73}.crop-frame:after{content:"";pointer-events:none;background:linear-gradient(90deg,#0000 calc(33.333% - .5px),#bedcac38 0 calc(33.333% + .5px),#0000 0 calc(66.666% - .5px),#bedcac38 0 calc(66.666% + .5px),#0000 0),linear-gradient(#0000 calc(33.333% - .5px),#bedcac38 0 calc(33.333% + .5px),#0000 0 calc(66.666% - .5px),#bedcac38 0 calc(66.666% + .5px),#0000 0);position:absolute;inset:0}.crop-handle{z-index:2;place-items:center;width:28px;height:28px;display:grid;position:absolute}.crop-handle:before{content:"";pointer-events:none;background:#d1e8bd;border-radius:2px;width:9px;height:9px;display:block;box-shadow:0 0 0 1px #344331}.crop-handle.nw{cursor:nwse-resize;top:-14px;left:-14px}.crop-handle.ne{cursor:nesw-resize;top:-14px;right:-14px}.crop-handle.sw{cursor:nesw-resize;bottom:-14px;left:-14px}.crop-handle.se{cursor:nwse-resize;bottom:-14px;right:-14px}.center-mode .crop-frame{opacity:.36;pointer-events:none}.center-marker{z-index:2;pointer-events:none;filter:drop-shadow(0 1px 2px #151815);border:1px solid #d4eac6;border-radius:50%;width:19px;height:19px;position:absolute;transform:translate(-50%,-50%)}.center-marker:before,.center-marker:after{content:"";background:#d4eac6;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.center-marker:before{width:26px;height:1px}.center-marker:after{width:1px;height:26px}.stage-caption{color:var(--muted);justify-content:space-between;gap:12px;padding:10px 2px 13px;font-size:.8125rem;line-height:1.55;display:flex}.stage-caption .mono{white-space:nowrap}.mono{font-variant-numeric:tabular-nums;font-family:Cascadia Mono,Consolas,monospace}.filmstrip-head{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding:10px 2px 5px;display:flex}.filmstrip-actions{align-items:center;gap:6px;display:flex}.subtle{color:var(--muted);font-size:.8125rem}.filmstrip{scrollbar-color:#adb6a4 transparent;grid-auto-columns:clamp(122px,24%,172px);grid-auto-flow:column;gap:9px;padding:4px 4px 5px;display:grid;overflow-x:auto}.filmstrip-zone{position:relative}.filmstrip-drop-label{color:#355139;pointer-events:none;background:#e9ede1f2;border:2px dashed #648160;border-radius:12px;place-items:center;font-weight:600;display:grid;position:absolute;inset:0}.thumbnail{border:1px solid var(--line);text-align:left;cursor:pointer;width:100%;min-width:0;color:var(--ink);background:#f6f5ed;border-radius:11px;padding:5px;display:block}.thumbnail:hover{border-color:#788b72}.thumbnail.selected{background:#edf0e5;border-color:#648160}.thumbnail-art{background:#242924;border-radius:6px;place-items:center;height:79px;display:grid;position:relative;overflow:hidden}.thumbnail-art>span{color:#fffdf2;background:#343c32;border-radius:4px;padding:2px 4px;font:.75rem Consolas,monospace;position:absolute;top:5px;left:5px}.preview-image{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.thumbnail-name{text-overflow:ellipsis;white-space:nowrap;margin:6px 2px 2px;font-size:.8125rem;display:block;overflow:hidden}.settings{padding:5px 17px}.step{padding-block:16px}.step+.step{border-top:1px solid var(--line)}.step h2{align-items:center;gap:9px;margin-bottom:14px;font-size:1rem;display:flex}.step-number{color:#405b43;background:var(--soft-sage);border-radius:8px 6px;place-items:center;width:25px;height:25px;font:700 .875rem Georgia,serif;display:grid}.wide{border-radius:20px;width:100%}.auto-button{color:#405b43;background:#e9eee2;border-color:#d1dccd}.image-state{color:var(--muted);align-items:center;gap:6px;margin-top:9px;font-size:.8125rem;display:flex}.image-state .mono{margin-left:auto}.state-dot{background:#9b7442;border-radius:50%;width:7px;height:7px}.state-dot.found{background:#648460}.size-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px;display:grid}.number-field{color:var(--muted);gap:5px;min-width:0;font-size:.8125rem;display:grid}.number-field .ant-input-number{width:100%;font-family:Cascadia Mono,Consolas,monospace}.number-field .ant-input-number-input{padding-inline:8px}.crop-actions{flex-wrap:wrap;justify-content:space-between;gap:2px;margin-top:7px;display:flex}.crop-actions .ant-btn{padding-inline:7px}.export-meta{justify-content:space-between;align-items:center;gap:5px;margin-bottom:12px;font-size:.875rem;display:flex}.fill-note{color:#775330;margin:-3px 0 8px;font-size:.8125rem}.padding-description{color:var(--muted);margin:6px 0 12px}.padding-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.padding-presets .ant-btn{padding-inline:6px}.padding-swatch{border:1px solid #999b90;border-radius:3px;flex:none;width:14px;height:14px;display:inline-block}.checkerboard{background:repeating-conic-gradient(#e5e5df 0% 25%,#fafaf4 0% 50%) 0 0/8px 8px}.thumbnail-art.checkerboard{background-size:12px 12px}.custom-padding{justify-content:space-between;align-items:center;gap:6px;margin-top:14px;display:flex}.custom-padding>:last-child{margin-left:auto}.padding-slice-caption{color:var(--muted);justify-content:space-between;align-items:center;gap:10px;margin:6px 0 8px;display:flex}.padding-slice-caption .mono{flex:none}.padding-slice-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.padding-preview{border-radius:10px;place-items:center;display:grid;overflow:hidden}.padding-preview-canvas{max-width:100%;max-height:min(34dvh,260px);display:block}.padding-preview-canvas.sampling{cursor:crosshair}.padding-sample{flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 12px;display:flex}.padding-sample span[role=status]{color:var(--muted);font-size:.8125rem}.workspace-tour{max-width:calc(100vw - 24px)}.guide-progress{color:var(--muted);font-size:.8125rem}.page[data-tour-anchor=import-box] [data-guide=import-box],.page[data-tour-anchor=append] [data-guide=append],.page[data-tour-anchor=settings] [data-guide=settings],.page[data-tour-anchor=align] [data-guide=align],.page[data-tour-anchor=crop] [data-guide=crop],.page[data-tour-anchor=export] [data-guide=export]{outline-offset:3px;outline:2px solid #648160}@media (width<=1040px){.shell{width:calc(100% - 48px)}.workbench{grid-template-columns:minmax(0,1fr) 286px;gap:12px}}@media (width<=690px){.shell{width:calc(100% - 28px)}.workspace{padding:10px}.ant-btn-sm{min-height:36px}}@media (width<=620px){.workspace-tour{max-width:min(248px,100vw - 24px)}.brand{gap:6px;font-size:1.125rem}.brand-icon{width:30px;height:30px;font-size:17px}.header-inner{gap:5px}.header-tools{gap:2px}.header-tools .ant-btn{min-width:34px;padding-inline:7px}.header-action-label,.filmstrip-action-label,.clear-action-label{display:none}.canvas-tools .ant-btn{padding-inline:7px}.panel-title{gap:5px}}@media (width<=360px){.brand{font-size:1rem}.brand-icon,.header-tools .ant-btn-primary .ant-btn-icon{display:none}}@media (height<=630px){.workbench{padding-block:8px}.workspace{padding:8px}.workspace-header{min-height:38px;margin-bottom:5px}.stage-caption{padding-block:5px}.filmstrip-head{padding-block:2px}.thumbnail-art{height:52px}.settings .step{padding-block:12px}.settings .step h2{margin-bottom:9px}}@media (height<=480px){.stage-caption[data-mode=crop]{display:none}.filmstrip-head{margin-top:5px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
