/* Sigify — Image Rotator — per-tool styles */
.rotator-workspace {
  margin-top: 22px; padding: 22px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.rotator-workspace h3 {
  font-size: 1.05rem; color: var(--primary);
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.rotator-workspace h3::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--primary); border-radius: 3px; }
.muted { color: var(--text-light); font-weight: 600; font-size: 0.85rem; margin-left: 6px; }
.rotator-stage {
  position: relative; width: 100%;
  height: clamp(360px, 60vh, 600px);
  background-color: #0f172a;
  background-image:
    linear-gradient(45deg, #222 25%, transparent 25%),
    linear-gradient(-45deg, #222 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #222 75%),
    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.rotator-stage canvas { display: block; max-width: 100%; max-height: 100%; }
.grid-toggle { position: absolute; top: 10px; right: 12px; }
.grid-toggle .check-wrap { background: rgba(15,23,42,0.7); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; }
.controls { display: flex; flex-direction: column; gap: 4px; }
.control-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--border); }
.control-row:first-of-type { border-top: none; }
.control-label { min-width: 110px; color: var(--text-mid); font-size: 0.85rem; font-weight: 700; }
.controls input[type="range"] {
  flex: 1; min-width: 200px;
  -webkit-appearance: none; appearance: none; height: 6px;
  background: linear-gradient(90deg, #377ad1, #6ea8e7); border-radius: 6px;
}
.controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid #377ad1; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.controls input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #377ad1; cursor: pointer;
}
.chip-btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  background: rgba(55,122,209,0.06); border: 1px solid var(--border);
  color: var(--text-mid); font-weight: 600; font-size: 0.85rem;
  padding: 6px 12px; border-radius: 50px; cursor: pointer; transition: var(--transition);
}
.chip-btn:hover { color: var(--primary); border-color: var(--primary-light); background: rgba(55,122,209,0.10); }
.chip-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(55,122,209,0.25); }
.dim-wrap { display: inline-flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--text-mid); font-weight: 600; }
.dim-wrap input, .dim-wrap select {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 10px; font-size: 0.95rem; color: var(--text-dark); font-weight: 600; min-width: 110px;
}
.dim-wrap input:focus, .dim-wrap select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(55,122,209,0.15); }
.check-wrap { display: inline-flex; align-items: center; gap: 6px; color: var(--text-mid); font-size: 0.92rem; }
.check-wrap input { accent-color: var(--primary); }
.quality-section { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-mid); font-weight: 600; }
.quality-section .quality-slider {
  -webkit-appearance: none; appearance: none; width: 130px; height: 6px; background: linear-gradient(90deg,#377ad1,#6ea8e7); border-radius: 6px;
}
.quality-section .quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #377ad1; cursor: pointer;
}
.preview-item .preview-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.active-tool { color: var(--primary) !important; font-weight: 700; }
@media (max-width: 720px) {
  .control-label { min-width: 0; }
  .controls input[type="range"] { min-width: 160px; }
}
