/* Background Remover — tool-specific styles (loaded after /assets/base.css) */
.bg-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.bg-stage figure { margin: 0; }
.bg-stage figcaption { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted-2); margin-bottom: 8px; }
.cv-wrap { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; display: flex; align-items: center; justify-content: center; min-height: 200px; overflow: hidden; }
.cv-wrap canvas { max-width: 100%; height: auto; display: block; border-radius: 6px; }
#origCanvas { cursor: crosshair; }
.checker { background-color: #fff;
  background-image: linear-gradient(45deg, #d3d7e4 25%, transparent 25%), linear-gradient(-45deg, #d3d7e4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d3d7e4 75%), linear-gradient(-45deg, transparent 75%, #d3d7e4 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }

.ai-controls, .color-controls, .result-controls { margin-top: 18px; }
.color-controls .hint { color: var(--muted-2); font-size: .85rem; margin: 8px 0 0; }

.progress-wrap { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0%; background: var(--accent-grad); transition: width .2s; }
.progress-txt { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.bg-opts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bg-opts > span { color: var(--muted); font-size: .9rem; font-weight: 600; margin-right: 4px; }
.bgopt { font-family: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: all .15s;
  display: inline-flex; align-items: center; gap: 8px; }
.bgopt:hover { color: var(--text); border-color: var(--muted-2); }
.bgopt.active { background: var(--accent-grad); color: #0b0e1c; border-color: transparent; }
.bgopt.custom input[type=color] { width: 22px; height: 22px; border: none; border-radius: 5px; background: none; padding: 0; cursor: pointer; }

@media (max-width: 720px) { .bg-stage { grid-template-columns: 1fr; } }
