:root{font-family:SF Pro Text,PingFang SC,Microsoft YaHei,Arial,sans-serif;color:#202326;background:#dfe2e3;font-synthesis:none;letter-spacing:0}*{box-sizing:border-box}body{margin:0;min-width:1040px;min-height:100vh;background:#dfe2e3}button,input{font:inherit}button{letter-spacing:0}button:focus-visible,input:focus-visible,label.file-button:focus-within{outline:3px solid rgba(16,122,75,.26);outline-offset:2px}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{height:68px;flex:0 0 auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between;color:#f7f7f5;background:#292d2f;border-bottom:3px solid #107a4b}.app-header h1{margin:0;font-size:19px;line-height:1.2;font-weight:680}.app-header p{margin:4px 0 0;color:#b8bdc0;font-size:12px}.status-line{display:flex;align-items:center;gap:8px;font-size:13px;color:#d9dcde}.status-dot{width:8px;height:8px;border-radius:50%;background:#7e8589}.status-dot.ready{background:#47c783;box-shadow:0 0 0 4px #47c78321}.notice{min-height:38px;padding:9px 22px;font-size:13px;border-bottom:1px solid}.notice.warning{color:#684d12;background:#fff4cf;border-color:#e6cc72}.notice.error{color:#7b2020;background:#ffe5e2;border-color:#df9992}.mode-tabs{height:46px;flex:0 0 auto;display:flex;align-items:end;padding:0 22px;gap:4px;background:#f8f8f6;border-bottom:1px solid #bdc2c4}.mode-tabs button{min-width:116px;height:38px;border:0;border-bottom:3px solid transparent;color:#5c6467;background:transparent;font-weight:650;cursor:pointer}.mode-tabs button.active{color:#0d7044;border-bottom-color:#107a4b}.workbench{flex:1;min-height:0;display:grid;grid-template-columns:250px minmax(500px,1fr) 330px}.control-panel,.sheet-panel{background:#f8f8f6;min-height:0}.control-panel{padding:16px;border-right:1px solid #bdc2c4;display:flex;flex-direction:column;overflow-y:auto}.file-button,.export-button{min-height:42px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #8f9699;border-radius:4px;cursor:pointer;font-weight:650}.file-button{background:#fff;color:#25292b}.file-button:hover{background:#f0f2f1}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.file-name{margin:8px 2px 4px;color:#687074;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tool-section{padding:17px 0;border-top:1px solid #d7dadb}.tool-section:first-of-type{margin-top:8px}.tool-section h2,.sheet-heading h2{margin:0;font-size:14px;font-weight:700}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.icon-button,.page-controls button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #b9bec0;border-radius:4px;background:#fff;color:#3d4447;cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two-columns label,.bounds-grid label,.range-field{color:#555d61;font-size:12px}.two-columns input,.bounds-grid input{width:100%;height:34px;margin-top:6px;padding:0 8px;border:1px solid #b8bec1;border-radius:3px;background:#fff}.bounds-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin-top:12px;padding-top:12px;border-top:1px solid #e0e2e2}.range-field{display:block;margin-top:14px}.range-field span{display:flex;justify-content:space-between}.range-field output{color:#282d2f;font-variant-numeric:tabular-nums}.range-field input{width:100%;accent-color:#107a4b}.spec-row{display:flex;justify-content:space-between;margin-top:11px;font-size:12px;color:#687074}.spec-row strong{color:#252a2c;font-weight:650}.segmented{display:grid;grid-template-columns:1fr 1fr;margin-top:15px;border:1px solid #adb3b6;border-radius:4px;overflow:hidden}.segmented button{min-height:34px;border:0;background:#fff;color:#4c5356;cursor:pointer}.segmented button+button{border-left:1px solid #adb3b6}.segmented button.active{color:#fff;background:#107a4b}.switch-row{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13px}.switch-row input{width:16px;height:16px;accent-color:#107a4b}.panel-spacer{flex:1;min-height:12px}.export-button{width:100%;border-color:#0b6840;color:#fff;background:#107a4b}.export-button:hover:not(:disabled){background:#0c6a40}.export-note{margin:8px 0 0;text-align:center;color:#747b7e;font-size:11px}.control-help{margin:10px 0 0;color:#71787b;font-size:11px;line-height:1.55}.crop-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:#4b5053}.workspace-toolbar{height:46px;padding:0 16px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;color:#eef0ef;background:#393e40;border-bottom:1px solid #62686b;font-size:13px}.workspace-toolbar strong{margin-right:12px}.workspace-toolbar span{color:#bfc5c7;font-size:12px}.canvas-stage{flex:1;min-height:500px;padding:28px;display:flex;align-items:center;justify-content:center;overflow:auto;background-color:#565b5e;background-image:linear-gradient(45deg,#515659 25%,transparent 25%),linear-gradient(-45deg,#515659 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#515659 75%),linear-gradient(-45deg,transparent 75%,#515659 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.drop-empty{width:min(480px,80%);padding:54px 30px;text-align:center;color:#e6e8e8;border:1px dashed #b3b9bb;background:#2b2f31b8}.drop-empty svg{color:#56d092}.drop-empty h2{margin:16px 0 8px;font-size:19px}.drop-empty p{margin:0;color:#c0c5c7;font-size:13px;line-height:1.7}.source-frame{position:relative;max-width:100%;max-height:calc(100vh - 150px);line-height:0;box-shadow:0 12px 34px #00000052}.source-frame img{display:block;max-width:100%;max-height:calc(100vh - 150px);object-fit:contain;background:#fff}.crop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.crop-cell{position:absolute;border:2px solid #36e48d;box-shadow:inset 0 0 0 1px #00000047}.crop-cell span{position:absolute;left:4px;top:4px;min-width:20px;height:20px;padding:0 4px;display:grid;place-items:center;color:#10251b;background:#65efa6;font:700 11px/1 Arial,sans-serif}.selection-frame{position:absolute;z-index:5;border:2px solid #ffd34e;box-shadow:0 0 0 1px #14141480;pointer-events:none}.bound-handle{position:absolute;z-index:6;margin:0;padding:0;border:0;border-radius:0;background:transparent;pointer-events:auto}.bound-handle:after{content:"";position:absolute;background:#ffe277;box-shadow:0 0 0 1px #14141499}.bound-handle.top,.bound-handle.bottom{left:0;right:0;height:14px;cursor:row-resize}.bound-handle.top{top:-7px}.bound-handle.bottom{bottom:-7px}.bound-handle.top:after,.bound-handle.bottom:after{left:45%;right:45%;top:5px;height:4px;min-width:34px}.bound-handle.left,.bound-handle.right{top:0;bottom:0;width:14px;cursor:col-resize}.bound-handle.left{left:-7px}.bound-handle.right{right:-7px}.bound-handle.left:after,.bound-handle.right:after{top:45%;bottom:45%;left:5px;width:4px;min-height:34px}.bound-handle:hover:after,.bound-handle:focus-visible:after{background:#fff0a7}.separator-handle{position:absolute;z-index:4;margin:0;padding:0;border:0;border-radius:0;background:#ffffff03;pointer-events:auto}.separator-handle:after{content:"";position:absolute;background:#ffcf4a;box-shadow:0 0 0 1px #1e1e1e59;opacity:.78}.separator-handle.vertical{top:0;bottom:0;width:12px;transform:translate(-6px);cursor:col-resize}.separator-handle.vertical:after{top:0;bottom:0;left:5px;width:2px}.separator-handle.horizontal{left:0;right:0;height:12px;transform:translateY(-6px);cursor:row-resize}.separator-handle.horizontal:after{left:0;right:0;top:5px;height:2px}.separator-handle:hover:after,.separator-handle:focus-visible:after{opacity:1;background:#ffe17d}.composer-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:#e8eaeb}.composer-empty{flex:1;min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#5d6669;border:2px dashed #aeb5b8;margin:28px;background:#f6f7f6}.composer-empty svg{color:#168052}.composer-empty h2{margin:15px 0 7px;font-size:19px}.composer-empty p{margin:0;font-size:13px}.composer-list{flex:1;min-height:0;overflow-y:auto;padding:16px}.composer-item{min-height:94px;display:grid;grid-template-columns:32px 26px 64px minmax(120px,1fr) auto 34px;gap:10px;align-items:center;margin-bottom:8px;padding:9px;background:#fff;border:1px solid #c4c9cb;border-radius:4px;box-shadow:0 1px 2px #0000000d}.composer-item.dragging{z-index:20;box-shadow:0 8px 24px #0003}.drag-handle,.remove-card,.quantity-control button{display:grid;place-items:center;border:1px solid #c1c6c8;border-radius:3px;color:#5b6366;background:#fff;cursor:pointer}.drag-handle{width:30px;height:42px;touch-action:none;cursor:grab}.drag-handle:active{cursor:grabbing}.composer-index{color:#5f676a;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.composer-item>img{width:58px;height:76px;object-fit:contain;background:#f0f1f0;border:1px solid #d0d4d5}.composer-item-info{min-width:0;display:flex;flex-direction:column;gap:6px}.composer-item-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.composer-item-info span{color:#7a8184;font-size:11px}.quantity-control{display:grid;grid-template-columns:30px 34px 30px;align-items:center}.quantity-control button{width:30px;height:30px}.quantity-control output{text-align:center;font-weight:700;font-variant-numeric:tabular-nums}.remove-card{width:32px;height:32px;color:#8b3b36}.remove-card:hover{color:#fff;background:#a8463f;border-color:#a8463f}.sheet-panel{padding:16px;border-left:1px solid #bdc2c4;overflow-y:auto}.sheet-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.sheet-heading span{font-size:12px;color:#656d71;font-variant-numeric:tabular-nums}.paper-wrap{padding:14px;background:#e4e6e6;border:1px solid #c3c7c9}.paper-wrap canvas{display:block;width:100%;height:auto;background:#fff;box-shadow:0 3px 12px #0000002e}.page-controls{display:flex;align-items:center;justify-content:space-between;margin:12px 0 18px}.page-controls span{color:#5f676a;font-size:12px}.sheet-specs{margin:0;padding-top:12px;border-top:1px solid #d5d8d9}.sheet-specs div{display:flex;justify-content:space-between;margin:9px 0;font-size:12px}.sheet-specs dt{color:#71787b}.sheet-specs dd{margin:0;color:#282d2f;font-weight:650}@media (max-width: 1180px){body{min-width:920px}.workbench{grid-template-columns:230px minmax(470px,1fr) 280px}.sheet-panel{padding:12px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important}}
