/*! PDF Edit (c) 2026 pdfedit.com — All rights reserved. Source files are MIT/Apache-licensed third-party libraries plus original work. Copying, redistribution, or derivative works require attribution. Contact: hello@pdfedit.com */
.protect-modal{display:flex;flex-direction:column;gap:14px;min-width:460px;max-width:560px;font-size:13px;color:var(--text)}.protect-modal--prompt{min-width:360px}.protect-modal__warning{padding:12px 14px;background:#fef3c7;border:1px solid #f59e0b;border-left:4px solid #d97706;border-radius:4px;font-size:12px;line-height:1.5;color:#78350f}.protect-modal__warning strong{display:block;margin-bottom:4px;font-size:13px;font-weight:700}[data-mode=dark] .protect-modal__warning,.theme-dark .protect-modal__warning{background:#2a1f0a;color:#fcd34d;border-color:#f59e0b}.protect-modal__section{display:flex;flex-direction:column;gap:10px;padding:12px 14px;background:var(--surface-2, #f9fafb);border:1px solid var(--border-subtle, #e5e7eb);border-radius:6px}.protect-modal__section-title{margin:0;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted, #6b7280)}.protect-modal__row{display:flex;flex-direction:column;gap:4px}.protect-modal__row.is-disabled{opacity:.45;pointer-events:none}.protect-modal__label{font-size:12px;font-weight:600;color:var(--text)}.protect-modal__input{width:100%;padding:8px 10px;font-size:13px;font-family:var(--font);color:var(--text);background:var(--surface, #fff);border:1px solid var(--border, #d1d5db);border-radius:4px;transition:border-color var(--transition-fast);box-sizing:border-box}.protect-modal__input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #dc26261f}.protect-modal__input:disabled{background:var(--surface-2);cursor:not-allowed}.protect-modal__pw-wrap{position:relative;display:flex;align-items:stretch}.protect-modal__pw-wrap .protect-modal__input{padding-right:36px;font-family:ui-monospace,SF Mono,Consolas,monospace;letter-spacing:.05em}.protect-modal__pw-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:3px;cursor:pointer;font-size:14px;opacity:.6}.protect-modal__pw-toggle:hover{opacity:1;background:var(--surface-2)}.protect-modal__strength-wrap{display:flex;align-items:center;gap:10px;margin-top:2px}.protect-modal__strength-meter{display:flex;gap:3px;flex:1;max-width:200px}.protect-modal__strength-cell{flex:1;height:4px;background:var(--border-subtle, #e5e7eb);border-radius:2px;transition:background .12s ease}.protect-modal__strength-meter[data-level="1"] .protect-modal__strength-cell.is-on{background:#ef4444}.protect-modal__strength-meter[data-level="2"] .protect-modal__strength-cell.is-on{background:#f59e0b}.protect-modal__strength-meter[data-level="3"] .protect-modal__strength-cell.is-on{background:#84cc16}.protect-modal__strength-meter[data-level="4"] .protect-modal__strength-cell.is-on{background:#16a34a}.protect-modal__strength-label{font-size:11px;font-weight:600;min-width:60px}.protect-modal__strength-label[data-level="0"]{color:var(--text-muted)}.protect-modal__strength-label[data-level="1"]{color:#ef4444}.protect-modal__strength-label[data-level="2"]{color:#d97706}.protect-modal__strength-label[data-level="3"]{color:#65a30d}.protect-modal__strength-label[data-level="4"]{color:#16a34a}.protect-modal__strength-issues{list-style:none;margin:0;padding:0;font-size:11px;color:var(--text-muted, #6b7280)}.protect-modal__strength-issues li{padding:1px 0}.protect-modal__strength-issues li:before{content:"\b7  ";color:var(--primary)}.protect-modal__check{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;user-select:none}.protect-modal__check input[type=checkbox]{width:14px;height:14px;cursor:pointer;flex-shrink:0}.protect-modal__hint{font-size:11px;color:var(--text-muted, #6b7280);line-height:1.4;margin-top:2px}.protect-modal__perm-row{display:flex;align-items:flex-start;gap:10px;padding:6px 8px;border-radius:4px;cursor:pointer;transition:background var(--transition-fast)}.protect-modal__perm-row:hover{background:var(--surface, #fff)}.protect-modal__perm-row input[type=checkbox]{margin-top:2px;width:14px;height:14px;cursor:pointer;flex-shrink:0}.protect-modal__perm-text{flex:1}.protect-modal__perm-label{font-size:12px;font-weight:600;color:var(--text)}.protect-modal__perm-description{font-size:11px;color:var(--text-muted, #6b7280);margin-top:1px}.protect-modal__perm-bulk{display:flex;gap:8px;margin-top:8px;padding-top:10px;border-top:1px dashed var(--border-subtle)}.protect-modal__bulk-btn{flex:1;padding:6px 12px;background:var(--surface, #fff);border:1px solid var(--border, #d1d5db);border-radius:4px;font-size:11px;font-weight:600;color:var(--text);cursor:pointer;font-family:var(--font);transition:all var(--transition-fast)}.protect-modal__bulk-btn:hover{background:var(--surface-2);border-color:var(--primary);color:var(--primary)}.protect-modal__bulk-btn:active{transform:translateY(1px)}.protect-modal__advanced{border:1px solid var(--border-subtle);border-radius:6px;padding:0}.protect-modal__advanced summary{padding:10px 14px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);cursor:pointer;user-select:none}.protect-modal__advanced summary:hover{color:var(--text)}.protect-modal__advanced[open] summary{border-bottom:1px solid var(--border-subtle)}.protect-modal__advanced .protect-modal__row{padding:10px 14px 14px}.protect-modal__error{display:none;padding:10px 12px;background:#fee2e2;border:1px solid #ef4444;border-radius:4px;color:#991b1b;font-size:12px}.protect-modal__error.is-visible{display:block}.protect-modal__explain{margin:0 0 6px;font-size:13px;line-height:1.5;color:var(--text)}.protect-modal__explain.is-error{color:#991b1b;font-weight:600}.protect-status{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;height:22px;background:#16a34a;color:#fff;border:1px solid #15803d;border-radius:11px;font-size:11px;font-weight:700;letter-spacing:.02em;font-family:var(--font);cursor:pointer;transition:background .12s ease,transform .12s ease;margin-right:6px;white-space:nowrap}.protect-status:hover{background:#15803d}.protect-status:active{transform:translateY(1px)}.protect-status.hidden{display:none}.protect-status svg{flex-shrink:0}.protect-status__label{letter-spacing:.02em}.protect-status--signed{background:#2563eb;border-color:#1d4ed8}.protect-status--signed:hover{background:#1d4ed8}.protect-decrypted-hint{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:12px;font-weight:500;position:sticky;top:0;z-index:50;animation:protect-decrypted-hint-in .2s ease-out;background:#fef3c7;color:#78350f;border-bottom:1px solid #f59e0b;border-left:4px solid #d97706}.protect-decrypted-hint--success{background:#dcfce7;color:#14532d;border-bottom-color:#22c55e;border-left-color:#16a34a}.protect-decrypted-hint svg{flex-shrink:0;color:#d97706}.protect-decrypted-hint--success svg{color:#16a34a}.protect-decrypted-hint__text{flex:1;line-height:1.4}.protect-decrypted-hint__text strong{font-weight:700}.protect-decrypted-hint__btn{flex-shrink:0;padding:4px 10px;background:#d97706;color:#fff;border:none;border-radius:4px;font-size:11px;font-weight:600;cursor:pointer;font-family:var(--font);transition:background .12s ease}.protect-decrypted-hint__btn:hover{background:#b45309}.protect-decrypted-hint--success .protect-decrypted-hint__btn{background:#16a34a}.protect-decrypted-hint--success .protect-decrypted-hint__btn:hover{background:#15803d}.protect-decrypted-hint__close{background:transparent;border:none;color:#78350f;font-size:18px;cursor:pointer;padding:0 4px;line-height:1;opacity:.6}.protect-decrypted-hint__close:hover{opacity:1}.protect-decrypted-hint--success .protect-decrypted-hint__close{color:#14532d}@keyframes protect-decrypted-hint-in{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}[data-mode=dark] .protect-decrypted-hint,.theme-dark .protect-decrypted-hint{background:#2a1f0a;color:#fcd34d;border-bottom-color:#d97706}[data-mode=dark] .protect-decrypted-hint--success,.theme-dark .protect-decrypted-hint--success{background:#0f2818;color:#86efac;border-bottom-color:#16a34a;border-left-color:#16a34a}
