:root{--bg-app:#0f0d1a;--bg-panel:#161329;--bg-button:#1f1b35;--bg-button-hover:#2a2447;--text:#d4d4e8;--text-strong:#f5f5ff;--text-muted:#9b97b8;--border:#2e2950;--border-strong:#433d6b;color:var(--text);background:var(--bg-app);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;font-family:system-ui,Segoe UI,Roboto,sans-serif;font-weight:400;line-height:1.5}*,:before,:after{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{min-height:100dvh}button{touch-action:manipulation}*{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}@supports not (scrollbar-color:auto){::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#5b5391}}.image-editor{background:var(--bg-app);height:100dvh;color:var(--text);flex-direction:column;display:flex}.image-editor__body{flex:1;min-height:0;display:flex}.image-editor__footer{border-top:1px solid var(--border);color:var(--text-muted);text-align:center;background:#161329b8;flex:none;padding:.5rem 1rem;font-size:.75rem}.image-editor__sidebar{border-right:1px solid var(--border);background:#161329b8;flex-direction:column;flex:0 0 19rem;min-height:0;display:flex;overflow-y:auto}.image-editor__main{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.image-editor__sidebar .editor-panel{background:0 0;flex-flow:column;align-items:stretch;gap:.875rem;padding:1rem}.image-editor__sidebar .editor-panel:last-child{border-bottom:0}.image-editor__sidebar .editor-panel__control{flex:none;min-width:0}.image-editor__sidebar .adjustments-panel__sliders,.image-editor__sidebar .refine-panel__controls{grid-template-columns:1fr}.image-editor__sidebar .editor-panel__hint{flex:none}.image-editor__sidebar .adjustments-panel__reset,.image-editor__sidebar .refine-panel__apply{width:100%}.image-editor__sidebar .adjustments-panel__quick{flex-wrap:wrap}.image-editor__file-input{display:none}.image-editor__canvas-wrap{border:1px solid var(--border);background:#12101f;border-radius:12px;flex:1;min-height:0;margin:.75rem;position:relative;overflow:hidden}.image-editor__canvas-wrap--has-image{background-color:#1a1830;background-image:linear-gradient(45deg,#ffffff0a 25%,#0000 25%),linear-gradient(-45deg,#ffffff0a 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ffffff0a 75%),linear-gradient(-45deg,#0000 75%,#ffffff0a 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.image-editor__canvas-wrap--drag-over{border-color:#6366f1;box-shadow:inset 0 0 0 2px #6366f159}.image-editor__drop-overlay{z-index:2;pointer-events:none;background:#6366f11f;border:2px dashed #818cf8;border-radius:12px;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.image-editor__drop-overlay p{color:var(--text-strong);background:#0f0d1ad9;border-radius:999px;margin:0;padding:.75rem 1.25rem;font-size:1rem;font-weight:500}.image-editor__canvas-wrap>.canvas-container{top:0;left:0;position:absolute!important}.image-editor__canvas{width:100%;height:100%;display:block}.image-editor__empty{text-align:center;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:1.5rem;display:flex;position:absolute;inset:0}.image-editor__empty p{color:var(--text-muted);margin:0}.image-editor__empty button{pointer-events:auto}.editor-panel{border-bottom:1px solid var(--border);background:#161329b8;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;padding:.75rem 1rem;display:flex}.editor-panel__title{letter-spacing:.04em;text-transform:uppercase;color:#c4b5fd;width:100%;margin:0;font-size:.8125rem;font-weight:600}.editor-panel__control{flex:12rem;min-width:min(100%,12rem)}.editor-panel__label{color:var(--text-strong);justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.375rem;font-size:.875rem;font-weight:500;display:flex}.editor-panel__value{color:#c4b5fd;font-variant-numeric:tabular-nums}.editor-panel__slider{accent-color:#a855f7;width:100%}.editor-panel__toggle{color:var(--text-strong);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.5rem;font-size:.875rem;display:inline-flex}.editor-panel__toggle input{accent-color:#a855f7}.editor-panel__hint{color:var(--text-muted);flex:14rem;margin:0;font-size:.8125rem;line-height:1.45}.adjustments-panel__header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;width:100%;display:flex}.adjustments-panel__header .editor-panel__title{width:auto}.adjustments-panel__quick{gap:.5rem;display:flex}.adjustments-panel__sliders,.refine-panel__controls{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.75rem 1rem;width:100%;display:grid}.adjustments-panel__reset,.refine-panel__apply{flex:none}.toolbar{border-bottom:1px solid var(--border);background:var(--bg-panel);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.toolbar__brand{align-items:center;gap:.5rem;display:flex}.toolbar__logo{color:#fff;background:linear-gradient(135deg,#6366f1,#a855f7);border-radius:8px;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:1rem;display:inline-flex}.toolbar__title{color:var(--text-strong);margin:0;font-size:1.125rem;font-weight:600}.toolbar__actions{flex-wrap:wrap;gap:.5rem;display:flex}.toolbar__btn{border:1px solid var(--border);background:var(--bg-button);color:var(--text-strong);font:inherit;cursor:pointer;border-radius:8px;padding:.5rem .875rem;font-size:.875rem;transition:background .15s,border-color .15s}.toolbar__btn:hover:not(:disabled){background:var(--bg-button-hover);border-color:var(--border-strong)}.toolbar__btn:disabled{opacity:.45;cursor:not-allowed}.toolbar__btn--primary{color:#fff;background:#6366f1;border-color:#6366f1}.toolbar__btn--primary:hover:not(:disabled){background:#4f46e5;border-color:#4f46e5}.toolbar__btn--accent{color:#e9d5ff;background:#a855f726;border-color:#a855f78c}.toolbar__btn--accent:hover:not(:disabled){background:#a855f747;border-color:#a855f7}.toolbar__btn--danger{color:#f87171}.toolbar__btn--success,.toolbar__btn--success:disabled{color:#fff;background:#16a34a;border-color:#16a34a}.toolbar__btn--active{color:#fff;background:#6366f1;border-color:#6366f1}.crop-bar{border-bottom:1px solid var(--border);background:#161329b8;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex}.crop-bar__hint{color:var(--text-muted);flex:18rem;margin:0;font-size:.875rem}.toolbar__btn--icon{justify-content:center;align-items:center;padding:.5rem .625rem;display:inline-flex}.toolbar__icon{width:1.25rem;height:1.25rem;display:block}.link-bar{border-bottom:1px solid var(--border);background:#161329b8;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex}.link-bar__input{border:1px solid var(--border);background:var(--bg-button);min-width:0;color:var(--text-strong);font:inherit;border-radius:8px;flex:18rem;padding:.5rem .75rem;font-size:.875rem}.link-bar__input:focus{border-color:#6366f1;outline:none}.toolbar__lang{border:1px solid var(--border);border-radius:8px;display:inline-flex;overflow:hidden}.toolbar__lang-btn{background:var(--bg-button);color:var(--text-strong);font:inherit;letter-spacing:.04em;cursor:pointer;border:0;padding:.5rem .75rem;font-size:.8125rem;font-weight:600;transition:background .15s}.toolbar__lang-btn+.toolbar__lang-btn{border-left:1px solid var(--border)}.toolbar__lang-btn:hover:not(.toolbar__lang-btn--active){background:var(--bg-button-hover)}.toolbar__lang-btn--active{color:#fff;background:#6366f1}.image-editor__processing{z-index:3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f0d1ab8;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.image-editor__processing-card{border:1px solid var(--border-strong);text-align:center;background:#161329f2;border-radius:12px;flex-direction:column;align-items:center;gap:.875rem;width:min(20rem,100% - 2rem);padding:1.25rem 1.5rem;display:flex}.image-editor__processing-card p{color:var(--text-strong);margin:0;font-size:.9375rem}.image-editor__processing-spinner{border:3px solid #a855f740;border-top-color:#a855f7;border-radius:50%;width:2rem;height:2rem;animation:.8s linear infinite image-editor-spin}.image-editor__progress-bar{background:#ffffff14;border-radius:999px;width:100%;height:.375rem;overflow:hidden}.image-editor__progress-bar-fill{border-radius:inherit;background:linear-gradient(90deg,#6366f1,#a855f7);height:100%;transition:width .2s}.image-editor__error{color:#fca5a5;background:#f8717114;border:1px solid #f8717159;border-radius:8px;margin:0 .75rem .75rem;padding:.75rem 1rem;font-size:.875rem}@keyframes image-editor-spin{to{transform:rotate(360deg)}}.segmented{border:1px solid var(--border);border-radius:8px;max-width:100%;display:inline-flex;overflow:hidden}.segmented__btn{background:var(--bg-button);color:var(--text-strong);font:inherit;cursor:pointer;border:0;flex:auto;padding:.4375rem .75rem;font-size:.8125rem;font-weight:600;transition:background .15s}.segmented__btn+.segmented__btn{border-left:1px solid var(--border)}.segmented__btn:hover:not(:disabled,.segmented__btn--active){background:var(--bg-button-hover)}.segmented__btn--active{color:#fff;background:#6366f1}.segmented__btn:disabled{opacity:.45;cursor:not-allowed}.editor-panel .segmented{grid-auto-columns:minmax(max-content,1fr);grid-auto-flow:column;width:100%;display:grid}.editor-panel .segmented__btn{white-space:nowrap;padding:.4375rem .5rem;font-size:.75rem}.background-panel__controls{flex-direction:column;gap:.75rem;width:100%;display:flex}.background-panel__row{flex-wrap:wrap;gap:.75rem 1rem;display:flex}.swatches{flex-wrap:wrap;gap:.5rem;display:flex}.swatch{border:2px solid var(--border-strong);cursor:pointer;border-radius:50%;width:1.75rem;height:1.75rem;padding:0;transition:transform .12s}.swatch:hover:not(:disabled){transform:scale(1.12)}.swatch--active{border-color:#fff;box-shadow:0 0 0 2px #6366f1}.swatch:disabled{opacity:.45;cursor:not-allowed}.color-field{color:var(--text-strong);align-items:center;gap:.5rem;font-size:.875rem;display:inline-flex}.color-field input[type=color]{border:1px solid var(--border);background:var(--bg-button);cursor:pointer;border-radius:6px;width:2.5rem;height:1.75rem;padding:0}.editor-panel__select,.editor-panel__number{border:1px solid var(--border);background:var(--bg-button);width:100%;color:var(--text-strong);font:inherit;border-radius:8px;padding:.5rem .75rem;font-size:.875rem}.editor-panel__select:focus,.editor-panel__number:focus{border-color:#6366f1;outline:none}.split-btn{display:inline-flex}.split-btn__main{border-top-right-radius:0;border-bottom-right-radius:0}.split-btn__arrow{border-left-color:var(--border-strong);border-top-left-radius:0;border-bottom-left-radius:0;justify-content:center;align-items:center;padding:.5rem .4375rem;display:inline-flex}.split-btn__arrow[aria-expanded=true]{background:var(--bg-button-hover);border-color:var(--border-strong)}.split-btn__arrow .toolbar__icon{width:1rem;height:1rem}.split-btn-wrap{display:inline-flex;position:relative}.export-menu{z-index:20;border:1px solid var(--border-strong);background:var(--bg-panel);border-radius:12px;flex-direction:column;gap:.875rem;width:min(20rem,100vw - 1rem);padding:1rem;display:flex;position:absolute;top:calc(100% + .5rem);left:0;box-shadow:0 16px 40px #00000080}.export-menu .segmented{grid-auto-columns:1fr;grid-auto-flow:column;width:100%;display:grid}.export-menu .editor-panel__control,.export-menu .editor-panel__hint{flex:none;min-width:0}.export-menu__result strong{color:var(--text-strong);font-variant-numeric:tabular-nums}.export-menu__download{width:100%}.accordion{flex-direction:column;gap:.5rem;display:flex}.accordion__header{width:100%;color:var(--text-strong);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:.5rem;padding:.125rem 0;font-size:.875rem;font-weight:700;display:flex}.accordion__header:hover{color:#c4b5fd}.accordion__header:focus-visible{outline-offset:2px;border-radius:4px;outline:2px solid #6366f1}.accordion__header>span:first-child{flex:1}.accordion__badge{background:#a855f7;border-radius:50%;width:.5rem;height:.5rem}.accordion__chevron{color:var(--text-muted);transition:transform .15s;display:inline-flex}.accordion__chevron--open{transform:rotate(180deg)}.accordion__chevron .toolbar__icon{width:1rem;height:1rem}.accordion__body{flex-direction:column;gap:.625rem;display:flex}.brush-bar{border-bottom:1px solid var(--border);background:#161329b8;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;padding:.75rem 1rem;display:flex}.brush-bar__slider{flex:0 11rem;min-width:8rem;display:block}.brush-bar__slider .editor-panel__label{margin-bottom:.25rem}.brush-bar .crop-bar__hint{flex:14rem}.image-editor__brush-overlay{z-index:1;cursor:none;touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.image-editor__brush-overlay[hidden]{display:none}.image-editor__brush-cursor{pointer-events:none;border:2px solid #fff;border-radius:50%;display:none;position:absolute;top:0;left:0;box-shadow:0 0 0 1px #0009,inset 0 0 0 1px #0009}.image-editor__brush-cursor[data-mode=restore]{border-color:#86efac}@media (width<=900px){.image-editor{height:auto;min-height:100dvh}.image-editor__body{flex-direction:column}.image-editor__main{order:1}.image-editor__canvas-wrap{min-height:60dvh}.image-editor__sidebar{border-top:1px solid var(--border);border-right:0;flex:none;order:2;overflow-y:visible}}.toolbar__group{display:contents}.toolbar__actions .toolbar__btn{order:6}.toolbar__actions .toolbar__btn--open{order:1}.toolbar__actions .toolbar__btn--link{order:2}.toolbar__actions .toolbar__btn--batch{order:3}.toolbar__actions .toolbar__btn--removebg{order:4}.toolbar__actions .split-btn-wrap{order:5}.toolbar__actions .toolbar__btn--shortcuts{order:7}.toolbar__actions .toolbar__lang{order:8}.image-editor__empty-icon{color:#c4b5fd;background:linear-gradient(135deg,#6366f138,#a855f738);border-radius:20px;justify-content:center;align-items:center;width:4.5rem;height:4.5rem;display:inline-flex}.image-editor__empty-icon .toolbar__icon{width:2.25rem;height:2.25rem}.image-editor__empty-hint--touch{display:none}@media (hover:none) and (pointer:coarse){.image-editor__empty-hint--desktop{display:none}.image-editor__empty-hint--touch{display:block}}@media (width<=900px){.image-editor--empty .image-editor__sidebar{display:none}.image-editor--empty .image-editor__canvas-wrap{min-height:55dvh}}@media (width<=640px){.toolbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand end""primary primary""tools tools";align-items:center;gap:.625rem .75rem;padding:.75rem;display:grid}.toolbar__brand{grid-area:brand;min-width:0}.toolbar__title{text-overflow:ellipsis;white-space:nowrap;font-size:1rem;overflow:hidden}.toolbar__actions{display:contents}.toolbar__actions :is(.toolbar__btn,.split-btn-wrap,.toolbar__lang){order:0}.toolbar__group--end{grid-area:end;display:flex}.toolbar__lang-btn{padding:.375rem .625rem}.toolbar__btn--shortcuts{display:none}.toolbar__group--primary{grid-area:primary;gap:.5rem;display:flex}.toolbar__group--primary .toolbar__btn{min-height:2.75rem;padding-block:.5rem;font-weight:600}.toolbar__group--primary>.toolbar__btn--open{flex:1 1 0}.toolbar__group--primary>.toolbar__btn--removebg{flex:1.3 1 0}.toolbar__group--primary>.split-btn-wrap{flex:1.2 1 0;min-width:0}.split-btn-wrap,.split-btn{display:flex}.split-btn,.split-btn__main{flex:1}.toolbar__group--tools{overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;grid-area:tools;gap:.375rem;margin-inline:-.75rem;padding:0 .75rem;scroll-padding-inline:.75rem;display:flex;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 1.5rem),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 1.5rem),#0000)}.toolbar__group--tools::-webkit-scrollbar{display:none}.toolbar__group--tools>.toolbar__btn{scroll-snap-align:start;white-space:nowrap;flex:none;min-width:2.75rem;min-height:2.75rem}.image-editor__empty button{width:min(100%,16rem);padding-block:.75rem;font-size:1rem}.crop-bar,.brush-bar{padding:.625rem .75rem}}.image-editor__compare{z-index:1;pointer-events:none;position:absolute;overflow:hidden}.image-editor__compare img{object-fit:contain;-webkit-user-select:none;user-select:none;width:100%;height:100%;display:block}.image-editor__compare-badge{color:var(--text-strong);background:#0f0d1acc;border-radius:999px;padding:.125rem .5rem;font-size:.75rem;font-weight:600;position:absolute;top:.5rem;left:.5rem}.image-editor__error{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.image-editor__error-text{flex:16rem;margin:0}.image-editor__error-actions{gap:.5rem;display:flex}.image-editor__footer{flex-direction:column;gap:.125rem;display:flex}.image-editor__privacy{color:#a5b4fc}.crop-bar__ratios{flex-wrap:wrap;flex:100%;gap:.375rem;display:flex}.crop-bar__ratio{border:1px solid var(--border);background:var(--bg-button);color:var(--text-strong);font:inherit;cursor:pointer;border-radius:999px;padding:.25rem .75rem;font-size:.8125rem}.crop-bar__ratio:hover:not(:disabled,.crop-bar__ratio--active){background:var(--bg-button-hover)}.crop-bar__ratio--active{color:#fff;background:#6366f1;border-color:#6366f1}.crop-bar__ratio:focus-visible{outline-offset:2px;outline:2px solid #6366f1}.crop-bar__ratio:disabled{opacity:.5;cursor:not-allowed}.dialog-backdrop{z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#080614b3;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.dialog{border:1px solid var(--border-strong);background:var(--bg-panel);border-radius:14px;flex-direction:column;gap:.875rem;width:min(34rem,100%);max-height:calc(100dvh - 2rem);padding:1.25rem;display:flex;overflow-y:auto;box-shadow:0 24px 60px #00000080}.dialog:focus{outline:none}.dialog__header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.dialog__title{color:var(--text-strong);margin:0;font-size:1.125rem}.dialog__text{color:var(--text-muted);margin:0;font-size:.875rem}.dialog__error{color:#fca5a5;background:#f8717114;border:1px solid #f8717159;border-radius:8px;margin:0;padding:.5rem .75rem;font-size:.8125rem}.dialog__actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}.batch-dialog__drop{border:2px dashed var(--border-strong);color:var(--text-muted);border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem;font-size:.875rem;display:flex}.batch-dialog__drop--over{background:#6366f11f;border-color:#6366f1}.batch-dialog__list{flex-direction:column;gap:.25rem;max-height:14rem;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.batch-dialog__item{border:1px solid var(--border);background:var(--bg-button);border-radius:8px;align-items:center;gap:.5rem;padding:.375rem .625rem;font-size:.8125rem;display:flex}.batch-dialog__name{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.batch-dialog__status{color:var(--text-muted);text-align:right;flex:0 45%}.batch-dialog__item--processing .batch-dialog__status{color:#c4b5fd}.batch-dialog__item--done .batch-dialog__status{color:#86efac}.batch-dialog__item--error{border-color:#f8717166}.batch-dialog__item--error .batch-dialog__status{color:#fca5a5}.batch-dialog__remove{color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:0;padding:.125rem .375rem}.batch-dialog__remove:hover:not(:disabled){color:#fca5a5}.batch-dialog__remove:disabled{opacity:.4;cursor:not-allowed}.batch-dialog__progress{color:var(--text-muted);flex-direction:column;gap:.375rem;display:flex}.shortcuts__section{flex-direction:column;gap:.375rem;display:flex}.shortcuts__heading{color:#c4b5fd;letter-spacing:.06em;text-transform:uppercase;margin:0;font-size:.75rem}.shortcuts__list{flex-direction:column;margin:0;display:flex}.shortcuts__row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;padding:.3125rem 0;font-size:.875rem;display:flex}.shortcuts__row dt{color:var(--text)}.shortcuts__row dd{white-space:nowrap;margin:0;display:flex}.shortcuts__plus{color:var(--text-muted);margin:0 .25rem}.shortcuts kbd,.shortcuts__row kbd{border:1px solid var(--border-strong);background:var(--bg-button);min-width:1.5rem;color:var(--text-strong);font:inherit;text-align:center;border-bottom-width:2px;border-radius:6px;padding:.0625rem .4375rem;font-size:.75rem;display:inline-block}
