:root{color:#1f2933;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f6f8f7;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}.app-shell{min-height:100vh;padding:20px;position:relative}.app-shell.dragging-files .preview-panel,.app-shell.dragging-files .controls-panel{filter:saturate(.78);opacity:.58}.media-drop-overlay{z-index:40;pointer-events:none;color:#174831;background:#f4faf6e6;border:2px dashed #146c53;border-radius:8px;place-items:center;display:grid;position:absolute;inset:0}.media-drop-overlay div{background:#fff;border:1px solid #b7d1c4;border-radius:8px;place-items:center;gap:8px;padding:20px 24px;display:grid;box-shadow:0 18px 48px #1c2b232e}.media-drop-overlay strong{font-size:18px}.media-drop-overlay span{color:#5d6c64;font-size:13px;font-weight:700}.topbar{justify-content:space-between;align-items:center;gap:16px;min-height:64px;margin-bottom:16px;display:flex}.brand-lockup{align-items:center;gap:12px;min-width:0;display:flex}.brand-logo{border-radius:14px;flex:none;width:52px;height:52px}.topbar h1{color:#15201b;letter-spacing:0;margin:0;font-size:28px;line-height:1.1}.topbar p{color:#6b766f;margin:5px 0 0;font-size:14px}.status-strip{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:680px;display:flex}.status-strip span,.status-strip strong{color:#56635c;background:#fff;border:1px solid #d8dfdb;border-radius:6px;align-items:center;min-height:32px;padding:0 10px;font-size:13px;font-weight:600;display:inline-flex}.status-strip strong{color:#174831;background:#eaf5ef;border-color:#acc9bb}.activity-progress{color:#405048;background:#fff;border:1px solid #d8dfdb;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin:-4px 0 16px;padding:10px 12px;font-size:13px;font-weight:800;display:grid;box-shadow:0 8px 22px #2d3f3512}.activity-progress span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.activity-progress strong{color:#173f31;font-size:12px}.progress-track{background:#e4ebe7;border-radius:999px;grid-column:1/-1;height:7px;overflow:hidden}.progress-track div{border-radius:inherit;background:#146c53;height:100%;transition:width .18s}.workspace{grid-template-columns:minmax(260px,320px) minmax(420px,1fr) minmax(300px,360px);gap:16px;min-height:calc(100vh - 116px);display:grid}.panel,.preview-panel{background:#fff;border:1px solid #d8dfdb;border-radius:8px;min-width:0;box-shadow:0 10px 28px #2d3f3514}.media-panel,.controls-panel{flex-direction:column;display:flex;overflow:hidden}.media-panel{position:relative}.drop-zone{color:#305640;text-align:center;background:#f4faf6;border:1px dashed #9db6aa;border-radius:8px;place-items:center;gap:12px;min-height:176px;margin:14px;padding:18px;transition:border-color .16s,background .16s,box-shadow .16s,color .16s;display:grid}.drop-zone input{display:none}.drop-zone strong{color:#1f3d2f;font-size:15px}.primary-button,.secondary-button,.export-actions button{color:#fff;background:#146c53;border:0;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:0 14px;font-weight:700;display:inline-flex}.secondary-button{color:#3d4d44;background:#fff;border:1px solid #d8dfdb}.primary-button:hover,.export-actions button:hover:not(:disabled){background:#0f5d48}.secondary-button:hover:not(:disabled){background:#f2f7f4;border-color:#98b4a7}.list-header,.section-title,.preview-toolbar{color:#25352d;border-bottom:1px solid #e3e8e5;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:0 14px;font-size:14px;font-weight:800;display:flex}.icon-button,.remove-row{color:#4d5c54;background:#fff;border:1px solid #d8dfdb;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.icon-button:hover,.remove-row:hover{color:#a72943;border-color:#c9435f}.image-list{align-content:start;gap:8px;min-height:0;padding:10px;display:grid;overflow:auto}.image-row{text-align:left;background:#fff;border:1px solid #e1e7e3;border-radius:8px;grid-template-columns:28px 48px minmax(0,1fr) 32px;align-items:center;gap:10px;width:100%;min-height:64px;padding:8px;display:grid;position:relative}.image-row:hover,.image-row.selected{background:#f0f8f4;border-color:#87b29d}.image-row.dragging{opacity:.58;border-style:dashed}.image-row.drop-before:before,.image-row.drop-after:after{content:"";background:#146c53;border-radius:999px;height:3px;position:absolute;left:8px;right:8px;box-shadow:0 0 0 2px #d8f0e3}.image-row.drop-before:before{top:-6px}.image-row.drop-after:after{bottom:-6px}.drag-handle{color:#7a8880;cursor:grab;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;width:28px;height:48px;display:inline-flex}.drag-handle:hover,.drag-handle:focus-visible{color:#12614b;background:#e7f1ec;outline:none}.drag-handle:active{cursor:grabbing}.image-row img{object-fit:cover;background:#edf1ee;border-radius:6px;width:48px;height:48px}.image-row span{gap:5px;min-width:0;display:grid}.image-row strong,.preview-toolbar span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.image-row strong{color:#26342d;font-size:13px}.image-row small{color:#69756f;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.empty-state,.preview-placeholder{color:#7b8781;place-items:center;gap:10px;font-weight:700;display:grid}.empty-state{min-height:180px}.preview-panel{grid-template-rows:44px minmax(0,1fr);display:grid;overflow:hidden}.preview-toolbar{background:#fff}.preview-toolbar span:last-child{color:#69756f;font-size:13px;font-weight:700}.preview-stage{background-color:#fbfcfb;background-image:linear-gradient(45deg,#edf1ee 25%,#0000 25%),linear-gradient(-45deg,#edf1ee 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#edf1ee 75%),linear-gradient(-45deg,#0000 75%,#edf1ee 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-repeat:repeat,repeat,repeat,repeat;background-size:20px 20px;background-attachment:scroll,scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;justify-content:center;align-items:center;min-height:420px;padding:18px;display:flex;position:relative;overflow:auto}.preview-tools{z-index:2;background:#ffffffeb;border:1px solid #1f242729;border-radius:8px;gap:6px;padding:5px;display:inline-flex;position:absolute;top:12px;left:12px;box-shadow:0 10px 26px #1c2b2329}.preview-tools button{color:#fff;background:#2f3437;border:0;border-radius:6px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.preview-tools button:hover:not(:disabled){background:#1f2427}.preview-stage img{background:#fff;border:1px solid #1e302724;border-radius:4px;max-width:100%;max-height:calc(100vh - 180px);display:block;box-shadow:0 18px 48px #1c2b2329}.preview-placeholder{background:#ffffffc7;border:1px solid #dbe2de;border-radius:8px;width:min(440px,100%);min-height:260px}.controls-panel{overflow-y:auto}.control-section{border-bottom:1px solid #e3e8e5;gap:12px;padding:14px;display:grid}.control-section:last-child{border-bottom:0}.field,.range-field{color:#46554d;gap:7px;font-size:13px;font-weight:700;display:grid}.field input:not([type=color]),.field select{color:#23342b;background:#fff;border:1px solid #d5ddd8;border-radius:6px;width:100%;min-height:38px;padding:0 10px}.field input[type=color]{background:#fff;border:1px solid #d5ddd8;border-radius:6px;width:100%;height:38px;padding:3px}.inline-fields{grid-template-columns:1fr 1fr;gap:10px;display:grid}.segmented{background:#f3f6f4;border:1px solid #d5ddd8;border-radius:8px;grid-template-columns:1fr 1fr;gap:6px;padding:4px;display:grid}.compact-segmented{padding:3px}.segmented button,.position-grid button{color:#516058;background:0 0;border:0;border-radius:6px;min-height:34px;font-weight:800}.segmented button.active,.position-grid button.active{color:#12614b;background:#fff;box-shadow:0 2px 8px #2d3f351a}.position-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.position-grid button{border:1px solid #d5ddd8}.range-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.range-heading>span{align-items:baseline;gap:8px;min-width:0;display:flex}.range-field strong{color:#173f31;font-size:12px}.range-field small{color:#6d7a72;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;line-height:1.35;overflow:hidden}.range-value{text-align:right;white-space:nowrap;min-width:58px}.range-field input{accent-color:#146c53;width:100%}.range-field input:disabled{cursor:not-allowed;opacity:.45}.export-actions{grid-template-columns:1fr;gap:8px;display:grid}.export-name-field{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}.export-name-field span{white-space:nowrap}.export-actions button{background:#304c89;width:100%}.export-actions button:hover:not(:disabled){background:#263e72}.export-actions button:nth-child(2){background:#146c53}.export-actions button:nth-child(2):hover:not(:disabled){background:#0f5d48}.pdf-export-row{grid-template-columns:minmax(0,1fr) 42px;gap:8px;display:grid}.pdf-export-row button:first-child{background:#9b3b50}.pdf-export-row button:first-child:hover:not(:disabled){background:#823043}.export-actions .pdf-export-row .pdf-settings-button{color:#fff;background:#2f3437;border:1px solid #2f3437;width:42px;min-width:42px;padding:0}.export-actions .pdf-export-row .pdf-settings-button:hover:not(:disabled){background:#1f2427;border-color:#1f2427}@media (width>=1181px){.workspace{height:calc(100vh - 116px);min-height:0}.panel,.preview-panel{min-height:0}.controls-panel{max-height:100%}.export-section{z-index:3;background:#fff;border-top:1px solid #d7e0da;margin-top:auto;position:sticky;bottom:0;box-shadow:0 -12px 28px #2d3f3514}}.modal-backdrop{z-index:20;background:#11182770;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border:1px solid #d8dfdb;border-radius:8px;grid-template-rows:auto minmax(0,1fr) auto;width:min(460px,100%);max-height:calc(100vh - 40px);display:grid;overflow:hidden;box-shadow:0 24px 70px #1118273d}.pdf-import-modal{width:min(560px,100%)}.modal-header,.modal-actions{justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.modal-header{border-bottom:1px solid #e3e8e5}.modal-header h2{color:#1e2f26;letter-spacing:0;margin:0;font-size:18px;line-height:1.2}.modal-body{gap:14px;min-width:0;padding:14px;display:grid;overflow:auto}.pdf-summary{color:#53615a;gap:6px;font-size:13px;display:grid}.pdf-summary strong{color:#1e2f26;text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.pdf-summary span{color:#68766f;font-weight:700}.pdf-summary p{color:#315143;margin:0;line-height:1.5}.pdf-choice-list{gap:8px;display:grid}.pdf-choice-list button{color:#2d3d35;text-align:left;background:#fff;border:1px solid #d8dfdb;border-radius:8px;gap:6px;min-height:72px;padding:12px;display:grid}.pdf-choice-list button:hover:not(:disabled),.pdf-choice-list button.active{background:#f0f8f4;border-color:#72aa91}.pdf-choice-list button>span{justify-content:space-between;align-items:center;gap:10px;display:flex}.pdf-choice-list strong{color:#1e2f26;font-size:14px}.pdf-choice-list small{color:#66736d;font-size:12px;line-height:1.45}.pdf-choice-list em{color:#12614b;background:#dff1e8;border-radius:999px;flex:none;min-height:22px;padding:2px 7px;font-size:12px;font-style:normal;font-weight:800}.modal-actions{border-top:1px solid #e3e8e5}.modal-actions button{min-width:128px}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1180px){.workspace{grid-template-columns:300px minmax(0,1fr)}.controls-panel{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));display:grid;overflow:visible}.control-section{border-right:1px solid #e3e8e5}}@media (width<=760px){.app-shell{padding:12px}.topbar{flex-direction:column;align-items:stretch}.brand-logo{width:48px;height:48px}.status-strip{justify-content:flex-start}.workspace,.controls-panel{grid-template-columns:1fr}.preview-stage{min-height:320px;padding:10px}.preview-stage img{max-height:62vh}.control-section{border-right:0}.modal-backdrop{align-items:end;padding:10px}.modal-actions{grid-template-columns:1fr;display:grid}.modal-actions button{width:100%}}
