@font-face {
  font-family: Onest;
  src: url("assets/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Onest;
  src: url("assets/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}


:root {
  color-scheme: light;
  --ink: #271f32;
  --muted: #625a69;
  --page: #f3f0ed;
  --paper: #fffdfa;
  --line: #e8e1e7;
  --plum: #342448;
  --lime: #dcf976;
  --stream: 580px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  min-height: 100dvh;
  min-width: 280px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(172deg, #f8f5f2 0%, #e6eef7 19%, #e5efe8 40%, #f6ebe5 62%, #ece5f5 82%, #f2edf1 100%);
  color: var(--ink);
  font: 400 1rem/1.5 Onest, system-ui, sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }

.pastel-courts {
  position: absolute;
  z-index: -1;
  inset: 118px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.pastel-court {
  position: absolute;
  width: clamp(450px, 71vw, 830px);
  aspect-ratio: 1 / 1.65;
  border: 2px solid currentColor;
  color: var(--court-line);
  background: linear-gradient(155deg, var(--court-fill), transparent 95%);
  box-shadow: inset 0 0 0 11px #fff9, 0 0 0 12px #fff5;
  mask-image: linear-gradient(transparent, #000 14% 74%, transparent 98%);
  transform: rotate(-24deg);
}
.pastel-court::before {
  content: "";
  position: absolute;
  inset: 21% 0;
  border-block: 2px solid currentColor;
  background: linear-gradient(90deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}
.pastel-court i {
  position: absolute;
  inset: calc(50% - 3px) -7px auto;
  height: 7px;
  border-block: 1px solid currentColor;
  background: repeating-linear-gradient(90deg, transparent 0 4px, currentColor 4px 5px);
  opacity: .8;
}
.court-sky {
  --court-fill: #bdd9f38a;
  --court-line: #88a6bf9e;
  top: -60px;
  left: calc(50% - clamp(375px, 54vw, 755px));
}
.court-mint {
  --court-fill: #c5e0cba3;
  --court-line: #83aa9596;
  top: 21%;
  right: calc(50% - clamp(390px, 52vw, 750px));
}
.court-peach {
  --court-fill: #ecd1c3ad;
  --court-line: #c79d8d96;
  top: 43%;
  left: calc(50% - clamp(377px, 52vw, 740px));
}
.court-lilac {
  --court-fill: #dcd0efa8;
  --court-line: #a795c398;
  top: 66%;
  right: calc(50% - clamp(395px, 54vw, 750px));
}

button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #8161a9; outline-offset: 3px; }
button:disabled { opacity: .7; cursor: wait; }
h1, h2, p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; pointer-events: none; }
.icon {
  width: 1.24rem;
  height: 1.24rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fffdfaef;
  border-bottom: 1px solid #3020391a;
  backdrop-filter: blur(14px);
}
.topbar-inner {
  width: min(100%, var(--stream));
  min-height: 60px;
  margin: auto;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}
.brand img { display: block; flex: none; width: 32px; height: 32px; }
.brand-copy { display: grid; min-width: 0; gap: 2px; }
.brand-title {
  font-size: clamp(1.13rem, 5.6vw, 1.34rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.brand-accent { color: #67528b; }
.brand-tagline {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.top-actions { display: flex; flex: none; align-items: center; gap: 7px; }
.top-create {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--plum);
  color: var(--lime);
}
.top-create:hover { background: #533b68; }
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--plum);
  background: #f1e7f2;
  font-size: .79rem;
  font-weight: 800;
}
.avatar-self { background: #e9e3da url("assets/court-rally.jpg") 36% 53% / 420% auto no-repeat; }
.has-profile-photo .avatar-self { background: #e9e3da var(--profile-photo) center / cover no-repeat; }
.avatar-photo {
  background-image: url("assets/tournament.webp");
  background-repeat: no-repeat;
  background-size: 640% auto;
}
.avatar-artem { background-position: 64% 5%; }
.avatar-vera { background-position: 32% 18%; }
.avatar-maria { background-position: 49% 21%; }
.avatar-yana {
  background: #e0dfd9 url("assets/yana-profile.jpg") 59% 54% / 330% auto no-repeat;
  border: 1px solid #c1cee0;
}
.top-avatar { width: 38px; height: 38px; border: 1px solid #b6a8b8; }

.main {
  width: min(100%, var(--stream));
  margin: auto;
  padding: 10px 10px max(85px, calc(72px + env(safe-area-inset-bottom)));
}
.feed-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 107px;
  margin: 0 0 12px;
  padding: 15px 16px 14px;
  border-radius: 19px 19px 19px 5px;
  background: #3d2c53;
  color: var(--paper);
}
.feed-heading h1 {
  font-size: clamp(2.85rem, 11vw, 4.75rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.09em;
  scroll-margin-top: 77px;
}
.feed-heading p { margin-top: 5px; color: #f1e9fa; font-size: .88rem; font-weight: 550; }
.hero-art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  pointer-events: none;
}
.hero-court {
  position: absolute;
  top: -67%;
  right: -14%;
  width: 84%;
  aspect-ratio: 1 / 1.42;
  transform: rotate(33deg);
  border: 1px solid #d5c3ef9c;
  box-shadow: inset 0 0 0 7px #cbb1ed26, 0 0 0 18px #9278aa45;
  background: #5a4074;
}
.hero-court::before {
  content: "";
  position: absolute;
  inset: 20% 0;
  border-block: 1px solid #d5c3ef9c;
  background: linear-gradient(90deg, transparent calc(50% - .5px), #d5c3ef9c calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
}
.hero-court::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline: -5px;
  height: 4px;
  border-block: 1px solid #e6d7efb0;
  background: repeating-linear-gradient(90deg, #f8edff5e 0 1px, transparent 1px 5px);
}
.hero-ball {
  position: absolute;
  right: 36%;
  bottom: 16%;
  width: clamp(47px, 12vw, 70px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: rotate(-35deg);
  background: radial-gradient(circle at 30% 27%, #ecff97, #d0e75e 72%);
  box-shadow: -8px 8px 0 #29203963;
}
.hero-ball::before, .hero-ball::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 102%;
  top: -1%;
  border: 1.5px solid #617438;
  border-radius: 48%;
}
.hero-ball::before { left: -39%; }
.hero-ball::after { right: -39%; }

#feed { display: grid; gap: 14px; }
.panel, .post {
  background: var(--paper);
  border: 1px solid #e6dfe4;
  border-radius: 20px;
}
.post {
  overflow: clip;
  scroll-margin-top: 70px;
  box-shadow: 0 3px 8px #2c203309;
}
.type-match { --tone: #423065; --tint: #eae0f8; --tint-border: #d5c5ec; }
.type-training { --tone: #3b4e27; --tint: #eaf3c3; --tint-border: #cddf9d; }
.type-tournament { --tone: #76402c; --tint: #fae4db; --tint-border: #eecabb; }
.type-after { --tone: #713e49; --tint: #f6e2eb; --tint-border: #ebc8d6; }
.post-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 13px 12px;
}
.post-person { flex: 1; min-width: 0; }
.author-link {
  display: block;
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
  font-size: .99rem;
  letter-spacing: -.025em;
  line-height: 1.3;
}
:is(a, button).author-link:hover { text-decoration: underline; }
.author-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 7px;
}
.author-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5e4d6c;
  font-size: .81rem;
  font-weight: 700;
}
.post-person .author-link, .post-person .author-role { line-height: 1.24rem; }
.author-role::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.author-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 4px;
  margin-top: 4px;
  font-size: .75rem;
}
.author-level, .author-rating {
  padding: 1px 4px;
  border: 1px solid;
  border-radius: 5px;
  font-weight: 750;
  white-space: nowrap;
}
.author-level { color: #49365d; border-color: #d7c8e8; background: #eee5f8; }
.rating-lunda { color: #26574f; border-color: #a9d2c5; background: #e4f3ec; }
.rating-fpr { color: #774a2c; border-color: #e4bd9b; background: #fff0e2; }
.author-occupation { margin-inline-start: 2px; color: var(--muted); }
.author-bio { margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.story { position: relative; }
.story-content { padding: 9px 13px 13px; overflow-wrap: anywhere; }
.story-type {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--tone);
  font-size: .73rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  font-weight: 800;
}
.story-type .icon { width: 15px; height: 15px; }
.story-title {
  margin-top: 3px;
  font-size: clamp(1.48rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.057em;
}
.story-copy { margin-top: 8px; color: #4a3e50; font-size: .91rem; line-height: 1.49; white-space: pre-line; }
.story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.story-facts li { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .81rem; font-weight: 650; }
.story-facts .icon { width: 15px; height: 15px; }

.story-photo .story-content { padding-block: 11px 13px; }
.story-photo .story-copy { margin-top: 0; }
.photo-open {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e9e3ea;
  cursor: zoom-in;
}
.photo-open:focus-visible { outline-offset: -4px; outline-color: var(--lime); }
.photo-open img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center var(--photo-y, 51%); }
#yana-training .photo-open { --photo-y: 62%; }
#court-rally .photo-open { --photo-y: 45%; }
#court-serve .photo-open { --photo-y: 47%; }
#court-break .photo-open { --photo-y: 46%; }
#after-breakfast .photo-open { --photo-y: 77%; }

.story-score .story { border-top: 1px solid #f0e9f4; }
.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 3px;
  margin: 9px 0 0;
  padding: 4px;
  border-radius: 11px;
  background: #38264d;
  color: var(--lime);
}
.score-cell {
  display: grid;
  gap: 1px;
  padding: 6px 6px 8px;
  border: 1px solid #685283;
  border-radius: 8px;
  text-align: center;
}
.score-cell dt { color: #e7d8f6; font-size: .73rem; font-weight: 650; }
.score-cell dd {
  margin: 0;
  font: 700 clamp(1.12rem, 5vw, 1.72rem)/1.07 Consolas, monospace;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.story-note { background: #fff9f3; }
.story-note .story-content { border-left: 3px solid #eaa98e; margin-left: 13px; padding: 1px 13px 2px 9px; }
.story-note .post-footer { border-top-color: transparent; padding-top: 5px; }
.note-toggle {
  min-height: 36px;
  margin-top: 3px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #5d3c76;
  font-size: .84rem;
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.note-toggle:hover { color: #352345; }
.post-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px 2px;
  border-top: 1px solid var(--line);
}
.post-reactions { flex: 1; min-width: 0; }
.reactions-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #63566d;
  font-size: .79rem;
  font-weight: 650;
}
.reactions-summary:hover { background: #f2eaf5; color: var(--ink); }
.reactions-faces { display: inline-flex; align-items: center; }
.reactions-faces .avatar {
  width: 24px;
  height: 24px;
  border: 2px solid var(--paper);
  background-color: #e9e3ea;
}
.reactions-faces .avatar + .avatar { margin-left: -7px; }
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 43px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #63566d;
  font-size: .83rem;
  font-weight: 700;
}
.post-action:hover, .post-action[aria-expanded="true"] { background: #f2eaf5; color: var(--ink); }
.post-action[aria-pressed="true"] { color: #a63d66; }
.post-action[aria-pressed="true"] .icon { fill: currentColor; }

.navigation {
  position: fixed;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, var(--stream));
  margin: auto;
  min-height: 59px;
  padding: 3px 6px max(3px, env(safe-area-inset-bottom));
  border: 1px solid #e3d8e6;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: #fffdfaee;
  box-shadow: 0 -3px 24px #2b1d3c13;
  backdrop-filter: blur(12px);
}
.nav-link {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 51px;
  padding: 3px 1px;
  border: 0;
  border-radius: 10px;
  color: #62566d;
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
}
.nav-link .icon { width: 19px; height: 19px; }
.nav-link[aria-current] { color: #332147; background: #eae2f4; }
.nav-link:hover { background: #f2eaf5; }

.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; margin-bottom: 7px; color: #59446b; font-size: .86rem; font-weight: 750; }
.back-link:hover { text-decoration: underline; }
.back-link .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.trainer-sheet { padding: 16px; }
.trainer-header { padding: 0; }
.trainer-header .avatar { width: 56px; height: 56px; }
#trainer-title { font-size: clamp(1.48rem, 5vw, 2.3rem); font-weight: 800; line-height: 1.09; letter-spacing: -.06em; }
.trainer-story { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 9px; border: 1px solid #dae7aa; border-radius: 10px; background: #eef5d5; }
.trainer-story:hover { border-color: #9cbb60; }
.trainer-story span { flex: 1; }
.trainer-story strong, .trainer-story small { display: block; }
.trainer-story strong { font-size: .89rem; }
.trainer-story small { color: var(--muted); font-size: .8rem; }

.comments { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.comment-list { display: grid; gap: 8px; margin-bottom: 9px; }
.comment-list:empty { display: none; }
.comment { display: flex; align-items: start; gap: 7px; overflow-wrap: anywhere; }
.comment .avatar { width: 28px; height: 28px; font-size: .68rem; }
.comment p { color: var(--muted); font-size: .86rem; }
.comment strong { color: var(--ink); margin-right: 5px; }
.comment-form { display: flex; gap: 5px; }
.comment-form input { flex: 1; min-width: 0; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: var(--plum);
  color: #fffaf6;
  font-size: .83rem;
  font-weight: 750;
}
.button:hover { background: #604573; }
.dialog {
  width: min(calc(100% - 18px), 510px);
  max-height: 92dvh;
  padding: 15px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 70px #20183288;
}
dialog::backdrop { background: #2a1d3abb; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dialog-head h2 { font-size: 1.64rem; font-weight: 800; line-height: 1.12; letter-spacing: -.055em; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: #f4ecf7; }
.icon-button:hover { background: #e9daf0; }
#publish-form { display: grid; gap: 10px; }
.type-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; min-width: 0; padding: 0; margin: 0; border: 0; }
.type-picker legend { padding: 0; margin-bottom: 5px; font-size: .86rem; font-weight: 650; }
.event-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 47px;
  padding: 4px 2px;
  border: 1px solid var(--tint-border);
  border-radius: 8px;
  background: var(--tint);
  color: var(--tone);
  font-size: clamp(.67rem, 2.65vw, .81rem);
  font-weight: 750;
  cursor: pointer;
}
.event-button .icon { width: 16px; height: 16px; }
.event-button:has(:checked), .event-button:hover { border-color: var(--tone); }
.type-picker label:has(input:focus-visible), .upload:has(input:focus-visible) { outline: 2px solid #8161a9; outline-offset: 2px; }
.type-picker input, .upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field { display: block; font-size: .86rem; font-weight: 650; }
.field span:not(#place-label) { color: var(--muted); font-size: .75rem; font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; margin-top: 4px; }
.field input, .field textarea, .comment-form input {
  padding: 8px 9px;
  border: 1px solid #d3c8d9;
  border-radius: 8px;
  background: #fcf8fc;
  color: var(--ink);
  font-size: 1rem;
}
.field textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #74687b; }
.upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px dashed #aa98bf;
  border-radius: 8px;
  color: var(--plum);
  font-size: .86rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.upload:hover { border-color: var(--plum); }
.form-error { color: #943048; font-size: .86rem; }
.publish-button { width: 100%; }
.photo-dialog { max-width: min(calc(100% - 16px), 850px); max-height: 90dvh; padding: 0; margin: auto; border: 0; border-radius: 12px; overflow: hidden; background: var(--plum); color: var(--ink); }
.photo-dialog img { display: block; width: auto; height: auto; max-width: 100%; max-height: 90dvh; object-fit: contain; }
.photo-dialog .icon-button { position: absolute; inset: 8px 8px auto auto; }

.directory-card { display: grid; gap: 5px; }
.person-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 4px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.person-row:hover { background: #f4ecf6; }
.person-details { flex: 1; min-width: 0; }
.person-details strong, .person-details small { display: block; overflow-wrap: anywhere; }
.person-details strong { font-size: .92rem; }
.person-details small, .directory-note { color: var(--muted); font-size: .84rem; }
.level { border-radius: 5px; padding: 2px 6px; background: #eaf3cd; font-size: .75rem; font-weight: 700; }

.people-screen { padding-top: 5px; }
#people-title {
  margin: 0 2px 13px;
  font-size: clamp(2.15rem, 9.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.075em;
}
.people-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  margin-bottom: 12px;
  padding: 3px 6px 3px 13px;
  border: 1px solid #dcd0e5;
  border-radius: 13px;
  background: var(--paper);
  color: #665475;
  box-shadow: 0 2px 7px #30243c0a;
}
.people-search:focus-within { outline: 2px solid #8161a9; outline-offset: 2px; }
.people-search > .icon { width: 21px; height: 21px; }
.people-search input {
  flex: 1;
  min-width: 0;
  min-height: 43px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}
.people-search input::-webkit-search-cancel-button { display: none; }
.people-search-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #685774;
}
.people-search-clear:hover { background: #f2eaf5; }
.people-search-clear .icon { width: 18px; height: 18px; }
.people-list { margin: 0; padding: 2px 0; list-style: none; }
.people-list li + li { border-top: 1px solid var(--line); }
.people-list .person-row {
  position: relative;
  min-height: 69px;
  padding: 10px 12px;
  border-radius: 0;
}
.people-list li:first-child .person-row { border-radius: 18px 18px 0 0; }
.people-list li:last-child .person-row { border-radius: 0 0 18px 18px; }
.people-list li:only-child .person-row { border-radius: 18px; }
.people-list .person-row:focus-visible { outline-offset: -3px; }
.people-list .person-row > .icon {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 16px;
  height: 16px;
  color: #7a6985;
}
.people-list .person-details { padding-left: 2px; }
.people-list .author-name-row { padding-right: 17px; }
.people-list .author-name-row strong { font-size: .99rem; font-weight: 800; letter-spacing: -.025em; }

.people-list .followable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-right: 12px;
}
.people-list .followable-row .author-name-row {
  padding-right: 0;
  column-gap: 5px;
}
.people-list .followable-row .author-name-row strong,
.people-list .followable-row .author-role { line-height: 1.24rem; }
.people-list .followable-row .person-row { padding-right: 6px; }
.follow-button {
  min-width: 84px;
  min-height: 34px;
  padding: 3px 5px;
  border: 1px solid var(--plum);
  border-radius: 9px;
  background: var(--plum);
  color: #fffaf6;
  font-size: .73rem;
  font-weight: 750;
  white-space: nowrap;
}
.follow-button:hover { background: #604573; }
.follow-button[data-following="true"] {
  border-color: #d7c8e8;
  background: #f5eff9;
  color: #513b68;
}
.follow-button[data-following="true"]:hover { background: #eae0f3; }

.people-empty { padding: 18px 14px; color: var(--muted); font-size: .9rem; }

.profile-intro { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.profile-intro .avatar-self { width: 44px; height: 44px; }
.profile-photo-upload, .directory-note { margin-top: 9px; }
.profile-events { display: grid; gap: 3px; margin-top: 9px; }
.text-button { border: 0; background: transparent; padding: 7px 2px; color: var(--plum); font-size: .85rem; font-weight: 750; text-align: left; }
.text-button:hover { text-decoration: underline; }
.toast { position: fixed; inset: auto 10px max(68px, calc(62px + env(safe-area-inset-bottom))) auto; z-index: 5; max-width: min(330px, calc(100% - 20px)); border-radius: 9px; background: var(--plum); color: var(--paper); font-size: .87rem; font-weight: 650; }
.toast:not(:empty) { padding: 8px 11px; border: 1px solid #dad0df; }

@media (min-width: 620px) {
  .main { padding-top: 17px; }
  .feed-heading { min-height: 130px; padding: 16px 20px; margin-bottom: 15px; }
  .feed-heading p { margin-top: 8px; font-size: .94rem; }
  .post-header, .story-content { padding-inline: 16px; }
  .story-note .story-content { margin-left: 16px; }
  .photo-open { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
