/* Redact PDF */
.rd-warning { padding: 12px 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; line-height: 1.5; }
.rd-section { border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; background: #ffffff; }
.rd-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 14px; color: #334155; }
.rd-nav input[type="number"] { width: 64px; min-height: 44px; text-align: center; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; background: #ffffff; color: #0f172a; }
.rd-btn { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f1f5f9; color: #334155; font-size: 14px; font-weight: 600; cursor: pointer; }
.rd-btn:hover:not(:disabled) { background: #e2e8f0; }
.rd-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rd-btn[aria-pressed="true"] { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.rd-btn-small { min-height: 40px; min-width: 44px; padding: 6px 10px; }
.rd-btn:focus-visible, .rd-box:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.rd-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; justify-content: center; }
.rd-stage-wrap { display: flex; justify-content: center; overflow: hidden; }
.rd-stage { position: relative; display: inline-block; line-height: 0; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.25); background: #ffffff; max-width: 100%; }
.rd-stage canvas { display: block; max-width: 100%; }
.rd-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.rd-layer.rd-scroll { cursor: default; touch-action: pan-y; }
.rd-box { position: absolute; background: rgba(0, 0, 0, 0.88); border: 2px solid #ef4444; box-sizing: border-box; cursor: default; }
.rd-draft { position: absolute; background: rgba(239, 68, 68, 0.25); border: 2px dashed #ef4444; box-sizing: border-box; pointer-events: none; }
.rd-hint { font-size: 12px; color: #64748b; margin: 8px 0 0; text-align: center; }
.rd-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rd-list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 10px; background: #f8fafc; font-size: 13px; color: #334155; }
.rd-list-empty { font-size: 13px; color: #64748b; padding: 4px 2px; }
.rd-count { font-size: 14px; font-weight: 700; color: #0f172a; margin: 12px 0 0; }
.rd-options { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.rd-options label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.rd-options select { width: 100%; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 6px 10px; font-size: 14px; background: #ffffff; color: #0f172a; }
@media (min-width: 640px) { .rd-options { grid-template-columns: 1fr 1fr; } }
.rd-progress { font-size: 13px; color: #475569; text-align: center; }
.rd-result { padding: 12px 14px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 13px; line-height: 1.5; }
.rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dark .rd-warning { background: #422006; border-color: #854d0e; color: #fde68a; }
.dark .rd-section { background: #1e293b; border-color: #334155; }
.dark .rd-nav, .dark .rd-hint, .dark .rd-list-empty, .dark .rd-progress, .dark .rd-options label { color: #94a3b8; }
.dark .rd-nav input[type="number"], .dark .rd-options select { background: #0f172a; border-color: #475569; color: #f1f5f9; }
.dark .rd-btn { background: #0f172a; border-color: #334155; color: #cbd5e1; }
.dark .rd-btn:hover:not(:disabled) { background: #334155; }
.dark .rd-btn[aria-pressed="true"] { background: #7f1d1d; border-color: #b91c1c; color: #fee2e2; }
.dark .rd-list-item { background: #0f172a; color: #cbd5e1; }
.dark .rd-count { color: #f1f5f9; }
.dark .rd-result { background: #064e3b; border-color: #047857; color: #d1fae5; }

.rd-step { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.dark .rd-step { color: #f1f5f9; }
.rd-primary:disabled { opacity: 0.5; cursor: not-allowed; }

#reset-btn { min-height: 44px; padding: 0 10px; }
