/* Personal center only. The native account panel continues to own its labels,
   account states, destinations and actions. */
body[data-view="me"] {
  --hg-profile-ink: var(--hg-glass-text);
  --hg-profile-muted: var(--hg-glass-muted);
  --hg-profile-edge: var(--hg-glass-line);
  --hg-profile-lime: var(--hg-glass-lime);
  background: var(--hg-glass-bg) url("profile-art/profile-graphite.webp") center top / min(100%, 740px) auto no-repeat;
}
body[data-view="me"] #view-me {
  box-sizing: border-box;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 26px) clamp(12px, 4vw, 30px) 18px;
  color: var(--hg-profile-ink);
  overflow-wrap: anywhere;
}
body[data-view="me"] #hg-account-panel {margin: 0 0 15px; color: inherit}
body[data-view="me"] .hg-account-heading {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin: 0 4px 15px;
}
body[data-view="me"] .hg-account-name {
  display: grid;
  grid-template-columns: clamp(46px, 12vw, 60px) minmax(0, 1fr);
  align-content: center;
  column-gap: 12px;
  flex: 1 1 150px;
}
body[data-view="me"] .hg-account-name::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  aspect-ratio: 1;
  background: url("profile-art/profile-glass-orb.webp") center / contain no-repeat;
}
body[data-view="me"] .hg-account-name h2 {
  grid-column: 2;
  align-self: center;
  margin: 0;
  font-size: clamp(21px, 5.3vw, 28px);
  letter-spacing: -.025em;
}
body[data-view="me"] .hg-account-caption {
  grid-column: 2;
  align-self: end;
  margin: 0 0 3px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--hg-profile-muted);
}
body[data-view="me"] .hg-account-name > h2:first-child {grid-row: 1 / 3}
body[data-view="me"] .hg-account-actions {gap: 6px}
body[data-view="me"] .hg-account-actions:empty {display: none}
body[data-view="me"] .hg-account-actions :is(a, button) {
  min-height: 44px;
  padding: 7px 13px;
  color: var(--hg-profile-ink);
  background: var(--hg-control-glass);
  border: 1px solid var(--hg-glass-line);
  box-shadow: var(--hg-smoke-depth);
}
body[data-view="me"] .hg-account-actions .hg-account-secondary {background: var(--hg-glass-surface); border-color: var(--hg-glass-line)}
body[data-view="me"] .hg-account-note {margin-inline: 5px; color: var(--hg-profile-muted)}
body[data-view="me"] .hg-my-pass {
  position: relative;
  display: grid;
  grid-template: "label" auto "detail" auto "action" auto / minmax(0, 1fr);
  align-content: end;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 170px;
  aspect-ratio: 1000 / 537;
  padding: 27px 8.5% max(17px, 4.5%);
  isolation: isolate;
  border: 0;
  border-radius: 8%;
  background: none;
  color: var(--hg-profile-ink);
  text-decoration: none;
}
body[data-view="me"] .hg-my-pass::before {
  content: "";
  inset: 0;
  background: url("profile-art/profile-folded-pass.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}
body[data-view="me"] .hg-pass-copy {display: contents}
body[data-view="me"] .hg-pass-label {
  grid-area: label;
  color: #fffaff;
  font: 500 clamp(25px, 7.1vw, 35px) / 1.18 "Iowan Old Style", Georgia, "Songti SC", "Songti TC", serif;
  letter-spacing: -.025em;
  text-shadow: 0 2px 8px #150c20;
}
body[data-view="me"] .hg-pass-sub {
  grid-area: detail;
  margin: 6px 0 13px;
  color: #e5ddeb;
  line-height: 1.45;
  font-size: clamp(12px, 3.2vw, 14px);
}
body[data-view="me"] .hg-pass-title {
  grid-area: action;
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 7px 36px 7px 15px;
  border: 1px solid #c0a3d080;
  border-top-color: #e8d2ed99;
  border-radius: 28px;
  color: #fff9ff;
  background: var(--hg-lens-face);
  -webkit-backdrop-filter: var(--hg-lens-backdrop);
  backdrop-filter: var(--hg-lens-backdrop);
  box-shadow: var(--hg-lens-depth);
  font: 540 clamp(14px, 3.8vw, 17px) / 1.3 system-ui, sans-serif;
  letter-spacing: 0;
}
body[data-view="me"] .hg-pass-go {
  grid-area: action;
  z-index: 1;
  pointer-events: none;
  justify-self: end;
  width: 28px;
  height: 28px;
  margin: 0 8px 0 0;
  border: 0;
  color: var(--hg-profile-lime);
  background: none;
  font: 400 20px / 1 system-ui, sans-serif;
}
body[data-view="me"] .hg-my-pass:is(:hover, :focus-visible) .hg-pass-title {border-color: #ead6fc; background-color: #bba4cc21}
body[data-view="me"] #view-me > .hg-studio-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 4px 20px;
}
body[data-view="me"] #view-me > .hg-studio-links a {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  min-height: 49px;
  padding: 10px 6px;
  border: 0;
  border-bottom: 1px solid var(--hg-profile-edge);
  border-radius: 0;
  color: var(--hg-profile-ink);
  background: none;
  font-size: 16px;
  font-weight: 500;
}
body[data-view="me"] #view-me > .hg-studio-links a::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  margin-inline: auto 5px;
  transform: rotate(-45deg);
  border-right: 1.5px solid var(--hg-glass-muted);
  border-bottom: 1.5px solid var(--hg-glass-muted);
}
body[data-view="me"] #view-me > .hg-studio-links svg {width: 22px; height: 22px; color: var(--hg-glass-muted)}
body[data-view="me"] #view-me > .hg-studio-links a:is(:hover, :focus-visible) {background: #ffffff0a}
body[data-view="me"] #meBox {min-width: 0}
body[data-view="me"] #meBox .mebox {
  margin-bottom: 12px;
  padding: clamp(14px, 3.9vw, 20px);
  border-radius: 18px;
  border-color: var(--hg-profile-edge);
  background: linear-gradient(145deg, #2a2b2ec2, #17181be8);
  color: var(--hg-profile-ink);
}
body[data-view="me"] #meBox h3 {font-size: 18px; font-weight: 620; letter-spacing: -.02em}
body[data-view="me"] #meBox :is(.hint, .rankrow p) {color: var(--hg-profile-muted)}
body[data-view="me"] #meBox .rankrow {border-color: var(--hg-glass-line); background: #14151875}
body[data-view="me"] #meBox .rankrow > div {min-width: 0}
body[data-view="me"] #meBox select,
body[data-view="me"] #meBox .btn {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--hg-glass-line);
  background: var(--hg-glass-surface);
  color: var(--hg-profile-ink);
}
body[data-view="me"] #meBox label:has(input[type="checkbox"]) {display: flex; align-items: center; gap: 8px; min-height: 44px}
body[data-view="me"] #meBox input[type="checkbox"] {width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--hg-glass-ice)}
body[data-view="me"] #view-me :is(a, button, select, input, [tabindex]) {scroll-margin-block: calc(var(--hdr-h, 60px) + 5px) calc(var(--bottomnav-h, 64px) + env(safe-area-inset-bottom) + 8px)}
body[data-view="me"] #view-me :is(a, button, select, input, [tabindex]):focus-visible,
body[data-view="me"] #hg-account-panel :is(a, button):focus-visible {outline: 2px solid var(--hg-glass-violet); outline-offset: 2px}
@media (min-width: 880px) {
  body[data-view="me"] #view-me:not([hidden]) {
    display: grid;
    max-width: 1080px;
    grid-template: "account library" max-content "links library" max-content ". library" 1fr / minmax(300px, .8fr) minmax(0, 1.25fr);
    gap: 0 clamp(25px, 4vw, 55px);
    align-items: start;
  }
  body[data-view="me"] #hg-account-panel {grid-area: account}
  body[data-view="me"] #view-me > .hg-studio-links {grid-area: links}
  body[data-view="me"] #meBox {grid-area: library}
}
@media (prefers-reduced-transparency: reduce) {
  body[data-view="me"] #meBox .mebox {background: var(--hg-glass-surface)}
  body[data-view="me"] .hg-pass-title {background: #493d53}
}
