/* Layout des Hintergrund-Entferners: Steuerung links, Vergleich rechts. */

.remover {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar { display: flex; flex-direction: column; gap: 12px; }

.hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 10px;
}

/* Modell-Liste mit Fortschritt */
.model-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-list li {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.model-list .model-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.model-list .state { font-family: var(--mono); white-space: nowrap; }
.model-list li.ready .state { color: var(--accent-2); }

.model-list .bar {
  height: 3px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}

.model-list .bar > div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}

.status {
  font-size: 0.85rem;
  margin: 0 0 10px;
  min-height: 1.4em;
}

.status.working { color: var(--accent); }
.status.error { color: var(--danger); }

/* Vorher/Nachher */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.pane {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.pane figcaption {
  padding: 8px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.pane-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 12px;
}

.pane-body img, .pane-body canvas {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.pane-body .placeholder { color: var(--text-dim); font-size: 0.85rem; }

/* Fortschritt während der Freistellung */
.work-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(320px, 80%);
}

.work-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.work-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #b06bff);
  transition: width 0.15s linear;
}

.work-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Schachbrett hinter dem transparenten Ergebnis */
.checker {
  background: repeating-conic-gradient(var(--checker-1) 0% 25%, var(--checker-2) 0% 50%) 0 0 / 24px 24px;
}

@media (max-width: 1000px) {
  .remover { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
