/* Object remover widget (eraser.js). Uses the page's colour tokens. */
.oe{display:flex;flex-direction:column;gap:14px}
.oe [hidden]{display:none!important}
.oe-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  min-height:300px;padding:30px 22px;text-align:center;cursor:pointer;border-radius:var(--r-lg,22px);
  border:2px dashed var(--border-2,#E4B29F);background:var(--surface,#fff)}
.oe-drop:hover,.oe-drop:focus-visible,.oe-drop.over{border-color:var(--violet,#D0460D);background:var(--violet-wash,#FFE1D2)}
.oe-drop .ico{width:56px;height:56px;border-radius:18px;background:var(--violet,#D0460D);display:grid;place-items:center}
.oe-drop .ico svg{width:26px;height:26px;stroke:#fff}
.oe-drop .dt-title{margin:0;font-size:1.3rem;font-family:var(--display,inherit);font-weight:600}
.oe-drop p{margin:0;max-width:40ch;color:var(--muted,#7B6163);font-size:.96rem}
.oe-drop .fmt{font-family:var(--mono,monospace);font-size:.75rem;color:var(--muted,#7B6163);letter-spacing:.03em}
.oe-sample{margin:0;text-align:center;font-size:.93rem;color:var(--muted,#7B6163)}
.oe-sample button{background:none;border:0;padding:0;font:inherit;color:var(--violet-deep,#A8380A);font-weight:600;cursor:pointer;text-decoration:underline}
.oe-cvw{position:relative;display:flex;justify-content:center;align-items:center;min-height:200px;border-radius:var(--r-lg,22px);
  overflow:hidden;background:var(--paper-3,#FFF0E8)}
.oe-cvw canvas{display:block;touch-action:none;cursor:crosshair;max-width:100%}
.oe.is-busy .oe-cvw canvas{cursor:progress}
.oe-busy{position:absolute;inset:0;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;
  background:rgba(43,27,32,.38);color:#fff;font-weight:600;font-size:.98rem}
.oe-spin{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:oe-spin .8s linear infinite}
@keyframes oe-spin{to{transform:rotate(360deg)}}
.oe-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;border-radius:var(--r-md,16px);
  background:var(--surface,#fff);border:1px solid var(--border,#F2CFC2)}
.oe-size{display:flex;align-items:center;gap:8px;font-size:.9rem;color:var(--ink-2,#574047);flex:1 1 180px}
.oe-size input{flex:1;accent-color:var(--violet,#D0460D)}
.oe-ib{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;min-width:40px;padding:0 12px;
  border-radius:12px;border:1.5px solid var(--border-2,#E4B29F);background:transparent;color:var(--ink,#2B1B20);
  font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;user-select:none;-webkit-user-select:none}
.oe-ib svg{width:18px;height:18px}
.oe-ib:hover:not(:disabled){background:var(--surface-2,#FFF8F4)}
.oe-ib[aria-pressed="true"]{background:var(--violet-wash,#FFE1D2);border-color:var(--violet,#D0460D)}
.oe-ib:disabled{opacity:.4;cursor:not-allowed}
.oe-actions{display:flex;flex-wrap:wrap;gap:10px}
.oe-actions .btn{flex:1 1 auto}
.oe-hint{margin:0;font-size:.9rem;color:var(--muted,#7B6163)}
.oe-err{margin:0;color:var(--crit-text,#B42318);font-size:.92rem}
@media (prefers-reduced-motion:reduce){.oe-spin{animation-duration:2.4s}}
.oe-actions .btn,.oe-actions .btn2{height:46px;padding-top:0;padding-bottom:0}
.oe-actions svg{width:18px;height:18px;flex:none}
