/* Personal center v3
   Clearer account actions, selectable Synny avatars, and student interests. */

.profile-ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.account-button {
  overflow: visible;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.account-button:hover {
  transform: translateY(-1px);
}

.account-button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--violet), transparent 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet), transparent 86%), 0 12px 28px rgba(24, 30, 56, .14);
}

.account-button .synny-account-image {
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(67, 52, 164, .14));
  transition: transform .2s ease;
}

.account-button:hover .synny-account-image {
  transform: rotate(-3deg) scale(1.06);
}

.account-menu {
  right: 0;
  width: min(390px, calc(100vw - 28px));
  padding: 14px;
  border-color: color-mix(in srgb, var(--border-2), transparent 8%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), transparent 2%);
  box-shadow: 0 26px 70px rgba(6, 10, 25, .28);
  animation: profile-menu-in .2s cubic-bezier(.2, .75, .3, 1);
  transform-origin: top right;
}

.account-menu::before {
  position: absolute;
  top: -6px;
  right: 40px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--border-2);
  border-left: 1px solid var(--border-2);
  background: var(--panel);
  content: "";
  transform: rotate(45deg);
}

.account-menu-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 4px 15px;
}

.account-menu-head .account-menu-synny,
.account-menu-head .synny-account-image {
  width: 62px;
  height: 62px;
}

.account-menu-head .synny-account-avatar {
  flex-basis: 62px;
}

.account-menu-head .synny-account-role {
  right: -1px;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.account-menu-identity {
  min-width: 0;
}

.account-menu-head .account-menu-identity strong {
  font-size: 18px;
  line-height: 1.15;
}

.account-menu-head .account-menu-identity span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12.5px;
}

.account-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint), transparent 84%);
}

.account-role-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--violet), transparent 88%);
  color: var(--violet-2) !important;
  font-size: 12px !important;
  font-weight: 800;
}

.account-role-badge.role-student {
  border-color: color-mix(in srgb, var(--mint), transparent 55%);
  background: color-mix(in srgb, var(--mint), transparent 88%);
  color: var(--mint) !important;
}

.account-role-badge .role-icon,
.account-role-badge svg {
  width: 16px;
  height: 16px;
}

.account-profile-cta {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 62%);
  border-radius: 7px;
  background: color-mix(in srgb, var(--violet), transparent 91%);
  color: var(--text);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.account-profile-cta:hover {
  border-color: color-mix(in srgb, var(--violet), transparent 28%);
  background: color-mix(in srgb, var(--violet), transparent 85%);
  transform: translateX(2px);
}

.account-profile-cta-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  background: var(--violet);
  color: #fff;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--violet), transparent 72%);
}

.account-profile-cta-icon .profile-ui-icon {
  width: 21px;
  height: 21px;
}

.account-profile-cta > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.account-profile-cta strong {
  font-size: 14.5px;
  line-height: 1.15;
}

.account-profile-cta small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-cta > .profile-ui-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: transform .18s ease;
}

.account-profile-cta:hover > .profile-ui-icon {
  transform: translateX(3px);
}

.account-menu-section {
  padding: 12px 4px;
  border-top: 1px solid var(--border);
}

.account-menu-section-head,
.account-menu-section-label {
  display: flex;
  align-items: center;
}

.account-menu-section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.account-menu-section-label {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-menu-section-label .profile-ui-icon {
  width: 17px;
  height: 17px;
  color: var(--mint);
}

.account-menu-section-head > strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint), transparent 86%);
  color: var(--mint);
  font-size: 12px;
}

.account-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.account-course-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--card-2), transparent 10%);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.account-course-chip small {
  padding-left: 7px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
}

.account-course-status {
  color: var(--muted);
  font-size: 12.5px;
}

.account-interest-preview {
  padding: 12px 4px;
  border-top: 1px solid var(--border);
}

.account-interest-preview > span {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-interest-preview > span .profile-ui-icon {
  width: 17px;
  height: 17px;
  color: var(--rose);
}

.account-interest-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-interest-preview small {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--rose), transparent 70%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--rose), transparent 91%);
  color: color-mix(in srgb, var(--text), var(--rose) 18%);
  font-size: 11px;
  font-weight: 700;
}

.account-menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.account-menu-actions .account-menu-action {
  min-height: 46px;
  margin: 0;
  padding: 9px 11px;
  justify-content: flex-start;
  gap: 9px;
  border-radius: 7px;
  font-size: 13px;
}

.account-menu-actions .account-menu-action .profile-ui-icon {
  width: 18px;
  height: 18px;
}

.profile-page {
  width: min(1440px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 28px 32px 72px;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 60%);
  border-radius: 8px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--violet), transparent 89%), transparent 48%),
    linear-gradient(300deg, color-mix(in srgb, var(--mint), transparent 92%), transparent 48%),
    var(--panel);
  box-shadow: 0 14px 38px rgba(20, 25, 50, .08);
  animation: profile-page-in .35s ease both;
}

.profile-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 5px;
  background: linear-gradient(90deg, var(--violet), var(--mint), var(--warm), var(--rose));
  content: "";
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin: -6px 0 10px -8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.profile-back:hover {
  background: color-mix(in srgb, var(--violet), transparent 91%);
  color: var(--text);
}

.profile-back .profile-ui-icon {
  width: 17px;
  height: 17px;
}

.profile-hero-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.profile-hero-avatar {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 62%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--violet), transparent 90%);
}

.profile-hero-avatar > .synny-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(57, 42, 157, .17));
  animation: profile-avatar-float 4s ease-in-out infinite;
}

.profile-hero-avatar > i {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-style: normal;
}

.profile-hero-avatar > i .role-icon,
.profile-hero-avatar > i svg {
  width: 20px;
  height: 20px;
}

.profile-hero-copy {
  min-width: 0;
}

.profile-hero-copy .mono,
.profile-section-heading .mono {
  color: var(--violet-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-hero-copy h1 {
  margin: 5px 0 4px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.profile-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.profile-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  margin-top: 7px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 55%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--violet), transparent 88%);
  color: var(--violet-2);
  font-size: 12px;
  font-weight: 800;
}

.profile-role-chip.role-student {
  border-color: color-mix(in srgb, var(--mint), transparent 55%);
  background: color-mix(in srgb, var(--mint), transparent 88%);
  color: var(--mint);
}

.profile-role-chip .role-icon,
.profile-role-chip svg {
  width: 17px;
  height: 17px;
}

.profile-completion {
  display: grid;
  grid-template-columns: minmax(0, 260px);
  justify-content: end;
  margin-top: 14px;
}

.profile-completion > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.profile-completion > span strong {
  color: var(--text);
}

.profile-completion > i {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border), transparent 10%);
}

.profile-completion > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  transition: width .35s ease;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .8fr);
  gap: 18px;
}

.profile-avatar-section,
.profile-details-section,
.profile-interest-section,
.profile-course-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 25, 50, .05);
}

.profile-avatar-section,
.profile-details-section {
  min-height: 100%;
  padding: 22px;
}

.profile-avatar-section {
  animation: profile-page-in .35s .06s ease both;
}

.profile-details-section {
  animation: profile-page-in .35s .11s ease both;
}

.profile-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-section-heading-wide {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
}

.profile-heading-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
}

.profile-heading-icon.violet {
  background: color-mix(in srgb, var(--violet), transparent 86%);
  color: var(--violet-2);
}

.profile-heading-icon.mint {
  background: color-mix(in srgb, var(--mint), transparent 86%);
  color: var(--mint);
}

.profile-heading-icon.rose {
  background: color-mix(in srgb, var(--rose), transparent 87%);
  color: var(--rose);
}

.profile-heading-icon.amber {
  background: color-mix(in srgb, var(--warm), transparent 86%);
  color: var(--warm);
}

.profile-section-heading h2 {
  margin: 3px 0 3px;
  font-size: 19px;
  line-height: 1.15;
}

.profile-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.profile-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-avatar-choice {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-2);
  color: var(--text);
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.profile-avatar-choice:hover {
  border-color: color-mix(in srgb, var(--violet), transparent 45%);
  transform: translateY(-2px);
}

.profile-avatar-choice.selected {
  border-color: var(--violet);
  background: color-mix(in srgb, var(--violet), transparent 90%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet), transparent 87%);
}

.profile-avatar-art {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--violet), transparent 91%);
}

.profile-avatar-art .synny-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform .18s ease;
}

.profile-avatar-choice:hover .synny-image {
  transform: rotate(-3deg) scale(1.06);
}

.profile-avatar-choice > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.profile-avatar-choice strong {
  font-size: 13px;
}

.profile-avatar-choice small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.profile-avatar-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
}

.profile-avatar-choice.selected .profile-avatar-check {
  display: grid;
  animation: profile-check-in .22s ease both;
}

.profile-avatar-check .profile-ui-icon {
  width: 13px;
  height: 13px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.profile-field > span:first-child {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.profile-field input,
.profile-custom-interest input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  outline: 0;
  background: var(--input);
  color: var(--text);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.profile-field input:focus,
.profile-custom-interest input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet), transparent 84%);
}

.profile-field small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.profile-readonly-value {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-2);
}

.profile-readonly-value .profile-ui-icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.profile-readonly-value b {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 15px;
  padding: 10px 11px;
  border-left: 3px solid var(--mint);
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--mint), transparent 91%);
}

.profile-trust-row > .profile-ui-icon {
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.profile-trust-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.profile-trust-row strong {
  font-size: 12px;
}

.profile-trust-row small {
  color: var(--muted);
  font-size: 10.5px;
}

.profile-save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--violet), #fff 8%);
  border-radius: 7px;
  background: var(--violet);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--violet), transparent 72%);
  transition: filter .18s ease, transform .18s ease;
}

.profile-save-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.profile-save-button:disabled {
  cursor: wait;
  opacity: .68;
}

.profile-interest-section,
.profile-course-section {
  margin-top: 18px;
  padding: 22px;
  animation: profile-page-in .35s .16s ease both;
}

.profile-interest-count {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--rose), transparent 65%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--rose), transparent 91%);
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
}

.profile-interest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.profile-interest-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.profile-interest-choice:hover {
  border-color: color-mix(in srgb, var(--rose), transparent 48%);
  color: var(--text);
  transform: translateY(-1px);
}

.profile-interest-choice.selected {
  border-color: var(--rose);
  background: color-mix(in srgb, var(--rose), transparent 88%);
  color: color-mix(in srgb, var(--text), var(--rose) 25%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rose), transparent 70%);
}

.profile-interest-choice .profile-ui-icon {
  width: 18px;
  height: 18px;
  color: var(--rose);
}

.profile-custom-interest {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.profile-custom-interest > label {
  font-size: 12px;
  font-weight: 800;
}

.profile-custom-interest > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.profile-custom-interest button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--violet), transparent 45%);
  border-radius: 7px;
  background: color-mix(in srgb, var(--violet), transparent 88%);
  color: var(--violet-2);
  font-weight: 800;
}

.profile-custom-interest button:hover {
  border-color: var(--violet);
  background: color-mix(in srgb, var(--violet), transparent 82%);
}

.profile-custom-interest button .profile-ui-icon {
  width: 17px;
  height: 17px;
}

.profile-selected-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin-top: 13px;
}

.profile-selected-interest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 5px 4px 9px;
  border: 1px solid color-mix(in srgb, var(--mint), transparent 64%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mint), transparent 90%);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 750;
  animation: profile-check-in .2s ease both;
}

.profile-selected-interest > .profile-ui-icon {
  width: 15px;
  height: 15px;
  color: var(--mint);
}

.profile-selected-interest button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.profile-selected-interest button:hover {
  background: color-mix(in srgb, var(--rose), transparent 82%);
  color: var(--rose);
}

.profile-empty-interests {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-course-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-2);
}

.profile-course-pill > .profile-ui-icon {
  width: 20px;
  height: 20px;
  color: var(--warm);
}

.profile-course-pill > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-course-pill strong {
  font-size: 13px;
}

.profile-course-pill small,
.profile-course-empty {
  color: var(--muted);
  font-size: 11px;
}

.profile-message {
  position: sticky;
  z-index: 10;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: min(620px, 100%);
  margin: 18px auto 0;
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--mint), transparent 48%);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel), var(--mint) 8%);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(9, 14, 31, .18);
  font-size: 12.5px;
  font-weight: 700;
  animation: profile-message-in .24s ease both;
}

.profile-message.bad {
  border-color: color-mix(in srgb, var(--rose), transparent 42%);
  background: color-mix(in srgb, var(--panel), var(--rose) 8%);
}

.profile-message .profile-ui-icon {
  width: 18px;
  height: 18px;
  color: var(--mint);
}

.profile-message.bad .profile-ui-icon {
  color: var(--rose);
}

html[data-theme="day"] .account-menu,
html[data-theme="day"] .account-menu::before,
html[data-theme="day"] .profile-hero,
html[data-theme="day"] .profile-avatar-section,
html[data-theme="day"] .profile-details-section,
html[data-theme="day"] .profile-interest-section,
html[data-theme="day"] .profile-course-section {
  background-color: #fff;
}

html[data-theme="day"] .profile-avatar-choice,
html[data-theme="day"] .profile-interest-choice,
html[data-theme="day"] .profile-readonly-value,
html[data-theme="day"] .profile-course-pill,
html[data-theme="day"] .account-course-chip {
  background-color: #f8f9fd;
}

@keyframes profile-menu-in {
  from { opacity: 0; transform: translateY(-7px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes profile-page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes profile-avatar-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes profile-check-in {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes profile-message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-avatar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-interest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-page {
    padding: 16px 14px 64px;
  }

  .account-menu {
    position: fixed;
    top: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .account-menu::before {
    display: none;
  }

  .account-menu-head {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .account-menu-head .account-menu-synny,
  .account-menu-head .synny-account-image {
    width: 56px;
    height: 56px;
  }

  .profile-hero {
    padding: 16px;
  }

  .profile-hero-main {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-hero-avatar {
    width: 76px;
    height: 76px;
  }

  .profile-hero-avatar > .synny-image {
    width: 70px;
    height: 70px;
  }

  .profile-role-chip {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 2px 0 0;
  }

  .profile-completion {
    grid-template-columns: 1fr;
  }

  .profile-avatar-section,
  .profile-details-section,
  .profile-interest-section,
  .profile-course-section {
    padding: 16px;
  }

  .profile-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-section-heading-wide {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-interest-count {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 54px;
  }

  .profile-custom-interest {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .account-menu-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .account-role-badge {
    grid-column: 2;
    justify-self: start;
  }

  .account-menu-actions {
    grid-template-columns: 1fr;
  }

  .profile-avatar-grid,
  .profile-interest-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-choice {
    min-height: 76px;
  }

  .profile-custom-interest > div {
    grid-template-columns: 1fr;
  }

  .profile-custom-interest button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-menu,
  .profile-hero,
  .profile-avatar-section,
  .profile-details-section,
  .profile-interest-section,
  .profile-course-section,
  .profile-message,
  .profile-hero-avatar > .synny-image,
  .profile-avatar-choice.selected .profile-avatar-check,
  .profile-selected-interest {
    animation: none;
  }

  .account-button,
  .account-profile-cta,
  .profile-avatar-choice,
  .profile-interest-choice,
  .profile-save-button {
    transition: none;
  }
}
