.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

.login-crest {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 26px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(16, 59, 37, .18);
}

.player-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.player-welcome {
  display: flex;
  align-items: center;
  gap: 22px;
}

.player-portrait {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border: 4px solid #fff;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(16, 59, 37, .16);
}

.player-initials {
  display: grid;
  place-items: center;
  background: #17382a;
  color: #c9f04d;
  font-size: 30px;
  font-weight: 900;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: #68746e;
  font-size: 11px;
  font-weight: 500;
}

.cmj-badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 6px;
  background: #b4232f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
}

.wellness-score {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 8px;
  font-weight: 900;
}

.wellness-score.green { background: #dff4e6; color: #216e40; }
.wellness-score.yellow { background: #fff0c7; color: #805d0a; }
.wellness-score.red { background: #ffdfe1; color: #a51d2b; }

.drop-note {
  display: block;
  margin-top: 4px;
  color: #a51d2b;
  font-weight: 700;
}

.reminders {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.reminders > .section-title { padding: 24px 26px 14px; }
.reminders h2 { margin-bottom: 5px; }
.reminders p { margin-bottom: 0; }

.reminder-count {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #b4232f;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.section-title > .reminder-count {
  color: #fff;
}

.username {
  display: block;
  margin-top: 3px;
  color: #7a8580;
}

.due-badge {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.due-badge.overdue { background: #ffdfe1; color: #a51d2b; }
.due-badge.due-today { background: #fff0c7; color: #805d0a; }
.due-badge.scheduled { background: #e7efff; color: #315b9d; }
.all-done { padding: 8px 0; color: #216e40; font-weight: 700; }

.scale-guide {
  margin-bottom: 20px;
  padding: 24px 26px;
  overflow: hidden;
}

.scale-guide h2 { margin-bottom: 5px; }
.scale-guide p { margin-bottom: 14px; }
.scale-guide tbody td:first-child { font-weight: 800; }
.scale-guide tbody td:last-child { background: #eff9f2; color: #216e40; }
.scale-guide tbody td:nth-child(2) { background: #fff0f0; color: #a51d2b; }

.cmj-baselines {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.cmj-baselines > .section-title { padding: 24px 26px 12px; }
.cmj-baselines h2 { margin-bottom: 5px; }
.cmj-baselines p { margin-bottom: 0; }
.baseline-missing { color: #b4232f; font-weight: 800; }

.inline-baseline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.inline-baseline input { width: 125px; margin: 0; }
.inline-baseline button { width: auto; margin: 0; padding: 11px 14px; }

.cmj-action, .cmj-link {
  display: inline-block;
  color: #fff;
  background: #b4232f;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.cmj-link { display: block; width: max-content; margin-top: 5px; background: transparent; color: #1f8a59; padding: 0; }
.cmj-difference { display: block; margin-top: 3px; color: #68746e; }

.cmj-form { max-width: 520px; margin: 0 auto; padding: 36px; }
.baseline-box { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; padding: 16px; border-radius: 12px; background: #edf7f0; }
.baseline-box span { color: #68746e; font-size: 13px; }
.baseline-box b { font-size: 20px; color: #216e40; }
.form-warning { margin: 15px 0 0; color: #a51d2b; font-size: 13px; }

.assessment-list {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.assessment-list > .section-title { padding: 24px 26px 12px; }
.assessment-list h2 { margin-bottom: 5px; }
.assessment-list p { margin-bottom: 0; }

.assessment-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 650px;
}

.assessment-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px auto auto;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.assessment-settings input { margin: 0; }
.assessment-settings span { color: #68746e; }
.assessment-settings button { width: auto; margin: 0; padding: 11px 14px; }
.match-duration-note { min-width: 145px; font-size: 12px; font-weight: 700; }

.assessment-type {
  display: block;
  width: max-content;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf7f0;
  color: #216e40;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.assessment-type.match { background: #fff1d6; color: #8a5700; }
.delete-assessment { margin: 0; }
.delete-assessment .danger-button { width: auto; margin: 0; padding: 11px 14px; background: #b4232f; }
.locked-assessment { max-width: 100px; color: #7a8580; font-size: 11px; line-height: 1.2; }

.training-duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #edf7f0;
}

.training-duration span { color: #68746e; font-size: 13px; }
.training-duration b { color: #216e40; }

.lazy-scroll {
  max-height: 560px;
  overflow: auto;
  overscroll-behavior: contain;
}

.results-scroll { max-height: 680px; }
.lazy-scroll thead th { position: sticky; top: 0; z-index: 2; background: #fff; }
.lazy-loader { display: grid; place-items: center; min-height: 54px; color: #68746e; font-size: 12px; font-weight: 700; }

@keyframes flash-dismiss {
  0%, 80% { opacity: 1; transform: translateY(0); visibility: visible; }
  100% { opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none; }
}

.flash {
  animation: flash-dismiss 5s ease forwards;
}

@media (max-width: 800px) {
  .brand img { width: 38px; height: 38px; }
  .login-crest { width: 88px; height: 88px; border-radius: 20px; }
  .player-name { align-items: flex-start; flex-direction: column; }
  .player-welcome { align-items: flex-start; }
  .player-portrait { width: 78px; height: 78px; flex-basis: 78px; border-radius: 18px; }
  .scale-guide { padding: 20px; }
}
