/* Free Rotate/Flip — additive to utility.css, which already supplies the
   hero, drop zone, and status line. */

.rf-workspace { border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.rf-workspace[hidden], .drop-zone[hidden] { display: none; }

.rf-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.rf-controls .button { min-height: 44px; }
.rf-controls .material-symbols-outlined { font-size: 18px; vertical-align: -3px; }
/* Mirrors rotate_right into a vertical-flip icon rather than pulling in a
   second glyph just for this one button. */
.rf-flip-v .material-symbols-outlined { transform: rotate(90deg); display: inline-block; }

.rf-stage-wrap { display: flex; justify-content: center; }
.rf-stage { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff repeating-conic-gradient(#eef1f6 0% 25%, #fff 0% 50%) 50% / 18px 18px; display: inline-flex; }
#rfCanvas { max-width: 100%; max-height: 52vh; width: auto; height: auto; display: block; }

#rfStatus { margin: 16px 0 0; min-height: 1.4em; }
#rfStatus.error { color: #991b1b; }
#rfStatus.success { color: var(--purple); }

.rf-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.rf-actions label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.rf-actions select { border: 1px solid var(--line); border-radius: 8px; padding: 9px; font: inherit; }
.rf-actions .button { min-height: 46px; }

@media (max-width: 700px) {
  .rf-controls .button, .rf-actions .button, .rf-actions label { flex: 1 1 100%; }
  #rfCanvas { max-height: 40vh; }
}
