@layer properties,theme,base;@layer components{.eraser-app{--ec:var(--bg,#fff1d8);--ecard:var(--surface,#fff8ea);--eplum:var(--ink,#352242);--eorange:var(--tangerine,#ef552d);--emuted:var(--ink-muted,#74647b)}.eraser-app button:where(:not(.generation-button)),.eraser-app select,.eraser-app input{font:inherit}.eraser-app button{cursor:pointer}.eraser-app button:where(:not(.generation-button)):disabled,.eraser-app select:disabled{opacity:.45;cursor:not-allowed}.eraser-app :is(button:where(:not(.generation-button)),select,input,canvas):focus-visible{outline:3px solid var(--eorange);outline-offset:3px}.eraser-source-drop.is-dragging{outline-offset:3px;border-radius:16px;outline:3px dashed #9767bd}.eraser-source-preview{border:1px solid var(--image-tool-line,#e6dce1);background:#fff;border-radius:14px;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;display:flex;position:relative}.eraser-source-preview img{object-fit:contain;background:#f4eee9;border-radius:6px;width:62px;height:70px}.eraser-source-preview>div{flex:1;min-width:80px}.eraser-source-preview b{text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-size:12px;display:block;overflow:hidden}.eraser-source-preview small{color:var(--emuted);margin-top:4px;font-size:11px;display:block}.eraser-source-preview button{min-height:32px;color:var(--eplum);background:0 0;border:0;border-radius:6px;place-items:center;padding:4px;font-size:12px;display:grid}.eraser-source-preview .eraser-replace{background:#f3ebf3;padding:4px 8px}.eraser-example-panel{min-width:0;min-height:calc(var(--stage-height) + 28px);border:1px solid color-mix(in srgb, var(--eplum) 17%, transparent);background:color-mix(in srgb, var(--eplum) 5%, var(--ec));--stage-height:min(700px, calc(100dvh - 265px));background:var(--ecard);border-radius:24px;flex-direction:column;grid-area:stage;justify-content:start;align-items:center;gap:12px;padding:14px;display:flex;position:relative}.eraser-paint-canvas{opacity:.55;touch-action:none;cursor:crosshair;width:100%;height:100%;position:absolute;inset:0}.eraser-paint-canvas[aria-disabled=true]{cursor:wait}.eraser-image-frame[data-ring] .eraser-paint-canvas{cursor:none}.eraser-brush-ring{pointer-events:none;display:none;position:absolute;top:0;left:0}.eraser-image-frame[data-ring] .eraser-brush-ring[data-visible=true]{display:block}.eraser-brush-ring:after{content:"";width:var(--brush-size);height:var(--brush-size);border:1.5px solid #fff;border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #352242b3,inset 0 0 0 1px #35224266}.eraser-editor-tools{border:1px solid color-mix(in srgb, var(--eplum) 15%, transparent);background:var(--ecard);border-radius:22px;gap:10px;padding:10px;display:grid}.eraser-tool-tabs{background:#f5ece0;border:1px solid #d4c9bf;border-radius:15px;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:3px;display:grid}.eraser-tool-tabs button{color:#78677f;background:0 0;border:0;border-radius:11px;justify-content:center;align-items:center;gap:5px;min-width:0;min-height:42px;padding:0 3px;font-size:12px;font-weight:700;display:inline-flex}.eraser-tool-tabs button svg{flex:none}.eraser-tool-tabs button[aria-pressed=true]{color:#fff9ee;background:#382044}.eraser-tool-help{color:var(--emuted);margin:0 4px;font-size:12px;line-height:1.5}.eraser-local-controls{gap:8px;display:grid}.eraser-local-status{background:color-mix(in srgb, var(--eplum) 5%, transparent);border-radius:10px;gap:7px;padding:8px;font-size:12px;display:grid}.eraser-local-status small{color:var(--emuted);line-height:1.5}.eraser-local-status progress{width:100%;height:6px;accent-color:var(--eorange)}.eraser-select-actions{gap:6px;display:flex}.eraser-select-actions button,.eraser-local-status button{border:1px solid color-mix(in srgb, var(--eplum) 20%, transparent);background:var(--ecard);min-height:34px;color:var(--eplum);border-radius:9px;flex:1;font-size:12px}.eraser-select-actions button[aria-pressed=true]{background:var(--eplum);color:var(--ec)}.eraser-text-box{touch-action:manipulation;background:0 0;border:1px solid #9650ff;border-radius:2px;padding:0;position:absolute}.eraser-text-box[aria-pressed=false]{border-style:dashed;border-color:#168067}.eraser-pick-dot{pointer-events:none;background:#9650ff;border:2px solid #fff;border-radius:50%;width:10px;height:10px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 1px 4px #0006}.eraser-pick-dot.is-negative{background:#e74b44}.eraser-brush-control{align-items:center;gap:12px;padding:2px 6px;display:flex}.eraser-brush-dot{background:#9650ff;border-radius:50%;flex:none;width:8px;height:8px}.eraser-brush-control input{width:100%;min-width:0;accent-color:var(--eorange)}.eraser-brush-control output{text-align:right;min-width:26px;color:var(--emuted);font-size:12px}.eraser-history-row{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.eraser-history-row button{background:color-mix(in srgb, var(--eplum) 6%, transparent);height:38px;color:var(--eplum);border:0;border-radius:11px;place-items:center;display:grid}.eraser-editor-bottom{gap:8px;display:grid}.eraser-generation-settings{gap:8px;min-width:0;display:grid}.eraser-app select option{color:var(--eplum);background:var(--ecard)}.eraser-generation-status{background:var(--ecard);border-radius:14px;grid-template-columns:1fr auto;gap:8px;padding:12px;font-size:13px;display:grid}.eraser-generation-status progress{width:100%;height:7px;accent-color:var(--eorange);grid-column:1/-1}.eraser-result-tools{background:var(--ecard);border-radius:16px;gap:10px;padding:12px;display:grid}.eraser-result-tools p{color:var(--emuted);margin:0;font-size:12px}.eraser-result-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.eraser-result-actions button{background:var(--eplum);min-height:42px;color:var(--ec);touch-action:none;-webkit-user-select:none;user-select:none;border:0;border-radius:11px;justify-content:center;align-items:center;gap:7px;padding:6px 12px;display:inline-flex;font-size:13px!important;font-weight:700!important}.eraser-result-actions button[aria-pressed=false]{background:color-mix(in srgb, var(--eplum) 7%, transparent);color:var(--eplum)}.eraser-status{background:var(--eplum);color:var(--ec);border-radius:99px;align-items:center;gap:8px;padding:10px 14px;font-size:13px;display:flex;position:absolute;bottom:22px}.eraser-status-dot{background:var(--eorange);border-radius:50%;width:8px;height:8px;animation:1s ease-in-out infinite eraser-pulse}@keyframes eraser-pulse{50%{opacity:.4}}@media (prefers-reduced-motion:reduce){.eraser-status-dot{animation:none}}.eraser-main{--stage-height:min(720px, calc(100dvh - 300px))}.eraser-editor-sidebar .eraser-editor-tools{background:0 0;border:0;border-radius:0;flex:0 auto;padding:0;overflow-y:auto}.eraser-editor-stage{justify-content:center;align-items:center;gap:12px;container-type:size}.eraser-app .eraser-editor-stage>.image-tool-stage-header{margin-bottom:0}.eraser-editor-stage .eraser-image-frame,.eraser-editor-stage .eraser-comparison{width:auto;max-width:100%;height:min(calc(100cqh - 104px), calc(100cqw / var(--image-ratio,1)));max-height:calc(100cqh - 104px);aspect-ratio:var(--image-ratio,1);flex:none}.eraser-example-panel{background:0 0;border:0;border-radius:0;flex-direction:column;flex:1;justify-content:stretch;gap:8px;width:100%;min-width:0;min-height:0;padding:0;display:flex}.eraser-example-preview{flex:1;justify-content:center;align-items:center;width:100%;min-width:0;min-height:0;display:flex;container-type:size}.eraser-example-preview .eraser-comparison{width:auto;height:min(100cqh, calc(100cqw / var(--image-ratio,1)));max-width:100%;aspect-ratio:var(--image-ratio,1);flex:none}.eraser-editor-stage .eraser-result-tools{z-index:2;max-width:min(320px,100% - 24px);padding:7px 10px;position:absolute;bottom:12px;left:12px}.eraser-editor-stage .eraser-result-tools p{display:none}.eraser-editor-stage .eraser-result-actions{flex-wrap:wrap;gap:6px;display:flex}.eraser-editor-stage .eraser-result-actions button{min-height:36px;padding:5px 9px;font-size:11px!important}.eraser-editor-stage .eraser-result-actions select{border:1px solid color-mix(in srgb, var(--eplum) 20%, transparent);background:var(--ecard);min-width:90px;max-width:125px;color:var(--eplum);border-radius:9px;padding:4px 7px;font-size:11px}.eraser-editor-stage .eraser-result-actions .eraser-tool-help{flex:100%}@media (width<=900px){.eraser-main{--stage-height:min(60dvh, 500px)}.eraser-editor-tools{border-radius:18px;gap:7px;padding:8px}.eraser-editor-sidebar .eraser-editor-tools{border-radius:0;padding:0;overflow:visible}.eraser-tool-tabs button{min-height:38px}.eraser-tool-help{font-size:11px}.eraser-history-row button{height:34px}.eraser-editor-stage .eraser-image-frame,.eraser-editor-stage .eraser-comparison{height:min(calc(100cqh - 104px), calc(100cqw / var(--image-ratio,1)));max-height:calc(100cqh - 104px)}}@media (width<=380px){.eraser-main{--stage-height:44dvh}.eraser-tool-tabs button{gap:3px;font-size:11px}.eraser-tool-tabs svg{width:15px}}.eraser-app .eraser-editor-stage .eraser-example-panel{gap:0;padding:0;position:static}.eraser-app .eraser-editor-stage .eraser-example-preview .eraser-comparison{height:min(100cqh, calc(100cqw / var(--image-ratio,1)));max-height:none}.eraser-app .eraser-image-frame,.eraser-app .eraser-comparison{box-shadow:none;border-radius:20px}.eraser-app .eraser-stage-label{color:#fff;background:#2d1b34e0;border-radius:14px;padding:5px 10px;font-size:12px;font-weight:800;top:13px}.eraser-app .eraser-stage-label-before{left:13px}.eraser-app .eraser-stage-label-after{background:#f05b31;right:13px}}@layer utilities;
