/* Keep selection, processing and export in the same, stable editing frame. */
.hero.is-editing{padding-top:24px}
.hero.is-editing .hero-copy{margin-bottom:22px}
.hero.is-editing h1{font-size:25px}
.hero.is-editing .hero-last-line,.hero.is-editing .hero-benefits{display:none}
.hero .workspace.has-image{width:min(100%,1040px);scroll-margin-top:18px}
.workspace .editor-steps{display:flex;justify-content:center;align-items:center;gap:34px;list-style:none;padding:0;margin:0 0 20px;color:#857f91;font-size:12px;font-weight:500}
.editor-steps li{display:flex;align-items:center;gap:8px;position:relative}
.editor-steps li+li::before{content:'';height:1px;width:18px;background:#dcd6e7;position:absolute;left:-26px}
.editor-steps li>span{width:24px;height:24px;display:grid;place-items:center;border:1px solid #ded9e8;border-radius:50%;font-size:10px;background:#fff}
.editor-steps li[aria-current=step]{color:#514998}
.editor-steps li[aria-current=step]>span{background:#6561b7;color:#fff;border-color:#6561b7}
.editor-steps li.is-complete{color:#34765a}
.editor-steps li.is-complete>span{background:#eef7f1;border-color:#d8eade}
.workspace .preview,.workspace .result{padding:24px;border-radius:22px;box-shadow:0 12px 44px #42345e0a;overflow:hidden}
.workspace .panel-heading{margin:0 0 24px;min-height:48px;align-items:center}
.workspace .panel-heading h2{font-size:23px;line-height:1.35;letter-spacing:-.65px;margin:5px 0 0}
.workspace .panel-heading .mini-label{font-size:9px;letter-spacing:1.3px}
.workspace .editor-grid{grid-template-columns:minmax(0,1fr) 292px;gap:28px;align-items:stretch;min-height:492px}
.workspace .preview-image-area,.workspace .result-image-area{min-width:0}
.workspace .canvas-toolbar,.workspace .result-toolbar{height:44px;display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.workspace .canvas-label{display:flex;align-items:center;gap:7px;font-size:12px;color:#726a81;font-weight:500}
.workspace .canvas-label .icon{width:16px;height:16px}
.workspace .canvas-toolbar .text-button{font-size:11px;padding:8px 10px}
.workspace .segmented-control{padding:4px;width:100%;gap:4px;border:1px solid #eeeaf3;border-radius:12px;background:#f7f5fa}
.workspace .segmented-control button{flex:1;min-height:34px;padding:7px 10px;font-size:11px;white-space:nowrap}
.workspace .segmented-control button[aria-pressed=true]{color:#4e4589;box-shadow:0 2px 7px #31284e0d}
.workspace .preview-mat,.workspace .result-canvas{--media-height:352px;position:relative;display:flex;align-items:center;justify-content:center;min-height:0;height:384px;padding:16px;background:#f7f6fa;border:1px solid #e9e5ee;border-radius:14px;overflow:hidden}
.workspace .preview-stage,.workspace .result .compare{width:min(100%,calc(var(--image-ratio,1) * var(--media-height)));height:auto;min-height:0;max-height:100%;aspect-ratio:var(--image-ratio,1);border:0;border-radius:6px;flex-shrink:1}
.workspace .preview-stage img,.workspace .compare-layer img{width:100%;height:100%;max-height:none;object-fit:contain}
.workspace .preview-image-area>.file-meta{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:11px 0 0;font-size:11px;color:#82788e}
.workspace .comparison-tip{display:flex;justify-content:center;min-height:18px;font-size:11px;margin:11px 0 0;color:#82788e}
.workspace .side-comparison{width:min(100%,calc(var(--image-ratio,1) * var(--media-height) * 2 + 12px));gap:12px;align-items:center}
.workspace .side-comparison>div{position:relative;aspect-ratio:var(--image-ratio,1);height:auto;border:1px solid #e6e1ec;border-radius:6px;overflow:hidden}
.workspace .side-comparison img{position:absolute;width:100%;height:100%;max-height:none;object-fit:contain}
.workspace .editor-sidebar{min-width:0;background:#faf9fc;border:1px solid #eeebf3;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:0}
.workspace .sidebar-heading{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.workspace .sidebar-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eeebf8;color:#6c60a5;flex-shrink:0}
.workspace .sidebar-icon .icon{width:17px;height:17px}
.workspace .sidebar-heading h3{font-size:14px;font-weight:600;line-height:1.4;margin:0;color:#3e354e;letter-spacing:-.2px}
.workspace .sidebar-heading p{font-size:11px;line-height:1.5;margin:3px 0 0;color:#80758d}
.workspace .removal-settings{display:flex;flex-direction:column;gap:9px}
.workspace .removal-settings>label,.workspace .control-label{font-size:12px;font-weight:500;color:#54495f}
.workspace .quality-options select{min-height:46px;font-size:13px;line-height:1.5;border-radius:10px;border-color:#ded8e8}
.workspace .field-help{font-size:11px;line-height:1.75;min-height:39px;margin:0;color:#7b7188}
.workspace .refine-option{background:#fff;border:1px solid #e7e1ee;border-radius:10px;padding:12px;gap:9px;margin:7px 0 18px}
.workspace .refine-option strong{font-size:11px;font-weight:500}
.workspace .refine-option small{font-size:10px;line-height:1.65}
.workspace .preview-primary{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding-top:12px}
.workspace .editor-sidebar .button{width:100%;min-height:47px;border-radius:11px;padding:12px 14px;font-size:12px;gap:8px}
.workspace .editor-sidebar .button-primary:hover{transform:translateY(-1px)}
.workspace .editor-note{font-size:9px;line-height:1.6;gap:5px;margin:3px 0 0;color:#877d91}
.workspace .editor-note .icon{width:12px;height:12px}
.workspace .editor-sidebar .text-button{font-size:11px;min-height:42px}
.workspace .success-icon{background:#e8f3ed;color:#438461}
.workspace .result-timing{font-size:10px;font-variant-numeric:tabular-nums;color:#4d7e65;padding:7px 10px;background:#eff7f2;border:1px solid #dfede4;border-radius:7px;white-space:nowrap}
.workspace .result-sidebar .file-meta{margin:3px 0 0;font-size:10px;line-height:1.7;color:#887a96}
.workspace .download-note{text-align:center;font-size:9px;color:#83758f;margin:8px 0 0}
.workspace .preview-options{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin:22px 0 0;padding-top:20px;border-top:1px solid #e8e1ee}
.workspace .preview-options>span{margin:0}
.workspace .swatches{gap:10px;padding:1px}
.workspace .swatch{width:27px;height:27px}
.workspace .preview-options p{grid-column:1/-1;font-size:10px;line-height:1.65;color:#8c8096;margin:0}
.workspace .result-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:24px 0 0;padding:16px 0 0;border-top:1px solid #e8e1ee}
.workspace .result-actions .button-secondary{background:#fff;border:1px solid #dfd7e9;color:#63527a}
.workspace .result-actions .button-secondary:hover{background:#f2edf8}
.workspace .editor-feedback:empty{display:none}
.workspace .status{font-size:11px;align-items:flex-start;line-height:1.7;margin-top:14px;padding:13px;border-radius:10px}
.workspace .status .spinner{margin-top:3px}
.workspace .editor-feedback .status{margin:0 0 12px;flex-wrap:wrap}
.workspace .editor-feedback .status #status-message{flex-basis:150px}
.workspace .editor-feedback .status #elapsed{font-size:10px;margin-left:auto}
.workspace .processing-overlay{position:absolute;inset:0;background:#f7f5fa99;backdrop-filter:blur(2px);display:none;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:12px;font-weight:500;color:#62558d}
.workspace .processing-orbit{width:48px;height:48px;border-radius:50%;background:#fff;border:2px solid #e2dbef;outline:5px solid #f8f5fbb8;display:grid;place-items:center;position:relative}
.workspace .processing-orbit::after{content:'';position:absolute;inset:-2px;border:2px solid transparent;border-top-color:#8d77bb;border-radius:50%;animation:spin 1.2s linear infinite}
.workspace[data-stage=processing] .processing-overlay{display:flex}
.workspace[data-stage=processing] .preview-stage{opacity:1}
.workspace[data-stage=processing] .removal-settings{display:none}
.workspace[data-stage=processing] .editor-feedback{margin-block:auto}
.workspace[data-stage=processing] .preview-primary .button{display:none}
.workspace[data-stage=processing] .sidebar-heading{margin-bottom:18px}
.workspace[data-stage=processing] .preview-primary{margin-top:0}
@media (max-width:900px){
  .workspace .editor-grid{grid-template-columns:minmax(0,1fr) 258px;gap:18px}
  .workspace .preview,.workspace .result{padding:20px}
  .workspace .editor-sidebar{padding:16px}
  .workspace .control-label{font-size:10px}
  .workspace .swatches{gap:8px}
  .workspace .swatch{width:25px;height:25px}
  .workspace .preview-mat,.workspace .result-canvas{--media-height:320px;height:352px}
  .workspace .segmented-control button{font-size:10px;padding-inline:5px}
}
@media (max-width:700px){
  .hero.is-editing{padding:20px 16px 30px}
  .hero.is-editing h1{font-size:22px}
  .hero.is-editing .hero-copy{margin-bottom:19px}
  .workspace .editor-steps{gap:24px;font-size:10px;margin-bottom:16px}
  .editor-steps li{gap:6px}
  .editor-steps li>span{width:21px;height:21px;font-size:9px}
  .editor-steps li+li::before{width:11px;left:-17px}
  .workspace .preview,.workspace .result{padding:16px;border-radius:18px}
  .workspace .panel-heading{margin-bottom:16px;gap:10px;min-height:45px;align-items:center}
  .workspace .panel-heading h2{font-size:19px;letter-spacing:-.5px}
  .workspace .panel-heading .mini-label{font-size:8px;letter-spacing:1px}
  .workspace .editor-grid{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0}
  .workspace .canvas-toolbar,.workspace .result-toolbar{margin-bottom:10px}
  .workspace .segmented-control button{min-height:36px;font-size:11px;padding-inline:6px}
  .workspace .preview-mat,.workspace .result-canvas{--media-height:276px;height:300px;padding:12px}
  .workspace .editor-sidebar{padding:17px;border-radius:12px}
  .workspace .sidebar-heading{margin-bottom:18px}
  .workspace .quality-options select{font-size:16px}
  .workspace .field-help{min-height:0}
  .workspace .refine-option{margin:5px 0 10px}
  .workspace .refine-option strong{font-size:12px}
  .workspace .refine-option small{font-size:11px}
  .workspace .preview-primary{padding-top:8px}
  .workspace .result-timing{font-size:9px;padding:6px 8px}
  .workspace .result-sidebar .sidebar-heading{margin-bottom:16px}
  .workspace .result-sidebar .file-meta{font-size:11px}
  .workspace .preview-options{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:18px;padding-top:17px}
  .workspace .preview-options p{grid-column:1/-1;font-size:10px}
  .workspace .control-label{font-size:11px}
  .workspace .swatches{gap:11px}
  .workspace .swatch{width:28px;height:28px}
  .workspace .result-actions{margin-top:17px;padding-top:15px}
  .workspace .editor-sidebar .button{min-height:48px;font-size:12px}
  .workspace .comparison-tip{font-size:10px}
  .workspace .side-comparison{gap:8px}
}
@media (max-width:380px){
  .hero.is-editing{padding-inline:12px}
  .workspace .preview,.workspace .result{padding:12px}
  .workspace .panel-heading h2{font-size:17px}
  .workspace .result-timing{max-width:68px;white-space:normal;text-align:center;line-height:1.5}
  .workspace .editor-steps{font-size:9px;gap:19px}
  .editor-steps li+li::before{width:8px;left:-14px}
  .workspace .preview-mat,.workspace .result-canvas{--media-height:240px;height:260px;padding:10px}
  .workspace .segmented-control button{font-size:10px}
  .workspace .editor-sidebar{padding:14px}
  .workspace .preview-options{column-gap:6px}
  .workspace .swatches{gap:9px}
  .workspace .swatch{width:25px;height:25px}
}
@media (prefers-reduced-motion:reduce){.workspace .processing-orbit::after{animation:none}.workspace .button{transition:none}}
