@font-face {
  font-family: 'Bricolage';
  src: url('./assets/bricolage.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #201f22;
  --muted: #5d5963;
  --blue: #3e42de;
  --lime: #e3f58c;
  --display: Bricolage, 'Arial Rounded MT Bold', sans-serif;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid #5b54e8; outline-offset: 5px; }

.site-header {
  display: flex;
  align-items: center;
  max-width: 1580px;
  margin-inline: auto;
  min-height: 86px;
  padding: 0 44px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font: 800 32px/1 var(--display);
  letter-spacing: -.065em;
  text-decoration: none;
}

.brand-period { color: var(--blue); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  margin-right: 10px;
  background: var(--blue);
}

.brand-mark::after {
  content: '';
  width: 17px;
  height: 13px;
  transform: rotate(-13deg);
  border: 2px solid white;
  border-radius: 7px 7px 7px 2px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr);
  max-width: 1580px;
  min-height: clamp(580px, calc(100svh - 86px), 880px);
  margin-inline: auto;
  padding: 0 28px 28px;
}

.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: end;
  padding: clamp(28px, 4.05vw, 66px);
  border-radius: 26px;
  background: #4b314b;
  color: white;
}

.hero-photo, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-photo { object-fit: cover; object-position: 64% 50%; }
.hero::after {
  content: '';
  background: linear-gradient(180deg, rgb(29 20 41 / .09) 28%, rgb(24 15 26 / .20) 49%, rgb(26 16 28 / .83) 100%);
}

.hero-title {
  font: 800 clamp(2.9rem, 5.5vw, 6rem)/.91 var(--display);
  letter-spacing: -.055em;
  text-wrap: nowrap;
}

.hero-title > span { color: var(--lime); }

.hero-sticker {
  position: absolute;
  top: 38px;
  right: 38px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--lime);
  color: #262349;
  transform: rotate(11deg);
}

.hero-sticker span:first-child, .hero-sticker span:nth-child(2) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  border-radius: 3px;
}

.hero-sticker span:first-child { width: 42px; height: 4px; }
.hero-sticker span:nth-child(2) { width: 4px; height: 42px; }
.hero-sticker::before, .hero-sticker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 4px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: currentColor;
  border-radius: 3px;
}
.hero-sticker::after { transform: translate(-50%, -50%) rotate(-45deg); }

.account { display: grid; place-items: center; padding: 40px clamp(30px, 5.4vw, 90px); }
.account-content { width: 100%; max-width: 414px; }

.conversation-mark {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  background: #e9e7fc;
  border-radius: 20px;
  transform: rotate(-8deg);
}

.conversation-mark::before, .conversation-mark::after {
  content: '';
  position: absolute;
  width: 27px;
  height: 20px;
  border: 2px solid var(--blue);
  border-radius: 10px 10px 10px 2px;
}

.conversation-mark::before { top: 25px; left: 24px; transform: scaleX(-1); }
.conversation-mark::after { top: 17px; left: 12px; background: var(--blue); }
.conversation-mark span {
  z-index: 1;
  position: absolute;
  top: 25px;
  left: 19px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 5px 0 white, 10px 0 white;
}

h1 {
  margin: 0;
  font: 800 clamp(3rem, 4.75vw, 5.25rem)/1 var(--display);
  letter-spacing: -.055em;
}

.intro { margin: 14px 0 35px; font-size: 1.0625rem; color: var(--muted); }

.action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

.action-primary { color: white; background: var(--blue); }
.action-primary:hover:not(:disabled) { background: #3134c4; transform: translateY(-1px); }
.action-primary:active:not(:disabled) { transform: none; }
.action-primary:disabled { cursor: wait; background: #5356dc; }
.action-secondary { background: transparent; color: var(--blue); border-color: #cbc8ed; }
.action-secondary:hover { background: #efecfd; }

.arrow { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.arrow::after {
  content: '';
  position: absolute;
  top: -4px;
  right: 0;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 1px;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgb(255 255 255 / .38);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.device-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .875rem;
}

.phone {
  position: relative;
  width: 10px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.phone::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 3px;
  height: 1px;
  transform: translateX(-50%);
  background: currentColor;
}

.error { margin: 16px 0 0; padding: 10px 13px; border-radius: 10px; background: #f8e5e6; color: #8b2638; font-size: .875rem; }

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding: 0 22px; }
  .wordmark { font-size: 28px; }
  .brand-mark { width: 29px; height: 29px; }
  .layout { display: block; padding: 0 14px 24px; min-height: auto; }
  .hero {
    min-height: clamp(230px, 57vw, 370px);
    padding: 26px;
    border-radius: 21px;
  }
  .hero-photo { object-position: 64% 45%; }
  .hero-title { font-size: clamp(2.35rem, 7.9vw, 4rem); }
  .hero-sticker { width: 51px; height: 51px; top: 18px; right: 18px; }
  .hero-sticker span:first-child { width: 29px; height: 3px; }
  .hero-sticker span:nth-child(2) { width: 3px; height: 29px; }
  .hero-sticker::before, .hero-sticker::after { width: 24px; height: 3px; }
  .account { padding: 33px 14px 16px; }
  .conversation-mark { display: none; }
  .intro { margin: 10px 0 23px; }
  h1 { font-size: clamp(2.55rem, 10.5vw, 3.9rem); }
}

@media (prefers-reduced-motion: reduce) {
  .action { transition: none; }
  .spinner { animation: none; }
}

.site-header:has(.club-nav:not([hidden])) {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}

.club-nav { justify-self: center; }
.club-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 21px;
  border-radius: 999px;
  background: #e9e7fc;
  color: #3134c4;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.logout {
  justify-self: end;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
}
.logout:hover { color: var(--blue); }

.club { width: min(100%, 1020px); margin-inline: auto; padding: 28px 36px 64px; }
.club h1 { font-size: clamp(2.75rem, 6vw, 4.7rem); overflow-wrap: anywhere; }

.friend-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 21px 0 25px; }
.friend-filter {
  min-height: 40px;
  padding: 5px 16px;
  border: 1px solid #dedbe5;
  border-radius: 999px;
  color: var(--ink);
  background: #fffdfa;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.friend-filter:hover { border-color: var(--blue); }
.friend-filter[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: white; }

.friend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.friend-grid > li { min-width: 0; }
.friend-card {
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: end;
  min-width: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 20px;
  color: white;
  text-decoration: none;
}
.friend-card .friend-photo { position: absolute; inset: 0; z-index: -2; }
.friend-photo {
  overflow: hidden;
  background: linear-gradient(145deg, #e1ddfa, #b2a8e3 58%, #716aaf);
}
.friend-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.friend-card .friend-photo img { object-position: center 36%; transition: transform .2s ease; }
.friend-card:hover .friend-photo img { transform: scale(1.035); }
.friend-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 42%, rgb(27 18 38 / .80) 100%);
}
.friend-caption { display: grid; gap: 3px; padding: 24px; min-width: 0; }
.friend-caption strong, .friend-caption .country-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.friend-caption strong { font: 750 clamp(1.15rem, 2.45vw, 1.9rem)/1.1 var(--display); }
.country-label { display: inline-flex; align-items: center; gap: .38em; min-width: 0; }
.country-flag {
  flex: none;
  width: 20px;
  height: 14px;
  background: url('./assets/country-flags.webp') no-repeat;
}
.country-name { min-width: 0; }
.friend-caption .country-label { color: #f0eaf5; font-size: .925rem; }

.club-status { margin: 0 0 18px; color: var(--muted); }
.status-error { color: #8b2638; }
.list-actions { display: flex; justify-content: center; margin-top: 26px; }
.club-action { width: auto; min-height: 45px; padding: 8px 22px; }
.club-action:disabled { cursor: wait; opacity: .6; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--blue);
  font-weight: 700;
  min-height: 38px;
  text-decoration: none;
}
.back-link:hover span { text-decoration: underline; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: 'photos info';
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
}
.profile-info { grid-area: info; padding-top: 12px; }
.profile-gallery { grid-area: photos; display: grid; gap: 14px; }
.profile-gallery .friend-photo { border-radius: 20px; }
.profile-gallery img { height: auto; }
.profile-meta { margin: 12px 0 0; color: var(--muted); font-weight: 600; }
.profile-bio { margin-top: 28px; }
.profile-bio h2 { margin: 0 0 6px; font: 750 1.4rem/1.2 var(--display); }
.profile-bio p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.profile-tags li { max-width: 100%; padding: 4px 11px; border-radius: 999px; background: #e9e7fc; color: #373190; font-size: .85rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .club { padding: 22px 14px 42px; }
  .site-header:has(.club-nav:not([hidden])) { padding-inline: 14px; }
  .site-header:has(.club-nav:not([hidden])) .wordmark { font-size: 24px; }
  .site-header:has(.club-nav:not([hidden])) .brand-mark { margin-right: 6px; width: 25px; height: 25px; }
  .club-tab { padding-inline: 12px; }
  .logout { padding-inline: 4px; }
  .friend-filters { margin: 16px 0 18px; }
  .friend-filter { padding-inline: 12px; }
  .friend-grid { gap: 10px; }
  .friend-card { aspect-ratio: 4 / 5; border-radius: 15px; }
  .friend-caption { padding: 12px 10px; }
  .friend-caption .country-label { font-size: .8rem; }
  .profile-layout { grid-template-columns: 1fr; grid-template-areas: 'info' 'photos'; gap: 24px; }
  .profile-info { padding-top: 0; }
  .profile-gallery .friend-photo { border-radius: 15px; }
  .profile-bio { margin-top: 20px; }
  .back-link { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .friend-card .friend-photo img { transition: none; }
}

.friend-grid > li { position: relative; }
.message-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.message-entry::before {
  content: '';
  width: 14px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 6px 6px 6px 2px;
  flex: none;
}
.card-message-entry {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--ink);
  background: rgba(255, 253, 250, .95);
}
.card-message-entry:hover { background: white; color: var(--blue); }
.profile-message-entry { margin-top: 18px; background: var(--blue); color: white; }
.profile-message-entry:hover { background: #3134c4; }

.chat-view { max-width: 700px; margin-inline: auto; }
.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: clamp(370px, calc(100dvh - 225px), 730px);
  border: 1px solid #e1ddeb;
  border-radius: 24px;
  overflow: hidden;
  background: #fffdfa;
}
.chat-heading { padding: 18px 22px; border-bottom: 1px solid #ebe7f2; }
.chat-heading h1 { font-size: clamp(1.65rem, 4vw, 2.3rem); letter-spacing: -.045em; }
.chat-history { overflow: auto; overscroll-behavior: contain; padding: 18px 22px; }
.chat-status { margin: 0; padding: 12px 0; text-align: center; font-size: .9rem; }
.chat-older, .chat-retry { display: block; margin: 0 auto 12px; }
.chat-older {
  min-height: 36px;
  border: 0;
  padding: 0 12px;
  border-radius: 8px;
  background: #efedfc;
  color: #3437ad;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-older:disabled { cursor: wait; opacity: .66; }
.chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chat-message {
  max-width: min(87%, 480px);
  padding: 9px 13px 7px;
  border-radius: 15px 15px 15px 4px;
  background: #efedfc;
}
.chat-message-own {
  align-self: flex-end;
  background: var(--blue);
  color: white;
  border-radius: 15px 15px 4px 15px;
}
.chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message time { display: block; margin-top: 3px; opacity: .82; font-size: .7rem; text-align: end; }
.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
  border-top: 1px solid #ebe7f2;
  padding: 12px 16px;
}
.chat-form textarea {
  width: 100%;
  min-height: 46px;
  max-height: 125px;
  border: 1px solid #dedbe5;
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.chat-form .action { min-height: 46px; padding: 8px 18px; }
.chat-send-error { grid-column: 1 / -1; margin: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .card-message-entry { top: 8px; right: 8px; min-height: 36px; gap: 5px; padding-inline: 10px; font-size: .78rem; }
  .card-message-entry::before { width: 12px; height: 10px; }
  .chat-panel { height: clamp(260px, calc(100dvh - 162px), 730px); border-radius: 18px; }
  .chat-heading, .chat-history { padding: 14px; }
  .chat-form { padding: 10px; }
}

.club-nav { display: flex; align-items: center; gap: 5px; }
.club-tab { color: var(--muted); background: transparent; justify-content: center; }
.club-tab:hover { color: var(--blue); background: #f0edfb; }
.club-tab[aria-current='page'] { color: #3134c4; background: #e9e7fc; }

.inbox { max-width: 740px; margin-inline: auto; }
.inbox > .club-status { margin: 20px 0 12px; }
.inbox-discover { display: inline-flex; text-decoration: none; }
.inbox-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  background: #fffdfa;
  border-radius: 18px;
}
.inbox-list:not(:empty) { border: 1px solid #e5e0ee; }
.inbox-list li + li { border-top: 1px solid #eae5f1; }
.inbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'avatar name time' 'avatar preview time';
  align-items: center;
  min-width: 0;
  gap: 2px 13px;
  padding: 14px 16px;
  color: var(--ink);
  border-radius: 12px;
  text-decoration: none;
}
.inbox-row:hover { background: #f4f1fc; }
.inbox-row > strong, .inbox-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inbox-row > strong { grid-area: name; align-self: end; }
.inbox-avatar { grid-area: avatar; width: 48px; height: 48px; border-radius: 50%; }
.inbox-avatar img { object-position: center 37%; }
.inbox-preview { grid-area: preview; align-self: start; color: var(--muted); font-size: .9rem; }
.inbox-row time { grid-area: time; color: var(--muted); font-size: .8rem; white-space: nowrap; }

@media (max-width: 500px) {
  .site-header:has(.club-nav:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand logout' 'navigation navigation';
    gap: 6px 12px;
    padding-top: 11px;
  }
  .site-header .wordmark { grid-area: brand; justify-self: start; }
  .club-nav { grid-area: navigation; justify-self: stretch; }
  .club-nav .club-tab { flex: 1; min-height: 36px; }
  .site-header .logout { grid-area: logout; }
  .inbox-row { gap: 2px 10px; padding-inline: 10px; }
  .inbox-avatar { width: 42px; height: 42px; }
  .chat-panel { height: clamp(255px, calc(100dvh - 198px), 730px); }
}

.chat-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(115deg, #efecfc, #fffdfa 83%);
}
.chat-identity { min-width: 0; }
.chat-heading h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.chat-avatar { flex: none; width: 54px; height: 54px; }
.chat-avatar .friend-photo { width: 100%; height: 100%; border-radius: 50%; }
.chat-avatar img { object-position: center 37%; }
.chat-country { margin-top: 3px; font-size: .875rem; color: var(--muted); }
.chat-country:empty { display: none; }
.chat-form { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.chat-form textarea { resize: none; }
.chat-attach, .chat-remove {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}
.chat-attach {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: var(--blue);
  background: #efedfc;
}
.chat-attach:hover, .chat-remove:hover { background: #e6e1fa; }
.chat-attach:disabled, .chat-remove:disabled { opacity: .6; cursor: wait; }
.chat-attach span {
  position: relative;
  width: 19px;
  height: 16px;
  overflow: hidden;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.chat-attach span::before, .chat-attach span::after { content: ''; position: absolute; background: currentColor; }
.chat-attach span::before { width: 3.5px; height: 3.5px; left: 3px; top: 2px; border-radius: 50%; }
.chat-attach span::after { width: 12px; height: 9px; right: 0; top: 5px; transform: rotate(-38deg); border-radius: 3px; }
.chat-attachment {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #f2effb;
}
.chat-attachment img { width: 48px; height: 48px; object-fit: cover; border-radius: 7px; }
.chat-attachment > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.chat-remove { width: 36px; height: 36px; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.3rem; }
.chat-message-photo { width: min(77%, 310px); padding: 6px 6px 5px; }
.chat-message-photo p { padding: 5px 4px 0; }
.chat-message-photo time { padding-inline: 4px; }
.chat-photo { overflow: hidden; border-radius: 11px; background: #dedaf6; }
.chat-photo img { display: block; width: 100%; max-height: 315px; object-fit: contain; }
.chat-photo button {
  min-height: 112px;
  width: 100%;
  padding: 8px;
  border: 0;
  color: #343065;
  background: #dedaf6;
  cursor: pointer;
}
.chat-photo button:disabled { cursor: wait; }
@media (max-width: 500px) {
  .chat-avatar { width: 43px; height: 43px; }
  .chat-country { font-size: .82rem; }
  .chat-form { column-gap: 7px; }
  .chat-form .action { padding-inline: 13px; }
}

.chat-editor { position: relative; min-width: 0; }
.chat-editor textarea { display: block; padding-right: 48px; }
.chat-emoji-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
}
.chat-emoji-toggle:hover, .chat-emoji-toggle[aria-expanded='true'] { background: #e9e5fb; }
.chat-emoji-toggle:disabled { opacity: .6; cursor: wait; }
.chat-emoji-toggle span {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.chat-emoji-toggle span::before, .chat-emoji-toggle span::after { content: ''; position: absolute; }
.chat-emoji-toggle span::before {
  width: 2.5px;
  height: 2.5px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 5.5px 0 currentColor;
}
.chat-emoji-toggle span::after {
  width: 8px;
  height: 5px;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 7px 7px;
}
.chat-emoji-picker {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 9px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 3px;
  width: min(294px, calc(100vw - 124px));
  max-height: min(296px, 30dvh);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e6e1f2;
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: 0 8px 28px #29204426;
}
.chat-emoji-picker button {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font: 21px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  cursor: pointer;
}
.chat-emoji-picker button:hover, .chat-emoji-picker button:focus-visible { background: #efedfc; }
.chat-emoji-picker button:focus-visible { outline-offset: -2px; }

.me-view { max-width: 672px; margin-inline: auto; }
.me-card, .me-links {
  margin-top: 22px;
  border: 1px solid #e5e0ee;
  border-radius: 19px;
  background: #fffdfa;
}
.me-banner {
  height: 92px;
  border-radius: 18px 18px 0 0;
  background: radial-gradient(ellipse at 90% -40%, #a49aff, transparent 67%), linear-gradient(114deg, #4035ac, #6955ce);
}
.me-card-body { padding: 0 22px 22px; }
.me-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-top: -33px;
  margin-bottom: 12px;
  border: 4px solid #fffdfa;
  border-radius: 50%;
  background: #ebe6fd;
  color: #3c2f9a;
  font: 800 1.65rem/1 var(--display);
}
.me-card h2 { margin: 0 0 10px; font-size: 1.45rem; overflow-wrap: anywhere; }
.me-bio { margin: 0 0 14px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.me-card .club-status { margin: 0 0 12px; }
.me-form { display: grid; gap: 8px; }
.me-form label { font-size: .9rem; font-weight: 700; }
.me-form label span { font-weight: 400; color: var(--muted); }
.me-form input, .me-form textarea {
  width: 100%;
  min-height: 42px;
  margin-bottom: 7px;
  padding: 9px 12px;
  border: 1px solid #dedbe5;
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.me-form textarea { resize: vertical; }
.me-form .error { margin: 0; }
.me-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.me-links { overflow: hidden; }
.me-links > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 19px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.me-links > * + * { border-top: 1px solid #ebe7f2; }
.me-links > *:hover { background: #f4f1fc; }
.me-links > *:focus-visible { outline-offset: -3px; }
.me-links span:last-child { color: var(--muted); font-size: 1.3rem; line-height: 1; }
@media (max-width: 500px) {
  .me-banner { height: 72px; }
  .me-card-body { padding-inline: 15px; }
  .me-card, .me-links { margin-top: 16px; }
}
