.user-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dbe3ed; border-radius: 6px; color: var(--ink, #253448); background: #fff; box-shadow: 0 20px 80px #0b203c33; overflow: auto; }
.user-dialog::backdrop { background: #0b203c66; }
.user-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #e5e9f0; }
.user-dialog-head h2 { margin: 0; font-size: 20px; }
.user-dialog-close { border: 0; background: transparent; color: #768296; font-size: 26px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.user-dialog-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; padding: 22px; }
.user-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; font-size: 15px; }
.user-field > span:first-child { color: #596a80; }
.user-field input, .user-field select { box-sizing: border-box; width: 100%; height: 38px; padding: 7px 10px; border: 1px solid #ccd6e3; border-radius: 3px; background: #fff; font: inherit; color: inherit; }
.user-field input:focus, .user-field select:focus { outline: 2px solid #163f7833; border-color: #163f78; }
.user-field input[readonly], .user-readonly { background: #f3f5f8; color: #768296; }
.user-readonly { padding: 8px 10px; min-height: 38px; }
.user-wide { grid-column: 1 / -1; }
.user-help { color: #768296; font-size: 14px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.user-dialog-copy p { margin: 0 0 10px; }
.user-dialog-error { padding: 10px 12px; margin: 0; border-radius: 3px; color: #a43c3c; background: #fff1f1; font-size: 14px; }
.user-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid #e5e9f0; }
.user-dialog-actions .btn { min-width: 72px; height: 36px; }
.user-list { min-width: 850px; }
.user-list .user-number { width: 64px; }
.user-list .user-operations { width: 220px; }
.user-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.user-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #21956a; }
.user-status.disabled { color: #768296; }
.user-status.disabled::before { background: #9aa5b5; }
.user-mobile-card { padding: 14px; margin: 10px 0; background: #fff; border: 1px solid #e5e9f0; border-radius: 4px; }
.user-mobile-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-mobile-card p { color: #768296; margin: 8px 0; overflow-wrap: anywhere; font-size: 14px; }
.user-mobile-card .actions { margin: 12px 0 0; gap: 8px; }
.user-mobile-card .actions .btn { width: auto; font-size: 14px; padding: 6px 10px; }
@media (max-width: 600px) {
  .user-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .user-dialog-head { padding: 16px; }
  .user-dialog-form { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
  .user-field input, .user-field select { font-size: 16px; height: 42px; }
  .user-dialog-actions { position: sticky; bottom: -16px; background: #fff; padding-bottom: 8px; }
}
