.profile-page {
  display: grid;
  gap: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.profile-page * {
  font-family: inherit !important;
  letter-spacing: normal;
}

.profile-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #3a4248;
  border-radius: 10px;
  background: #202224;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  overflow: hidden;
  border: 2px solid #586169;
  border-radius: 14px;
  color: #fff;
  background: #121416;
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity {
  min-width: 0;
}

.profile-name-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.profile-identity h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.profile-identity .profile-admin-edit {
  color: inherit;
  text-decoration: none;
}

.profile-admin-edit svg {
  margin-left: 8px;
  vertical-align: middle;
}

.profile-identity .profile-admin-edit:hover,
.profile-identity .profile-admin-edit:focus-visible {
  color: #ffe982;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.profile-seniority-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-seniority {
  color: #c6ced8;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
}

.profile-last-connection {
  color: #b9c2cf;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-last-connection strong {
  color: #e8edf2;
  font-weight: 900;
}

.profile-music {
  margin: 10px 0 0;
  color: #b9c2cf;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-music strong {
  color: #e8edf2;
  font-weight: 900;
}

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

.profile-stat {
  display: flex;
  min-height: 68px;
  padding: 10px 13px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #3a4248;
  border-radius: 9px;
  color: #b9c2cf;
  background: #202224;
}

.profile-stat:first-child {
  border-left: 4px solid #3d9f62;
}

.profile-stat:nth-child(2) {
  border-left: 4px solid #3975a3;
}

.profile-stat strong {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.profile-stat span {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
}

.profile-badges-compact {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #3a4248;
  border-left: 4px solid #d0ba56;
  border-radius: 9px;
  background: #202224;
}

.profile-badges-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  color: #aeb7c4;
}

.profile-badges-summary-count {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.profile-badges-summary-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.profile-travel-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  align-self: center;
  justify-self: stretch;
  flex: 1 1 100%;
  width: 100%;
  gap: 14px;
}

.profile-tenure-achievement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 2px 12px 2px 2px;
  border: 1px solid #4c555d;
  border-radius: 8px;
  color: #fff;
  background: #171a1d;
}

.profile-tenure-copy {
  display: grid;
  gap: 1px;
  min-width: 94px;
  justify-items: center;
  line-height: 1.05;
  text-align: center;
}

.profile-tenure-copy span {
  color: #aeb7c4;
  font-size: 13px;
  font-weight: 700;
}

.profile-tenure-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.profile-tenure-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: #dce7f0;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.profile-tenure-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-tenure-shadow {
  fill: #111820;
  stroke: currentColor;
  stroke-width: 2;
}

.profile-tenure-frame {
  fill: currentColor;
  opacity: 0.7;
}

.profile-tenure-core {
  fill: #17232e;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
}

.profile-tenure-shine {
  fill: rgba(255, 255, 255, 0.24);
}

.profile-tenure-badge strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.profile-tenure-badge.is-tenure-white {
  color: #f1f1f1;
}
.profile-tenure-badge.is-tenure-green {
  color: #53c86c;
}
.profile-tenure-badge.is-tenure-purple {
  color: #ad6cf0;
}
.profile-tenure-badge.is-tenure-orange {
  color: #f29b38;
}
.profile-tenure-badge.is-tenure-akkros {
  color: #d4cc47;
}

.profile-travel-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 43px;
  flex: 0 0 auto;
  color: #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.profile-travel-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-travel-ribbon {
  fill: currentColor;
  opacity: 0.36;
}

.profile-travel-shell {
  fill: #11161b;
  stroke: currentColor;
  stroke-width: 3;
}

.profile-travel-core {
  fill: currentColor;
  opacity: 0.38;
}

.profile-travel-mark {
  fill: #161d23;
  stroke: currentColor;
  stroke-width: 1.5;
}

.profile-travel-shine {
  fill: rgba(255, 255, 255, 0.3);
}

.profile-travel-badge strong,
.profile-travel-badge small {
  position: absolute;
  z-index: 1;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.profile-travel-badge strong {
  top: 13px;
  font-size: 12px;
}

.profile-travel-badge small {
  bottom: 7px;
  right: 8px;
  color: #fff;
  font-size: 7px;
}

.profile-travel-badge.is-white {
  color: #f1f1f1;
}
.profile-travel-badge.is-green {
  color: #53c86c;
}
.profile-travel-badge.is-blue {
  color: #4e9fea;
}
.profile-travel-badge.is-purple {
  color: #ad6cf0;
}
.profile-travel-badge.is-orange {
  color: #f29b38;
}
.profile-travel-badge.is-red {
  color: #ef5252;
}
.profile-travel-badge.is-cyan {
  color: #48dce8;
}
.profile-travel-badge.is-pink {
  color: #f06bb5;
}
.profile-travel-badge.is-akkros {
  color: #d4cc47;
}

.profile-travel-badge.is-unlocked {
  opacity: 1;
}

.profile-travel-badge.is-locked {
  color: #5d646b;
  opacity: 0.28;
  filter: grayscale(1);
}

.profile-history {
  padding: 14px;
  border: 1px solid #3a4248;
  border-radius: 10px;
  background: #17191b;
}

.profile-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-history-header h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.profile-trip-list {
  display: grid;
  gap: 8px;
}

.profile-trip {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #202224;
}

.profile-trip-image {
  width: 74px;
  height: 74px;
  object-fit: cover;
  background: #111;
}

.profile-trip-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
}

.profile-trip-date {
  margin-bottom: 4px;
  color: #b9c2cf;
  font-size: 11px;
  font-weight: 800;
}

.profile-trip-name {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.profile-trip-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.profile-trip-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #525b63;
  border-radius: 999px;
  color: #e5e9ed;
  background: #292d31;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-trip-badge.is-role {
  border-color: #3975a3;
  color: #d7efff;
  background: #19364d;
}

.profile-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
  color: #d7dde8;
  font-size: 12px;
  font-weight: 800;
}

.profile-pagination a,
.profile-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #fff;
  background: #24272a;
  text-decoration: none;
}

.profile-pagination a:hover,
.profile-pagination a:focus-visible {
  border-color: #d0ba56;
}

.profile-pagination .is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.profile-pagination + .profile-trip-list,
.profile-pagination + .akkros-empty {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .profile-hero {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
    font-size: 32px;
  }

  .profile-identity h2 {
    font-size: 20px;
  }

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

  .profile-stat {
    min-height: 56px;
  }

  .profile-badges-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-travel-badges {
    gap: 5px;
  }

  .profile-trip {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 64px;
  }

  .profile-trip-image {
    width: 64px;
    height: 64px;
  }

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

  .profile-trip-badges {
    justify-content: flex-start;
  }

  .profile-pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
