#editor{scroll-margin-top:140px}#editor .wm-tool{--wm-accent:#006b57;--wm-ink:#22252a;--wm-muted:#7e848d;color:var(--wm-ink);font-family:Arial,Helvetica,sans-serif;text-align:left;max-width:1280px;margin:0 auto}
#editor .wm-tool [hidden]{display:none!important}#editor .wm-tool button{font:inherit;cursor:pointer}#editor .wm-tool button:disabled{opacity:.45;cursor:not-allowed}#editor .wm-tool button:focus-visible,#editor .wm-tool input:focus-visible{outline:3px solid #62b89a;outline-offset:4px}
#editor .wm-upload{width:100%;min-height:355px;border:2px dashed #aaa;border-radius:22px;background:#fff;display:flex;align-items:center;justify-content:center;gap:27px;flex-direction:column;padding:38px 20px;color:#8b8f95;transition:background .2s,border .2s}#editor .wm-upload:hover,#editor .wm-upload.dragging{border-color:var(--wm-accent);background:#f3faf6}#editor .wm-upload strong{font-size:27px;font-weight:400;color:#252525}#editor .wm-upload>span{font-size:18px}#editor .wm-formats{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}#editor .wm-formats b{font-size:14px;font-weight:400;padding:6px 9px;border-radius:10px;background:#f4f4f4}#editor .wm-upload .wm-upload-cta{display:flex;align-items:center;gap:12px;border-radius:50px;background:var(--wm-accent);color:#fff;padding:18px 36px;font-size:23px}#editor svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#editor .wm-upload-note,#editor .wm-legal{text-align:center;color:var(--wm-muted);font-size:13px;margin:16px 0 0}#editor .wm-legal a{text-decoration:underline}
#editor .wm-workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px;align-items:start;padding:24px;border:1px solid #e3e7ed;border-radius:28px;background:#fff;box-shadow:0 8px 28px #172b4d08;box-sizing:border-box}#editor .wm-preview{position:relative;background:#f5f5f5;border-radius:20px;min-width:0;overflow:hidden;padding:16px;min-height:520px;display:flex;flex-direction:column}#editor .wm-preview-top{display:flex;align-items:center;justify-content:center;min-height:42px;gap:12px;position:relative;z-index:2}#editor .wm-comparison{display:flex;border-radius:30px;background:#fff;box-shadow:0 2px 5px #0002;overflow:hidden}#editor .wm-comparison button{border:0;background:white;color:#555;padding:11px 18px;font-size:14px;white-space:nowrap}#editor .wm-comparison button[aria-pressed=true]{background:var(--wm-accent);color:white}#editor .wm-delete{position:absolute;right:0;border:0;border-radius:50%;background:#fff;color:#5c6570;width:40px;height:40px;display:grid;place-items:center;box-shadow:0 2px 5px #0001}
#editor .wm-image-area{display:flex;align-items:center;justify-content:center;flex:1;min-height:390px;overflow:auto;padding:16px 0}#editor #canvas-stage{position:relative;width:100%;max-width:100%;height:auto;flex:none;line-height:0;touch-action:none}#editor #picture{display:block;width:100%;height:auto;max-height:560px;object-fit:contain}#editor #selection{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#editor #preview-loading{position:absolute;inset:0;background:#0004;backdrop-filter:blur(4px);z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:white}#editor .wm-spinner{width:45px;height:45px;border:4px solid #fff6;border-top-color:#fff;border-radius:50%;animation:wm-spin 1s linear infinite}
#editor .wm-controls{padding:8px 0;min-width:0}#editor .wm-controls h2{font:600 25px/1.25 Arial,sans-serif;margin:0 0 24px;color:#222}#editor .wm-tabs{display:flex;background:#f4f4f4;padding:5px;border-radius:40px;margin-bottom:20px}#editor .wm-tabs button{width:50%;border:0;border-radius:30px;color:#535b66;background:transparent;padding:14px 8px;font-size:18px}#editor .wm-tabs button[aria-selected=true]{background:#e8f5ef;color:#006b57}#editor #auto-panel p,#editor .wm-manual>p{color:var(--wm-muted);font-size:15px;line-height:1.6;margin:0 0 18px}#editor .wm-manual{padding:20px;border:1px solid #eee;border-radius:16px;margin-bottom:16px;box-shadow:0 2px 3px #00000006}#editor .wm-original-option{display:flex;gap:10px;align-items:center;font-size:15px;margin-bottom:22px}#editor .wm-original-option input{width:18px;height:18px;accent-color:var(--wm-accent)}#editor .wm-manual h3{font:600 16px Arial,sans-serif;margin:0 0 12px}#editor .wm-selection-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#editor .wm-selection-tools button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;border:1px solid #ececec;border-radius:11px;background:white;padding:12px 3px;color:#555d68}#editor .wm-selection-tools button span{font-size:25px;line-height:1}#editor .wm-selection-tools button[aria-pressed=true]{border-color:var(--wm-accent);background:#e8f5ef;color:#006b57}#editor .wm-brush-label{display:flex;justify-content:space-between;font-size:13px;margin-top:20px;color:#626b78}#editor #brush-size{width:100%;accent-color:var(--wm-accent);margin:10px 0 12px}#editor .wm-history{display:flex;gap:8px}#editor .wm-history button{flex:1;border:1px solid #ececec;border-radius:9px;background:#fafafa;font-size:13px;padding:10px 4px;color:#657080}
#editor .wm-actions{display:flex;flex-direction:column;gap:13px;margin-top:18px}#editor .wm-primary{background:var(--wm-accent);border:1px solid var(--wm-accent);border-radius:40px;padding:20px 14px;font-size:22px!important;color:white;font-weight:500}#editor .wm-secondary{background:white;border:1px solid var(--wm-accent);border-radius:35px;padding:13px;color:var(--wm-accent);font-size:16px}#editor .wm-credit{font-size:12px;color:#8b919a;line-height:1.7;margin:18px 0 0}#editor #status,#editor #entry-status{font-size:14px;line-height:1.6;color:#727b86;margin:14px 0 0;overflow-wrap:anywhere}#editor #status.error,#editor #entry-status.error{color:#b42318}#editor #entry-status:empty{display:none}
#editor .wm-activity{height:9px;overflow:hidden;background:#f2f2f2;border-radius:20px}#editor .wm-activity span{display:block;height:100%;width:28%;border-radius:20px;background:var(--wm-accent);animation:wm-progress 1.8s ease-in-out infinite}#editor .wm-time{display:flex;justify-content:space-between;color:#8b919a;font-size:13px;margin-top:12px;gap:8px}#editor #progress-stage{color:var(--wm-accent)}#editor .wm-steps{list-style:none;margin:34px 0;padding:0;display:flex;flex-direction:column;gap:27px}#editor .wm-steps li{display:flex;gap:14px;color:#b4b6ba;align-items:flex-start}#editor .wm-steps i{width:24px;height:24px;border-radius:50%;background:#ddd;flex:none;margin-top:2px}#editor .wm-steps strong{display:block;font-size:17px;font-weight:600}#editor .wm-steps li span{display:block;font-size:14px;margin-top:4px;line-height:1.5}#editor .wm-steps li.active{color:#252932}#editor .wm-steps li.active i{background:transparent;border:3px solid #baded0;border-top-color:var(--wm-accent);animation:wm-spin 1s linear infinite}#editor .wm-steps li.done i{background:var(--wm-accent)}#editor .wm-steps li.done i:after{content:'✓';color:white;display:block;text-align:center;font-style:normal;font-size:15px}#editor #progress-detail{color:#8b919a;font-size:13px;line-height:1.6}
#editor .wm-tool[data-view=processing] .wm-preview-top{visibility:hidden}#editor .wm-tool[data-view=processing] .wm-controls h2{margin-bottom:35px}
#editor #picture{max-height:none}
@keyframes wm-spin{to{transform:rotate(360deg)}}@keyframes wm-progress{0%{transform:translateX(-100%)}100%{transform:translateX(460%)}}
@media(max-width:767px){#editor .wm-workspace{grid-template-columns:1fr;gap:20px;padding:16px;border-radius:22px}#editor .wm-preview{min-height:280px;padding:12px}#editor .wm-image-area{min-height:220px}#editor #picture{max-height:400px}#editor .wm-controls{padding:0}#editor .wm-controls h2{font-size:22px;margin-bottom:18px}#editor .wm-upload{min-height:330px;gap:24px;padding:30px 12px}#editor .wm-upload strong{font-size:21px;max-width:260px;line-height:1.5}#editor .wm-upload>span{font-size:15px}#editor .wm-upload .wm-upload-cta{font-size:20px;padding:16px 26px}#editor .wm-comparison button{font-size:12px;padding:10px 13px}#editor .wm-delete{width:33px;height:33px}#editor .wm-delete svg{width:20px}#editor .wm-manual{padding:16px}#editor .wm-legal{line-height:1.7}#editor .wm-primary{font-size:20px!important;padding:17px}#editor .wm-tabs button{font-size:17px}#editor .wm-preview-top{padding-right:32px}}
@media(prefers-reduced-motion:reduce){#editor .wm-spinner,#editor .wm-activity span,#editor .wm-steps li.active i{animation:none}}

body.reference-home #home > .text-center h1{color:var(--accent,#006b57)}

/* Keep loaded states in the same surface; the initial upload stays compact. */
#editor .wm-tool{--wm-surface-height:clamp(640px,calc(100svh - 108px),660px);position:relative}
#editor .wm-workspace{height:var(--wm-surface-height);align-items:stretch;padding:20px;gap:24px}
#editor .wm-preview{height:100%;min-height:0;box-sizing:border-box}
#editor .wm-preview-top{flex:none}
#editor .wm-image-area{min-height:0;min-width:0;overflow:hidden;box-sizing:border-box}
#editor #picture{max-height:none}
/* Anchor the heading and tabs; expanding a mode must not recenter the group. */
#editor .wm-controls{display:grid;grid-template-rows:auto 52px auto auto auto auto;align-content:start;gap:12px;min-height:0;padding:8px 0 0;box-sizing:border-box}
#editor .wm-controls h2,#editor .wm-tabs,#editor .wm-manual,#editor #status,#editor .wm-actions,#editor .wm-credit{margin:0}
#editor .wm-controls h2{line-height:32px}
#editor .wm-controls h2,#editor #auto-panel,#editor #status,#editor .wm-credit{text-align:center}
#editor .wm-panel-slot{min-height:0;overflow:auto}
#editor .wm-manual{box-sizing:border-box}
#editor #status{overflow:auto;align-self:stretch}
#editor .wm-actions{justify-content:flex-start}
#editor .wm-credit{overflow:auto}
#editor .wm-tabs button{padding:10px 8px;font-size:16px}
#editor .wm-manual{padding:14px}
#editor .wm-manual>p{font-size:14px;line-height:1.45;margin-bottom:10px}
#editor .wm-original-option{font-size:14px;margin-bottom:12px}
#editor .wm-manual h3{margin-bottom:8px}
#editor .wm-selection-tools button{padding:8px 3px;gap:4px}
#editor .wm-brush-label{margin-top:12px}
#editor #brush-size{margin:6px 0 8px}
#editor .wm-history button{padding:7px 4px}
#editor .wm-primary{padding:13px 14px;font-size:19px!important;line-height:1.4}
#editor .wm-secondary{padding:10px 12px;font-size:15px;line-height:1.4}
#editor .wm-actions{gap:10px}
#editor .wm-steps{margin:24px 0;gap:22px}
/* The hidden tabs keep their anchor, but progress starts directly below the heading. */
#editor .wm-tool[data-view=processing] .wm-tabs{visibility:hidden}
#editor .wm-tool[data-view=processing] .wm-panel-slot{grid-row:2 / 4;grid-column:1}
#editor .wm-tool[data-view=processing] .wm-tabs{grid-row:2;grid-column:1}
#editor .wm-tool[data-view=processing] .wm-actions{display:none}
#editor .wm-tool[data-view=processing] .wm-controls h2{margin:0}
#editor #entry-status{max-height:48px;overflow:auto}
@media(min-width:768px) and (max-width:1023px){
 #editor .wm-tool{--wm-surface-height:720px}
}
@media(min-width:1024px) and (max-height:747px){
 #editor .wm-controls{gap:8px;padding-top:4px}
}
@media(max-width:767px){
 #editor .wm-workspace{height:auto;grid-template-rows:260px auto;padding:14px;gap:18px}
 #editor .wm-controls{grid-template-rows:auto 52px auto auto auto auto;padding:0;gap:10px}
 #editor .wm-controls h2{line-height:28px}
 #editor .wm-preview{min-height:0}
}
@media(max-width:374px){
 #editor .wm-tabs button{font-size:14px;white-space:nowrap}
 #editor .wm-selection-tools button{font-size:11px}
}

/* Emerald actions: restrained depth, mint selection and a clear hover state. */
#editor .wm-primary,#editor .wm-upload .wm-upload-cta{background:linear-gradient(115deg,#087d64,#005442);border-color:#006b57;box-shadow:0 4px 12px #006b571f}
#editor .wm-primary:hover:not(:disabled),#editor .wm-upload:hover .wm-upload-cta{background:linear-gradient(115deg,#006b57,#004c3b)}
#editor .wm-secondary:hover:not(:disabled){background:#f3faf6}

/* Keep the drop surface opaque over the split hero background. */
#editor .wm-tool button.wm-upload:disabled { opacity: 1; background: #fff; }
#editor .wm-tool .wm-upload:disabled .wm-upload-cta {
  color: #fff;
}
#editor .wm-tool .wm-upload[aria-busy="true"] { cursor: progress; }
