
/* User detail workspace v3: one coherent panel with stacked management flows. */
.modal .user-detail-modal { width: min(920px, 96vw); }
.modal .user-detail-modal .modal-head { border-bottom-color: #e7eaf1; background: #fff; }
.modal .user-detail-modal .modal-body { display: block; padding: 0; background: #f7f8fb; }
.user-detail-page { min-width: 0; color: #303949; }
.user-detail-hero {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 24px 28px 22px;
  border-bottom: 1px solid #e7eaf1;
  background:
    radial-gradient(circle at 88% 18%, rgb(103 111 215 / 10%), transparent 30%),
    linear-gradient(145deg, #fff 0%, #f8f9ff 100%);
}
.user-detail-hero::after {
  content: "";
  position: absolute;
  top: -52px;
  right: 24px;
  width: 168px;
  height: 168px;
  border: 1px solid rgb(89 97 210 / 8%);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgb(89 97 210 / 2.5%), 0 0 0 64px rgb(89 97 210 / 1.5%);
  pointer-events: none;
}
.user-detail-avatar {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: grid;
  flex: 0 0 70px;
  overflow: hidden;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 19px;
  background: linear-gradient(145deg, #eef0ff, #e5e8fb);
  color: #5d65cb;
  font-size: 23px;
  font-weight: 650;
  box-shadow: 0 8px 24px rgb(39 49 76 / 13%), 0 0 0 1px #e1e5ed;
}
.user-detail-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.user-detail-avatar img[hidden], .user-detail-avatar span[hidden] { display: none; }
.user-detail-identity { position: relative; z-index: 1; min-width: 0; flex: 1 1 auto; }
.user-detail-identity > div { min-width: 0; display: flex; align-items: baseline; gap: 13px; }
.user-detail-identity strong,
.user-detail-identity > div > span,
.user-detail-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-detail-identity strong { max-width: 330px; color: #222b3a; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.user-detail-identity > div > span { color: #657082; font-size: 13px; font-variant-numeric: tabular-nums; }
.user-detail-identity small { display: flex; align-items: center; gap: 8px; max-width: 520px; margin-top: 10px; color: #9aa3b1; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.user-detail-identity small span { flex: 0 0 auto; color: #aab1bd; font: 500 9px/1.2 system-ui, sans-serif; }
.user-detail-status { position: relative; z-index: 1; display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.user-detail-meta {
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid #e7eaf0;
  background: #fff;
}
.user-detail-meta > span { min-width: 0; display: grid; gap: 6px; padding: 0 24px; }
.user-detail-meta > span:first-child { padding-left: 0; }
.user-detail-meta > span + span { border-left: 1px solid #e9ecf1; }
.user-detail-meta > span + span::before { display: none; }
.user-detail-meta small { color: #969fad; font-size: 9.5px; font-weight: 520; }
.user-detail-meta strong { overflow: hidden; color: #4b5666; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-data-section { padding: 22px 28px 24px; background: #fff; }
.user-data-section .user-section-heading { min-height: 34px; }
.user-data-section .user-section-heading > div { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.user-data-section .user-section-heading h3 { color: #2c3545; font-size: 14px; font-weight: 650; }
.user-data-section .user-section-heading span { color: #a0a8b5; font-size: 9.5px; }
.user-data-section .chevron-link { min-height: 34px; padding-inline: 9px; }
.user-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e6e9ef;
  border-radius: 13px;
  background: #fafbfc;
}
.user-data-metric {
  position: relative;
  min-width: 0;
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  background: #fafbfc;
}
.user-data-metric + .user-data-metric { border-left: 1px solid #eaedf2; }
.user-data-metric:nth-child(5) { border-left: 0; }
.user-data-metric:nth-child(n + 5) { border-top: 1px solid #eaedf2; }
.user-data-metric > i { width: 4px; height: 30px; flex: 0 0 4px; border-radius: 99px; background: #6d75db; }
.user-data-metric > span { min-width: 0; display: grid; gap: 6px; }
.user-data-metric small { color: #929baa; font-size: 9.5px; font-weight: 520; white-space: nowrap; }
.user-data-metric strong { overflow: hidden; color: #303949; font-size: 13.5px; font-weight: 670; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.user-data-metric.tone-violet > i { background: #8b68d8; }
.user-data-metric.tone-indigo > i { background: #5961d2; }
.user-data-metric.tone-cyan > i { background: #37a9bd; }
.user-data-metric.tone-amber > i { background: #d89839; }
.user-data-metric.tone-rose > i { background: #d66c7a; }
.user-data-metric.tone-green > i { background: #3ba778; }
.user-data-metric.tone-slate > i { background: #7a8798; }
.user-management-panel {
  display: block;
  margin: 0 28px 27px;
  overflow: hidden;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(28 38 59 / 3%);
}
.user-management-section { min-width: 0; padding: 20px 22px 22px; }
.user-management-section + .user-management-section { border-top: 1px solid #e7eaf0; }
.user-management-heading { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.user-management-heading > div { display: flex; align-items: center; gap: 10px; }
.user-management-heading h3 { margin: 0; color: #303949; font-size: 13px; font-weight: 650; }
.user-management-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #eef0ff; color: #5d65cc; }
.user-management-icon svg { width: 16px; height: 16px; stroke-width: 1.7; }
.user-management-icon.account-icon { background: #f1f4f7; color: #687588; }
.user-device-state { display: inline-flex; align-items: center; gap: 7px; color: #7d8796; font-size: 10px; }
.user-device-state i { width: 6px; height: 6px; border-radius: 50%; background: #35a779; box-shadow: 0 0 0 4px rgb(53 167 121 / 9%); }
.user-membership-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px 16px;
  margin-top: 16px;
}
.user-membership-form label { min-width: 0; display: grid; gap: 7px; color: #838d9d; font-size: 10px; }
.user-membership-form label > span { font-weight: 540; }
.user-membership-form .field,
.user-membership-form .select { width: 100%; min-width: 0; height: 39px; border-color: #dfe3ea; border-radius: 9px; background-color: #fafbfc; font-size: 11px; }
.user-membership-form > button { width: 146px; height: 38px; justify-self: end; grid-column: 2; border-radius: 9px; padding-inline: 16px; }
.user-account-control { display: grid; gap: 13px; margin-top: 15px; }
.user-account-control > label { min-width: 0; display: grid; gap: 7px; color: #838d9d; font-size: 10px; }
.user-account-control > label > span { font-weight: 540; }
.user-account-control > label .field { width: 100%; height: 39px; border-color: #dfe3ea; border-radius: 9px; background: #fafbfc; font-size: 11px; }
.user-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.user-account-actions button { min-width: 108px; height: 34px; border-radius: 8px; padding-inline: 14px; font-size: 10.5px; }
.user-account-actions .subtle-danger { margin-left: auto; border-color: #f0d9dd; background: #fff; color: #c74e5b; }
.user-account-actions .subtle-danger:hover { background: #fff7f8; }

@media (max-width: 700px) {
  .user-detail-hero { align-items: flex-start; gap: 13px; padding: 20px 18px; }
  .user-detail-avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 16px; }
  .user-detail-identity > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .user-detail-identity strong { font-size: 18px; }
  .user-detail-status { margin-left: auto; flex-direction: column; align-items: flex-end; }
  .user-detail-meta { grid-template-columns: 1fr; padding: 7px 18px; }
  .user-detail-meta > span { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
  .user-detail-meta > span + span { border-top: 1px solid #edf0f4; border-left: 0; }
  .user-data-section { padding: 20px 18px; }
  .user-data-section .user-section-heading > div > span { display: none; }
  .user-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-data-metric:nth-child(odd) { border-left: 0; }
  .user-data-metric:nth-child(n + 3) { border-top: 1px solid #eaedf2; }
  .user-management-panel { margin: 0 18px 20px; }
  .user-management-section { padding: 18px; }
  .user-membership-form { grid-template-columns: 1fr; }
  .user-membership-form > button { width: 100%; grid-column: 1; }
  .user-account-actions button { flex: 1 1 120px; }
  .user-account-actions .subtle-danger { margin-left: 0; }
}

@media (max-width: 430px) {
  .user-detail-hero { flex-wrap: wrap; }
  .user-detail-status { width: 100%; margin-left: 71px; flex-direction: row; }
  .user-data-metric { min-height: 64px; padding: 10px 12px; }
  .user-management-heading { align-items: flex-start; }
}

/* Adaptive selects: preserve complete labels and comfortable arrow spacing. */
select.select {
  padding-right: 44px;
  background-position: right 16px center;
}
.list-tools,
.task-tools,
.role-filters,
#systemView .list-tools,
#systemView .session-tools,
#systemView .system-audit-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.list-tools > .field:first-child,
.task-tools > .field:first-child,
.role-filters > .field:first-child,
#systemView .list-tools > .field:first-child {
  width: auto;
  min-width: 190px;
  flex: 1 1 220px;
}
.list-tools > .select,
.task-tools > .select,
.role-filters > .select,
#systemView .list-tools > .select {
  width: 138px;
  min-width: 138px;
  flex: 0 0 138px;
}
.list-tools > input[type="month"],
.task-tools > input[type="month"],
.list-tools > input[type="date"],
.task-tools > input[type="date"] {
  width: 142px;
  min-width: 142px;
  flex: 0 0 142px;
}
.list-tools > button,
.task-tools > button,
.role-filters > button { flex: 0 0 auto; }
#typeFilter { width: 164px; min-width: 164px; flex-basis: 164px; }
#ordersProvider { width: 158px; min-width: 158px; flex-basis: 158px; }
#ordersPlan,
#ordersAnomaly,
#usersMembership { width: 142px; min-width: 142px; flex-basis: 142px; }
#auditTargetType { width: 146px; min-width: 146px; flex-basis: 146px; }
.pager .select {
  width: 118px;
  min-width: 118px;
  flex: 0 0 118px;
  padding-right: 40px;
  background-position: right 14px center;
}
.modal .select,
.user-membership-form .select { width: 100%; min-width: 0; }

/* User profile v2: continuous canvas, whitespace hierarchy, no visual dividers. */
.modal .user-detail-modal { width: min(920px, 96vw); }
.modal .user-detail-modal .modal-body { background: #fff; }
.user-profile-header {
  min-height: 112px;
  gap: 17px;
  border: 0;
  padding: 24px 28px 13px;
}
.user-profile-avatar {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border: 4px solid #fff;
  background: #eef0ff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgb(39 49 76 / 13%), 0 0 0 1px #e5e8ef;
}
.user-profile-name strong { max-width: 320px; color: #222b39; font-size: 20px; font-weight: 620; }
.user-profile-name span { color: #667284; font-size: 13px; }
.user-profile-name > small { max-width: 480px; margin-top: 9px; color: #abb2bd; font-size: 9.5px; }
.user-profile-status { gap: 6px; }
.user-profile-dates {
  min-height: 44px;
  gap: 28px;
  border: 0;
  padding: 0 28px 15px 113px;
  background: #fff;
}
.user-profile-dates > span,
.user-profile-dates > span + span {
  gap: 7px;
  border: 0;
  padding: 0;
}
.user-profile-dates small { color: #a0a8b4; font-size: 9.5px; }
.user-profile-dates strong { color: #626d7d; font-size: 10.5px; font-weight: 560; }
.user-overview-section { padding: 5px 28px 22px; }
.user-section-heading { min-height: 28px; }
.user-section-heading h3 { color: #303949; font-size: 12.5px; font-weight: 620; }
.user-overview-rows {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 7px 15px;
  background: #f7f8fb;
}
.user-overview-row {
  min-height: 60px;
  border: 0;
}
.user-overview-row > span {
  width: 60px;
  flex-basis: 60px;
  color: #7f8998;
  font-size: 10px;
  font-weight: 580;
}
.user-overview-row > div { align-items: center; }
.user-overview-metric {
  gap: 7px;
  border: 0;
  padding: 0 13px;
}
.user-overview-metric + .user-overview-metric { border: 0; }
.user-overview-metric small { color: #969fad; font-size: 9.5px; }
.user-overview-metric strong { color: #354052; font-size: 13.5px; font-weight: 650; }
.user-controls-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .85fr);
  gap: 30px;
  margin: 0 28px 26px;
  border: 0;
  border-radius: 12px;
  padding: 19px 20px 20px;
  background: #f7f8fb;
}
.user-control-section { padding: 0; }
.user-control-section:only-child { grid-column: 1 / -1; }
.user-control-section + .user-control-section { border: 0; }
.user-membership-form { gap: 10px; margin-top: 12px; }
.user-membership-form label { color: #7f8998; font-size: 9.5px; }
.user-membership-form .field,
.user-membership-form .select,
.user-account-control > .field { height: 37px; border-color: #e0e4eb; background-color: #fff; font-size: 11px; }
.user-membership-form > button { height: 37px; }
.user-account-control { margin-top: 12px; }
.user-account-control > div { gap: 8px; margin-top: 10px; }
.user-account-control button { height: 34px; }

@media (max-width: 820px) {
  .user-controls-layout { grid-template-columns: 1fr; gap: 22px; }
  .user-control-section + .user-control-section { border: 0; }
}
@media (max-width: 620px) {
  .user-profile-header { padding: 20px 18px 10px; }
  .user-profile-avatar { width: 56px; height: 56px; flex-basis: 56px; }
  .user-profile-name strong { font-size: 17px; }
  .user-profile-dates { gap: 0; padding: 2px 18px 14px; }
  .user-profile-dates > span + span { border: 0; }
  .user-overview-section { padding: 4px 18px 18px; }
  .user-controls-layout { margin: 0 18px 20px; padding: 17px; }
  .user-overview-row > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-overview-metric:nth-child(3),
  .user-overview-metric:nth-child(n + 3) { border: 0; }
}

/* Statistical surfaces: structured summaries without capsule cards. */
:root { --summary-surface-radius: 8px; }

.dashboard-summary-grid { gap: 12px; padding-top: 2px; }
.dashboard-summary-panel {
  min-height: 198px;
  overflow: hidden;
  border: 1px solid #e3e7ee;
  border-radius: var(--summary-surface-radius);
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgb(31 42 68 / 3%);
  transition: border-color .18s, box-shadow .18s;
}
.dashboard-summary-panel:hover {
  border-color: #d5dae4;
  box-shadow: 0 6px 18px rgb(31 42 68 / 6%);
  transform: none;
}
.dashboard-panel-head {
  height: 50px;
  gap: 9px;
  margin: 0;
  border-bottom: 1px solid #edf0f4;
  padding: 0 14px;
  background: #fbfcfd;
}
.dashboard-panel-head h2 { color: #303847; font-size: 13px; font-weight: 630; }
.dashboard-panel-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border: 1px solid color-mix(in srgb, var(--panel-accent) 15%, #e5e8ee);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel-soft) 65%, #fff);
}
.dashboard-panel-icon svg { width: 15px; height: 15px; }
.dashboard-panel-metrics,
.task-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.dashboard-panel-metric,
.task-metrics .dashboard-panel-metric {
  min-width: 0;
  height: 73px;
  gap: 6px;
  border-radius: 0;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  padding: 12px 14px;
  background: #fff;
}
.dashboard-panel-metric:nth-child(2n) { border-right: 0; }
.dashboard-panel-metric:nth-last-child(-n + 2) { border-bottom: 0; }
.dashboard-panel-metric > span { color: #818b9a; font-size: 10.5px; font-weight: 520; }
.dashboard-panel-metric > strong,
.task-metrics .dashboard-panel-metric > strong,
.task-metric-value strong {
  color: #2b3443;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 680;
  letter-spacing: -.02em;
}
.business-metrics .dashboard-panel-metric:not(.metric-primary) > strong,
.panel-order .dashboard-panel-metric > strong,
.system-metrics .runtime-metric > strong { color: #2b3443; }
.business-metrics .metric-member { background: #fff; }
.panel-order .dashboard-panel-metric > strong { font-size: clamp(13px, .95vw, 16px); }
.task-metric-value small { color: #8993a2; font-weight: 550; }
.system-metrics .runtime-metric { padding-right: 52px; }
.system-metrics .runtime-donut { right: 13px; }
.system-metrics .runtime-donut::after { background: #fff; }

.result-summary,
#rolesView .result-summary {
  min-height: 64px;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 14px;
  overflow-x: auto;
  border: 1px solid #e2e6ed;
  border-radius: var(--summary-surface-radius);
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgb(31 41 55 / 3%);
  scrollbar-width: thin;
}
.result-summary .result-summary-item {
  width: auto;
  min-width: 142px;
  max-width: none;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  background: #fff;
  box-shadow: none;
}
.result-summary .result-summary-item::before,
.result-summary .result-summary-item::after { display: none; }
.result-summary .result-summary-item + .result-summary-item {
  border: 0;
  border-left: 1px solid #e9ecf1;
}
.result-summary .result-summary-item span {
  overflow: visible;
  color: #7c8798;
  font-size: 11px;
  font-weight: 520;
  line-height: 1.2;
  text-overflow: clip;
}
.result-summary .result-summary-item strong {
  margin-left: auto;
  color: #303949;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.result-summary .result-summary-item:first-child strong { color: #555fc7; }
.result-summary .result-summary-item:nth-child(2) strong { color: #16815f; }
.result-summary .result-summary-item:nth-child(3) strong { color: #b7791f; }
.result-summary .result-summary-item:nth-child(4) strong { color: #6d56c7; }
#tasksView .result-summary-item:nth-child(4) strong,
#systemBlocksPanel .result-summary-item:nth-child(2) strong,
#systemAuditPanel .result-summary-item:nth-child(3) strong,
#systemStoragePanel .result-summary-item:nth-child(4) strong { color: #c34855; }
.result-summary .result-summary-item.filter-summary-item {
  margin-left: auto;
  border-left: 1px solid #e2e6ed;
  background: #f7f8fa;
}
.result-summary .filter-summary-item[hidden],
#usersResultSummary .filter-summary-item[hidden] { display: none; }

.system-status-card { border-radius: var(--summary-surface-radius); box-shadow: 0 2px 8px rgb(31 41 55 / 3%); }
.system-service-metric { border-radius: 6px; background: #fff; }

@media (max-width: 1180px) {
  .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dashboard-summary-grid { grid-template-columns: 1fr; }
  .result-summary .result-summary-item { min-width: 132px; padding-inline: 14px; }
}

/* User profile: one-page hierarchy with native avatar and no switching panels. */
.modal .user-detail-modal { width: min(940px, 96vw); }
.modal .user-detail-modal .modal-body {
  display: block;
  padding: 0;
  background: #fff;
}
.user-profile-view { min-width: 0; color: #303847; }
.user-profile-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 24px;
  border-bottom: 1px solid #e9edf2;
}
.user-profile-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  flex: 0 0 62px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e0e4ec;
  border-radius: 50%;
  background: #eef0ff;
  color: #6268cf;
  font-size: 21px;
  font-weight: 600;
  box-shadow: 0 5px 14px rgb(35 45 75 / 8%);
}
.user-profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.user-profile-avatar img[hidden], .user-profile-avatar span[hidden] { display: none; }
.user-profile-name { min-width: 0; flex: 1 1 auto; }
.user-profile-name > div { min-width: 0; display: flex; align-items: baseline; gap: 11px; }
.user-profile-name strong,
.user-profile-name span,
.user-profile-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-profile-name strong { max-width: 290px; color: #252d3b; font-size: 18px; font-weight: 620; letter-spacing: -.015em; }
.user-profile-name span { color: #626d7d; font-size: 13px; font-variant-numeric: tabular-nums; }
.user-profile-name > small { display: block; max-width: 440px; margin-top: 8px; color: #a0a8b5; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.user-profile-status { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.user-profile-dates {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #edf0f4;
  background: #fafbfc;
}
.user-profile-dates > span { min-width: 0; display: flex; align-items: baseline; gap: 8px; padding-right: 34px; }
.user-profile-dates > span + span { border-left: 1px solid #e1e6ed; padding-left: 34px; }
.user-profile-dates small { color: #909aa9; font-size: 10px; font-weight: 500; }
.user-profile-dates strong { overflow: hidden; color: #4b5565; font-size: 11px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.user-overview-section { padding: 19px 24px 20px; }
.user-section-heading { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-section-heading h3 { margin: 0; color: #303847; font-size: 13px; font-weight: 630; }
.user-section-heading > span { color: #8b95a4; font-size: 10px; }
.user-overview-rows { margin-top: 9px; border-top: 1px solid #e8ecf1; }
.user-overview-row {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #edf0f4;
}
.user-overview-row > span {
  width: 70px;
  display: flex;
  flex: 0 0 70px;
  align-items: center;
  color: #8993a2;
  font-size: 10px;
  font-weight: 540;
}
.user-overview-row > div { min-width: 0; display: flex; flex: 1 1 auto; align-items: stretch; }
.user-overview-metric {
  min-width: 0;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.user-overview-metric + .user-overview-metric { border-left: 1px solid #edf0f4; }
.user-overview-metric small { color: #929baa; font-size: 10px; font-weight: 500; white-space: nowrap; }
.user-overview-metric strong { overflow: hidden; color: #303949; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.user-controls-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .85fr);
  border-top: 1px solid #e5e9ef;
  background: #fafbfc;
}
.user-control-section { min-width: 0; padding: 18px 24px 21px; }
.user-control-section + .user-control-section { border-left: 1px solid #e4e8ee; }
.user-membership-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; margin-top: 11px; }
.user-membership-form label { min-width: 116px; display: grid; flex: 1 1 116px; gap: 5px; color: #838d9d; font-size: 10px; }
.user-membership-form label:nth-child(3) { flex-basis: 178px; }
.user-membership-form label:nth-child(4) { flex-basis: 180px; }
.user-membership-form .field,
.user-membership-form .select { min-width: 0; height: 34px; font-size: 11px; }
.user-membership-form > button { height: 34px; flex: 0 0 auto; padding-inline: 13px; }
.user-account-control { margin-top: 11px; }
.user-account-control > .field { width: 100%; height: 34px; font-size: 11px; }
.user-account-control > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.user-account-control button { height: 32px; padding-inline: 10px; font-size: 11px; }

@media (max-width: 820px) {
  .user-controls-layout { grid-template-columns: 1fr; }
  .user-control-section + .user-control-section { border-top: 1px solid #e4e8ee; border-left: 0; }
}
@media (max-width: 620px) {
  .user-profile-header { align-items: flex-start; padding-inline: 18px; }
  .user-profile-avatar { width: 52px; height: 52px; flex-basis: 52px; }
  .user-profile-name > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .user-profile-status { margin-left: auto; flex-direction: column; align-items: flex-end; }
  .user-profile-dates { align-items: stretch; flex-direction: column; padding: 9px 18px; }
  .user-profile-dates > span { min-height: 30px; justify-content: space-between; padding: 0; }
  .user-profile-dates > span + span { border-top: 1px solid #edf0f4; border-left: 0; padding-left: 0; }
  .user-overview-section, .user-control-section { padding-inline: 18px; }
  .user-overview-row > span { width: 50px; flex-basis: 50px; }
  .user-overview-row > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-overview-metric { min-height: 46px; padding-inline: 9px; }
  .user-overview-metric:nth-child(3) { border-left: 0; }
  .user-overview-metric:nth-child(n + 3) { border-top: 1px solid #edf0f4; }
}
