.profile-presentation {
  text-align: center;
  padding-bottom: 1.5rem;
  position: relative;
}
.profile-presentation h1,
.profile-presentation .profile-bio {
  margin-inline: 22px;
  text-wrap: balance;
}
.profile-presentation p,
.profile-presentation-options p,
.profile-media-editor p {
  text-wrap: pretty;
}
.profile-presentation .profile-bio {
  margin-bottom: 1rem;
}
.profile-presentation .profile-bio > span {
  display: inline-block;
  max-width: 100%;
}
.profile-presentation .profile-hours-today {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 22px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--accent, currentColor);
}
.profile-presentation .profile-hours-today svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.profile-presentation .profile-hours-today span {
  text-wrap: balance;
}
.profile-portrait {
  position: relative;
}
.profile-portrait .profile-avatar {
  object-fit: cover;
}
.profile-layout-hero .profile-page-art {
  display: none;
}
.profile-layout-hero .profile-portrait .profile-avatar {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  max-height: 440px;
  aspect-ratio: 4/3;
  border-radius: 0;
  margin: 0;
  border: 0;
  font-size: 5rem;
}
.profile-layout-hero .profile-portrait div.profile-avatar {
  display: grid;
  place-items: center;
}
.profile-layout-shape {
  display: flex;
  flex-direction: column;
}
.profile-layout-shape .profile-page-art {
  height: 100px;
}
.profile-layout-shape h1 {
  order: 1;
  margin-top: 2rem;
}
.profile-layout-shape .profile-portrait {
  order: 2;
  margin: 1rem auto;
}
.profile-layout-shape .profile-portrait .profile-avatar {
  width: 200px;
  height: 220px;
  border-radius: 48% 48% 38% 38%;
  margin: 0;
  border: 0;
}
.profile-layout-shape .profile-bio {
  order: 3;
}
.profile-banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(#000 65%, transparent);
}
.profile-standard-magic-cube {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050507;
  pointer-events: none;
}
.profile-cube-poster,
.profile-cube-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.profile-cube-canvas { visibility: hidden; }
.profile-standard-magic-cube.is-live .profile-cube-canvas { visibility: visible; }
.profile-standard-magic-cube.is-live .profile-cube-poster { visibility: hidden; }
.profile-theme-midnight .profile-page-standard-magic {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.profile-page-standard-magic .profile-page-art,
.profile-page-standard-magic .profile-standard-magic-cube {
  background: transparent;
}
.profile-page-standard-magic .profile-cube-poster {
  /* The existing black-backed poster shares the starfield without a hard
     rectangular edge, including when motion or WebGL is unavailable. */
  mix-blend-mode: screen;
}
.profile-wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--wash);
}
.profile-wallpaper:after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0c292c55;
}
.profile-wallpaper-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body:has(.profile-wallpaper) {
  isolation: isolate;
  background: var(--wash);
}
body:has(.profile-wallpaper) .profile-page {
  box-shadow: 0 12px 60px #123b3c33;
}
.profile-media-upload + .profile-media-upload {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}
.profile-media-upload h3 {
  font-size: 1.4rem;
  text-wrap: balance;
}
.profile-media-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.profile-media-upload form {
  margin: 0;
}
.profile-media-upload [data-media-status]:empty {
  display: none;
}
.profile-media-upload [aria-busy='true'] {
  opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
  .profile-presentation * {
    animation: none !important;
    transition: none !important;
  }
}
