/* rotate-pdf - styles for this tool only (every class starts with rotpdf-) */
.rotpdf-input, .rotpdf-select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0.6rem 0.85rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #fff; color: #0f172a; font-size: 0.875rem; }
.rotpdf-input::placeholder { color: #94a3b8; }
.rotpdf-input:focus, .rotpdf-select:focus { outline: 2px solid #6366f1; outline-offset: 1px; border-color: #6366f1; }
.dark .rotpdf-input, .dark .rotpdf-select { background: #334155; border-color: #475569; color: #f1f5f9; }
.dark .rotpdf-input::placeholder { color: #94a3b8; }
#rotpdf-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.rotpdf-field { min-width: 0; }
.rotpdf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .rotpdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rotpdf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rotpdf-wide { grid-column: 1 / -1; }
.rotpdf-check { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: 0.875rem; color: #334155; cursor: pointer; }
.rotpdf-check input { width: 18px; height: 18px; accent-color: #4f46e5; flex-shrink: 0; }
.dark .rotpdf-check { color: #e2e8f0; }
.rotpdf-summary { min-height: 1.25rem; margin-top: 0.5rem; font-size: 0.8125rem; }
.rotpdf-ok { color: #4338ca; }
.rotpdf-error { color: #b91c1c; }
.dark .rotpdf-ok { color: #a5b4fc; }
.dark .rotpdf-error { color: #fca5a5; }
.rotpdf-secondary { min-height: 44px; padding: 0.5rem 0.9rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #fff; color: #334155; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.rotpdf-secondary:hover { background: #f1f5f9; }
.dark .rotpdf-secondary { background: #334155; border-color: #475569; color: #e2e8f0; }
.dark .rotpdf-secondary:hover { background: #475569; }
.rotpdf-rules { display: flex; flex-direction: column; gap: 10px; }
.rotpdf-rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.rotpdf-remove { width: 44px; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #fff; color: #64748b; cursor: pointer; }
.rotpdf-remove:hover { color: #b91c1c; background: #fef2f2; }
.dark .rotpdf-remove { background: #334155; border-color: #475569; color: #cbd5e1; }
.dark .rotpdf-remove:hover { background: #475569; color: #fca5a5; }
@media (max-width: 480px) {
  .rotpdf-rule { grid-template-columns: minmax(0, 1fr) 44px; }
  .rotpdf-rule .rotpdf-input { grid-column: 1 / -1; }
}
