/* 암호 문서 열기: 암호 입력 대화상자(문서를 보려면 암호를 입력해야 한다). */
.password-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 15, 22, .76); backdrop-filter: blur(6px); }
.password-overlay[hidden] { display: none !important; }
.password-dialog { width: min(410px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.password-dialog h2 { margin: 0 0 10px; font-size: 19px; }
.password-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.password-dialog p.password-file { margin: -8px 0 18px; color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.password-dialog label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.password-field { display: flex; gap: 8px; }
.password-field input { flex: 1; min-width: 0; height: 43px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--input); color: var(--text); font-size: 15px; }
.password-field input[aria-invalid="true"] { border-color: #ff9292; }
.password-field button, .password-submit, .password-cancel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-hover); color: var(--text); padding: 0 12px; min-height: 43px; }
.password-field button { display: grid; place-items: center; width: 44px; padding: 0; flex: none; }
.password-field button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.password-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.password-submit { width: 100%; background: var(--accent); color: #101726; font-weight: 750; border: 0; }
html[data-theme="light"] .password-submit { color: #fff; }
.password-submit:disabled { opacity: .55; }
.password-cancel { width: 100%; background: transparent; color: var(--muted); }
.password-cancel:hover { background: var(--surface-hover); color: var(--text); }
.password-result { min-height: 23px; margin-top: 13px; font-weight: 650; font-size: 13px; line-height: 1.6; }
.password-result.error { color: #ff9292; }
.password-result.success { color: #79d5a0; }
html[data-theme="light"] .password-result.error { color: #b3261e; }
html[data-theme="light"] .password-result.success { color: #1b7a43; }
@media print { .password-overlay { display: none !important; } }
