:root{color:#f5f1e8;background:#171613;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box;letter-spacing:0}html{min-height:100%}body{min-width:320px;min-height:100vh;margin:0;background:linear-gradient(180deg,rgba(255,255,255,.03),transparent 280px),#171613}button,input,a{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{border:0}a{color:inherit;text-decoration:none}.app-shell{width:min(1440px,100%);min-height:100vh;margin:0 auto;padding:24px}.app-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:8px 2px 20px}.app-kicker,.drop-zone__eyebrow,.preview-panel__header p,.section-heading p{margin:0 0 6px;color:#9c9587;font-size:.78rem;font-weight:700;text-transform:uppercase}.app-header h1,.drop-zone h2,.preview-panel__header h2{margin:0;line-height:1.1}.app-header h1{font-size:2.25rem;font-weight:760}.header-status{display:inline-flex;align-items:center;gap:10px;min-height:38px;padding:0 12px;border:1px solid rgba(245,241,232,.12);border-radius:8px;background:#211f1a;color:#cbc2b0;font-size:.92rem}.header-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px}.header-status strong{color:#f0b44c}.page-nav{display:inline-flex;gap:4px;min-height:38px;padding:3px;border:1px solid rgba(245,241,232,.12);border-radius:8px;background:#191814}.page-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:86px;padding:0 10px;border-radius:6px;color:#aaa292;font-size:.9rem;font-weight:760}.page-nav a.is-active{background:#2b2821;color:#f7f1e5}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}.preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-height:calc(100vh - 128px)}.preview-panel,.control-panel{border:1px solid rgba(245,241,232,.12);border-radius:8px;background:#211f1a;box-shadow:0 18px 50px #00000038}.preview-panel{display:flex;min-height:560px;overflow:hidden;flex-direction:column}.preview-panel__header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px;padding:16px 18px;border-bottom:1px solid rgba(245,241,232,.1)}.preview-panel__header h2{color:#f7f1e5;font-size:1rem}.preview-panel__header strong{flex:0 0 auto;color:#63d8bf;font-size:.95rem}.preview-panel__stage{position:relative;display:grid;min-height:0;flex:1;place-items:center;overflow:hidden;background-color:#151411;background-image:linear-gradient(45deg,rgba(255,255,255,.035) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.035) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.035) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.035) 75%);background-position:0 0,0 12px,12px -12px,-12px 0;background-size:24px 24px}.preview-image{display:block;width:auto;max-width:calc(100% - 32px);height:auto;max-height:calc(100% - 32px);object-fit:contain;box-shadow:0 14px 40px #00000047}.preview-empty{display:grid;width:min(260px,calc(100% - 48px));aspect-ratio:4 / 3;place-items:center;border:1px dashed rgba(245,241,232,.2);border-radius:8px;color:#857e72;font-weight:700}.preview-busy{position:absolute;right:16px;bottom:16px;padding:8px 10px;border-radius:8px;background:#171613db;color:#f0b44c;font-size:.88rem;font-weight:700}.control-panel{position:sticky;top:18px;display:flex;flex-direction:column;gap:18px;padding:18px}.drop-zone{min-height:174px;padding:18px;border:1px dashed rgba(245,241,232,.22);border-radius:8px;background:#191814;transition:border-color .16s ease,background-color .16s ease}.drop-zone.is-dragging{border-color:#63d8bf;background:#1d2823}.drop-zone__content{display:flex;height:100%;min-height:136px;flex-direction:column;justify-content:space-between;gap:20px}.drop-zone h2{overflow-wrap:anywhere;color:#f7f1e5;font-size:1.15rem}.drop-zone__actions{display:flex;flex-wrap:wrap;gap:10px}.file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:8px;font-weight:760;cursor:pointer;transition:transform .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease}.button:hover{transform:translateY(-1px)}.button--primary{background:#63d8bf;color:#11110f}.button--ghost{border:1px solid rgba(245,241,232,.14);background:transparent;color:#f5f1e8}.button--download{width:100%;background:#f0b44c;color:#16130d}.button.is-disabled{pointer-events:none;background:#4d473c;color:#9c9587}.quality-control,.metrics{padding:16px;border:1px solid rgba(245,241,232,.1);border-radius:8px;background:#191814}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading strong{color:#63d8bf;font-size:1.25rem}.quality-slider{width:100%;height:6px;margin:0;border-radius:999px;accent-color:#63d8bf;cursor:pointer}.fixed-quality-bar{height:8px;overflow:hidden;border-radius:999px;background:#302c25}.fixed-quality-bar span{display:block;height:100%;border-radius:inherit;background:#63d8bf}.quality-scale{display:flex;justify-content:space-between;margin-top:12px;color:#8f8779;font-size:.82rem;font-weight:700}.metrics{display:grid;gap:12px}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}.metric-row span{color:#aaa292}.metric-row strong{color:#f7f1e5}.error-message{margin:0;padding:10px 12px;border:1px solid rgba(255,113,91,.38);border-radius:8px;background:#ff715b1a;color:#ffb0a3;font-weight:700}@media (max-width: 1120px){.workspace{grid-template-columns:1fr}.control-panel{position:static;order:-1}}@media (max-width: 760px){.app-shell{padding:16px}.app-header{align-items:flex-start;flex-direction:column;gap:14px}.header-actions{justify-content:flex-start}.app-header h1{font-size:1.75rem}.preview-grid{grid-template-columns:1fr;min-height:auto}.preview-panel{min-height:430px}.control-panel{padding:14px}}
