.sidebar {
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: center;
}

.page-heading {
  text-align: left;
}

.sidebar-user {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.user-identity:hover strong { text-decoration: underline; }

.user-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--user-color, #2563eb);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
}

.user-photo {
  object-fit: cover;
}

.user-identity strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.user-identity small {
  display: block;
  margin-top: 4px;
  color: #aab2c0;
  font-size: 13px;
}

.user-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.user-actions form {
  display: block;
  width: 100%;
  margin: 14px 0 0;
}

.sidebar .user-actions .button {
  display: flex;
  width: 100% !important;
  min-height: 42px;
  justify-content: flex-start;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 400;
}

.sidebar .user-actions form .button {
  width: 100% !important;
}

.sidebar .user-actions .button:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .15);
}

@media (max-width: 1000px) {
  .sidebar-user {
    margin: 0 0 18px;
    padding-bottom: 18px;
  }

  .user-actions {
    margin-top: 18px;
    padding-top: 16px;
  }
}

@media (max-width: 620px) {
  .user-identity strong { font-size: 18px; }
}

.profile-panel { gap: 18px; }

.profile-preview {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .15);
}

.profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-preview span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--user-color, #2563eb);
  color: #fff;
  font-size: 58px;
  font-weight: 900;
}

.profile-upload {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.person-user-row {
  min-height: 78px;
}

.person-user-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.person-list-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--person-avatar-color, #2563eb);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .16);
}

.person-list-photo { object-fit: cover; }
.person-user-details { min-width: 0; }
.person-user-details strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .person-user-row { gap: 16px; }
}

.dashboard-person-groups {
  display: grid;
  gap: 18px;
}

.dashboard-person-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-person-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.dashboard-person-heading h2 { margin: 0 0 3px; }
.dashboard-person-heading small { display: block; }

.dashboard-person-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.dashboard-person-initial {
  display: grid;
  place-items: center;
  background: var(--person-avatar-color, #64748b);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-task-grid { padding: 16px; }
.dashboard-task-grid .task-card { box-shadow: none; }

.points-panel { margin-top: 20px; }
.points-panel .panel-header p { margin: 4px 0 0; }
.points-list { display: grid; margin-top: 10px; }
.points-person-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.points-person-row:last-child { border-bottom: 0; }
.points-person-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.points-person-identity strong,.points-person-identity small { display: block; }
.points-person-identity small { margin-top: 4px; }
.points-avatar { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border-radius: 50%; object-fit: cover; }
.points-initial { display: grid; place-items: center; background: var(--person-avatar-color,#64748b); color: #fff; font-size: 20px; font-weight: 900; }
.points-score-actions { display: flex; align-items: center; gap: 12px; }
.points-score { display: grid; min-width: 64px; text-align: center; }
.points-score strong { font-size: 25px; line-height: 1; }
.points-score small { margin-top: 4px; font-size: 11px; }
.points-edit-person { display: flex; align-items: center; gap: 12px; }
.points-edit-person h2 { margin: 0 0 4px; }
.points-edit-form { padding: 16px; background: #f8fafc; box-shadow: none; }
.own-points-panel { margin-bottom: 18px; border-left: 5px solid var(--user-color,#2563eb); }
.own-points-panel strong { display: block; margin: 5px 0; color: var(--primary); font-size: 36px; line-height: 1; }
.own-points-panel small { display: block; }
.notification-person { display: flex; align-items: center; gap: 12px; }
.notification-person h2 { margin: 0 0 4px; }
.notification-options { display: grid; gap: 10px; }
.notification-option { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; color: var(--text); cursor: pointer; }
.notification-option input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.notification-option strong,.notification-option small { display: block; }
.notification-option small { margin-top: 4px; font-weight: 400; line-height: 1.35; }
.assignment-edit-link { display: block; margin: 4px 2px 10px; color: var(--primary); font-size: 12px; font-weight: 700; text-align: right; text-decoration: none; }
.assignment-edit-link:hover { text-decoration: underline; }
.manual-assignment-form { margin-bottom: 14px; }
.manual-assignment-delete { max-width: 650px; }

@media (max-width:620px) {
  .points-panel .panel-header,.points-person-row { align-items: stretch; flex-direction: column; }
  .points-score-actions { width: 100%; justify-content: space-between; }
  .points-edit-form .button-row,.points-edit-form .button-row .button { width: 100%; }
  .notification-options .button-row,.notification-options .button-row .button { width: 100%; }
  .manual-assignment-form .button-row,.manual-assignment-form .button-row .button,.manual-assignment-delete,.manual-assignment-delete .button { width: 100%; }
}
.password-field{position:relative;display:block}.password-field input{padding-right:52px}.password-toggle{position:absolute;top:50%;right:5px;display:grid;place-items:center;width:42px;height:38px;padding:0;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}.password-toggle:hover,.password-toggle:focus-visible{background:#eef2f7;color:var(--text);outline:none}.password-toggle[aria-pressed="true"]{color:var(--primary)}
