:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #717174;
  --accent: #1872b9;
  --surface: #f6f6f7;
  --line: #e3e3e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f1eff1;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  text-align: left;
  background: #f1eff1;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 24px;
  height: 24px;
  flex: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #fff;
  padding: 12px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.profile-hero {
  background:
    radial-gradient(ellipse at 73% 0%, #e5edfb 0%, transparent 58%),
    radial-gradient(ellipse at 23% 58%, #fbe6eb 0%, transparent 63%), #f6f1e9;
  padding: env(safe-area-inset-top, 0px)
    0 42px;
}
.profile-brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.profile-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.profile-download svg {
  width: 18px;
}
.profile-identity {
  max-width: 640px;
  padding-inline: 24px;
  margin: 0 auto;
  text-align: center;
  animation: appear 0.4s ease-out;
}
.profile-avatar {
  --avatar-size: 118px;
}
.profile-identity h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 21px 0 7px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.profile-topics {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px auto 0;
  max-width: 520px;
  color: #68686b;
}
.profile-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  justify-content: flex-end;
}
.profile-stats > div + div {
  border-left: 1px solid #d7cfcf99;
}
.profile-stats dt {
  font-size: 14px;
  line-height: 1.5;
}
.profile-stats dd {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.profile-stats svg {
  width: 27px;
  height: 27px;
}
.profile-surface,
.profile-error {
  background: #fff;
}
.profile-content {
  max-width: 1040px;
  margin: auto;
  padding: 35px max(24px, env(safe-area-inset-right, 0px)) 64px
    max(24px, env(safe-area-inset-left, 0px));
}
.profile-content h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0 0 22px;
  font-weight: 650;
}
.profile-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.profile-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-width: 0;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.profile-list:hover {
  background: #f0f0f2;
  border-color: #cfcfd3;
}
.profile-list-main {
  display: block;
  padding: 22px;
}
.profile-list h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.profile-list h3 > svg {
  width: 27px;
  height: 27px;
}
.profile-list h3 > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* The whole card opens the web list; the chevron is only a visual cue. */
.profile-list h3 > .profile-list-chevron {
  width: 20px;
  height: 20px;
  align-self: center;
  color: var(--muted);
}
.profile-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.profile-list-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.profile-list-meta > span + span:before {
  content: "";
  height: 12px;
  border-left: 1px solid #cfcfd2;
  margin-right: 4px;
}
.profile-list-meta svg {
  width: 17px;
  height: 17px;
}
.public-status {
  color: #367b43;
}
.public-status:before {
  content: "";
  width: 8px;
  height: 8px;
  background: #419451;
  border-radius: 50%;
}
.profile-covers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 9px;
  margin-top: 14px;
}
.profile-cover-slot {
  display: block;
  position: relative;
  min-width: 0;
}
.profile-cover {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 5/7;
  border-radius: 9px;
  background: #e5e5e8;
  overflow: hidden;
  border: 1px solid #0000000b;
}
.profile-cover > svg {
  width: 28px;
  height: 28px;
  color: #949499;
}
.profile-cover img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-cover img[hidden] {
  display: none;
}
.has-overflow .profile-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0005;
}
.profile-overflow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding-inline: 4px;
  white-space: nowrap;
  color: white;
  font-size: 24px;
  font-weight: 650;
  text-shadow: 0 1px 3px #000c, 0 2px 8px #0009;
}
.profile-empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
}
.profile-empty > svg {
  width: 36px;
  height: 36px;
}
.profile-empty h3 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-empty p {
  margin: 0;
  font-size: 15px;
}
.public-profile-footer {
  display: flow-root;
  font-size: 10px;
  color: initial;
  text-align: center;
  background: var(--color-background-primary);
}
.public-profile-footer * {
  box-sizing: content-box;
}
.profile-error {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.profile-error > .profile-brand {
  margin-bottom: 45px;
}
.profile-error > svg {
  width: 52px;
  height: 52px;
  color: #999;
}
.profile-error h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.profile-error p {
  color: var(--muted);
  line-height: 1.5;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Desktop identity and statistics share one compact row above the lists. */
@media (min-width: 701px) {
  .profile-hero {
    padding-bottom: 28px;
  }
  .profile-identity {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(280px, 36%);
    align-items: center;
    gap: 24px;
    max-width: 992px;
    margin-top: 12px;
    text-align: left;
  }
  .profile-avatar {
    --avatar-size: 88px;
  }
  .profile-heading {
    min-width: 0;
  }
  .profile-identity h1 {
    margin: 0 0 6px;
  }
  .profile-stats {
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .profile-stats dd {
    font-size: 24px;
    gap: 7px;
  }
  .profile-stats dt {
    font-size: 13px;
  }
  .profile-stats svg {
    width: 25px;
    height: 25px;
  }
}
@media (max-width: 700px) {
  .profile-hero {
    padding: env(safe-area-inset-top, 0px)
      0 30px;
  }
  .profile-avatar {
    --avatar-size: 108px;
  }
  .profile-identity h1 {
    font-size: 26px;
    margin-top: 18px;
  }
  .profile-stats {
    margin-top: 26px;
  }
  .profile-stats dd {
    font-size: 23px;
    gap: 7px;
  }
  .profile-stats dt {
    font-size: 13px;
  }
  .profile-stats svg {
    width: 24px;
    height: 24px;
  }
  .profile-content {
    padding: 29px max(20px, env(safe-area-inset-right, 0px)) 42px
      max(20px, env(safe-area-inset-left, 0px));
  }
  .profile-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .profile-lists {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .profile-list-main {
    padding: 20px 19px 16px;
  }
  .profile-covers {
    gap: 8px;
  }
  .profile-list {
    border-radius: 25px;
  }
  .profile-list h3 {
    font-size: 21px;
  }
  .profile-overflow {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.profile-hero .public-page-header { margin-bottom: 12px; }
.profile-hero .public-page-brand { color: var(--ink); }
.profile-hero .public-page-download { color: var(--accent); }
