.app{width: min(1280px, calc(100% - 32px));margin: 22px auto 20px;background:#fffdf8;border:1px solid #e2d8c8;border-radius:14px;box-shadow:0 8px 30px rgba(20,30,50,.08);display:flex;flex-direction:column;overflow:}
.intro{padding: 16px 18px 12px;}
h1{font-size: 20px; margin: 0 0 5px;}
.intro p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}
.panel{width: 1240px; margin: 20px auto 20px; background: #fffdf8; border: 1px solid #e2d8c8;border-radius:14px;box-shadow:0 5px 22px #00000008;padding:22px}
.dropzone{border:2px dashed #c8c8c8;border-radius:12px;min-height:220px;padding:28px 16px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fcfcfc;transition:.15s}
.dropzone.dragover{border-color:#111;background:#f0f0f0}
.upload-inner{max-width:440px}
.upload-icon{width:52px;height:52px;margin:0 auto 12px;border-radius:50%;background:#ededed;display:grid;place-items:center;font-size:25px}
.dropzone h2{font-size:19px;margin:0 0 5px}
.dropzone p{font-size:14px;color:#777;margin:0 0 16px}
button,.file-button{font:inherit;cursor:pointer;border-radius:8px;padding:10px 17px;background:#c45c26;color:#fff;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button:hover,.file-button:hover{background:#9a4014}
button:disabled{opacity:.45;cursor:not-allowed}
input[type=file]{display:none}
.note{font-size:12px;color:#888;margin-top:12px}
.status{margin:16px 0 0;font-size:14px;color:#555;min-height:22px;text-align:center}
.progress-wrap{height:5px;background:#eee;border-radius:10px;overflow:hidden;margin:10px auto 0;max-width:400px;display:none}
.progress{height:100%;width:0;background:#111;transition:width .2s}
.results{display:none;margin-top:22px}
.result-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.result-head h2{font-size:20px;margin:0}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.secondary{background:#fff;color:#111;border-color:#ccc}
.secondary:hover{background:#f3f3f3}
.preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.preview-card{border:1px solid #e3e3e3;border-radius:10px;overflow:hidden;min-width:0}
.preview-title{font-size:13px;font-weight:700;padding:10px 12px;border-bottom:1px solid #e8e8e8;background:#fff}
.preview-area{height:320px;display:flex;align-items:center;justify-content:center;padding:12px;background-color:#fafafa;background-image:linear-gradient(45deg,#e7e7e7 25%,transparent 25%),linear-gradient(-45deg,#e7e7e7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7e7e7 75%),linear-gradient(-45deg,transparent 75%,#e7e7e7 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.preview-area img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.before-area{background:#f2f2f2;background-image:none}
.tips{width: 1240px; margin: 20px auto 20px; background: #fffdf8; border: 1px solid #e2d8c8;border-radius:12px;padding:18px 20px}
.tips h2{font-size:17px;margin:0 0 8px}
.tips ul{margin:0;padding-left:20px;color:#666;font-size:14px}
.tips li+li{margin-top:5px}
@media(max-width:760px){
.panel, .tips{width: min(760px, calc(100% - 32px)); margin: 20px auto 20px; }
}
@media(max-width:420px){
.panel, .tips{width: min(420px, calc(100% - 20px)); margin: 20px auto 20px; }
}
@media(max-width:640px){.dropzone{min-height:200px;padding:22px 10px}.preview-grid{grid-template-columns:1fr}.preview-area{height:270px}.result-head{align-items:flex-start}.actions{width:100%}.actions button{flex:1}.nav{padding:13px 15px}}