/* editor.css — the image editor overlay.
   Darkroom rules apply here more than anywhere: the creative fills the room,
   the chrome stays grey, and the accent appears only on the selection itself
   and the one committing action — which is exactly what it marks everywhere
   else in the app. */

.edt-wrap {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
}

.edt-bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.edt-title {
  font-weight: 650;
  font-size: 13px;
  margin-inline-end: var(--s2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 28ch;
}
.edt-spacer { flex: 1 1 auto; }
.edt-status { font-size: 12px; color: var(--muted); }

.edt-tool {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: none;
  font: inherit; font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}
.edt-tool:hover { background: var(--panel-2); }
.edt-tool[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.edt-tool .ico { width: 14px; height: 14px; }

.edt-brush { width: 110px; accent-color: var(--accent); }
.edt-brush[hidden] { display: none; }

.edt-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.edt-canvas {
  box-shadow: var(--shadow-lg);
  background:
    repeating-conic-gradient(var(--panel-3) 0% 25%, var(--panel) 0% 50%) 0 0 / 20px 20px;
  cursor: crosshair;
  touch-action: none;
}
.edt-canvas.is-pen { cursor: crosshair; }

/* The message space that appears under a fresh circle. */
.edt-ask {
  position: fixed;
  z-index: 310;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}
.edt-ask-input {
  width: 100%;
  resize: none;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}
.edt-ask-input:focus { outline: none; box-shadow: var(--focus); }
.edt-ask-row { display: flex; gap: var(--s2); justify-content: flex-end; }
.edt-ask-row .btn { font-size: 12.5px; padding: 6px 12px; }

.edt-bar .edt-hint { margin-inline-end: var(--s2); }

.edt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3) var(--s3);
}
.edt-actions .btn { font-size: 12.5px; padding: 6px 12px; }
.edt-hint { font-size: 12px; color: var(--muted); }

.is-busy .edt-canvas { cursor: progress; }
