.character-picker {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.character-picker legend {
  color: var(--navy);
  font-weight: 850;
  margin-bottom: 4px;
}
.character-picker legend small {
  color: var(--muted);
  font-weight: 500;
}
.character-picker > p,
.market-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  max-height: 390px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-color: var(--orange) #eee9dd;
}
.character-option {
  position: relative;
  cursor: pointer;
  margin: 0 !important;
}
.character-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.character-option > span {
  display: grid;
  gap: 5px;
  border: 2px solid #ded8ca;
  border-radius: 13px;
  padding: 4px;
  background: #fffdf8;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.character-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
}
.character-option b {
  min-height: 25px;
  padding: 0 2px 3px;
  color: var(--navy);
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
}
.character-option:hover > span {
  transform: translateY(-2px);
  border-color: #e3a947;
}
.character-option input:focus-visible + span {
  outline: 3px solid #83b8c5;
  outline-offset: 2px;
}
.character-option input:checked + span {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239, 137, 42, .2), 0 6px 14px rgba(44, 34, 16, .15);
}
.character-option input:checked + span::after {
  content: "Ausgewählt ✓";
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 5px;
  border-radius: 5px;
  background: #186a58;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}
.account-character-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  max-height: none;
  margin-bottom: 20px;
}
.character-avatar {
  object-fit: cover;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 9px rgba(20, 30, 38, .18);
}
.team-card .avatar-large.character-avatar {
  width: 84px;
  height: 84px;
  border-radius: 20px;
}
.candidate-card .avatar-large.character-avatar {
  width: clamp(132px, 12vw, 168px);
  height: clamp(132px, 12vw, 168px);
  border-radius: 24px;
}
.candidate-cost-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.candidate-story {
  margin: 10px 0;
  padding: 9px 11px;
  border-left: 4px solid #e0a431;
  border-radius: 8px;
  background: #fff9e8;
  color: #66502c;
  font-size: 12px;
  line-height: 1.45;
}
.career-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 10px 0 2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8eef0;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.career-apprentice {
  background: #fff0bd;
  color: #874d00;
}
.career-journeyman {
  background: #dff2e5;
  color: #176545;
}
.apprentice-team-card,
.apprentice-candidate-card {
  border-top-color: #e5a92e;
}
.apprentice-progress,
.apprentice-risk-note {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 10px;
  border-radius: 12px;
  background: #fff8df;
  color: #65430b;
}
.apprentice-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.apprentice-progress small,
.apprentice-risk-note small {
  font-size: 11px;
  line-height: 1.4;
}
.training-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ddbd;
}
.training-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #efa72b, #ef722b);
}
.apprentice-market {
  margin-top: 42px;
}
.specialty-note,
.employee-trade-learning {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 10px;
  border-radius: 12px;
  background: #eaf5f6;
  color: #185a63;
}
.specialty-note.planned {
  background: #fff4d8;
  color: #77500a;
}
.specialty-note small,
.employee-trade-learning small {
  font-size: 11px;
  line-height: 1.4;
}
.employee-trade-learning > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
  border-top: 1px solid rgba(24, 90, 99, .15);
  font-size: 12px;
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin: 0 0 34px;
}
.department-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid #b9d9d8;
  border-radius: 15px;
  background: #eef9f7;
  box-shadow: 0 4px 0 rgba(29, 105, 104, .12);
}
.department-card.planned {
  border-color: #e6cf91;
  background: #fff7df;
  box-shadow: 0 4px 0 rgba(143, 102, 24, .12);
}
.department-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.department-card strong {
  color: var(--navy);
  font-size: 18px;
}
.department-card small {
  color: var(--muted);
  font-size: 11px;
}
.employee-row .character-avatar {
  flex: 0 0 auto;
}
.account-avatar-summary {
  position: relative;
  padding-left: 78px !important;
  min-height: 68px;
}
.account-avatar-summary img {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(20, 30, 38, .18);
}
@media (max-width: 850px) {
  .account-character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .character-grid,
  .account-character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .candidate-card .avatar-large.character-avatar {
    width: 124px;
    height: 124px;
  }
}
