:root{--bg: #0f1117;--surface: #1a1d27;--surface-hover: #222635;--border: #2a2e3d;--text: #e4e6ed;--text-secondary: #b0b4c8;--text-muted: #8b8fa3;--primary: #f97316;--primary-hover: #fb923c;--primary-text: #0f1117;--danger: #ef4444;--accent: #f97316;--radius: 8px;--radius-lg: 12px}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh}.app{max-width:1200px;margin:0 auto;padding:0 1.25rem}.header{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;border-bottom:.5px solid var(--border);margin-bottom:2rem}.header__title{margin:0;font-size:1rem;line-height:1}.logo{display:inline-flex;align-items:center;gap:.6rem;color:var(--text);text-decoration:none;border-radius:var(--radius)}.logo:focus-visible{outline:2px solid var(--primary);outline-offset:4px}.logo__mark{flex-shrink:0;transition:transform .5s ease}.logo:hover .logo__mark{transform:rotate(180deg)}@media(prefers-reduced-motion:reduce){.logo:hover .logo__mark{transform:none}}.logo__word{font-size:1.2rem;font-weight:800;letter-spacing:-.03em}.logo__accent{color:var(--primary)}@media(max-width:480px){.logo__word{font-size:1.05rem}}.lang-switcher{background:var(--surface);color:var(--text);border:.5px solid var(--border);border-radius:var(--radius);padding:.4rem .6rem;font-size:.85rem;cursor:pointer}.nav-free-badge{display:inline-flex;align-items:center;gap:5px;font-size:.75rem;font-weight:600;background:var(--accent);color:var(--primary-text);padding:3px 10px;border-radius:20px}.tabs{display:flex;gap:.25rem;margin-bottom:2.5rem;background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius-lg);padding:.3rem;width:fit-content}.tab-btn{padding:.5rem 1.25rem;border:none;border-radius:var(--radius);background:transparent;color:var(--text-muted);font-size:.9rem;font-weight:500;cursor:pointer;transition:background .15s,color .15s}.tab-btn:hover{background:var(--surface-hover);color:var(--text)}.tab-btn--active{background:var(--accent);color:var(--primary-text)}.landing{max-width:640px;margin:0 auto 3rem}.landing__badge{display:inline-flex;align-items:center;gap:6px;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;border:.5px solid var(--accent);color:var(--accent);padding:3px 10px;border-radius:3px;margin-bottom:1rem}.landing__badge-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;flex-shrink:0}.landing__title{font-size:2.2rem;font-weight:600;line-height:1.2;color:var(--text);margin-bottom:.75rem}.landing__highlight{color:var(--accent)}.landing__sub{font-size:.9rem;color:var(--text-secondary);line-height:1.65;margin-bottom:1.5rem}.upload-zone{background:var(--surface);border:1.5px dashed var(--border);border-radius:var(--radius-lg);padding:2.5rem 2rem;text-align:center;cursor:pointer;transition:border-color .2s,background .2s}.upload-zone:hover,.upload-zone--active{border-color:var(--accent);background:var(--surface-hover)}.upload-zone__icon{font-size:2rem;margin-bottom:.75rem}.upload-zone__text{font-size:1rem;color:var(--text);margin-bottom:.25rem}.upload-zone__or{color:var(--text-muted);font-size:.85rem;margin-bottom:.75rem}.upload-zone__actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:center}.upload-zone__hint{color:var(--text-muted);font-size:.75rem;margin-top:1rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.5rem 1rem;border:.5px solid var(--border);border-radius:var(--radius);font-size:.9rem;cursor:pointer;transition:background .15s;background:var(--surface);color:var(--text)}.btn--primary{background:var(--accent);border-color:var(--accent);color:var(--primary-text);font-weight:600}.btn--primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.btn--primary:disabled{opacity:.45;cursor:not-allowed}.btn--secondary{background:var(--surface)}.btn--secondary:hover{background:var(--surface-hover)}.btn--small{padding:.3rem .6rem;font-size:.8rem}.btn--large{padding:.7rem 1.5rem;font-size:1rem}.upload-settings{margin-top:1rem;display:flex;flex-direction:column;gap:.5rem}.upload-setting-group{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius-lg);padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.6rem}.landing__features{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--border);border:.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;margin-top:1rem}.landing__feat{background:var(--surface);padding:1rem 1.25rem}.landing__feat-icon{font-size:1.1rem;margin-bottom:.4rem}.landing__feat-name{font-size:.8rem;font-weight:600;color:var(--text)}.landing__feat-desc{font-size:.75rem;color:var(--text-muted);line-height:1.45;margin-top:2px}.landing__feat-long{font-size:.8rem;color:var(--text-secondary);line-height:1.55;margin:.6rem 0 0}.editor{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start}@media(max-width:800px){.editor{grid-template-columns:1fr}.landing__title{font-size:1.7rem}.landing__features{grid-template-columns:1fr}}.editor__preview{display:flex;flex-direction:column;gap:1rem}.editor__controls{display:flex;flex-direction:column;gap:1.25rem;background:var(--surface);border-radius:var(--radius-lg);padding:1.25rem;border:.5px solid var(--border)}.comparison{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.comparison__stage{position:relative;cursor:col-resize;-webkit-user-select:none;user-select:none;overflow:hidden;line-height:0}.comparison__img{width:100%;max-height:400px;object-fit:contain;display:block;background:var(--bg)}.comparison__after-clip{position:absolute;top:0;right:0;bottom:0;left:0}.comparison__img--after{position:absolute;top:0;left:0}.comparison__divider{position:absolute;top:0;bottom:0;width:2px;background:#fff;transform:translate(-50%);pointer-events:none;box-shadow:0 0 4px #00000080}.comparison__handle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;gap:2px;box-shadow:0 2px 8px #0006;pointer-events:none;color:#333;font-size:14px;font-weight:700;line-height:1}.comparison__arrow{line-height:1}.comparison__label{position:absolute;top:.6rem;font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:#0000008c;color:#fff;padding:.2rem .5rem;border-radius:4px;pointer-events:none}.comparison__label--before{left:.6rem}.comparison__label--after{right:.6rem}.comparison__close{margin-left:auto}.comparison__meta{display:flex;align-items:center;gap:.5rem;justify-content:space-between;padding:.5rem .75rem;font-size:.75rem;color:var(--text-muted);border-top:.5px solid var(--border)}.preview-card{background:var(--surface);border:.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}.preview-img{width:100%;max-height:400px;object-fit:contain;display:block;background:var(--bg)}.preview-video{width:100%;max-height:400px;display:block;background:#000}.preview-info{display:flex;align-items:center;gap:.5rem;justify-content:space-between;padding:.6rem 1rem;font-size:.75rem;color:var(--text-muted);border-top:.5px solid var(--border)}.preview-compare-btn{margin-left:auto}.control-group{display:flex;flex-direction:column;gap:.5rem}.control-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.format-buttons,.crop-ratios{display:flex;gap:.4rem;flex-wrap:wrap}.format-btn{flex:1;min-width:fit-content;padding:.4rem .6rem;background:var(--bg);border:.5px solid var(--border);border-radius:var(--radius);color:var(--text);cursor:pointer;font-size:.85rem;white-space:nowrap;transition:background .15s}.crop-ratios .format-btn{flex:0 1 auto}.format-btn:hover{background:var(--surface-hover)}.format-btn--active{background:var(--accent);border-color:var(--accent);color:var(--primary-text)}.slider-row{display:flex;align-items:center;gap:.5rem}.slider-label{font-size:.75rem;color:var(--text-muted)}.slider{flex:1;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--border);border-radius:2px;outline:none}.slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:var(--accent);cursor:pointer}.resize-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.resize-field{display:flex;flex-direction:column;gap:.2rem;flex:1;min-width:80px}.resize-label{font-size:.7rem;color:var(--text-muted)}.input{background:var(--bg);border:.5px solid var(--border);border-radius:var(--radius);padding:.4rem .5rem;color:var(--text);font-size:.85rem}.input--number,.input--text{width:100%}.lock-btn{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:.3rem;margin-top:1rem;color:var(--text-muted)}.crop-editor{display:flex;flex-direction:column;gap:.5rem}.crop-container{max-height:300px;overflow:hidden;border-radius:var(--radius);background:var(--bg)}.crop-container img{max-width:100%;display:block}.crop-actions{display:flex;gap:.5rem}.exif-table{display:flex;flex-direction:column;gap:.25rem}.exif-row{display:flex;justify-content:space-between;font-size:.8rem;padding:.2rem 0;border-bottom:.5px solid var(--border)}.exif-key{color:var(--text-muted)}.exif-value{text-align:right}.exif-empty{font-size:.85rem;color:var(--text-muted)}.exif-note{font-size:.75rem;color:var(--text-muted);font-style:italic}.filename-preview{font-size:.75rem;color:var(--text-muted)}.actions{display:flex;gap:.75rem;padding-top:.5rem;border-top:.5px solid var(--border)}.history-bar{display:flex;flex-wrap:wrap;gap:.5rem}.history-bar .btn:disabled{opacity:.45;cursor:not-allowed}.error{color:#fca5a5;font-size:.85rem;padding:.5rem;background:#2d1515;border-radius:var(--radius);border:.5px solid #7f1d1d}.progress-bar{width:100%;height:6px;background:var(--border);border-radius:3px;overflow:hidden}.progress-bar__fill{height:100%;background:var(--accent);border-radius:3px;transition:width .3s ease}.progress-pct{font-size:.8rem;color:var(--text-muted);text-align:right;display:block}.quality-presets{display:flex;gap:.5rem}.quality-preset-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.6rem .5rem;background:var(--bg);border:.5px solid var(--border);border-radius:var(--radius);color:var(--text);cursor:pointer;font-size:.8rem;transition:background .15s,border-color .15s}.quality-preset-btn:hover:not(:disabled){background:var(--surface-hover)}.quality-preset-btn:disabled{opacity:.45;cursor:not-allowed}.quality-preset-btn--active{border-color:var(--accent);background:var(--surface-hover);font-weight:500;color:var(--accent)}.quality-preset-icon{font-size:1.1rem}.video-estimate{margin:.5rem 0 0;font-size:.8rem;color:var(--text);text-align:center;line-height:1.5}.video-estimate__hint{font-size:.7rem;color:var(--text-muted)}.size-increase{color:#f59e0b}.quality-preset-desc{font-size:.7rem;font-weight:400;color:var(--text-secondary);text-align:center;line-height:1.3}.crf-slider-row{display:flex;align-items:center;gap:.5rem}.crf-value-display{font-size:.75rem;color:var(--text-muted);text-align:center;margin-top:.25rem}.size-delta{display:flex;flex-direction:column;align-items:flex-end;gap:.1rem}.size-reduction{color:#4ade80;font-size:.75rem}.upload-compression{display:contents}.faq{margin-top:3rem;padding-top:2.5rem;border-top:.5px solid var(--border)}.faq__title{font-size:1.25rem;font-weight:700;color:var(--text);margin-bottom:1.25rem}.faq__list{list-style:none;display:flex;flex-direction:column;gap:.5rem}.faq__item{border:.5px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden}.faq__item--open{border-color:var(--accent)}.faq__question{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem;background:none;border:none;cursor:pointer;color:var(--text);font-size:.9rem;font-weight:600;text-align:left}.faq__question:hover{color:var(--accent)}.faq__icon{flex-shrink:0;font-size:1.1rem;color:var(--accent);line-height:1}.faq__answer{padding:0 1rem .9rem;margin:0;font-size:.875rem;color:var(--text-secondary);line-height:1.6}.batch-hint{margin:-.5rem 0 1rem;text-align:center}.batch-wrapper{display:flex;flex-direction:column;gap:1rem;max-width:760px;margin:0 auto;padding:0 1rem}.batch-wrapper__topbar{display:flex;align-items:center;justify-content:space-between}.batch-wrapper__count{font-size:.85rem;color:var(--text-secondary)}.batch{display:flex;flex-direction:column;gap:1.25rem}.batch__header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.batch__settings{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}@media(max-width:600px){.batch__settings{grid-template-columns:1fr}}.batch__resize-row{display:flex;align-items:center;gap:.5rem}.batch__resize-pct{min-width:3rem;text-align:right;font-size:.85rem;color:var(--text-secondary);font-variant-numeric:tabular-nums}.batch__actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.batch__list{display:flex;flex-direction:column;gap:.4rem}.batch__item{display:grid;grid-template-columns:1.25rem 3rem minmax(0,1fr) auto 2rem 2rem;align-items:center;gap:.5rem .75rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.5rem .75rem;font-size:.85rem}.batch__item--done{border-color:#22c55e33}.batch__item--error{border-color:var(--danger)}.batch__item--processing{opacity:.7}.batch__item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}.batch__item-size,.batch__item-out{font-size:.78rem;color:var(--text-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.batch__item-out{color:#4ade80}.batch__item-remove{opacity:.5}.batch__item-remove:hover{opacity:1;color:var(--danger)}.batch__thumb{width:3rem;height:3rem;object-fit:cover;border-radius:6px;background:#7f7f7f1f;display:block}.batch__thumb--empty{display:flex;align-items:center;justify-content:center;font-size:1.2rem;border:1px solid var(--border)}.batch__item-main{display:flex;flex-direction:column;gap:.2rem;min-width:0}.batch__item-name-row{display:flex;align-items:center;gap:.25rem;min-width:0}.batch__item-name-input{flex:1;min-width:0;padding:.3rem .5rem;font-size:.85rem}.batch__item-ext{font-size:.8rem;color:var(--text-muted);white-space:nowrap}.batch__item-orig{font-size:.72rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch__item-size{text-align:right;line-height:1.35}.batch__size-hint{margin:.4rem 0 0;font-size:.72rem;color:var(--text-muted);line-height:1.4}@media(max-width:600px){.batch__item{grid-template-columns:2.5rem minmax(0,1fr) 2rem 2rem}.batch__item>:nth-child(1){grid-column:1;grid-row:2}.batch__item>:nth-child(2){grid-column:1;grid-row:1}.batch__item>:nth-child(3){grid-column:2 / -1;grid-row:1}.batch__item>:nth-child(4){grid-column:2;grid-row:2;text-align:left}.batch__item>:nth-child(5){grid-column:3;grid-row:2}.batch__item>:nth-child(6){grid-column:4;grid-row:2}.batch__thumb{width:2.5rem;height:2.5rem}}.batch-status{font-size:.9rem;font-weight:700;text-align:center}.batch-status--done{color:#4ade80}.batch-status--error{color:var(--danger)}.batch-status--processing{color:var(--accent);animation:spin 1s linear infinite;display:inline-block}.batch-status--pending{color:var(--text-muted)}@keyframes spin{to{transform:rotate(360deg)}}.batch__add-more{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem;border:1px dashed var(--border);border-radius:var(--radius);color:var(--text-muted);font-size:.85rem;cursor:pointer;transition:border-color .15s,color .15s}.batch__add-more:hover{border-color:var(--primary);color:var(--primary)}.batch__summary-error{font-size:.85rem;color:var(--danger);text-align:center}.btn--ghost{background:transparent;border:1px solid var(--border);color:var(--text-secondary)}.btn--ghost:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.btn--sm{padding:.3rem .7rem;font-size:.8rem}.app{min-height:100vh;display:flex;flex-direction:column}.app>.main{flex:1}.footer{margin-top:4rem;padding:2rem 0 2.5rem;border-top:.5px solid var(--border);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;font-size:.8rem;color:var(--text-muted)}.footer__brand{display:flex;align-items:center;gap:.6rem}.footer__nav{display:flex;flex-wrap:wrap;gap:.4rem 1.25rem}.footer__nav a,.footer__copy a{color:var(--text-secondary);text-decoration:none}.footer__nav a:hover{color:var(--primary)}.footer__copy{width:100%;margin:0;font-size:.75rem}.legal{max-width:720px;margin:0 auto;color:var(--text-secondary);line-height:1.7;font-size:.95rem}.legal__back{display:inline-block;margin-bottom:1.5rem;font-size:.85rem;color:var(--text-muted);text-decoration:none}.legal__back:hover{color:var(--primary)}.legal__title{font-size:2rem;font-weight:800;letter-spacing:-.02em;color:var(--text);margin:0 0 .25rem}.legal__updated{font-size:.8rem;color:var(--text-muted);margin:0 0 2rem}.legal h3{font-size:1.1rem;color:var(--text);margin:2.25rem 0 .6rem}.legal p,.legal ul{margin:0 0 1rem}.legal ul{padding-left:1.25rem}.legal li{margin-bottom:.4rem}.legal a{color:var(--primary)}.legal code{font-size:.85em;background:var(--surface);padding:.1em .35em;border-radius:4px}.legal__summary{background:var(--surface);border:.5px solid var(--border);border-left:3px solid var(--primary);border-radius:var(--radius);padding:1rem 1.25rem;margin:0 0 1.5rem}.legal__summary p{margin:.5rem 0}.legal__note{font-size:.85rem;color:var(--text-muted)}.legal__owner{font-style:normal;margin:0 0 1rem}.legal__table-wrap{overflow-x:auto;margin:0 0 1rem}.legal__table{width:100%;border-collapse:collapse;font-size:.82rem}.legal__table th,.legal__table td{text-align:left;padding:.45rem .6rem;border-bottom:.5px solid var(--border)}.legal__table th{color:var(--text);font-weight:600}@media(max-width:480px){.legal__title{font-size:1.6rem}}.crash{max-width:32rem;margin:15vh auto 0;padding:0 1.25rem;text-align:center}.crash h1{font-size:1.5rem;margin-bottom:.75rem}.crash p{color:var(--text-secondary);margin-bottom:1.5rem}
