.avatar-demo .avatar-preview { row-gap: 8px }
.avatar-orbit .avatar-edit-trigger { overflow: visible }
.avatar-edit-trigger :is(img, video) { border-radius: inherit }
.avatar-edit-trigger .avatar-edit-cue {
  inset: 14% 14% auto auto;
  transform: translate(50%, -50%);
  z-index: 1;
  box-shadow: 0 0 0 2px #9b73c799;
}
.avatar-media-slot { display: grid; align-items: end; justify-items: center; min-height: 48px; width: 100% }

.journal-cards, .meal-day-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.journal-cards button, .meal-day-tabs button, .profile-pip-metrics button, .event-tabs button, .event-arrival button {
  min-width: 0;
  min-height: 39px;
  padding: 3px 4px;
  border: 1px solid #ad83d563;
  border-radius: 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 690;
  color: #f0defb;
  background: #251930;
  cursor: pointer;
}
:is(.journal-cards, .meal-day-tabs, .profile-pip-metrics, .event-tabs, .event-arrival) button[aria-pressed="true"] {
  border-color: #e3b6ff;
  background: linear-gradient(145deg, #604477, #352344);
  box-shadow: inset 0 -2px #ac85d45c;
}
.journal-cards img { display: block; width: 100%; aspect-ratio: 1.78; object-fit: cover; border-radius: 4px }
.journal-cards strong { display: block; margin-top: 3px; text-wrap: balance; overflow-wrap: anywhere }
.journal-story {
  min-width: 0;
  margin-top: 7px;
  border: 1px solid #bc97e46d;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(150deg, #39264b, #241931 65%);
}
.journal-story figure, .fitness-outdoor, .event-photo-preview { position: relative; margin: 0 }
.journal-story figure img, .fitness-outdoor img, .meal-day-entries img { display: block; width: 100%; aspect-ratio: 1.78; object-fit: cover }
.journal-story figcaption, .fitness-outdoor figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 15% 8px 8px;
  background: linear-gradient(transparent, #1b1027ee);
}
.journal-story h3 { margin: 0; font-size: clamp(15px, 4vw, 20px); line-height: 1.2 }
.journal-story figcaption p { margin-top: 3px; color: #ead8fb }
.journal-story > p { padding: 8px 8px 0 }
.journal-story ul { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 7px 8px; list-style: none }
.journal-story li, .fitness-favorites li {
  padding: 3px 5px;
  border: 1px solid #b690db69;
  border-radius: 6px;
  color: #e8d6f7;
  font-size: 10px;
  background: #49305c4e;
}
.journal-story-actions { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 0 8px }
.journal-story-actions button[aria-pressed="true"] { color: #b9f3d4 }
.fitness-place {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #bf9be66b;
  border-radius: 8px;
  background: #37254a;
}
.fitness-place :is(small, strong), .fitness-outdoor figcaption :is(strong, span) { display: block }
.fitness-place small, .fitness-place a, .fitness-outdoor figcaption span { color: #e7cffa; font-size: 10px }
.fitness-place strong, .fitness-outdoor figcaption strong { font-size: 12px }
.fitness-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 7px 0; padding: 0; list-style: none }
.fitness-week li {
  display: grid;
  place-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 1px;
  color: #dbc7eb;
  background: #22182e;
  border-radius: 5px;
  font-size: 9px;
}
.fitness-week li::before { width: 7px; height: 7px; border: 1px solid #b996d0; border-radius: 50%; content: "" }
.fitness-week [data-done="true"]::before { background: #a4efd1; border-color: #c9f9e7; box-shadow: 0 0 7px #97e8c675 }
.fitness-favorites { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0; padding: 0; list-style: none }
.fitness-outdoor { border: 1px solid #ba9adf6b; border-radius: 7px; overflow: hidden }
.meal-diary { margin: 7px 0 }
.meal-day-entries { display: grid; gap: 5px; margin-top: 7px }
.meal-day-entries article { border: 1px solid #af8fd26b; border-radius: 7px; overflow: hidden; padding-bottom: 6px; background: #261a32 }
.meal-day-entries article small, .meal-day-entries article h4 { display: block; margin: 4px 6px 0; overflow-wrap: anywhere }
.meal-day-entries article small { font-size: 10px; color: #d8b8f5 }
.meal-day-entries article h4 { font-size: 12px }
.meal-record label { display: block; margin: 6px 0 3px; color: #e0c3f8; font-size: 11px; font-weight: 710 }
.meal-record :is(input, select) { width: 100%; min-width: 0; min-height: 40px; padding: 4px; border: 1px solid #b893dc78; border-radius: 7px; background: #241831; color: #f3e3fa; font: inherit; font-size: 13px }
.meal-record [data-meal-record-status] { color: #c4efd7 }

.profile-pip-metrics { gap: 6px }
.profile-pip-metrics button {
  display: grid;
  grid-template: 22px auto / minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 2px;
  min-height: 60px;
  padding: 7px 8px;
  text-align: start;
  font-size: 10px;
  color: #f5e5ff;
  border-radius: 10px;
  background: radial-gradient(ellipse at 0 0, #593279, transparent 96%), #22152f;
}
.profile-pip-metrics button > span:nth-child(2) { grid-area: 2 / 1 / 3 / 3 }
.profile-pip-metrics button strong { grid-area: 1 / 2; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums }
.profile-pip-emblem { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #d3aeef66; border-radius: 6px; background: #a579d229; color: #ead1ff }
.profile-pip-emblem .icon { width: 14px; height: 14px }
.profile-pip-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 8px 0 5px }
.profile-pip-history-heading h3 { margin: 0 }
.profile-pip-history { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none }
.profile-pip-history li { --history-accent: #bd8ff6 }
.profile-pip-history [data-pip-history-state="received"] { --history-accent: #8ed9fa }
.profile-pip-history [data-pip-history-state="connected"] { --history-accent: #a3ecc9 }
.profile-pip-history li > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 19px;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 57px;
  padding: 5px 6px;
  border: 1px solid #b58adb6b;
  border-inline-start: 2px solid var(--history-accent);
  border-radius: 8px;
  color: #faefff;
  background: linear-gradient(108deg, color-mix(in srgb, var(--history-accent), #251831 82%), #21162e 75%);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.profile-pip-history li > button:is(:hover, :focus-visible) { border-color: var(--history-accent); box-shadow: 0 0 11px #b28ce738 }
.profile-pip-history img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 1px solid var(--history-accent) }
.profile-pip-history li :is(time, strong, small) { display: block; overflow-wrap: anywhere }
.profile-pip-history time, .profile-pip-history small { font-size: 9px; color: #dfcbef }
.profile-pip-history strong { margin: 2px 0; font-size: 12px }
.profile-pip-history-meta { display: grid; justify-items: end; gap: 3px }
.profile-pip-history-meta time { text-align: end; font-variant-numeric: tabular-nums }
.profile-pip-state { padding: 2px 5px; border-radius: 6px; color: var(--history-accent); background: color-mix(in srgb, var(--history-accent), #24172f 85%); font-size: 9px; font-weight: 680; text-align: center }
.profile-pip-history .profile-pip-emblem { width: 19px; height: 19px; border: 0; background: #b689dc20; color: var(--history-accent) }

.event-profile, .public-person { display: grid; gap: 9px; min-width: 0 }
.profile-back {
  justify-self: start; display: flex; align-items: center; gap: 5px; min-height: 40px;
  padding: 3px 10px 3px 6px; border: 1px solid #bd94e56e; border-radius: 8px;
  color: #f1dbff; background: #302040; font: inherit; font-weight: 690; cursor: pointer;
}
.profile-back .icon { width: 15px; height: 15px }
.event-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid #c799ee9c; border-radius: 15px 15px 15px 4px;
  background: #241631; box-shadow: 0 5px 24px #16091ca0, 0 0 18px #ae75ec25;
}
.event-hero::before {
  position: absolute; z-index: 2; inset: auto 0 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, #e6baff, #9762e9 46%, transparent 80%); content: "";
}
.event-hero img { display: block; width: 100%; height: auto; min-height: 165px; aspect-ratio: 1.7; object-fit: cover }
.event-hero-copy { position: absolute; inset: auto 0 0; padding: 19% 12px 12px; background: linear-gradient(transparent, #1a1028e8 72%, #190f26) }
.event-hero h3 { margin: 0 0 3px; color: #fcf1ff; font-size: clamp(18px, 5.7vw, 30px); line-height: 1.07; text-wrap: balance }
#dialog-body .event-hero p { margin: 0; color: #f1ddfa; font-size: 11px }
.event-hero-stripe { position: absolute; z-index: 1; inset: 9px 9px auto; display: flex; justify-content: space-between; align-items: center; gap: 4px }
.event-hero-logo { display: grid; place-items: center; width: 39px; height: 36px; border: 1px solid #edd4ffa8; border-radius: 9px 9px 9px 3px; background: linear-gradient(150deg, #6e439fbf, #241231dc); box-shadow: inset 0 1px 0 #fff4, 0 0 14px #c587f29c }
.event-hero-logo .icon { width: 23px; height: 23px; color: #ffeaff }
.event-status { --signal: #e1b5ff; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #d7b3e99e; border-radius: 7px; font-size: 9px; font-weight: 760; background: #211332eb; color: #f5e7fb; box-shadow: inset 0 1px 0 #fff3 }
.event-status::before { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 6px var(--signal); content: "" }
[data-event-phase="live"] .event-status { --signal: #ff9ba9; background: #6b2231; border-color: #ed8495 }
[data-event-phase="announced"] .event-status { --signal: #a5eadd }
.event-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px }
.event-actions .demo-action { display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; margin: 0; padding-inline: 4px; background: linear-gradient(145deg, #422759, #2a1a3a); box-shadow: inset 0 1px 0 #f0d3ff35 }
.event-actions .plan-save { background: linear-gradient(140deg, #654291, #332047 85%) }
.event-actions .plan-save[aria-pressed="true"] { background: linear-gradient(145deg, #25483d, #202937) }
.event-actions .icon { width: 14px; height: 14px }
.event-tabs { display: flex; flex-wrap: wrap; gap: 4px }
.event-tabs button { flex: 1 1 auto; min-height: 39px; padding-inline: 6px }
.event-profile > .event-tabs, .public-person-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; border: 1px solid #a982cf71; border-radius: 11px; background: #20152d }
.event-profile > .event-tabs button, .public-person-tabs button { display: grid; place-items: center; gap: 2px; min-width: 0; min-height: 45px; padding: 3px 1px; font-size: 10px; border-color: transparent; background: transparent }
.event-profile > .event-tabs button[aria-pressed="true"], .public-person-tabs button[aria-pressed="true"] { border-color: #c498f1; background: linear-gradient(150deg, #573876, #331f48); box-shadow: inset 0 -2px 0 #d9adff, 0 0 9px #ad7be64d }
.event-profile > .event-tabs .icon, .public-person-tabs .icon { width: 15px; height: 15px; color: #e0b8ff }
.event-module, .event-share { min-width: 0; padding: 9px; border: 1px solid #b893dc78; border-radius: 9px; background: linear-gradient(145deg, #3b294d, #251a34 72%) }
.event-module h4 { margin: 0 0 5px; font-size: 14px }
.event-profile .event-module { padding: 11px; border-color: #ba91e384; background: radial-gradient(ellipse at 0 0, #432c5b, transparent 70%), #261a33 }
.event-facts { display: grid; gap: 4px; margin: 8px 0 6px }
.event-facts div { display: grid; grid-template-columns: minmax(71px, 28%) minmax(0, 1fr); align-items: center; gap: 5px; padding: 5px 6px; border: 1px solid #ad80d24f; border-radius: 7px; background: #1d13296d }
.event-facts dt, .event-share label { color: #dcc1f4; font-size: 11px; font-weight: 710 }
.event-facts dt { display: flex; align-items: center; gap: 5px }
.event-facts .icon, .event-maps .icon { width: 14px; height: 14px; color: #e6b7ff }
.event-facts dd { margin: 0; font-size: 11px }
.event-maps { display: flex; align-items: center; gap: 5px; min-height: 40px; margin-block: 4px 9px; padding: 4px 7px; border: 1px solid #a981cf70; border-radius: 7px; color: #f5dbff; background: linear-gradient(95deg, #482e5e, #2a1a37); text-decoration: none; font-weight: 700 }
.event-maps > span:last-child { margin-inline-start: auto }
.event-profile input:not([type="file"]) { width: 100%; min-width: 0; min-height: 42px; padding: 5px; border: 1px solid #b28bda85; border-radius: 7px; background: #241831; color: #f4e3fa; font: inherit; font-size: 16px }
.event-people { display: grid; gap: 5px; margin: 0 0 6px; padding: 0; list-style: none }
.event-people > li { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid #ba94e06b; border-radius: 8px; background: #2b1c3c }
.event-people > li > img { width: 35px; height: 35px; object-fit: cover; border: 1px solid #dbb3fa; border-radius: 50% }
.event-arrival { display: flex; gap: 4px }
.event-arrival button { flex: 1 }
.event-photo-preview { margin: 6px 0; padding: 5px; border: 1px solid #b995db; border-radius: 7px; background: #231831 }
.event-photo-preview img { display: block; width: 100%; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: contain }
.event-photo-preview figcaption { padding: 5px; font-size: 11px }

.public-person-hero {
  --halo: #d1a5ff;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(9px, 4.3vw, 22px);
  align-items: center;
  min-height: 142px;
  padding: clamp(9px, 4vw, 18px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #b88ae18c;
  border-radius: 15px 15px 15px 5px;
  background: radial-gradient(ellipse at 16% 48%, #6a4297 0%, #382051 48%, #20142e 89%);
}
.public-person-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 15px, #dac0ff15 16px 17px),
    repeating-linear-gradient(90deg, transparent 0 15px, #dac0ff15 16px 17px);
  mask-image: linear-gradient(90deg, #000, transparent 71%);
  content: "";
}
.public-person[data-presence="true"] .public-person-hero { --halo: #aaf3d7 }
.public-person-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 25vw, 122px);
  aspect-ratio: 1;
  padding: 5px;
  border: 1px dashed color-mix(in srgb, var(--halo) 70%, transparent);
  border-radius: 50%;
}
.public-person-orbit img { width: 100%; height: 100%; border: 2px solid var(--halo); border-radius: 50%; object-fit: cover; box-shadow: 0 0 14px var(--halo) }
.public-person-orbit > span { position: absolute; right: -3px; bottom: 3px; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #ebc9ff; border-radius: 50%; color: #fff1ff; background: #7a43c2 }
.public-person-orbit .icon { width: 16px; height: 16px }
.public-person-identity h3 { margin: 0; color: #fff0ff; font-size: clamp(21px, 7vw, 32px); letter-spacing: -.035em; line-height: 1 }
#dialog-body .public-person-identity p { margin: 0 0 5px; color: #f0d7ff; font-size: 11px; overflow-wrap: anywhere }
#dialog-body .public-person-identity .public-person-presence:not([hidden]) { display: flex; align-items: center; gap: 5px; margin: 6px 0 0 }
.public-person-presence span { width: 6px; height: 6px; border-radius: 50%; background: var(--halo); box-shadow: 0 0 8px var(--halo) }
#dialog-body .public-person-identity .public-person-relation { width: fit-content; margin: 7px 0 0; padding: 3px 6px; border: 1px solid #c19be989; border-radius: 7px; background: #281735; font-weight: 660 }
.public-person-section { padding: 11px; border-color: #ba91e37d }
.public-interests { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; padding: 0; list-style: none }
.public-interests li { padding: 4px 6px; border: 1px solid #bd93df74; border-radius: 6px; color: #f0ddff; background: #6d459136; font-size: 10px; font-weight: 650 }
.public-person-brief { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 6px; padding: 7px 0; border-top: 1px solid #c497e64d }
.public-person-brief > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #bc94df6e; border-radius: 7px; color: #e8c4ff; background: #7049a73b }
.public-person-brief .icon { width: 14px; height: 14px }
.public-person-brief h4 { margin: 0 0 2px; font-size: 11px; color: #f0d7ff }
#dialog-body .public-person-brief p { margin: 0; font-size: 12px }
.public-person-section :is(ol, ul):not(.public-interests) { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none }
.public-person-section li > :is(button, div) {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 49px;
  padding: 4px;
  border: 1px solid #bd93df61;
  border-radius: 8px;
  color: #f6e5ff;
  background: #261a35;
  text-align: start;
  font: inherit;
}
.public-person-section li > button { cursor: pointer }
.public-person-section li > :is(button, div) > :is(img, span:first-child) { width: 46px; height: 38px; border-radius: 5px; object-fit: cover }
.public-person-section li > :is(button, div) > span:first-child { display: grid; place-items: center; background: #573b7166 }
.public-person-section li .icon { width: 14px; height: 14px; color: #e5b8ff }
.public-person-section li :is(strong, small), .public-person-photos :is(strong, small) { display: block }
.public-person-section li small, .public-person-photos small { color: #dcc7ee; font-size: 10px }
.public-person-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px }
.public-person-photos button { min-width: 0; padding: 3px; border: 1px solid #c198e282; border-radius: 7px; color: #f5e8ff; background: #24182f; text-align: start; font: inherit; cursor: pointer }
.public-person-photos img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 4px }
.public-person-photos :is(strong, small) { padding-inline: 3px }
