.profile-page,
.profile-login-page {
  min-height: calc(844px - 76px - 66px);
  padding-bottom: 18px;
  background: #fff;
}

.profile-identity {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 24px;
  background: var(--brand-deep);
  color: #fff;
}

.profile-identity > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.96);
}

.profile-identity-overlay {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 32 28 / 0.94) 0%, rgb(10 32 28 / 0.82) 54%, rgb(10 32 28 / 0.55) 100%);
}

.profile-identity.image-failed .profile-identity-overlay {
  background: linear-gradient(90deg, rgb(19 82 74 / 0.96), rgb(10 32 28 / 0.82));
}

.profile-identity-fallback {
  z-index: 0;
  color: var(--brand-deep);
}

.profile-identity::after {
  position: absolute;
  right: -40px;
  bottom: -62px;
  width: 164px;
  height: 164px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 50%;
  content: "";
}

.profile-identity-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-identity-mark > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.38);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
}

.profile-identity-mark small {
  color: #a9cbc5;
  letter-spacing: 0.14em;
  font: 700 9px var(--numeric);
}

.profile-identity h2 {
  position: relative;
  z-index: 1;
  margin: 20px 0 7px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
}

.profile-identity > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgb(255 255 255 / 0.65);
  font-size: 10px;
  line-height: 1.6;
}

.profile-identity-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}

.profile-identity-meta > span {
  color: #d8e5e2;
  font: 10px var(--numeric);
}

.profile-identity-meta em {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgb(255 255 255 / 0.5);
  font-size: 8px;
  font-style: normal;
}

.profile-identity-meta svg {
  width: 11px;
  height: 11px;
}

.profile-personal-access {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 10px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 3px;
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.profile-personal-access > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 50%;
}

.profile-personal-access > span:first-child svg,
.profile-personal-access > svg {
  width: 15px;
  height: 15px;
}

.profile-personal-access > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.profile-personal-access small {
  color: #a9cbc5;
  font-size: 8px;
}

.profile-personal-access strong {
  font-size: 10px;
}

.profile-entry-section {
  padding: 28px 18px 24px;
}

.profile-entry-heading > span,
.profile-service-section > span {
  color: var(--brand-primary);
  letter-spacing: 0.08em;
  font: 700 9px var(--numeric);
}

.profile-entry-heading h2,
.profile-service-section h2 {
  margin: 6px 0 7px;
  font-family: var(--serif);
  font-size: 21px;
}

.profile-entry-heading > p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.65;
}

.profile-entry-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.profile-entry {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  padding: 18px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line-default);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(23 61 55 / 0.06);
  color: var(--ink-primary);
  text-align: left;
  cursor: pointer;
}

.profile-entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: 1 / span 3;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.profile-entry-icon svg {
  width: 21px;
  height: 21px;
}

.profile-entry-eyebrow {
  align-self: end;
  color: var(--brand-primary);
  letter-spacing: 0.06em;
  font: 700 8px var(--numeric);
}

.profile-entry-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font: 700 10px var(--numeric);
  font-style: normal;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.profile-entry h2 {
  margin: 3px 36px 0 0;
  font-family: var(--serif);
  font-size: 18px;
}

.profile-entry > p {
  margin: 5px 32px 0 0;
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.6;
}

.profile-entry-footer {
  display: flex;
  min-height: 40px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  margin: 16px -16px 0;
  padding: 0 14px 0 16px;
  border-top: 1px solid var(--line-default);
  background: var(--surface-muted);
}

.profile-entry-footer small {
  color: var(--ink-secondary);
  font: 9px var(--numeric);
}

.profile-entry-footer strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary);
  font-size: 9px;
}

.profile-entry-footer svg {
  width: 14px;
  height: 14px;
}

.profile-service-section {
  margin-top: 8px;
  padding: 25px 18px 14px;
  border-top: 8px solid var(--surface-muted);
}

.profile-service-section h2 {
  margin-bottom: 15px;
  font-size: 18px;
}

.profile-service-section > div {
  border-top: 1px solid var(--line-default);
}

.profile-service-section button {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 21px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-default);
  background: transparent;
  color: var(--ink-primary);
  text-align: left;
}

.profile-service-section button > svg {
  width: 17px;
  height: 17px;
  color: var(--brand-primary);
}

.profile-service-section button > span {
  display: grid;
  gap: 3px;
}

.profile-service-section strong {
  font-size: 11px;
}

.profile-service-section small {
  color: var(--ink-secondary);
  font-size: 8px;
}

.profile-boundary {
  margin: 0;
  padding: 13px 18px;
  background: var(--surface-muted);
  color: var(--ink-secondary);
  font-size: 8px;
  line-height: 1.65;
}

.profile-login-hero {
  display: grid;
  justify-items: start;
  padding: 34px 22px 30px;
  background: var(--brand-deep);
  color: #fff;
  text-align: left;
}

.profile-login-hero > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
}

.profile-login-hero > span svg {
  width: 22px;
  height: 22px;
}

.profile-login-hero > small {
  color: #a9cbc5;
  letter-spacing: 0.14em;
  font: 700 9px var(--numeric);
}

.profile-login-hero h2 {
  margin: 8px 0 9px;
  font-family: var(--serif);
  font-size: 23px;
}

.profile-login-hero p {
  max-width: 310px;
  margin: 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 10px;
  line-height: 1.7;
}

.profile-login-hero button {
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
}

.profile-login-hero em {
  justify-self: center;
  margin-top: 9px;
  color: rgb(255 255 255 / 0.46);
  font-size: 8px;
  font-style: normal;
}

.profile-login-scope {
  padding: 26px 18px;
  background: #fff;
}

.profile-login-scope h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
}

.profile-login-scope ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-login-scope li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line-default);
  color: var(--ink-secondary);
  font-size: 10px;
  line-height: 1.6;
}

.profile-login-scope li svg {
  width: 15px;
  height: 15px;
  color: var(--brand-primary);
}

.profile-login-scope > p {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 3px solid var(--brand-primary);
  background: var(--brand-soft);
  color: var(--ink-secondary);
  font-size: 9px;
  line-height: 1.65;
}

@media (max-width: 359px) {
  .profile-identity,
  .profile-entry-section,
  .profile-service-section,
  .profile-boundary,
  .profile-login-scope {
    padding-inline: 14px;
  }

  .profile-entry {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-inline: 14px;
  }

  .profile-entry-icon {
    width: 38px;
    height: 38px;
  }

  .profile-entry-footer {
    margin-inline: -14px;
  }
}
