:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#2d3932;background:#f5f4ee;--green:#315c45;--line:#e3e6dc}*{box-sizing:border-box}body{margin:0}main{max-width:1260px;margin:auto;padding:44px 32px}header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:3px;color:#788475}h1{font-family:Georgia,"Microsoft YaHei",serif;font-size:36px;font-weight:500;margin:15px 0}p{line-height:1.8;color:#7d847b;font-size:13px}header p{margin:0}.connection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:flex-end}#badge{font-size:12px;color:#8c8e81}button{font:inherit;font-size:13px;border:none;border-radius:8px;padding:12px 17px;cursor:pointer;background:var(--green);color:#fff;white-space:nowrap}button:hover{filter:brightness(.94)}button:disabled{opacity:.42;cursor:not-allowed}.quiet{background:#edf1e9;color:#4a6050}.layout{display:grid;grid-template-columns:410px 1fr;gap:22px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px}h2{font-size:15px;font-weight:600;margin:0 0 22px}h2>span{font-size:12px;letter-spacing:1px;color:#8a9989;margin-right:10px}.drop{display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #aab9a2;border-radius:10px;background:#f8faf5;min-height:104px;cursor:pointer;gap:9px}.drop.over{background:#dce9d8}.drop strong{font-size:13px;font-weight:500}.drop small{font-size:11px;color:#909589}.caption{font-size:11px;color:#91978e;line-height:1.8}#filename{overflow-wrap:anywhere;margin:9px 0 18px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-size:12px;color:#5b695b;margin:0 0 16px}select{display:block;width:100%;font:inherit;font-size:12px;padding:10px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#425243;margin-top:8px}input[type=range]{width:100%;display:block;accent-color:var(--green);margin:12px 0 0;height:4px}output{float:right;color:#8b9487;font-size:11px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.actions button{flex:1}.primary{width:100%;margin-top:10px;padding:15px;letter-spacing:1px}#status{background:#f1f4ed;color:#6e7e68;font-size:12px;line-height:1.8;border-radius:8px;padding:12px 14px;margin-top:14px;overflow-wrap:anywhere}#status.error{background:#fff0ec;color:#9c4738}progress{width:100%;height:6px;margin-top:15px;accent-color:var(--green)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-head h2{margin:0}.section-head .quiet{padding:9px 13px;font-size:11px}.mat{margin-top:20px;background:#f1f0e9;border:1px solid #ebece3;border-radius:10px;min-height:510px;display:flex;align-items:center;justify-content:center;padding:28px;overflow:hidden}canvas{max-width:100%;max-height:580px;box-shadow:0 8px 28px #2634231c;touch-action:none;cursor:grab;object-fit:contain}canvas.dragging{cursor:grabbing}#empty{text-align:center;font-size:14px;color:#99a08f}#empty small{display:block;font-size:11px;margin-top:12px}.empty-icon{font-size:50px;margin-bottom:18px;color:#b6bcae}.preview-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:8px}.swatches{display:flex;align-items:center;gap:7px}.swatches i{width:14px;height:14px;border-radius:50%;border:1px solid #ddd}.swatches span{font-size:10px;color:#90978c;margin-left:6px}.library{margin-top:22px}.library h2 small{margin-left:9px;font-weight:400;color:#8d9987}.library .section-head{align-items:flex-start}.library .section-head p{margin-bottom:0}.library .actions{margin:0;flex-wrap:nowrap}.library select{width:auto;margin:0}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;margin-top:20px}.photo{border:1px solid var(--line);border-radius:10px;overflow:hidden;padding:8px;min-width:0}.photo img{width:100%;height:125px;object-fit:contain;background:#f5f5ef;border-radius:6px}.photo p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:6px 0;font-size:11px}.photo .actions{margin:6px 0 0;gap:5px}.photo button{padding:8px;font-size:11px}.photo.active{border-color:#60866a}footer{font-size:10px;color:#99a08f;display:flex;justify-content:space-between;padding-top:24px;letter-spacing:1px}@media(max-width:1000px){.layout{grid-template-columns:360px 1fr}.mat{min-height:420px;padding:16px}.library .section-head{flex-direction:column}h1{font-size:30px}}@media(max-width:740px){main{padding:25px 14px}header{align-items:flex-start;flex-direction:column}.connection{justify-content:flex-start}.layout{grid-template-columns:1fr}.card{padding:20px}.preview-card{grid-row:1}.mat{min-height:260px}.library .actions{flex-wrap:wrap}.preview-footer{flex-wrap:wrap}footer{line-height:1.8;gap:15px}h1{font-size:28px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

input:not([type=range]):not([type=file]){display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:7px;padding:11px;font:inherit;color:#425243;background:white}.setup-link{font-size:13px;color:var(--green);text-decoration:none;white-space:nowrap}
