:root {
  --vp-surface: #ffffff;
  --vp-surface-alt: #f7faff;
  --vp-border: rgba(35, 53, 97, 0.1);
  --vp-border-strong: rgba(35, 53, 97, 0.16);
  --vp-shadow: 0 14px 34px -26px rgba(21, 34, 68, 0.38);
  --vp-text: #1f2a44;
  --vp-text-strong: #16315f;
  --vp-text-muted: #5b6477;
  --vp-blue: #245fd2;
  --vp-blue-soft: #edf4ff;
  --vp-radius-lg: 22px;
  --vp-radius-md: 18px;
  --vp-radius-sm: 14px;
}

.profile-page.vp-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 30px;
  color: var(--vp-text);
  box-sizing: border-box;
}

.vp-page *,
.vp-page *::before,
.vp-page *::after {
  box-sizing: border-box;
}

.vp-page .is-hidden {
  display: none !important;
}

.vp-hero,
.vp-section {
  background: var(--vp-surface);
  border: 1px solid var(--vp-border);
  border-radius: var(--vp-radius-lg);
  box-shadow: var(--vp-shadow);
}

.vp-hero {
  overflow: hidden;
}

.vp-hero__cover {
  position: relative;
  min-height: 250px;
  background:
    radial-gradient(circle at top right, rgba(74, 132, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #eef4ff 0%, #dbe7ff 100%);
}

.vp-hero__coverImage {
  width: 100%;
  height: 290px;
  display: block;
  object-fit: cover;
}

.vp-hero__coverPlaceholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px;
  color: #37527f;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.12) 75%, rgba(148, 163, 184, 0.12)),
    linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.12) 75%, rgba(148, 163, 184, 0.12));
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
}

.vp-hero__coverPlaceholder sl-icon {
  font-size: 2rem;
  color: var(--vp-blue);
}

.vp-hero__coverPlaceholder strong,
.vp-inlineNotice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--vp-text-strong);
}

.vp-hero__coverPlaceholder span,
.vp-inlineNotice span {
  color: var(--vp-text-muted);
  line-height: 1.55;
}

.vp-hero__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px 24px;
  margin-top: -54px;
  position: relative;
  z-index: 1;
}

.vp-hero__identity {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-width: 0;
}

.vp-hero__avatarShell {
  display: inline-flex;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 53, 97, 0.1);
  box-shadow: 0 12px 24px rgba(16, 32, 72, 0.14);
}

.vp-hero__copy {
  min-width: 0;
}

.vp-eyebrow,
.vp-section__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vp-blue);
}

.vp-hero__title,
.vp-section__title {
  margin: 0;
  color: var(--vp-text-strong);
}

.vp-hero__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.vp-section__title {
  font-size: 1.24rem;
}

.vp-hero__subtitle,
.vp-section__helper,
.vp-formNote,
.vp-hero__status,
.vp-richText,
.vp-detailItem__value {
  margin: 0;
  color: var(--vp-text-muted);
  line-height: 1.6;
}

.vp-hero__subtitle {
  margin-top: 6px;
  font-size: 0.98rem;
}

.vp-hero__status {
  margin-top: 10px;
  font-size: 0.92rem;
}

.vp-hero__attention {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.vp-hero__attentionLabel {
  color: var(--vp-text-muted);
  font-size: 0.92rem;
}

.vp-hero__attentionLink {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--vp-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vp-hero__attentionLink:hover {
  color: #1d4fb2;
}

.vp-hero__actions,
.vp-section__footer,
.vp-dialogFooter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vp-actionBtn,
.vp-linkBtn {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
}

.vp-actionBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(37, 77, 161, 0.12);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.vp-actionBtn--primary {
  background: linear-gradient(135deg, #1c71e6, #295cc6);
  color: #fff;
}

.vp-actionBtn--secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  color: var(--vp-text);
}

.vp-actionBtn--ghost {
  background: transparent;
  color: var(--vp-blue);
  border-color: rgba(37, 95, 214, 0.18);
}

.vp-linkBtn {
  color: var(--vp-blue);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.vp-section {
  padding: 22px 24px;
}

.vp-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vp-section__helper {
  margin-top: 6px;
  max-width: 760px;
}

.vp-section__view,
.vp-section__edit {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vp-richText {
  white-space: pre-line;
  color: #40506a;
}

.vp-inlineNotice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--vp-radius-sm);
  border: 1px dashed rgba(37, 95, 214, 0.24);
  background: linear-gradient(180deg, #fbfcff 0%, #f4f8ff 100%);
}

.vp-detailGrid,
.vp-formGrid {
  display: grid;
  gap: 14px;
}

.vp-detailGrid--two,
.vp-formGrid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vp-detailGrid--three,
.vp-formGrid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vp-detailItem {
  padding: 14px 16px;
  border-radius: var(--vp-radius-sm);
  background: var(--vp-surface-alt);
  border: 1px solid rgba(35, 53, 97, 0.08);
}

.vp-detailItem__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #6c7689;
}

.vp-detailItem__value {
  display: block;
  color: var(--vp-text-strong);
  word-break: break-word;
}

.vp-formNote {
  font-size: 0.88rem;
}

.vp-page sl-input::part(base),
.vp-page sl-textarea::part(base) {
  border-color: var(--vp-border-strong);
  border-radius: 14px;
  background: #fff;
}

.vp-page sl-input::part(form-control-label),
.vp-page sl-textarea::part(form-control-label) {
  color: #455672;
  font-weight: 700;
}

.vp-nativeField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vp-nativeField__label {
  color: #455672;
  font-weight: 700;
  font-size: 0.875rem;
}

.vp-nativeField__control {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--vp-border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--vp-text-strong);
  font: inherit;
}

.vp-nativeField__control:focus-visible {
  outline: 3px solid rgba(35, 109, 230, 0.26);
  outline-offset: 2px;
}

.vp-cropDialog__description {
  margin: 0 0 14px;
  color: var(--vp-text-muted);
  line-height: 1.55;
}

.vp-cropper {
  position: relative;
  height: 360px;
  border-radius: var(--vp-radius-md);
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.14) 75%, rgba(148, 163, 184, 0.14)),
    linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, 0.14) 75%, rgba(148, 163, 184, 0.14));
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  touch-action: none;
  user-select: none;
}

.vp-cropper img {
  position: absolute;
  max-width: none;
  max-height: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.vp-cropper:active img {
  cursor: grabbing;
}

.vp-cropper__frame {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.56);
  pointer-events: none;
}

.vp-cropDialog__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.vp-cropDialog__zoomLabel,
.vp-cropDialog__zoomValue {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vp-text-strong);
}

.vp-actionBtn:focus-visible,
.vp-linkBtn:focus-visible,
.vp-hero__attentionLink:focus-visible,
.vp-page sl-input:focus-within,
.vp-page sl-textarea:focus-within {
  outline: 3px solid rgba(35, 109, 230, 0.26);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .vp-hero__body {
    flex-direction: column;
    align-items: stretch;
    margin-top: -40px;
  }

  .vp-hero__identity {
    align-items: center;
  }

  .vp-detailGrid--three,
  .vp-formGrid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .profile-page.vp-page {
    padding: 12px 10px 24px;
  }

  .vp-section,
  .vp-hero {
    border-radius: 18px;
  }

  .vp-section {
    padding: 18px;
  }

  .vp-hero__coverImage,
  .vp-hero__cover {
    min-height: 220px;
    height: 220px;
  }

  .vp-hero__body {
    padding: 0 18px 18px;
  }

  .vp-hero__identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .vp-detailGrid--two,
  .vp-detailGrid--three,
  .vp-formGrid--two,
  .vp-formGrid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-cropper {
    height: 280px;
  }
}
