#employee-profile.panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 18px;
  border: 1px solid #c4d9ea;
  border-radius: 18px;
  background: #f2f7fc;
  overflow-wrap: anywhere;
}
#employee-profile [hidden] { display: none !important; }
.profile-heading, .profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.profile-heading {
  padding: 14px clamp(16px, 3vw, 30px);
  color: #fff;
  background: var(--crm-header);
  border-radius: 17px 17px 0 0;
}
#employee-profile .profile-heading h1 { color: inherit; margin: 0; font-size: 20px; }
.profile-heading span { color: #d6eaff; }
#employee-profile #profile-page-lift { margin: 0; }
#profile-page-lift manager-shift-lift { margin: 0; border-radius: 0; color: #173753; }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(215px, .68fr) minmax(0, 1.65fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding: clamp(14px, 2.5vw, 28px);
}
.ski-pass {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 16px 24px;
  border-radius: 18px;
  background: var(--pass-gradient,linear-gradient(150deg, #1d5184, #112f52));
  color: white;
  text-align: center;
  min-width: 0;
}
.ski-pass::before {
  content: "";
  width: 40px;
  height: 6px;
  border-radius: 4px;
  background: #b5d6f0;
  margin-bottom: 8px;
}
.pass-portrait {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #deeffb;
  color: #174678;
  font-size: 32px;
}
.pass-portrait:has(img:not([hidden])) span { display: none; }
#employee-profile #profile-mascot-image {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #deeffb;
}
#employee-profile .ski-pass h2 { margin: 0; color: white; font: 600 clamp(23px, 3vw, 32px)/1.15 Georgia, serif; }
#employee-profile .ski-pass p { margin: 0; color: #d6eaff; font-size: 14px; }
#profile-roles { font-weight: 650; }
.pass-gear { display: grid; justify-items: center; gap: 8px; margin-top: 10px; }
#employee-profile #choose-mascot { background: #e3f1ff; color: #173f67; border-radius: 8px; }
.profile-content { display: grid; gap: 14px; min-width: 0; }
.profile-card { padding: clamp(16px, 2.4vw, 24px); background: white; border: 1px solid #ccdeec; border-radius: 14px; }
#employee-profile .profile-card h2 { font-size: 20px; color: #172e49; margin: 0; }
.profile-card-heading span { color: #49627b; font-size: 13px; }
#profile-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 12px 18px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
#profile-results strong { display: block; font: 500 32px/1.2 Georgia, serif; color: #174678; }
#profile-results span, #profile-answers dt { color: #49627b; font-size: 14px; }
#profile-answers { margin: 8px 0 0; }
#profile-answers dt { margin-top: 12px; font-weight: 600; }
#profile-answers dd { margin: 2px 0 0; white-space: pre-wrap; }
#employee-profile #profile-edit { background: #e7f1fc; color: #174e89; border-radius: 8px; }
#profile-form { margin-top: 15px; display: grid; gap: 12px; }
#profile-form label { display: grid; gap: 4px; color: #294664; }
#profile-form :is(input,textarea) { width: 100%; min-width: 0; border: 1px solid #a8bfd3; border-radius: 6px; }
#profile-form textarea { resize: vertical; }
#profile-status:empty, #profile-tasks:empty { display: none; }
#profile-tasks, #profile-pay-periods { padding-inline-start: 18px; margin-bottom: 0; }
#profile-tasks button, #profile-pay-periods button { margin: 4px 8px; }
#employee-profile #cabinet-sections { margin-inline: 16px; background: #e3edf6; }
#employee-profile #logout { margin-inline-start: clamp(14px, 2.5vw, 28px); }
#employee-profile #mascot-options label:has(:checked), #employee-profile #mascot-gear label:has(:checked) {
  border-color: #185bad; background: #e3effb;
}
@media (max-width: 680px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .ski-pass { gap: 4px; padding: 12px 14px 16px; }
  .pass-portrait { width: 82px; height: 82px; }
  .pass-gear { margin-top: 6px; }
  #profile-form :is(input,textarea) { font-size: 16px; }
}
