/* The surrounding workbench follows the shared studio used by auto-crop. */
.background-remove-studio .topbar { flex-wrap: wrap; gap: 16px; }
.background-remove-studio .tool-nav { flex-wrap: wrap; }
.background-remove-studio .workspace > *, .background-remove-studio .result-card, .background-remove-studio .queue .file-name { min-width: 0; }
.background-remove-studio .upload-panel .section-title { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.background-remove-studio .queue .remove-file { min-width: 44px; min-height: 44px; }
.background-remove-studio .queue-file-placeholder { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--surface); font-size: var(--type-caption); }
.background-remove-studio .file-state { display: block; white-space: normal; overflow-wrap: anywhere; }
.background-remove-studio .is-error { color: #b42318; }
.background-remove-studio .status { overflow-wrap: anywhere; white-space: pre-line; }
.background-remove-studio .status:empty { display: none; }
.background-remove-studio .model-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--type-label); color: var(--muted); }
.background-remove-studio .model-note h2 { margin: 0 0 8px; font-size: var(--type-body); color: var(--ink); font-weight: 600; }
.background-remove-studio .model-note p { margin: 0; }
.background-remove-studio .model-note a { display: inline-block; padding-block: 12px; color: var(--rust); overflow-wrap: anywhere; }
.background-remove-studio .background-empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px 24px; color: var(--muted); }
.background-remove-studio .background-empty h3 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; }
.background-remove-studio .background-empty p { margin: 0; }
.background-remove-studio .background-empty svg { margin-bottom: 8px; }
.background-remove-studio .background-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 24px; }
.background-remove-studio .background-progress label { grid-column: 1 / -1; overflow-wrap: anywhere; font-size: var(--type-label); }
.background-remove-studio progress { width: 100%; height: 10px; accent-color: var(--accent); }
.background-remove-studio .background-progress button { font-size: var(--type-label); }
.background-remove-studio .results-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.background-remove-studio .preview { position: relative; height: 240px; }
.background-remove-studio .preview img { width: 100%; height: 100%; object-fit: contain; }
.background-remove-studio .comparison-label { position: absolute; right: 10px; top: 10px; border-radius: 5px; padding: 2px 6px; background: #fff; color: var(--ink); font-size: var(--type-caption); }
.background-remove-studio .comparison-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 8px 12px; }
.background-remove-studio .comparison-controls button { min-height: 44px; border: 1px solid var(--line); cursor: pointer; }
.background-remove-studio .comparison-controls button[aria-pressed=true] { background: #e8f2ff; border-color: var(--accent); color: #005bb5; }
.background-remove-studio .card-bottom strong { display: block; overflow-wrap: anywhere; white-space: normal; }
.background-remove-studio .card-actions { display: grid; gap: 8px; margin-top: 12px; }
.background-remove-studio .card-actions a, .background-remove-studio .card-actions button { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; padding: 8px 12px; cursor: pointer; }
.background-remove-studio .card-actions button:disabled, .background-remove-studio .text-button:disabled { opacity: .55; cursor: not-allowed; }
.background-remove-studio .result-tools > label { min-height: 44px; }
@media (max-width: 1100px) {
  .background-remove-studio .topbar .brand { flex: 1 1 100%; max-width: none; }
  .background-remove-studio .tool-nav { margin: 0; width: 100%; justify-content: flex-start; gap: 4px; }
}
@media (max-width: 800px) {
  .background-remove-studio .background-empty { min-height: 280px; padding: 32px 16px; }
  .background-remove-studio .results-header { flex-wrap: wrap; }
  .background-remove-studio .results-header .button { max-width: none; }
  .background-remove-studio .tool-nav a { padding-inline: 12px; }
}
@media (max-width: 600px) {
  .background-remove-studio .results-grid { grid-template-columns: minmax(0, 1fr); }
  .background-remove-studio .preview { height: 260px; }
  .background-remove-studio .background-progress { grid-template-columns: minmax(0, 1fr); }
  .background-remove-studio .background-progress button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .background-remove-studio *, .background-remove-studio *::before, .background-remove-studio *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Supporting content remains below the working tool. */
[data-c2-tool-content]{width:100%;max-width:960px;margin:48px auto 0;box-sizing:border-box;line-height:1.8;overflow-wrap:anywhere}
[data-c2-tool-content] section{padding:24px 0;border-top:1px solid var(--site-line,#ddd)}
[data-c2-tool-content] h2{font-size:20px;margin:0 0 12px}
[data-c2-tool-content] p{margin:0 0 12px}
[data-c2-tool-content] details{padding:12px 0}
[data-c2-tool-content] summary{cursor:pointer;min-height:44px;font-weight:600}
[data-c2-tool-content] .c2-demo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
[data-c2-tool-content] .c2-demo img{display:block;width:100%;height:auto;max-height:300px;object-fit:contain;background:#fff}
