:root{color-scheme:light;font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #f5f6f8;--surface: #ffffff;--surface-2: #eef2f6;--line: #d7dee8;--line-strong: #aeb9c8;--text: #16191d;--text-2: #56606d;--text-3: #7f8997;--green: #16735f;--green-bg: #e6f5f0;--green-border: #a9dcca;--blue: #2c67c7;--blue-bg: #e8f0ff;--amber: #a76516;--amber-bg: #fff2d9;--radius: 8px}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--bg)}body{min-height:100%;margin:0;color:var(--text);background:var(--bg)}body,button,input{font:inherit}button,input{color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}#root{min-height:100dvh}.app-shell{display:grid;width:min(1440px,100%);min-height:100dvh;margin:0 auto;padding:14px;grid-template-rows:auto minmax(330px,1fr) auto auto;gap:10px}.topbar{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.brand{display:inline-flex;min-width:0;align-items:center;gap:10px}.brand-mark{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:var(--radius);color:#fff;background:var(--text);font-size:.95rem;font-weight:900;line-height:1}.brand-copy{display:flex;min-width:0;flex-direction:column;gap:1px}.brand-name{font-size:1.02rem;font-weight:850;line-height:1.2;letter-spacing:0}.brand-sub{color:var(--text-3);font-size:.72rem;font-weight:700}.top-actions,.status-actions{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:7px}.file-input{display:none}.tool-button,.icon-button,.mini-button,.preset-button,.format-button,.sample-button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:.82rem;font-weight:750;line-height:1;transition:border-color .15s,background .15s,color .15s}.tool-button{gap:6px;padding:0 10px}.tool-button.primary{color:#fff;border-color:var(--green);background:var(--green)}.icon-button{width:34px;padding:0;color:var(--text-2)}.tool-button:hover:not(:disabled),.icon-button:hover:not(:disabled),.mini-button:hover:not(:disabled),.preset-button:hover:not(:disabled),.format-button:hover:not(:disabled),.sample-button:hover:not(:disabled){border-color:var(--line-strong)}.tool-button.primary:hover:not(:disabled){border-color:#0f5e4d;background:#0f5e4d}.workspace{display:grid;min-height:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.workspace[data-dragging=true]{border-color:var(--blue);background:var(--blue-bg)}.preview-grid{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.preview-card{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr);background:var(--surface)}.preview-card+.preview-card{border-left:1px solid var(--line)}.preview-head{display:flex;min-height:40px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface-2)}.preview-head span:first-child{font-size:.82rem;font-weight:850}.preview-head span:last-child{overflow:hidden;color:var(--text-3);font-size:.72rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.preview-body{display:grid;min-height:280px;place-items:center;overflow:auto;padding:12px;background-color:#fbfcfd;background-image:linear-gradient(45deg,#edf1f5 25%,transparent 25%),linear-gradient(-45deg,#edf1f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf1f5 75%),linear-gradient(-45deg,transparent 75%,#edf1f5 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.preview-body img{display:block;max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 1px 8px #14181e24}.pending{display:inline-flex;min-height:30px;align-items:center;padding:0 10px;border-radius:7px;color:var(--text-2);background:var(--surface);font-size:.78rem;font-weight:800}.empty-state{display:grid;min-height:360px;place-items:center;align-content:center;gap:12px;padding:24px;text-align:center}.empty-icon{display:grid;width:64px;height:64px;place-items:center;border-radius:var(--radius);color:var(--blue);background:var(--blue-bg)}.empty-title{font-size:1.08rem;font-weight:850}.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.controls{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:10px}.control-panel{display:grid;min-width:0;align-content:start;gap:10px;padding:10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.panel-head{display:flex;min-height:30px;align-items:center;justify-content:space-between;gap:8px;color:var(--text);font-size:.8rem;font-weight:850}.panel-value,.sub-stat{color:var(--text-3);font-size:.72rem;font-weight:800}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.field{display:grid;gap:5px}.field span{color:var(--text-3);font-size:.7rem;font-weight:800}.field input{width:100%;min-height:36px;border:1px solid var(--line);border-radius:7px;padding:0 10px;background:var(--bg);font-size:.86rem;font-weight:800;outline:0}.field input:focus{border-color:var(--blue);background:var(--surface)}.mini-button{min-height:28px;padding:0 9px;color:var(--text-2);background:var(--bg);font-size:.72rem}.mini-button[data-active=true]{color:var(--green);border-color:var(--green-border);background:var(--green-bg)}.preset-row,.format-row{display:flex;min-width:0;flex-wrap:wrap;gap:6px}.preset-button,.format-button{min-height:30px;padding:0 9px;color:var(--text-2);background:var(--bg);font-size:.76rem}.format-button[data-active=true]{color:var(--blue);border-color:#bfd0f5;background:var(--blue-bg)}.quality-slider{width:100%;accent-color:var(--green)}.statusbar{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.stats{display:flex;min-width:0;flex-wrap:wrap;gap:7px}.stat{display:inline-flex;min-height:30px;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text-3);font-size:.73rem;font-weight:750}.stat strong{color:var(--text);font-weight:850}.sample-button{gap:6px;padding:0 10px;color:var(--amber);border-color:#f0d299;background:var(--amber-bg)}.feedback{display:inline-flex;min-height:30px;align-items:center;padding:0 10px;border-radius:7px;color:var(--amber);background:var(--amber-bg);font-size:.76rem;font-weight:800;white-space:nowrap}@media(max-width:920px){.app-shell{grid-template-rows:auto auto auto auto}.preview-grid{grid-template-columns:1fr}.preview-card+.preview-card{border-top:1px solid var(--line);border-left:0}.preview-body{min-height:260px}.controls{grid-template-columns:1fr}}@media(max-width:620px){.app-shell{padding:10px;gap:8px}.topbar{align-items:stretch;flex-direction:column}.top-actions{justify-content:stretch}.tool-button{flex:1 1 auto}.preview-head{align-items:flex-start;flex-direction:column;justify-content:center;padding:8px 10px}.preview-body{min-height:210px;padding:10px}.empty-state{min-height:310px}.statusbar{align-items:stretch;flex-direction:column}.status-actions{justify-content:stretch}.sample-button{flex:1 1 auto}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stat{justify-content:space-between}}
