.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(24,37,30,.48); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 510px); max-height: min(86vh, 760px); overflow-y: auto; position: relative; padding: 14px 30px 30px; border-radius: 15px; background: var(--paper); box-shadow: 0 24px 70px rgba(16,28,21,.25); }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #707b72; font-size: 27px; line-height: 1; cursor: pointer; }
.modal-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.modal-language-toggle { min-width: 36px; height: 29px; font-size: 12px; }
.modal-controls .modal-close { position: static; }
.modal-kicker { color: #839064; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.modal h2 { margin: 8px 0 8px; font-size: 24px; letter-spacing: -1px; }
.modal-copy { margin: 0 0 20px; color: #737c74; font-size: 14px; line-height: 1.6; }
.demo-notice { padding: 11px 12px; margin: 16px 0 0; border-radius: 7px; background: #edf0e5; color: #5d6e58; font-size: 12px; line-height: 1.5; }
.modal-form { display: grid; gap: 13px; }
.form-field { display: grid; gap: 6px; color: #46524a; font-size: 12px; font-weight: 700; }
.form-field[hidden] { display: none; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #e0e2d9; border-radius: 7px; padding: 11px 12px; outline-color: #94a575; background: white; color: var(--ink); font-size: 14px; font-weight: 400; }
.form-field textarea { min-height: 82px; resize: vertical; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .button { width: 100%; min-height: 44px; }
.modal #adminSwitchAccountButton { margin: 12px 0; }
.modal .form-actions { display: grid; gap: 8px; margin-top: 12px; }
.modal #logoutForm { margin-top: 12px; }
.auth-switch { display: block; width: 100%; margin-top: 14px; padding: 6px; border: 0; background: transparent; color: var(--green); font-size: 14px; font-weight: 700; cursor: pointer; }
.social-auth-divider { display: flex; align-items: center; gap: 10px; margin: 17px 0 10px; color: #788078; font-size: 12px; }
.social-auth-divider::before, .social-auth-divider::after { height: 1px; flex: 1; background: #e5e6dc; content: ""; }
.social-auth-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-auth-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px; border: 1px solid #dfe2d9; border-radius: 7px; background: white; color: #34443a; font-size: 14px; font-weight: 700; text-decoration: none; }
.social-auth-button:only-child { grid-column: 1 / -1; width: calc((100% - 8px) / 2); justify-self: center; }
.social-auth-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.social-auth-button:hover { border-color: #9baa91; background: #f7f8f3; }
.social-auth-button:disabled { cursor: not-allowed; color: #727a73; background: #f1f2ed; }
.social-auth-button small { color: #737c74; font-size: 11px; font-weight: 500; }
.social-auth-note { margin: 8px 0 0; color: #737c74; font-size: 12px; line-height: 1.5; text-align: center; }
.linked-social-accounts, .social-switch-accounts { display: grid; gap: 8px; }
.linked-social-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #e0e2d9; border-radius: 7px; background: white; color: #46524a; font-size: 14px; font-weight: 700; }
.linked-social-account .button, .social-switch-accounts .button { width: auto; min-height: 34px; padding: 7px 10px; font-size: 12px; }
.linked-social-account .button:disabled { cursor: not-allowed; opacity: .6; }
.social-switch-accounts { margin-top: 10px; }
.account-delete-section { margin-top: 20px; padding-top: 4px; }
.account-delete-button { width: 100%; }
#accountDeleteForm .button { width: 100%; }
.auth-error { margin: 12px 0 0; color: #9a3e32; font-size: 14px; line-height: 1.5; }
@media (max-width: 620px) {
  .modal { padding: 14px 19px 20px; }
  .modal h2 { font-size: 21px; }
}
