#studioView.is-content-removing :is(#quickModifyPanel, #remixCard) {
  opacity: .42;
  pointer-events: none;
}
#studioView.is-content-removing #quickModifyPanel#quickModifyPanel {
  opacity: .42 !important;
  pointer-events: none !important;
}
#studioView.is-content-removing .reference-toolbar-actions > :not(#removeContentBtn):not(#contentBrushControl) {
  opacity: .42;
  pointer-events: none;
}
#studioView.is-content-removing #removeContentBtn,
#studioView.is-content-removing #removeContentBtn:hover {
  color: var(--mark);
  border-color: transparent;
  background: transparent;
}
#studioView.is-content-removing #referenceOverlay {
  visibility: hidden !important;
  pointer-events: none !important;
}
#studioView.is-content-removing .reference-hotspot,
#studioView.is-content-removing #referenceLayerInspect { pointer-events: none !important; }
#studioView.is-content-removing :is(.added-qr-preview, .added-logo-preview) {
  pointer-events: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#studioView.is-content-removing :is(.added-qr-handle, .added-logo-handle) {
  display: none !important;
}
#studioView .content-remove-layer {
  --content-remove-color: #ffff00;
  position: absolute;
  inset: 0;
  z-index: 110;
  cursor: none;
  touch-action: none;
}
#studioView .content-remove-cursor {
  position: absolute;
  z-index: 2;
  width: var(--content-brush-size, 24px);
  height: var(--content-brush-size, 24px);
  box-sizing: border-box;
  border: 2px solid var(--content-remove-color);
  border-radius: 50%;
  background: var(--content-remove-color);
  opacity: 0.5;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 80ms ease, height 80ms ease;
}
#studioView .content-remove-cursor.is-hidden { display: none; }
#studioView .content-remove-strokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: .5;
}
#studioView .content-remove-stroke {
  fill: none;
  stroke: color-mix(in srgb, var(--mark) 58%, transparent);
  stroke-linecap: round;
  stroke-linejoin: round;
}
#studioView .content-remove-box {
  position: absolute;
  box-sizing: border-box;
  border: 1px dashed var(--mark);
  background: color-mix(in srgb, var(--mark) 16%, transparent);
  pointer-events: none;
}
#studioView .content-remove-handle {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid var(--mark);
  border-radius: 0;
  background: var(--mark);
  pointer-events: auto;
  touch-action: none;
}
#studioView .content-remove-handle-nw { top: -5px; left: -5px; cursor: nwse-resize; }
#studioView .content-remove-handle-ne { top: -5px; right: -5px; cursor: nesw-resize; }
#studioView .content-remove-handle-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
#studioView .content-remove-handle-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
#studioView .content-remove-handle:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 2px;
}
#studioView .content-brush-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-left: -4px;
  padding: 0 8px 0 4px;
  color: var(--text);
  white-space: nowrap;
}
#studioView .content-brush-control[hidden] { display: none !important; }
#studioView .content-brush-control > span { font-size: 13px; font-weight: 600; }
#studioView .content-brush-control output { font-variant-numeric: tabular-nums; }
#studioView .content-brush-control input {
  width: 84px;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
  accent-color: var(--mark);
}
#studioView .content-brush-control input::-webkit-slider-runnable-track {
  height: 4px;
  border: none;
  border-radius: 2px;
  background: color-mix(in srgb, var(--mark) 24%, transparent);
}
#studioView .content-brush-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: none;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: none;
}
#studioView .content-brush-control input::-moz-range-track {
  height: 4px;
  border: none;
  border-radius: 2px;
  background: color-mix(in srgb, var(--mark) 24%, transparent);
}
#studioView .content-brush-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: none;
}
#studioView .content-brush-control input:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 2px;
}
#studioView.is-content-removing .content-brush-control { color: var(--mark); }
body.mobile-studio #studioView .reference-toolbar-actions > #removeContentBtn { display: inline-flex !important; }
@media (max-width: 700px) {
  #studioView .content-brush-control { gap: 5px; padding-inline: 2px; }
  #studioView .content-brush-control input { width: 64px; }
}

/* Compact settings stay below the existing toolbar, outside the image. */
#studioView .history-tool span { display: none; }
#studioView .content-brush-control { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin:0; padding:8px 16px; min-height:48px; border-bottom:1px solid var(--border); background:var(--card); color:var(--text); }
#studioView .content-brush-control input { width:120px; }
#studioView .content-removal-modes { display:inline-flex; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
#studioView .content-removal-modes button, #studioView #contentRemovalDone { min-height:32px; padding:4px 12px; border:0; background:transparent; color:var(--text); font:inherit; font-size:13px; cursor:pointer; }
#studioView .content-removal-modes button[aria-pressed="true"] { color:var(--mark); background:color-mix(in srgb,var(--mark) 9%,var(--card)); }
#studioView #contentRemovalDone { border-left:1px solid var(--border); border-radius:0; }
#studioView .content-brush-control button:focus-visible { outline:2px solid var(--mark); outline-offset:-2px; }
#studioView .content-remove-cursor { transition:none; }
@media(max-width:700px){
 #studioView .content-brush-control { display:grid; grid-template-columns:auto 1fr auto; gap:8px 12px; padding:8px 12px; }
 #studioView .content-removal-modes { grid-column:1 / 3; justify-self:start; }
 #studioView #contentRemovalDone { grid-column:3; grid-row:1; min-height:44px; }
 #studioView .content-brush-control input { width:100%; }
 #studioView .content-removal-modes button { min-height:44px; }
}
