#user-modal { justify-content: flex-end; align-items: stretch; padding: 0; backdrop-filter: none; }
#user-modal > .modal { width: min(960px, 100vw); max-width: 960px !important; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 16px 0 0 16px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#user-modal .modal-header { padding: 20px 24px; margin: 0; flex-shrink: 0; border-bottom: 1px solid var(--border,#e2e8f0); }
#user-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.um-sections { padding: 20px 24px; flex: 1; overflow-y: auto; }
.um-section { margin-bottom: 20px; padding: 18px; border: 1px solid var(--border,#e2e8f0); border-radius: 12px; background: var(--surface,#fff); }
.um-section h4 { margin: 0 0 16px; color: #1d4ed8; font-size: 16px; }
.um-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.um-grid .form-group { margin: 0; min-width: 0; }
.um-full { grid-column: 1 / -1; }
#user-modal select[multiple] { min-height: 115px; }
#user-modal select.um-selection-values { display: none; }
.um-choices { min-height: 88px; max-height: 220px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 10px; padding: 6px; background: #fff; }
#user-modal .um-choice { display: flex; align-items: center; gap: 10px; margin: 2px 0; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #334155; font-weight: 400; }
#user-modal .um-choice input { width: 17px; height: 17px; margin: 0; flex-shrink: 0; accent-color: #2563eb; }
#user-modal .um-choice.selected { background: #eff6ff; color: #1d4ed8; }
#user-modal .um-choice:focus-within { outline: 2px solid #2563eb; outline-offset: -2px; }
.um-choices-disabled { background: #f1f5f9; }
#user-modal .um-choices-disabled .um-choice { cursor: default; color: #64748b; }
.um-choice-empty { margin: 10px; color: #64748b; font-size: 13px; line-height: 1.6; }
.um-hint { font-size: 12px; line-height: 1.6; color: var(--text-muted,#64748b); margin-top: 8px; }
.um-actions { padding: 14px 24px; background: var(--surface,#fff); border-top: 1px solid var(--border,#e2e8f0); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.um-message { padding: 10px 0; font-size: 13px; color: #166534; }
.um-message.error { color: #b91c1c; }
.um-security-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.um-permissions { margin-top: 24px; padding: 18px; border: 1px solid var(--border,#e2e8f0); border-radius: 12px; overflow-x: auto; }
.um-permissions table { width: 100%; border-collapse: collapse; }
.um-permissions td,.um-permissions th { padding: 9px; border-bottom: 1px solid var(--border,#e2e8f0); text-align: left; font-size: 12px; }
.um-permissions input[type=checkbox],.um-grid input[type=checkbox] { width: auto; }
.um-login { max-width: 620px; margin: 20px 0; padding: 20px; border: 1px solid #cbd5e1; border-radius: 12px; }
.um-token { width: 100%; overflow-wrap: anywhere; padding: 10px; background: #f8fafc; }
.um-audit { max-height: 180px; overflow-y: auto; margin-top: 10px; font-size: 12px; }
.um-audit p { padding: 8px; border-bottom: 1px solid #e2e8f0; }
@media (max-width: 640px) { #user-modal > .modal { border-radius: 0; } .um-grid { grid-template-columns: 1fr; } .um-full { grid-column: auto; } .um-sections { padding: 12px; } .um-section { padding: 14px; } .um-actions { padding: 12px; } .um-actions .btn { flex: 1; } }
