/* ED Member: theme-native social layer */

.edm-profile,
.edm-directory,
.edm-messages,
.edm-auth,
.edm-friends,
.edm-notifications,
.edm-account-settings-page {
  --edm-font: var(--ed-font-sans, Inter, Arial, sans-serif);
  --edm-ink: var(--ed-color-ink, #20212a);
  --edm-muted: var(--ed-color-muted, #666171);
  --edm-surface: var(--ed-color-surface, #fffdf8);
  --edm-surface-strong: var(--ed-color-surface-strong, #fff);
  --edm-line: var(--ed-color-line, rgba(32, 33, 42, .1));
  --edm-line-strong: var(--ed-color-line-strong, rgba(32, 33, 42, .16));
  --edm-primary: var(--ed-color-primary, #7a2438);
  --edm-primary-strong: var(--ed-color-primary-strong, #5e1728);
  --edm-primary-soft: var(--ed-color-primary-soft, rgba(122, 36, 56, .1));
  --edm-accent: var(--ed-color-accent, #d99b32);
  --edm-teal: var(--ed-color-teal, #1f766e);
  --edm-teal-soft: var(--ed-color-teal-soft, rgba(31, 118, 110, .1));
  --edm-panel-bg: var(--ed-color-panel-bg, rgba(255, 253, 248, .96));
  --edm-primary-rgb: var(--ed-color-primary-rgb, 122, 36, 56);
  --edm-shadow-rgb: var(--ed-color-shadow-rgb, 73, 41, 25);
  --edm-radius: 18px;
  --edm-pill: 999px;
  --edm-shadow: var(--ed-shadow-soft, 0 14px 36px rgba(73, 41, 25, .09));
  width: min(100%, 1440px);
  max-width: none;
  margin: 0 auto 56px;
  color: var(--edm-ink);
  font-family: var(--edm-font);
}


.ed-member-page .edm-profile,
.ed-member-page .edm-directory,
.ed-member-page .edm-messages,
.ed-member-page .edm-auth,
.ed-member-page .edm-friends,
.ed-member-page .edm-notifications,
.ed-member-page .edm-account-settings-page {
  width: min(100%, 1440px);
  margin-left: auto;
  margin-right: auto;
}

.ed-member-profile-page .entry-header,
.ed-member-profile-page .page-header,
.ed-member-profile-page .entry-title,
.ed-member-profile-page .wp-block-post-title,
.ed-member-profile-page main > header:first-child,
.ed-member-friends-page .entry-header,
.ed-member-friends-page .page-header,
.ed-member-friends-page .entry-title,
.ed-member-friends-page .wp-block-post-title,
.ed-member-friends-page main > header:first-child,
.ed-member-directory-page .entry-header,
.ed-member-directory-page .page-header,
.ed-member-directory-page .entry-title,
.ed-member-directory-page .wp-block-post-title,
.ed-member-directory-page main > header:first-child,
.ed-member-messages-page .entry-header,
.ed-member-messages-page .page-header,
.ed-member-messages-page .entry-title,
.ed-member-messages-page .wp-block-post-title,
.ed-member-messages-page main > header:first-child,
.ed-member-notifications-page .entry-header,
.ed-member-notifications-page .page-header,
.ed-member-notifications-page .entry-title,
.ed-member-notifications-page .wp-block-post-title,
.ed-member-notifications-page main > header:first-child,
.ed-member-settings-page .entry-header,
.ed-member-settings-page .page-header,
.ed-member-settings-page .entry-title,
.ed-member-settings-page .wp-block-post-title,
.ed-member-settings-page main > header:first-child {
  display: none !important;
}

.ed-member-page .entry-content,
.ed-member-page .wp-block-post-content,
.ed-member-page .site-main,
.ed-member-page .content-area,
.ed-member-page .site-content,
.ed-member-page article,
.ed-member-page .hentry {
  width: 100%;
  max-width: none;
}

.ed-member-page .entry-content {
  margin-top: 0;
}

html.ed-member-lock-scroll,
body.ed-member-runtime-messages-page {
  overflow: hidden;
  overscroll-behavior: none;
}

html.edm-options-modal-open,
body.edm-options-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.ed-member-keyboard-open,
body.ed-member-keyboard-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.ed-member-page .site-footer,
.ed-member-page footer.site-footer,
.ed-member-page #footer,
.ed-member-page #colophon,
.ed-member-page .wp-site-blocks > footer,
.ed-member-page .site-info,
.ed-member-runtime-page #footer,
.ed-member-runtime-page footer,
.ed-member-runtime-page .site-footer,
.ed-member-runtime-page #colophon,
.ed-member-runtime-page .site-info,
.ed-member-runtime-page .wp-site-blocks > footer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.edm-profile *,
.edm-directory *,
.edm-messages *,
.edm-auth *,
.edm-friends *,
.edm-notifications *,
.edm-account-settings-page * {
  box-sizing: border-box;
}

.edm-card,
.edm-feed-item,
.edm-profile-hero,
.edm-member-card,
.edm-social-row,
.edm-notification-item {
  border: 1px solid var(--edm-line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(var(--edm-primary-rgb), .035), transparent 42%),
    var(--edm-panel-bg);
  box-shadow: var(--edm-shadow);
}

.edm-card {
  padding: 18px;
}

.edm-section-head {
  margin-bottom: 14px;
}

.edm-section-head h1,
.edm-section-head h2,
.edm-card h2,
.edm-auth h1 {
  margin: 0 0 6px;
  color: var(--edm-primary-strong);
  font-weight: 900;
  letter-spacing: 0;
}

.edm-section-head p,
.edm-muted,
.edm-card p,
.edm-auth p {
  color: var(--edm-muted);
  line-height: 1.5;
}

.edm-eyebrow {
  margin: 0 0 6px;
  color: var(--edm-primary);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.edm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  background: var(--edm-surface-strong);
  color: var(--edm-ink);
  font: inherit;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(73, 41, 25, .08);
}

.edm-btn.is-loading,
.edm-menu-item.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.edm-btn.is-loading::after,
.edm-menu-item.is-loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: edm-spin .7s linear infinite;
}

.edm-btn-soft.is-loading::after,
.edm-btn-danger.is-loading::after,
.edm-menu-item.is-loading::after {
  color: var(--edm-primary);
}

@keyframes edm-spin {
  to {
    transform: rotate(360deg);
  }
}

.edm-btn-primary {
  border-color: color-mix(in srgb, var(--edm-primary) 28%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, #FFFFFF 14%, transparent), transparent 48%),
    var(--edm-primary);
  color: #FFFFFF;
  box-shadow:
    0 14px 30px rgb(var(--ed-primary-rgb) / 0.22),
    inset 0 1px 0 rgb(var(--ed-bg-light-rgb) / 0.24);
}

.edm-btn-danger {
  color: #9f1239;
}

.edm-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 50%;
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
  font-weight: 900;
  text-decoration: none;
}

.edm-avatar img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-avatar > span {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

:where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar) {
  --edm-avatar-presence-ring: transparent;
  outline: 2px solid var(--edm-avatar-presence-ring) !important;
  outline-offset: 2px;
}

:where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar).is-online,
:where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar)[data-edm-online="1"] {
  --edm-avatar-presence-ring: #22c55e;
}

:where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar).is-offline,
:where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar)[data-edm-online="0"] {
  --edm-avatar-presence-ring: transparent;
}

html[data-ed-theme="dark"] :where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar).is-online,
body.dark-mode :where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar).is-online,
body.ed-dark-mode :where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar, .edm-message-sender-avatar, .edm-event-going-avatar, .edm-event-going-stack-avatar).is-online {
  --edm-avatar-presence-ring: #4ade80;
}

/* Profile */

.edm-profile-hero {
  position: relative;
  z-index: 10;
  overflow: visible;
  padding-bottom: 0;
}

.edm-cover {
  min-height: clamp(210px, 28vw, 320px);
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 155, 50, .22), transparent 28%),
    linear-gradient(135deg, var(--edm-primary-strong), var(--edm-primary) 56%, var(--edm-accent));
  background-position: center;
  background-size: cover;
}

.edm-profile-head {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 0 24px 24px;
  border-radius: 0 0 22px 22px;
  background: rgba(255, 253, 248, .92);
}

.edm-profile-avatar {
  width: 132px;
  height: 132px;
  margin-top: -58px;
  overflow: hidden;
  border: 4px solid var(--edm-surface-strong);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(73, 41, 25, .18);
}

.edm-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-profile-title h1 {
  margin: 0;
  color: var(--edm-primary-strong);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  font-weight: 900;
}

.edm-profile-title {
  min-width: 0;
  padding-top: 18px;
}

.edm-profile-title p,
.edm-profile-bio {
  margin: 6px 0 0;
  color: var(--edm-muted);
  font-weight: 750;
}

.edm-profile-bio {
  max-width: 760px;
  padding: 0;
  line-height: 1.45;
}

.edm-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
}

.edm-profile-stats span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--edm-line);
  border-radius: var(--edm-pill);
  background: rgba(255, 255, 255, .78);
  color: var(--edm-muted);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(73, 41, 25, .04);
}

.edm-profile-stats strong {
  color: var(--edm-primary-strong);
}

.edm-profile-actions {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-self: end;
  padding-top: 18px;
}

.edm-profile-friend-button.is-friends,
.edm-profile-friend-button.is-pending {
  color: var(--edm-primary-strong);
}

.edm-profile-more {
  position: relative;
  z-index: 40;
}

.edm-profile-more[open] {
  z-index: 100;
}

.edm-profile-more summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edm-line-strong);
  border-radius: 50%;
  background: var(--edm-surface-strong);
  color: var(--edm-primary-strong);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(73, 41, 25, .08);
}

.edm-profile-more summary::-webkit-details-marker {
  display: none;
}

.edm-profile-more-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 45px rgba(49, 24, 35, .18);
}

.edm-profile-more-menu button,
.edm-profile-more-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid var(--edm-line);
  background: transparent;
  color: var(--edm-ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.edm-profile-more-menu button:last-child,
.edm-profile-more-menu a:last-child {
  border-bottom: 0;
}

.edm-profile-more-menu button:hover,
.edm-profile-more-menu a:hover {
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
}

.edm-profile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 16px 0;
  padding: 6px;
  border-radius: var(--edm-pill);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 26px rgba(73, 41, 25, .06);
  width: fit-content;
  max-width: 100%;
  scrollbar-width: none;
}

.edm-profile-tabs::-webkit-scrollbar {
  display: none;
}

.edm-profile-tabs button,
.edm-profile-tabs a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--edm-pill);
  background: transparent;
  color: var(--edm-ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.edm-profile-tabs button:hover,
.edm-profile-tabs button.is-active,
.edm-profile-tabs a:hover {
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
}

.edm-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.edm-profile-panel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.edm-profile-panel[hidden] {
  display: none !important;
}

.edm-stack {
  display: grid;
  gap: 16px;
}

.edm-profile-editor {
  margin: 0;
  overflow: hidden;
}

.edm-profile-editor[hidden] {
  display: none;
}

.edm-profile-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.edm-profile-editor,
.edm-profile-form > *,
.edm-profile-form .edm-register-grid,
.edm-profile-form .edm-field,
.edm-profile-form .edm-fieldset {
  min-width: 0;
  max-width: 100%;
}

.edm-profile-form input,
.edm-profile-form select,
.edm-profile-form textarea {
  max-width: 100%;
}

.edm-profile-form .edm-settings-section {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.edm-profile-form .edm-settings-section h3 {
  margin: 0;
  color: var(--edm-primary-strong);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.edm-profile-form .edm-settings-section p {
  margin: 0;
}

.edm-profile-form-status {
  margin: 0;
  color: var(--edm-primary-strong);
  font-weight: 850;
}

.edm-field small[data-edm-profile-file-label] {
  min-height: 18px;
  color: var(--edm-muted);
  font-size: 12px;
  font-weight: 750;
}

.edm-profile-upload-grid {
  display: grid;
  grid-template-columns: minmax(180px, .48fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.edm-upload-card {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  color: var(--edm-ink);
  font-weight: 850;
  cursor: pointer;
}

.edm-upload-card__label {
  color: inherit;
}

.edm-upload-card__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.edm-upload-card__frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-height: 156px;
  border: 1px solid var(--edm-line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 15%, rgba(var(--edm-primary-rgb), .12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 12px 28px rgba(73, 41, 25, .08);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.edm-upload-card--avatar .edm-upload-card__frame {
  aspect-ratio: 1;
  max-width: 210px;
}

.edm-upload-card--banner .edm-upload-card__frame {
  aspect-ratio: 16 / 7;
}

.edm-upload-card__media,
.edm-upload-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.edm-upload-card__media img {
  object-fit: cover;
  transition: opacity .2s ease, transform .2s ease;
}

.edm-upload-card__empty {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 8px;
  align-content: center;
  place-items: center;
  padding: 18px;
  color: var(--edm-primary-strong);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.edm-upload-card__empty::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
  font-size: 28px;
  line-height: 1;
}

.edm-upload-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16, 17, 28, .48);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  transition: opacity .18s ease;
}

.edm-upload-card:hover .edm-upload-card__frame,
.edm-upload-card:focus-within .edm-upload-card__frame {
  border-color: rgba(var(--edm-primary-rgb), .38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 16px 34px rgba(var(--edm-shadow-rgb), .13),
    0 0 0 4px rgba(var(--edm-primary-rgb), .12);
  transform: translateY(-1px);
}

.edm-upload-card.has-image:hover .edm-upload-card__media img,
.edm-upload-card.has-image:focus-within .edm-upload-card__media img {
  opacity: .34;
  transform: scale(1.025);
}

.edm-upload-card.has-image .edm-upload-card__empty {
  opacity: 0;
  pointer-events: none;
}

.edm-upload-card.has-image:hover .edm-upload-card__overlay,
.edm-upload-card.has-image:focus-within .edm-upload-card__overlay {
  opacity: 1;
}

.edm-upload-card small[data-edm-profile-file-label] {
  min-height: 18px;
  color: var(--edm-muted);
  font-size: 12px;
  font-weight: 750;
}

.edm-settings-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.edm-settings-toggles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.edm-theme-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 4px 0;
}

.edm-theme-setting__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.edm-theme-setting__copy strong {
  color: var(--edm-primary-strong);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.edm-theme-setting__copy span {
  color: var(--edm-muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.edm-theme-setting__toggle {
  width: 72px;
  height: 40px;
  flex: 0 0 72px;
  border-radius: 999px;
  background: var(--edm-primary-soft);
  box-shadow: inset 0 0 0 1px var(--edm-line);
}

.edm-theme-setting__toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--edm-surface-strong);
  box-shadow: 0 8px 18px rgba(var(--edm-shadow-rgb), .16);
  transition: transform .22s ease;
}

html[data-ed-theme="dark"] .edm-theme-setting__toggle::before {
  transform: translateX(32px);
}

.edm-theme-setting__toggle .site-theme-toggle__icon {
  z-index: 1;
}

.edm-palette-setting {
  display: grid;
  gap: 14px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--edm-line);
}

.edm-palette-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.edm-palette-option {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(var(--edm-primary-rgb), .045), transparent 54%),
    var(--edm-surface-strong);
  color: var(--edm-ink);
  box-shadow: 0 10px 24px rgba(var(--edm-shadow-rgb), .08);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.edm-palette-option:hover,
.edm-palette-option:focus-visible {
  border-color: var(--edm-line-strong);
  box-shadow: 0 14px 30px rgba(var(--edm-shadow-rgb), .12);
  transform: translateY(-1px);
}

.edm-palette-option:focus-visible {
  outline: none;
  box-shadow: var(--ed-focus-ring), 0 14px 30px rgba(var(--edm-shadow-rgb), .12);
}

.edm-palette-option.is-selected,
.edm-palette-option[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--edm-primary) 68%, var(--edm-line));
  background:
    linear-gradient(135deg, var(--edm-primary-soft), transparent 58%),
    var(--edm-surface-strong);
}

.edm-palette-option__swatches {
  display: flex;
  width: 100%;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 999px;
  background: var(--edm-surface);
}

.edm-palette-option__swatches span {
  flex: 1 1 0;
  background: var(--swatch);
}

.edm-palette-option__name {
  color: var(--edm-primary-strong);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.edm-palette-option__note {
  color: var(--edm-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.edm-settings-group {
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(122, 36, 56, .026), transparent 46%),
    rgba(255, 255, 255, .74);
}

.edm-settings-group + .edm-settings-group {
  margin-top: 2px;
}

.edm-settings-group > summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 16px 18px;
  color: var(--edm-ink);
  cursor: pointer;
  list-style: none;
}

.edm-settings-group > summary::-webkit-details-marker {
  display: none;
}

.edm-settings-group > summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--edm-primary);
  border-bottom: 2px solid var(--edm-primary);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.edm-settings-group[open] > summary::after {
  transform: rotate(225deg);
}

.edm-settings-group > summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.edm-settings-group > summary strong {
  color: var(--edm-primary-strong);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
}

.edm-settings-group > summary small {
  color: var(--edm-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.edm-settings-group-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
  border-top: 1px solid var(--edm-line);
}

.edm-toggle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
  color: var(--edm-ink);
  font-weight: 800;
  line-height: 1.35;
}

.edm-toggle-row input {
  flex: 0 0 auto;
  order: 2;
  width: 46px;
  height: 28px;
  margin: 0;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  appearance: none;
  background: rgba(102, 97, 113, .22);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.edm-toggle-row input::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32, 33, 42, .16);
  transition: transform .18s ease;
}

.edm-toggle-row input:checked {
  border-color: rgba(31, 118, 110, .38);
  background: var(--edm-teal);
}

.edm-toggle-row input:checked::before {
  transform: translateX(18px);
}

.edm-toggle-row span {
  min-width: 0;
}

.edm-register-grid-span {
  grid-column: 1 / -1;
}

.edm-verification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
}

.edm-verification-card-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.edm-verification-card-main strong {
  color: var(--edm-ink);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
}

.edm-verification-card-main p {
  margin: 0;
  color: var(--edm-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
}

.edm-verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--edm-pill);
  background: rgba(122, 36, 56, .08);
  color: var(--edm-primary);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.edm-verification-badge.is-verified {
  background: var(--edm-teal-soft);
  color: var(--edm-teal);
}

.edm-verification-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(120px, 180px) auto;
  gap: 10px;
  align-items: end;
}

.edm-verification-code {
  gap: 5px;
}

.edm-verification-code input {
  min-height: 42px;
  text-align: center;
  font-weight: 950;
  letter-spacing: .12em;
}

.edm-notification-list {
  display: grid;
  gap: 10px;
}

.edm-notification-dropdown {
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: var(--edm-surface-strong);
}

.edm-notification-dropdown > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--edm-ink);
  cursor: pointer;
  list-style: none;
}

.edm-notification-dropdown > summary::-webkit-details-marker {
  display: none;
}

.edm-notification-dropdown > summary::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--edm-primary);
  border-bottom: 2px solid var(--edm-primary);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.edm-notification-dropdown[open] > summary::after {
  transform: rotate(225deg);
}

.edm-notification-dropdown > summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.edm-notification-dropdown > summary strong {
  color: var(--edm-primary-strong);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.edm-notification-dropdown > summary small {
  color: var(--edm-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}

.edm-notification-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.edm-channel-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--edm-line);
  border-radius: var(--edm-pill);
  background: rgba(255, 253, 248, .94);
  color: var(--edm-ink);
  font-weight: 850;
  line-height: 1;
}

.edm-channel-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.edm-channel-chip span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--edm-line-strong);
  vertical-align: 1px;
}

.edm-channel-chip:has(input:checked) {
  border-color: rgba(31, 118, 110, .28);
  background: var(--edm-teal-soft);
  color: var(--edm-teal);
}

.edm-channel-chip:has(input:checked) span::before {
  background: var(--edm-teal);
}

.edm-channel-chip:has(input:focus-visible) {
  outline: 2px solid var(--edm-accent);
  outline-offset: 2px;
}

.edm-local-settings-card,
.edm-local-status {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: var(--edm-message-glass);
}

.edm-local-settings-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.edm-local-settings-card strong {
  color: var(--edm-primary-strong);
  font-size: 15px;
  font-weight: 900;
}

.edm-local-settings-card p,
.edm-local-status {
  margin: 0;
  color: var(--edm-muted);
  font-weight: 750;
  line-height: 1.45;
}

.edm-local-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.edm-local-results,
.edm-local-section {
  display: grid;
  gap: 14px;
}

.edm-local-section h3 {
  margin: 0;
  color: var(--edm-primary-strong);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}

.edm-profile-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edm-mini-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.edm-mini-member-grid a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: var(--edm-message-glass);
  color: var(--edm-ink);
  text-decoration: none;
}

.edm-notifications {
  --edm-notify-ink: #19152b;
  --edm-notify-muted: #706982;
  --edm-notify-line: rgba(101, 76, 136, .16);
  --edm-notify-purple: #6d35f5;
  --edm-notify-pink: #f4439c;
  --edm-notify-teal: #0a7774;
  --edm-notify-soft: #f7f4fb;
  --edm-notify-shadow: 0 24px 80px rgba(39, 27, 78, .12);
  width: min(980px, calc(100% - 36px));
}

.edm-notification-center {
  display: grid;
  gap: 18px;
}

.edm-notification-hero,
.edm-notification-list-panel {
  border: 1px solid var(--edm-notify-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--edm-notify-shadow);
  backdrop-filter: blur(16px);
}

.edm-notification-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border-top: 6px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(90deg, var(--edm-notify-purple), var(--edm-notify-pink), var(--edm-notify-teal)) border-box;
}

.edm-notification-hero::before,
.edm-notification-hero::after {
  content: "";
  position: absolute;
  inset-block: -30%;
  width: 160px;
  transform: skewX(-22deg);
  pointer-events: none;
}

.edm-notification-hero::before {
  right: 22%;
  background: rgba(244, 67, 156, .1);
}

.edm-notification-hero::after {
  right: 9%;
  background: rgba(109, 53, 245, .07);
}

.edm-notification-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.edm-notification-eyebrow {
  margin: 0 0 4px;
  color: #776c8d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edm-notification-hero h1 {
  margin: 0;
  color: var(--edm-notify-ink);
  font-size: clamp(34px, 6vw, 58px);
  line-height: .94;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-notification-hero p:not(.edm-notification-eyebrow) {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--edm-notify-muted);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  line-height: 1.5;
}

.edm-notification-stats {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.edm-notification-stats span {
  min-width: 94px;
  padding: 14px 16px;
  border: 1px solid var(--edm-notify-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 26px rgba(20, 14, 44, .04);
}

.edm-notification-stats strong {
  display: block;
  color: #4b209a;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.edm-notification-stats small {
  display: block;
  margin-top: 5px;
  color: var(--edm-notify-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: lowercase;
}

.edm-notification-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.edm-notification-action {
  min-height: 44px;
  padding: 11px 18px;
}

.edm-notifications .edm-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--edm-notify-purple), var(--edm-notify-pink));
  color: #fff;
  box-shadow: 0 14px 34px rgba(109, 53, 245, .28);
}

.edm-notifications .edm-btn-soft {
  border-color: rgba(109, 53, 245, .14);
  background: #f0e6ff;
  color: #6128dd;
  box-shadow: 0 8px 22px rgba(109, 53, 245, .08);
}

.edm-notifications .edm-btn:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.edm-notification-list-panel {
  padding: 16px;
}

.edm-notification-list-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.edm-notification-list-head h2 {
  margin: 0;
  color: var(--edm-notify-ink);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-notification-list-head p {
  margin: 5px 0 0;
  color: var(--edm-notify-muted);
  font-size: .92rem;
  font-weight: 800;
}

.edm-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: var(--edm-pill);
  background: var(--edm-notify-pink);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}

.edm-count-badge[hidden] {
  display: none;
}

.edm-notification-items {
  display: grid;
  gap: 14px;
}

.edm-notification-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 14, 44, .045);
}

.edm-notification-item.is-unread {
  border-color: rgba(10, 119, 116, .28);
  background:
    linear-gradient(135deg, rgba(10, 119, 116, .1), transparent 46%),
    #fff;
}

.edm-notification-item.is-read {
  opacity: .74;
}

.edm-notification-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--edm-notify-purple), var(--edm-notify-pink));
  font-size: .95rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(109, 53, 245, .16);
}

.edm-notification-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-notification-copy {
  min-width: 0;
}

.edm-notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.edm-notification-meta span,
.edm-notification-meta time,
.edm-notification-read-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: var(--edm-pill);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.edm-notification-meta span {
  color: #6427e9;
  background: #efe5ff;
}

.edm-notification-meta time,
.edm-notification-read-state {
  color: var(--edm-notify-muted);
  background: #f4eff9;
}

.edm-notification-item h3 {
  margin: 0;
  color: var(--edm-notify-ink);
  font-size: 18px;
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: 0;
}

.edm-notification-item h3 a {
  color: inherit;
  text-decoration: none;
}

.edm-notification-item h3 a:hover {
  color: #6427e9;
}

.edm-notification-item p {
  margin: 6px 0 0;
  color: var(--edm-notify-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.edm-notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.edm-notification-actions .edm-btn {
  min-height: 38px;
  padding: 8px 12px;
}

.edm-notification-empty {
  border-radius: 24px;
  padding: 28px 18px;
  background: rgba(255, 255, 255, .68);
  text-align: center;
}

@media (max-width: 720px) {
  .edm-notifications {
    width: min(100% - 18px, 980px);
  }

  .edm-notification-hero {
    padding: 22px;
  }

  .edm-notification-hero-inner {
    grid-template-columns: 1fr;
  }

  .edm-notification-stats {
    width: 100%;
  }

  .edm-notification-stats span {
    flex: 1 1 0;
  }

  .edm-notification-toolbar {
    justify-content: stretch;
  }

  .edm-notification-action {
    flex: 1 1 140px;
  }

  .edm-notification-list-head {
    align-items: flex-start;
  }

  .edm-notification-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px;
  }

  .edm-notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .edm-notification-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .edm-notification-actions .edm-btn,
  .edm-notification-actions .edm-notification-read-state {
    flex: 1 1 130px;
    justify-content: center;
  }
}

.edm-mini-member-grid .edm-avatar {
  width: 38px;
  height: 38px;
}

.edm-mini-member-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.edm-profile-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.edm-profile-event-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--edm-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(73, 41, 25, .05);
}

.edm-profile-event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--edm-primary-soft);
}

.edm-profile-event-card span {
  display: grid;
  gap: 4px;
  padding: 0 12px 12px;
}

.edm-profile-event-card strong,
.edm-profile-event-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-profile-event-card strong {
  font-weight: 900;
}

.edm-profile-event-card small {
  color: var(--edm-muted);
  font-weight: 800;
}

.edm-about-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.edm-about-list > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
}

.edm-about-list dt {
  color: var(--edm-primary-strong);
  font-weight: 900;
}

.edm-about-list dd {
  margin: 0;
  color: var(--edm-muted);
  font-weight: 750;
  line-height: 1.45;
}

.edm-about-list a {
  color: var(--edm-primary);
  font-weight: 850;
}

.edm-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edm-chip-list span {
  padding: 6px 9px;
  border-radius: var(--edm-pill);
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
  font-size: 12px;
  font-weight: 850;
}

/* Activity */

.edm-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.edm-composer-main {
  display: grid;
  gap: 10px;
}

.edm-composer textarea,
.edm-activity-input,
.edm-chat-form input,
.edm-field input,
.edm-field select,
.edm-field textarea {
  width: 100%;
  border: 1px solid var(--edm-line-strong);
  border-radius: 16px;
  background: var(--edm-surface-strong);
  color: var(--edm-ink);
  font: inherit;
  box-shadow: 0 8px 22px rgba(73, 41, 25, .04);
}

.edm-field select {
  min-height: 46px;
  padding: 10px 42px 10px 13px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--edm-primary-strong) 50%),
    linear-gradient(135deg, var(--edm-primary-strong) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-weight: 850;
}

.edm-field input,
.edm-field textarea {
  padding: 12px;
}

.edm-composer textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.edm-composer-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
}

.edm-composer-preview[hidden] {
  display: none;
}

.edm-composer-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.edm-composer-preview button {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--edm-pill);
  background: rgba(32, 33, 42, .82);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.edm-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.edm-composer-actions [data-edm-file-label] {
  margin-right: auto;
  color: var(--edm-muted);
  font-size: 13px;
  font-weight: 750;
}

.edm-feed {
  display: grid;
  gap: 14px;
}

.edm-feed-item {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.edm-feed-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.edm-feed-author {
  display: grid;
  gap: 3px;
}

.edm-feed-author a {
  color: var(--edm-ink);
  font-weight: 900;
  text-decoration: none;
}

.edm-feed-author span,
.edm-reply-body strong span {
  color: var(--edm-muted);
  font-size: 12px;
  font-weight: 750;
}

.edm-feed-text {
  color: var(--edm-ink);
  line-height: 1.55;
}

.edm-feed-text p,
.edm-reply-body p {
  margin: 0 0 .7em;
}

.edm-feed-text p:last-child,
.edm-reply-body p:last-child {
  margin-bottom: 0;
}

.edm-feed-media {
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  display: grid;
  place-items: center;
}

.edm-feed-media img {
  display: block;
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.edm-feed-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--edm-muted);
  font-size: 13px;
  font-weight: 800;
}

.edm-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--edm-line);
}

.edm-feed-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--edm-line);
  border-radius: var(--edm-pill);
  background: var(--edm-surface-strong);
  color: var(--edm-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.edm-inline-danger,
.edm-inline-muted {
  border: 0;
  background: transparent;
  color: var(--edm-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.edm-feed-actions button:hover,
.edm-feed-actions button.is-active {
  border-color: rgba(31, 118, 110, .24);
  background: var(--edm-teal-soft);
  color: var(--edm-teal);
}

.edm-replies {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--edm-line);
}

.edm-replies[hidden] {
  display: none;
}

.edm-reply-list {
  display: grid;
  gap: 10px;
}

.edm-reply {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.edm-reply .edm-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: 12px;
}

.edm-reply-body {
  padding: 10px 12px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.edm-reply-body strong {
  display: block;
  margin-bottom: 4px;
}

.edm-inline-danger {
  margin-top: 8px;
  color: #9f1239;
}

.edm-inline-muted {
  margin-top: 8px;
}

.edm-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.edm-activity-input,
.edm-chat-form input {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--edm-pill);
}

.edm-menu {
  position: relative;
}

.edm-menu summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--edm-primary-soft);
  cursor: pointer;
  list-style: none;
}

.edm-menu summary::before {
  content: "...";
  color: var(--edm-primary-strong);
  font-weight: 900;
  transform: translateY(-3px);
}

.edm-menu summary::-webkit-details-marker {
  display: none;
}

.edm-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: var(--edm-surface-strong);
  box-shadow: 0 18px 42px rgba(32, 33, 42, .16);
}

.edm-menu-backdrop,
.edm-sheet-handle {
  display: none;
}

.edm-menu-item {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--edm-ink);
  text-align: left;
  cursor: pointer;
}

.edm-menu-item:hover {
  background: var(--edm-primary-soft);
}

.edm-menu-item span {
  font-weight: 900;
}

.edm-menu-item small {
  color: var(--edm-muted);
}

.edm-menu-item.is-danger span {
  color: #9f1239;
}

/* Directory */

.edm-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.edm-member-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.edm-member-card .edm-avatar {
  width: 54px;
  height: 54px;
}

.edm-member-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.edm-member-card a {
  color: var(--edm-ink);
  text-decoration: none;
}

.edm-member-card p {
  margin: 0;
  color: var(--edm-muted);
}

/* Friends */

.edm-friends-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
}

.edm-friends-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: var(--edm-pill);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 26px rgba(73, 41, 25, .06);
}

.edm-friends-tabs::-webkit-scrollbar {
  display: none;
}

.edm-friends-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: var(--edm-pill);
  background: transparent;
  color: var(--edm-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.edm-friends-tabs button:hover,
.edm-friends-tabs button.is-active {
  border-color: rgba(122, 36, 56, .22);
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
}

.edm-friends-tabs span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 6px;
  border-radius: var(--edm-pill);
  background: var(--edm-primary);
  color: #fff;
  font-size: 11px;
}

.edm-friends-search {
  display: grid;
  gap: 6px;
  color: var(--edm-muted);
  font-size: 12px;
  font-weight: 850;
}

.edm-friends-search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  background: var(--edm-surface-strong);
  color: var(--edm-ink);
  font: inherit;
  box-shadow: 0 8px 22px rgba(73, 41, 25, .04);
}

.edm-friends-hub {
  --edm-friends-bg: var(--ed-bg-light, #fcfcfc);
  --edm-friends-surface: var(--ed-surface-light, #ffffff);
  --edm-friends-surface-soft: color-mix(in srgb, var(--ed-color-primary, #7524db) 7%, #ffffff);
  --edm-friends-text: var(--ed-color-ink, #0d062a);
  --edm-friends-muted: var(--ed-color-muted, #5a506e);
  --edm-friends-border: var(--ed-color-line, #e7def0);
  --edm-friends-border-strong: var(--ed-color-line-strong, #d7cbe4);
  --edm-friends-primary: var(--ed-color-primary, #7524db);
  --edm-friends-primary-rgb: var(--ed-color-primary-rgb, 117, 36, 219);
  --edm-friends-accent: var(--ed-color-accent, #ed2790);
  --edm-friends-teal: var(--ed-color-teal, #18748f);
  --edm-friends-shadow: 0 18px 48px rgba(13, 6, 42, 0.08);
  width: min(100%, 1500px);
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(14px, 2.5vw, 28px);
  background:
    linear-gradient(180deg, rgba(var(--edm-friends-primary-rgb), 0.04), transparent 18rem),
    var(--edm-friends-bg);
  color: var(--edm-friends-text);
}

html[data-ed-theme="dark"] .edm-friends-hub {
  --edm-friends-bg: var(--ed-bg, #0d062a);
  --edm-friends-surface: var(--ed-surface, #171036);
  --edm-friends-surface-soft: var(--ed-surface-raised, #21164a);
  --edm-friends-text: var(--ed-text, #fcfcfc);
  --edm-friends-muted: var(--ed-muted, #d7cfe4);
  --edm-friends-border: var(--ed-border, rgba(252, 252, 252, 0.14));
  --edm-friends-border-strong: var(--ed-border-strong, rgba(252, 252, 252, 0.22));
  --edm-friends-primary: var(--ed-primary, #8f5cff);
  --edm-friends-accent: var(--ed-secondary, #ff4aa9);
  --edm-friends-teal: var(--ed-accent, #35a6c5);
  --edm-friends-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
  background: var(--edm-friends-bg);
}

.edm-friends-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--edm-friends-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 94% 18%, rgba(var(--edm-friends-primary-rgb), 0.12), transparent 18rem),
    var(--edm-friends-surface);
  box-shadow: var(--edm-friends-shadow);
}

html[data-ed-theme="dark"] .edm-friends-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--edm-friends-surface);
}

.edm-friends-hero__copy {
  display: grid;
  max-width: 720px;
  gap: 8px;
}

.edm-friends-hero h1 {
  margin: 0;
  color: var(--edm-friends-text);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.edm-friends-hero p:not(.edm-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--edm-friends-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 750;
  line-height: 1.45;
}

.edm-friends-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
  min-width: min(100%, 360px);
}

.edm-friends-hero__stats span {
  display: grid;
  gap: 3px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--edm-friends-border);
  border-radius: 22px;
  background: var(--edm-friends-surface-soft);
}

.edm-friends-hero__stats strong {
  color: var(--edm-friends-text);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.edm-friends-hero__stats small {
  color: var(--edm-friends-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.edm-friends-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
}

.edm-friends-sidebar,
.edm-friends-panel {
  border: 1px solid var(--edm-friends-border);
  border-radius: 24px;
  background: var(--edm-friends-surface);
  color: var(--edm-friends-text);
  box-shadow: var(--edm-friends-shadow);
}

.edm-friends-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.edm-friends-sidebar__head {
  display: grid;
  gap: 3px;
  padding: 4px 4px 0;
}

.edm-friends-sidebar__head strong {
  color: var(--edm-friends-text);
  font-size: 1.25rem;
  font-weight: 950;
}

.edm-friends-sidebar__head span {
  color: var(--edm-friends-muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.edm-friends-hub .edm-friends-tabs {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 6px;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.edm-friends-hub .edm-friends-tabs button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 54px;
  justify-content: start;
  gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--edm-friends-text);
  text-align: left;
}

.edm-friends-hub .edm-friends-tabs button:hover,
.edm-friends-hub .edm-friends-tabs button.is-active {
  border-color: rgba(var(--edm-friends-primary-rgb), 0.18);
  background: rgba(var(--edm-friends-primary-rgb), 0.10);
  color: var(--edm-friends-primary);
  box-shadow: none;
}

.edm-friends-hub .edm-friends-tabs span {
  display: initial;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--edm-friends-surface-soft);
  color: var(--edm-friends-primary);
  font-size: 0.82rem;
  font-weight: 950;
}

.edm-friends-hub .edm-friends-tabs button > span:not(.edm-friends-tab-icon) {
  display: grid;
  gap: 2px;
}

.edm-friends-hub .edm-friends-tabs strong {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 920;
}

.edm-friends-hub .edm-friends-tabs small {
  color: var(--edm-friends-muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.edm-friends-hub .edm-friends-tabs em {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--edm-friends-accent);
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.edm-friends-hub .edm-friends-search {
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--edm-friends-border);
  color: var(--edm-friends-muted);
}

.edm-friends-hub .edm-friends-search input {
  border-color: var(--edm-friends-border);
  background: var(--edm-friends-surface-soft);
  color: var(--edm-friends-text);
  box-shadow: none;
}

.edm-friends-main,
.edm-friends-aside {
  display: grid;
  gap: clamp(14px, 1.7vw, 20px);
}

.edm-friends-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 20px);
}

.edm-friends-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(16px, 1.8vw, 22px);
}

.edm-friends-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.edm-friends-panel__head div {
  display: grid;
  gap: 3px;
}

.edm-friends-panel__head span {
  color: var(--edm-friends-primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-ed-theme="dark"] .edm-friends-panel__head span {
  color: var(--edm-friends-teal);
}

.edm-friends-panel__head h2 {
  margin: 0;
  color: var(--edm-friends-text);
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.edm-friends-panel__head > strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(var(--edm-friends-primary-rgb), 0.12);
  color: var(--edm-friends-primary);
  font-size: 0.9rem;
  font-weight: 950;
}

.edm-friends-hub .edm-social-list {
  gap: 10px;
}

.edm-friends-hub .edm-social-row {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--edm-friends-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--edm-friends-surface) 82%, var(--edm-friends-surface-soft));
  box-shadow: none;
}

.edm-friends-hub .edm-social-row:hover {
  border-color: var(--edm-friends-border-strong);
  background: var(--edm-friends-surface);
}

.edm-friends-hub .edm-avatar {
  width: 54px;
  height: 54px;
}

.edm-friends-hub .edm-social-row h3 {
  font-size: 0.98rem;
}

.edm-friends-hub .edm-social-row h3 a {
  color: var(--edm-friends-text);
}

.edm-friends-hub .edm-social-row p {
  color: var(--edm-friends-muted);
}

.edm-friends-hub .edm-social-row-actions .edm-btn {
  min-height: 40px;
  min-width: 92px;
  border-radius: 999px;
}

.edm-friends-aside .edm-social-row {
  grid-template-columns: 48px minmax(0, 1fr);
}

.edm-friends-aside .edm-social-row-actions {
  grid-column: 1 / -1;
  justify-content: stretch;
}

.edm-friends-aside .edm-social-row-actions .edm-btn {
  flex: 1 1 auto;
}

.edm-friends-hub .edm-empty {
  border-color: var(--edm-friends-border) !important;
  background: var(--edm-friends-surface-soft) !important;
  color: var(--edm-friends-muted) !important;
  box-shadow: none !important;
}

.edm-social-panel[hidden],
.edm-social-panel.is-search-empty,
.edm-social-row[hidden] {
  display: none !important;
}

.edm-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.edm-social-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.edm-social-panel.is-wide {
  grid-column: 1 / -1;
}

.edm-social-panel h2 {
  margin-bottom: 0;
}

.edm-social-list {
  display: grid;
  gap: 10px;
}

.edm-social-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  box-shadow: none;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.edm-social-row.is-removing {
  opacity: 0;
  transform: translateY(-6px);
}

.edm-social-row.is-updated {
  border-color: rgba(31, 118, 110, .34);
  background:
    linear-gradient(135deg, rgba(31, 118, 110, .1), transparent 42%),
    rgba(255, 253, 248, .96);
}

.edm-social-row-main {
  min-width: 0;
}

.edm-social-row h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.edm-social-row h3 a {
  color: var(--edm-ink);
  text-decoration: none;
}

.edm-social-row p {
  margin: 3px 0 0;
  color: var(--edm-muted);
  font-size: 13px;
  font-weight: 750;
}

.edm-social-row-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.edm-social-row-actions .edm-btn {
  min-width: 86px;
  min-height: 40px;
  padding: 9px 15px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(73, 41, 25, .08);
  white-space: nowrap;
}

.edm-social-options {
  flex: 0 0 auto;
}

.edm-social-options > summary {
  width: 40px;
  height: 40px;
  border: 1px solid var(--edm-line);
  background: var(--edm-surface-strong);
  color: var(--edm-primary-strong);
  box-shadow: 0 8px 18px rgba(73, 41, 25, .08);
}

.edm-social-options > summary::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
  transform: none;
}

.edm-social-options > summary:hover {
  border-color: rgba(122, 36, 56, .28);
  background: var(--edm-primary-soft);
}

.edm-social-options .edm-menu-panel {
  min-width: 240px;
}

/* Auth */

.edm-auth {
  display: grid;
  width: min(100%, 880px);
  max-width: 880px;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.edm-auth__head {
  display: grid;
  max-width: 640px;
  gap: 8px;
}

.edm-auth__head h1 {
  margin: 0;
  color: var(--edm-primary-strong);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  font-weight: 950;
}

.edm-auth__head p:not(.edm-eyebrow) {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  font-weight: 760;
}

.edm-register-errors:not(:empty) {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 800;
}

.edm-auth-message {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--edm-muted);
  font-weight: 800;
}

.edm-auth-message:not(:empty),
.edm-auth-message.is-success {
  display: block;
}

.edm-auth-message.is-success {
  border-color: rgba(31, 118, 110, .24);
  background: var(--edm-teal-soft);
  color: var(--edm-teal);
}

.edm-auth-message.is-error {
  display: block;
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.edm-auth-message--apple {
  display: block;
  line-height: 1.55;
}

.edm-auth-message--apple a {
  color: var(--edm-primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edm-auth-form,
.edm-register-form {
  display: grid;
  gap: 16px;
}

.edm-auth-form {
  gap: 18px;
}

.edm-register-code-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -6px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition:
    grid-template-rows .34s ease,
    opacity .24s ease,
    transform .34s ease,
    margin-top .34s ease,
    visibility 0s linear .34s;
}

.edm-register-code-panel.is-open {
  grid-template-rows: 1fr;
  margin-top: 2px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    grid-template-rows .34s ease,
    opacity .24s ease,
    transform .34s ease,
    margin-top .34s ease,
    visibility 0s linear 0s;
}

.edm-register-code-panel:focus {
  outline: none;
}

.edm-register-code-panel__inner {
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.edm-register-form[hidden] {
  display: none !important;
}

.edm-register-code-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(122, 36, 56, .14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--edm-primary-rgb), .11), transparent 32%),
    rgba(255, 255, 255, .66);
  box-shadow: 0 14px 34px rgba(73, 41, 25, .08);
}

.edm-register-code-card h2 {
  margin: 0;
  color: var(--edm-primary-strong);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  font-weight: 950;
}

.edm-register-code-card p {
  max-width: 580px;
  margin: 0;
}

.edm-register-code-card strong {
  color: var(--edm-ink);
}

.edm-register-code-form {
  display: grid;
  gap: 16px;
}

.edm-register-code-input input {
  min-height: 64px;
  text-align: center;
  font-size: clamp(24px, 8vw, 36px);
  font-weight: 900;
  letter-spacing: .22em;
}

.edm-register-code-input input::placeholder {
  color: rgba(102, 97, 113, .38);
}

.edm-register-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.edm-register-code-actions .edm-btn {
  min-height: 50px;
}

.edm-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edm-field {
  display: grid;
  gap: 7px;
  color: var(--edm-ink);
  font-weight: 850;
}

.edm-field em {
  color: var(--edm-muted);
  font-size: .82em;
  font-style: normal;
  font-weight: 750;
}

.edm-field input,
.edm-field select,
.edm-field textarea {
  padding: 11px 13px;
}

.edm-auth .edm-field {
  gap: 9px;
  font-size: 16px;
}

.edm-auth .edm-field input {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 17px;
}

.edm-auth .edm-field input[readonly] {
  border-color: color-mix(in srgb, var(--edm-primary) 22%, var(--edm-line)) !important;
  background: color-mix(in srgb, var(--edm-primary-soft) 54%, var(--edm-surface-strong)) !important;
  color: var(--edm-muted) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

.edm-field select {
  min-height: 46px;
  padding: 10px 42px 10px 13px;
}

.edm-auth-row,
.edm-auth-help,
.edm-auth-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--edm-muted);
  font-weight: 800;
}

.edm-auth-row {
  margin-top: -2px;
}

.edm-auth-row .edm-btn-primary {
  margin-left: auto;
}

.edm-auth-help {
  padding: 14px 16px;
  border: 1px solid var(--edm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .52);
}

.edm-auth-footer {
  padding: 18px;
  border: 1px solid var(--edm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}

.edm-auth-footer__copy {
  display: grid;
  gap: 3px;
  min-width: min(100%, 260px);
}

.edm-auth-footer__copy strong {
  color: var(--edm-ink);
  font-size: 17px;
  font-weight: 900;
}

.edm-auth-footer__copy span {
  color: var(--edm-muted);
  font-weight: 760;
}

.edm-auth-link-btn {
  min-height: 42px;
  border-color: rgba(122, 36, 56, .18);
  background: rgba(255, 255, 255, .86);
  color: var(--edm-primary);
  box-shadow: 0 10px 24px rgba(73, 41, 25, .08);
}

.edm-auth-link-btn:hover,
.edm-auth-link-btn:focus-visible {
  border-color: rgba(122, 36, 56, .34);
  background: var(--edm-primary-soft);
}

.edm-auth-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  cursor: pointer;
}

.edm-auth-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--edm-primary);
}

.edm-hp {
  position: absolute;
  left: -9999px;
}

.edm-fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--edm-line);
  border-radius: 18px;
}

.edm-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
}

.edm-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-check-chip input {
  position: absolute;
  opacity: 0;
}

.edm-check-chip span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  background: var(--edm-surface-strong);
  font-weight: 850;
}

.edm-check-chip input:checked + span {
  border-color: var(--edm-teal);
  background: var(--edm-teal-soft);
  color: var(--edm-teal);
}

.edm-form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Messages */

.edm-messages {
  display: grid;
  grid-template-columns: minmax(340px, .42fr) minmax(0, 1fr);
  grid-template-areas: "threads chat";
  width: min(100%, 1440px);
  max-width: 100%;
  height: var(--edm-messages-height, clamp(560px, calc(100dvh - 220px), 860px));
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--edm-line);
  border-radius: 22px;
  background: var(--edm-surface-strong);
  box-shadow: var(--edm-shadow);
}

.edm-messages-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  background: var(--edm-surface-strong);
  color: var(--edm-primary-strong);
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(var(--edm-shadow-rgb), .08);
  position: relative;
  z-index: 6;
}

.edm-messages-back span[aria-hidden] {
  font-size: 18px;
  line-height: 1;
}

.ed-member-messages-page .edm-messages {
  height: var(--edm-messages-height, clamp(360px, calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 120px), 900px));
  min-height: 0;
  margin-bottom: 16px;
}

.edm-thread-list {
  grid-area: threads;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid var(--edm-line);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.edm-thread-list header,
.edm-chat-head {
  padding: 16px;
  border-bottom: 1px solid var(--edm-line);
}

.edm-thread-list header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.edm-thread-list h1 {
  margin: 0;
  color: var(--edm-primary-strong);
}

.edm-thread-list p {
  margin: 0;
  color: var(--edm-muted);
}

.edm-new-message-btn {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 2px;
}

.edm-new-message-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--edm-line);
  background: rgba(255, 253, 248, .86);
  overflow: hidden;
}

.edm-new-message-panel[hidden] {
  display: none;
}

.edm-thread-list header p,
.edm-new-message-panel label > span {
  display: none !important;
}

.edm-new-message-panel label {
  display: grid;
  gap: 0;
  color: var(--edm-primary-strong);
  font-weight: 900;
}

.edm-new-message-panel input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  background: var(--edm-surface-strong);
  color: var(--edm-ink);
  font: inherit;
}

.edm-member-search-results {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.edm-member-search-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.edm-member-search-filters button {
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid var(--edm-line);
  border-radius: var(--edm-pill);
  background: rgba(255, 255, 255, .72);
  color: var(--edm-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.edm-member-search-filters button.is-active {
  border-color: rgba(122, 36, 56, .28);
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
}

.edm-member-search-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--edm-line);
  border-radius: 14px;
  background: var(--edm-surface-strong);
  color: var(--edm-ink);
  text-align: left;
}

.edm-member-search-row:hover {
  border-color: rgba(122, 36, 56, .28);
  background: var(--edm-primary-soft);
}

.edm-member-search-row .edm-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
}

.edm-member-search-row strong,
.edm-member-search-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-member-search-row small {
  margin-top: 2px;
  color: var(--edm-muted);
  font-weight: 750;
}

.edm-member-search-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.edm-member-search-action .edm-btn {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px;
}

[data-edm-conversations] {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.edm-messages.is-new-message-mode [data-edm-conversations] {
  display: none;
}

.edm-messages.is-new-message-mode .edm-thread-list {
  grid-template-rows: auto minmax(0, 1fr) 0;
}

.edm-thread {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--edm-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.edm-thread:hover,
.edm-thread.is-active {
  background: var(--edm-primary-soft);
}

.edm-thread.has-unread strong {
  color: var(--edm-primary-strong);
}

.edm-thread strong,
.edm-thread small,
.edm-thread time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-thread-main {
  min-width: 0;
}

.edm-thread-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.edm-thread-name strong {
  min-width: 0;
}

.edm-thread-name em {
  display: grid;
  min-width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 6px;
  border-radius: var(--edm-pill);
  background: var(--edm-primary);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.edm-thread-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--edm-pill);
  background: rgba(217, 119, 6, .14);
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
}

.edm-thread small,
.edm-thread time {
  margin-top: 3px;
  color: var(--edm-muted);
}

.edm-thread time {
  font-size: 11px;
  font-weight: 750;
}

.edm-chat {
  grid-area: chat;
  position: relative;
  display: grid;
  grid-template-areas:
    "head"
    "notice"
    "stream"
    "form";
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.edm-chat-back {
  display: none;
}

.edm-chat-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.edm-chat-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.edm-chat-person:disabled {
  color: inherit;
  opacity: 1;
  cursor: default;
}

.edm-chat-head strong,
.edm-chat-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-chat-head small {
  margin-top: 3px;
  color: var(--edm-muted);
  font-size: 12px;
  font-weight: 750;
}

.edm-chat-notice {
  grid-area: notice;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--edm-line);
  background: #fff7ed;
  color: #9a3412;
  font-weight: 850;
}

.edm-chat-notice.is-archive {
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
}

.edm-chat-notice.is-blocked {
  background: #fff7ed;
  color: #9a3412;
}

.edm-chat-notice > span {
  flex: 1 1 220px;
  min-width: 0;
}

.edm-chat-notice .edm-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.edm-chat-notice[hidden],
.edm-chat-options[hidden] {
  display: none !important;
}

.edm-chat-stream {
  grid-area: stream;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(122, 36, 56, .035), transparent 42%),
    rgba(255, 253, 248, .5);
}

.edm-message {
  max-width: min(68%, 620px);
  align-self: flex-start;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(73, 41, 25, .06);
}

.edm-message-stack {
  display: grid;
  justify-items: start;
  gap: 4px;
  max-width: min(68%, 620px);
  align-self: flex-start;
}

.edm-message-stack.is-mine {
  justify-items: end;
  max-width: min(68%, 620px);
  align-self: flex-end;
}

.edm-message-stack > .edm-message {
  max-width: 100%;
  align-self: auto;
}

.edm-message-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: min(76%, 680px);
  align-self: flex-start;
}

.edm-message-row .edm-message-stack {
  max-width: 100%;
}

.edm-message-row .edm-message {
  max-width: 100%;
  align-self: auto;
}

.edm-message-sender-avatar,
.edm-read-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.edm-message-sender-avatar {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  box-shadow: 0 2px 6px rgba(73, 41, 25, .08);
}

.edm-message-sender-avatar img,
.edm-read-avatar img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-message-sender-avatar > span,
.edm-read-avatar > span {
  grid-area: 1 / 1;
}

.edm-message.is-mine {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--edm-teal-soft);
  color: var(--edm-teal);
}

.edm-message p {
  margin: 0;
}

.edm-message-sender-name {
  display: block;
  margin: 0 0 4px;
  color: var(--edm-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.edm-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 0;
  padding: 0 8px;
  color: var(--edm-muted);
}

.edm-message-stack.is-mine .edm-message-meta {
  justify-content: flex-end;
}

.edm-messages .edm-message-meta time,
.edm-messages .edm-message .edm-message-meta time {
  display: none !important;
  color: var(--edm-muted);
  font-size: 11px;
  font-weight: 750;
}

.edm-messages .edm-message-stack.is-meta-open .edm-message-meta time,
.edm-messages .edm-message.is-meta-open .edm-message-meta time {
  display: inline !important;
}

.edm-message.is-mine time {
  color: rgba(31, 118, 110, .7);
}

.edm-message.is-event-invite {
  width: min(76%, 680px);
  max-width: min(76%, 680px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--edm-message-text, var(--edm-ink));
}

.edm-message-row .edm-message.is-event-invite {
  width: 100%;
  max-width: 100%;
}

.edm-event-invite-cards {
  display: grid;
  gap: 12px;
}

.edm-event-invite-shell {
  --edm-event-card-bg: #ffffff;
  --edm-event-card-text: #171321;
  --edm-event-card-muted: #645b72;
  --edm-event-card-border: rgba(48, 31, 84, .14);
  --edm-event-card-accent: #6d3df5;
  --edm-event-card-accent-soft: #f0eaff;
  overflow: hidden;
  border: 1px solid var(--edm-event-card-border);
  border-radius: 22px;
  background: var(--edm-event-card-bg) !important;
  box-shadow: 0 16px 36px rgba(32, 24, 48, .14);
}

.edm-event-invite-card {
  --edm-event-card-bg: #ffffff;
  --edm-event-card-text: #171321;
  --edm-event-card-muted: #645b72;
  --edm-event-card-border: rgba(48, 31, 84, .14);
  --edm-event-card-accent: #6d3df5;
  --edm-event-card-accent-soft: #f0eaff;
  display: grid;
  grid-template-columns: minmax(170px, 40%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--edm-event-card-border);
  border-radius: 18px;
  background: var(--edm-event-card-bg) !important;
  box-shadow: 0 14px 32px rgba(32, 24, 48, .13);
  color: var(--edm-event-card-text) !important;
}

.edm-event-invite-shell .edm-event-invite-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.edm-event-invite-card-media-wrap {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  background: var(--edm-event-card-accent-soft);
}

.edm-event-invite-card-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: var(--edm-event-card-accent);
  font-size: 2.4rem;
  font-weight: 950;
  text-decoration: none;
}

.edm-event-invite-card-media img {
  width: 100%;
  height: 100%;
  background: var(--edm-event-card-accent-soft);
  object-fit: cover;
}

.edm-event-invite-save.edm-save-event-icon {
  --edm-save-size: 42px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.edm-event-invite-card-body {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
}

.edm-event-invite-card-sender {
  color: var(--edm-event-card-muted) !important;
  font-size: .78rem;
  font-weight: 850;
}

.edm-event-invite-card-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--edm-event-card-accent-soft);
  color: var(--edm-event-card-accent);
  font-size: .72rem;
  font-weight: 950;
}

.edm-event-invite-card h4 {
  margin: 0;
  color: var(--edm-event-card-text) !important;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.18;
}

.edm-event-invite-details {
  min-width: 0;
}

.edm-event-invite-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 44, 255, .14);
  border-radius: 14px;
  background: rgba(111, 44, 255, .055);
  color: var(--edm-event-card-text) !important;
  font-size: .78rem;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.edm-event-invite-details summary::-webkit-details-marker {
  display: none;
}

.edm-event-invite-details summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ffffff;
  color: var(--edm-event-card-accent);
  box-shadow: 0 4px 12px rgba(111, 44, 255, .12);
}

.edm-event-invite-details[open] summary::after {
  content: "-";
}

.edm-event-invite-details summary em {
  margin-left: auto;
  color: var(--edm-event-card-muted) !important;
  font-size: .7rem;
  font-style: normal;
  font-weight: 850;
}

.edm-event-invite-card dl {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
}

.edm-event-invite-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.edm-event-invite-card dt,
.edm-event-invite-card dd {
  margin: 0;
  line-height: 1.25;
}

.edm-event-invite-card dt {
  color: var(--edm-event-card-muted) !important;
  font-size: .75rem;
  font-weight: 900;
}

.edm-event-invite-card dd {
  color: var(--edm-event-card-text) !important;
  font-weight: 850;
}

.edm-event-invite-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.edm-event-invite-card-actions a,
.edm-event-going-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(111, 44, 255, .22);
  border-radius: 999px;
  background: #ffffff;
  color: #4a2c91 !important;
  font-size: .78rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(111, 44, 255, .1);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.edm-event-going-button {
  --edm-going-bg: #ffffff;
  --edm-going-text: #4a2c91;
  --edm-going-border: rgba(111, 44, 255, .22);
  --edm-going-shadow: 0 14px 30px rgba(111, 44, 255, .12);
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  isolation: isolate;
  gap: 9px;
  justify-content: center;
  overflow: visible;
  border-color: var(--edm-going-border);
  background: var(--edm-going-bg);
  color: var(--edm-going-text) !important;
  box-shadow: var(--edm-going-shadow);
  transform: translateY(0) scale(1);
}

.edm-event-going-button::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(238, 60, 164, .34), rgba(87, 28, 196, .2) 38%, transparent 68%);
  opacity: 0;
  transform: scale(.74);
  pointer-events: none;
}

.edm-event-going-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(111, 44, 255, .18);
}

.edm-event-going-button:active {
  transform: translateY(1px) scale(.965);
}

.edm-event-going-button:focus-visible {
  outline: 4px solid rgba(111, 44, 255, .22);
  outline-offset: 3px;
}

.edm-event-going-button.is-going,
.edm-event-going-button[aria-pressed="true"] {
  --edm-going-bg: linear-gradient(135deg, #3d13b0 0%, #7a1bd4 48%, #c91e8a 100%);
  --edm-going-text: #ffffff;
  --edm-going-border: rgba(96, 31, 196, .58);
  --edm-going-shadow: 0 18px 42px rgba(76, 25, 184, .32), 0 8px 20px rgba(201, 30, 138, .18);
  color: #ffffff !important;
}

.edm-event-going-button--dock {
  min-width: 126px;
  min-height: 40px;
  padding: 9px 14px;
  border-color: rgba(111, 44, 255, .24);
  background: linear-gradient(135deg, rgba(111, 44, 255, .09), #ffffff);
  box-shadow: 0 10px 22px rgba(111, 44, 255, .13);
}

.edm-event-going-button--dock.is-going,
.edm-event-going-button--dock[aria-pressed="true"] {
  border-color: rgba(96, 31, 196, .58);
}

.edm-event-going-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  overflow: visible;
}

.edm-event-going-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.edm-event-going-icon__ring,
.edm-event-going-icon__calendar,
.edm-event-going-icon__top,
.edm-event-going-icon__check,
.edm-event-going-icon__plus {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.edm-event-going-icon__ring {
  opacity: 0;
  stroke-width: 1.6;
  transform-origin: 12px 12px;
}

.edm-event-going-icon__check {
  opacity: 0;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}

.edm-event-going-icon__plus {
  opacity: 1;
  transform-origin: 12px 13px;
  transition: opacity .16s ease, transform .18s ease;
}

.edm-event-going-button.is-going .edm-event-going-icon__plus,
.edm-event-going-button[aria-pressed="true"] .edm-event-going-icon__plus {
  opacity: 0;
  transform: scale(.55) rotate(45deg);
}

.edm-event-going-button.is-going .edm-event-going-icon__check,
.edm-event-going-button[aria-pressed="true"] .edm-event-going-icon__check {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .24s ease .12s, opacity .12s ease .09s;
}

.edm-event-going-button.is-celebrating .edm-event-going-icon {
  animation: edm-going-icon-pop .66s cubic-bezier(.18, 1.58, .42, 1);
}

.edm-event-going-button.is-celebrating .edm-event-going-icon__ring {
  animation: edm-going-ring-pulse .74s ease-out;
}

.edm-event-going-button.is-celebrating .edm-event-going-icon__check {
  animation: edm-going-draw-check .48s ease-out .12s both;
}

.edm-event-going-button.is-celebrating {
  animation: edm-going-button-pop .7s cubic-bezier(.18, 1.42, .42, 1);
}

.edm-event-going-button.is-celebrating::after {
  animation: edm-going-halo-burst .76s ease-out;
}

.edm-event-going-spark {
  position: absolute;
  top: 50%;
  left: 24px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .22),
    0 0 14px rgba(238, 60, 164, .72);
  opacity: 0;
  pointer-events: none;
}

.edm-event-going-spark::before,
.edm-event-going-spark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: #ffd35d;
  opacity: .95;
}

.edm-event-going-spark::before {
  transform: translate(-7px, 4px) scale(.82);
}

.edm-event-going-spark::after {
  inset: 2px;
  background: #7be8ff;
  transform: translate(7px, -5px) scale(.74);
}

.edm-event-going-button.is-celebrating .edm-event-going-spark:nth-last-of-type(3) {
  animation: edm-going-spark-1 .74s ease-out .08s;
}

.edm-event-going-button.is-celebrating .edm-event-going-spark:nth-last-of-type(2) {
  animation: edm-going-spark-2 .74s ease-out .09s;
}

.edm-event-going-button.is-celebrating .edm-event-going-spark:nth-last-of-type(1) {
  animation: edm-going-spark-3 .74s ease-out .1s;
}

@keyframes edm-going-button-pop {
  0% { transform: translateY(1px) scale(.96); }
  48% { transform: translateY(-1px) scale(1.045); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes edm-going-icon-pop {
  0% { transform: scale(.72) rotate(-12deg); }
  55% { transform: scale(1.28) rotate(7deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes edm-going-ring-pulse {
  0% { opacity: .52; transform: scale(.62); }
  100% { opacity: 0; transform: scale(2.05); }
}

@keyframes edm-going-draw-check {
  0% { opacity: 1; stroke-dashoffset: 18; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes edm-going-halo-burst {
  0% { opacity: 0; transform: scale(.72); }
  36% { opacity: .9; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.34); }
}

@keyframes edm-going-spark-1 {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(-23px, -28px) scale(.12); }
}

@keyframes edm-going-spark-2 {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(5px, -34px) scale(.12); }
}

@keyframes edm-going-spark-3 {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(28px, -19px) scale(.12); }
}

.edm-event-going-panel {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.edm-event-going-panel-title,
.edm-event-going-empty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--edm-event-card-muted) !important;
  font-size: .78rem;
  font-weight: 900;
}

.edm-event-going-panel-title {
  min-height: 38px;
}

.edm-event-going-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-event-going-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(31, 118, 110, .16);
  border-radius: 999px;
  background: rgba(31, 118, 110, .09);
  color: var(--edm-event-card-text) !important;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.05;
  text-decoration: none;
}

.edm-event-going-chip > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.edm-event-going-chip strong,
.edm-event-going-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-event-going-chip small {
  color: var(--edm-event-card-muted) !important;
  font-size: .68rem;
  font-weight: 800;
}

.edm-event-going-avatar,
.edm-event-going-stack-avatar {
  display: inline-grid;
  position: relative;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--edm-event-card-accent-soft);
  color: var(--edm-event-card-accent);
  font-size: .72rem;
  font-weight: 950;
}

.edm-event-going-avatar {
  width: 34px;
  height: 34px;
}

.edm-event-going-stack-avatar {
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 16px rgba(32, 24, 48, .12);
}

.edm-event-going-avatar img,
.edm-event-going-stack-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-event-going-avatar-stack {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.edm-event-going-avatar-stack > * + * {
  margin-left: -11px;
}

.edm-event-going-stack-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--edm-event-card-accent);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(32, 24, 48, .12);
}

.edm-event-going-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #1f766e;
  color: #ffffff;
}

.edm-event-going-check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

.edm-event-going-empty .edm-event-going-check {
  border: 2px solid rgba(100, 91, 114, .28);
  background: transparent;
  color: transparent;
}

.edm-event-going-more {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--edm-event-card-accent-soft);
  color: var(--edm-event-card-accent);
  font-size: .76rem;
  font-weight: 950;
}

.edm-event-rsvp-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--edm-event-card-border);
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .06), rgba(31, 118, 110, .06)),
    #ffffff;
}

.edm-event-going-panel.is-celebrating .edm-event-going-check:first-child {
  animation: edm-going-check-pop .48s ease-out;
}

@keyframes edm-going-check-pop {
  0% {
    transform: scale(.82);
  }
  45% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes edm-receipt-pop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(.82);
  }
  52% {
    opacity: 1;
    transform: translateY(-1px) scale(1.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes edm-receipt-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35) rotate(0deg);
  }
  35% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7) rotate(35deg);
  }
}

@keyframes edm-read-avatar-pop {
  0% {
    opacity: 0;
    transform: translateX(6px) scale(.74);
  }
  58% {
    opacity: 1;
    transform: translateX(-1px) scale(1.12);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.edm-message-receipt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(31, 118, 110, .5);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  transform-origin: center;
  animation: edm-receipt-pop .42s cubic-bezier(.2, .92, .2, 1.12);
}

.edm-message-receipt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 100% 50%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 50% 100%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 0% 50%, currentColor 0 2px, transparent 3px);
  transform: translate(-50%, -50%) scale(.35);
  animation: edm-receipt-spark .58s ease-out .08s both;
}

.edm-receipt-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 8px;
}

.edm-receipt-icon::before,
.edm-receipt-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 3px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}

.edm-receipt-icon::before {
  left: 1px;
  top: 2px;
}

.edm-receipt-icon::after {
  left: 6px;
  top: 2px;
  opacity: 0;
}

.edm-message-receipt.is-seen {
  color: rgba(31, 118, 110, .62);
}

.edm-message-receipt.is-seen .edm-receipt-icon::after {
  opacity: 1;
}

.edm-message-receipt.has-readers {
  margin-left: auto;
  color: var(--edm-muted);
}

.edm-message-receipt.has-readers::after {
  color: var(--edm-teal);
}

.edm-read-avatar-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 20px;
}

.edm-read-avatar {
  width: 18px;
  height: 18px;
  margin-left: -5px;
  border: 2px solid var(--edm-teal-soft);
  box-shadow: 0 1px 4px rgba(73, 41, 25, .08);
  transform-origin: center;
  animation: edm-read-avatar-pop .36s cubic-bezier(.2, .92, .2, 1.12) both;
}

.edm-read-avatar:first-child {
  margin-left: 0;
}

.edm-read-avatar:nth-child(2) {
  animation-delay: .04s;
}

.edm-read-avatar:nth-child(3) {
  animation-delay: .08s;
}

.edm-read-avatar:nth-child(4) {
  animation-delay: .12s;
}

.edm-read-avatar-more {
  background: var(--edm-teal);
  color: #fff;
  font-size: 9px;
}

@media (prefers-reduced-motion: reduce) {
  .edm-message-receipt,
  .edm-read-avatar {
    animation: none;
  }

  .edm-message-receipt::after {
    display: none;
  }
}

.edm-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: min(68%, 420px);
  align-self: flex-start;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--edm-muted);
  box-shadow: 0 8px 20px rgba(73, 41, 25, .06);
  font-size: 13px;
  font-weight: 800;
}

.edm-typing-indicator strong {
  font-weight: 900;
}

.edm-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: edmTypingDot 1s infinite ease-in-out;
}

.edm-typing-indicator span:nth-child(2) {
  animation-delay: .15s;
}

.edm-typing-indicator span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes edmTypingDot {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.edm-chat-form {
  position: relative;
  z-index: 3;
  grid-area: form;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--edm-line);
  background: var(--edm-surface-strong);
}

.edm-chat-form.is-disabled {
  background: rgba(102, 97, 113, .06);
}

.edm-chat-head,
.edm-chat-notice,
.edm-chat-stream,
.edm-chat-form {
  transition: opacity .22s ease, transform .24s ease;
}

.edm-messages.is-options-open .edm-chat-head,
.edm-messages.is-options-open .edm-chat-notice,
.edm-messages.is-options-open .edm-chat-stream,
.edm-messages.is-options-open .edm-chat-form {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-26px);
}

.edm-chat-options {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--edm-surface-strong);
  opacity: 0;
  transform: translateX(36px);
  transition: opacity .22s ease, transform .24s ease;
  pointer-events: none;
}

.edm-messages.is-options-open .edm-chat-options {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.edm-options-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--edm-line);
  min-width: 0;
}

.edm-options-head .edm-options-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--edm-message-border, var(--edm-line));
  border-radius: 999px;
  background: var(--edm-message-accent-soft, var(--edm-primary-soft));
  color: var(--edm-message-accent, var(--edm-primary-strong));
  font: inherit;
  font-size: .86rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.edm-options-back-short {
  display: none;
}

.edm-options-back-full {
  display: inline;
}

@media (max-width: 760px) {
  .edm-options-head .edm-options-back {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .82rem;
  }

  .edm-options-back-short {
    display: inline;
  }

  .edm-options-back-full {
    display: none;
  }
}

.edm-options-scroll {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(122, 36, 56, .035), transparent 42%),
    rgba(255, 253, 248, .58);
}

.edm-options-profile {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 18px;
  text-align: center;
}

.edm-options-profile .edm-avatar {
  width: 92px;
  height: 92px;
  min-width: 92px;
}

.edm-options-profile h2 {
  margin: 6px 0 0;
  color: var(--edm-primary-strong);
  font-size: 28px;
}

.edm-options-profile p {
  margin: 0;
  color: var(--edm-muted);
  font-weight: 850;
}

.edm-options-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.edm-option-icon {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--edm-ink);
  font: inherit;
  font-weight: 850;
  text-decoration: none !important;
  cursor: pointer;
}

.edm-option-icon span {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--edm-primary-soft);
  color: var(--edm-primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.edm-option-icon small {
  color: var(--edm-muted);
  font-size: 12px;
}

.edm-option-icon-profile span::before,
.edm-option-icon-profile span::after,
.edm-option-icon-search span::before,
.edm-option-icon-search span::after {
  content: "";
  position: absolute;
  display: block;
}

.edm-option-icon-profile span::before {
  top: 12px;
  left: 19px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
}

.edm-option-icon-profile span::after {
  right: 13px;
  bottom: 12px;
  left: 13px;
  height: 18px;
  border-radius: 18px 18px 8px 8px;
  background: currentColor;
}

.edm-option-icon-search span::before {
  top: 14px;
  left: 14px;
  width: 20px;
  height: 20px;
  border: 4px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.edm-option-icon-search span::after {
  right: 14px;
  bottom: 15px;
  width: 15px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.edm-options-group {
  overflow: hidden;
  margin-top: 16px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--edm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
}

.edm-options-group h3 {
  margin: 0;
  padding: 14px 16px 6px;
  color: var(--edm-primary-strong);
}

.edm-options-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px 12px;
}

.edm-options-context-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--edm-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}

.edm-options-context-grid strong,
.edm-options-context-grid span {
  display: block;
}

.edm-options-context-grid strong {
  color: var(--edm-primary-strong);
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 950;
}

.edm-options-context-grid span {
  margin-top: 5px;
  color: var(--edm-muted);
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 800;
}

html[data-ed-theme="dark"] .edm-options-context-grid div,
body.dark-mode .edm-options-context-grid div,
body.ed-dark-mode .edm-options-context-grid div {
  border-color: var(--edm-line);
  background: var(--edm-surface-strong);
}

.edm-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--edm-line);
  background: transparent;
  color: var(--edm-ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.edm-option-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.edm-option-row em {
  color: var(--edm-muted);
  font-style: normal;
  font-weight: 800;
}

.edm-switch {
  position: relative;
  display: inline-grid;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: var(--edm-pill);
  background: rgba(102, 97, 113, .24);
  box-shadow: inset 0 0 0 1px rgba(32, 33, 42, .08);
  transition: background .2s ease, box-shadow .2s ease;
}

.edm-switch > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(32, 33, 42, .18);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.edm-switch[aria-checked="true"] {
  background: var(--edm-teal);
  box-shadow: inset 0 0 0 1px rgba(31, 118, 110, .2);
}

.edm-switch[aria-checked="true"] > span {
  transform: translateX(22px);
}

.edm-option-row.is-danger {
  color: #9f1239;
}

.edm-options-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(32, 33, 42, .36);
  overflow: auto;
  isolation: isolate;
}

.edm-options-modal[hidden] {
  display: none;
}

.edm-options-dialog {
  display: grid;
  gap: 0;
  width: min(calc(100% - 32px), 460px);
  max-width: 100%;
  max-height: min(720px, 92%);
  overflow: auto;
  border: 1px solid var(--edm-line);
  border-radius: 18px;
  background: var(--edm-surface-strong);
  box-shadow: var(--edm-shadow);
}

.edm-options-dialog-block,
.edm-options-dialog-report {
  width: min(calc(100% - 32px), 520px);
}

.edm-messages-page .edm-options-modal {
  background: rgba(14, 18, 31, .58);
  backdrop-filter: blur(12px);
}

.edm-messages-page .edm-options-dialog {
  border-color: var(--edm-message-border);
  background: var(--edm-message-surface);
  color: var(--edm-message-text);
  box-shadow: var(--edm-message-shadow);
}

.edm-options-dialog-safety {
  width: min(calc(100% - 32px), 440px);
  overflow: hidden;
}

.edm-options-dialog-safety p {
  margin: 0 24px 16px;
  text-align: center;
}

.edm-safety-actions {
  display: grid;
  border-top: 1px solid var(--edm-message-border);
}

.edm-safety-actions .edm-option-row {
  border-top-color: var(--edm-message-border);
  color: var(--edm-message-text);
}

.edm-safety-actions .edm-option-row em,
.edm-messages-page .edm-options-dialog p {
  color: var(--edm-message-muted);
}

.edm-safety-actions .edm-option-row:first-child {
  border-top: 0;
}

.edm-messages-page .edm-options-dialog > button:not(.edm-btn) {
  border-top-color: var(--edm-message-border);
  color: var(--edm-message-accent);
}

.edm-messages-page .edm-message-stack[data-edm-message-id] {
  -webkit-touch-callout: none;
  transition:
    width .24s cubic-bezier(.22, .72, .28, 1),
    max-width .24s cubic-bezier(.22, .72, .28, 1),
    transform .2s ease;
}

@media (hover: none), (pointer: coarse) {
  .edm-messages-page .edm-message-stack[data-edm-message-id],
  .edm-messages-page .edm-message-stack[data-edm-message-id] .edm-message,
  .edm-messages-page .edm-message-stack[data-edm-message-id] .edm-message * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .edm-messages-page .edm-message-stack[data-edm-message-id] input,
  .edm-messages-page .edm-message-stack[data-edm-message-id] textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}

.edm-messages-page .edm-message-stack[data-edm-message-id] .edm-message {
  max-height: 1500px;
  overflow: hidden;
  transition:
    max-height .32s cubic-bezier(.22, .72, .28, 1),
    opacity .2s ease,
    transform .2s cubic-bezier(.22, .72, .28, 1),
    box-shadow .2s ease,
    filter .2s ease,
    padding .22s ease,
    border-width .22s ease;
}

.edm-messages-page .edm-message-stack.is-long-pressing .edm-message {
  transform: scale(.985);
  filter: saturate(1.04);
  box-shadow: 0 10px 24px rgba(48, 31, 84, .14);
}

.edm-messages-page .edm-message-stack.is-actions-open {
  width: min(390px, 92%);
  max-width: min(390px, 92%);
}

.edm-messages-page .edm-message-row .edm-message-stack.is-actions-open {
  width: min(390px, calc(100vw - 88px));
  max-width: min(390px, calc(100vw - 88px));
}

.edm-messages-page .edm-message-stack.is-event-invite.is-actions-open,
.edm-messages-page .edm-message-stack.is-event-invite.is-mine.is-actions-open {
  width: min(590px, 94%) !important;
  max-width: min(590px, 94%) !important;
}

.edm-messages-page .edm-message-stack.is-actions-open > .edm-message {
  max-height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  opacity: 0;
  transform: translateY(-10px) scale(.975);
  filter: saturate(.92) blur(1px);
  pointer-events: none;
}

.edm-messages-page .edm-message-stack.is-actions-open > .edm-message.is-event-invite {
  width: 100%;
}

.edm-messages-page .edm-message-stack[data-edm-message-id] .edm-message-meta {
  max-height: 42px;
  overflow: hidden;
  transition:
    max-height .2s ease,
    margin .2s ease,
    padding .2s ease,
    opacity .18s ease,
    transform .18s ease;
}

.edm-messages-page .edm-message-stack.is-actions-open .edm-message-meta {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.edm-message-inline-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  border: 0 solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .075), rgba(31, 118, 110, .045)),
    var(--edm-message-surface);
  box-shadow: 0 16px 36px rgba(48, 31, 84, .12);
  transition:
    max-height .28s cubic-bezier(.22, .72, .28, 1),
    margin-top .2s ease,
    opacity .2s ease,
    transform .28s cubic-bezier(.22, .72, .28, 1);
}

.edm-message-stack.is-actions-open .edm-message-inline-actions {
  max-height: 360px;
  margin-top: 0;
  border-width: 1px;
  border-color: var(--edm-message-border);
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.edm-message-stack.is-actions-open .edm-message-inline-actions.is-editing {
  max-height: 440px;
}

.edm-message-inline-actions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 12px 0;
}

.edm-message-inline-actions__head strong {
  min-width: 0;
  color: var(--edm-message-text);
  font-size: .88rem;
  font-weight: 950;
  line-height: 1.1;
}

.edm-message-inline-actions__head button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(109, 61, 245, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--edm-message-accent);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.edm-message-inline-actions__grid {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.edm-message-action-pill {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid rgba(109, 61, 245, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--edm-message-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(48, 31, 84, .055);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.edm-message-action-pill:hover,
.edm-message-action-pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(109, 61, 245, .24);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 24px rgba(48, 31, 84, .09);
}

.edm-message-action-pill > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.edm-message-action-pill strong {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: .9rem;
  font-weight: 950;
  line-height: 1.12;
}

.edm-message-action-pill small {
  color: var(--edm-message-muted);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.2;
}

.edm-message-action-pill.is-danger {
  color: #9f1239;
  border-color: rgba(159, 18, 57, .14);
  background: rgba(255, 247, 249, .82);
}

.edm-message-action-pill.is-success {
  color: #0f766e;
  border-color: rgba(31, 118, 110, .2);
  background: rgba(236, 253, 245, .9);
}

html[data-ed-theme="dark"] .edm-message-inline-actions,
body.dark-mode .edm-message-inline-actions,
body.ed-dark-mode .edm-message-inline-actions {
  border-color: rgba(226, 219, 241, .16);
  background:
    linear-gradient(135deg, rgba(184, 156, 255, .12), rgba(28, 184, 166, .08)),
    rgba(20, 25, 42, .94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

html[data-ed-theme="dark"] .edm-message-inline-actions__head button,
body.dark-mode .edm-message-inline-actions__head button,
body.ed-dark-mode .edm-message-inline-actions__head button,
html[data-ed-theme="dark"] .edm-message-action-pill,
body.dark-mode .edm-message-action-pill,
body.ed-dark-mode .edm-message-action-pill {
  border-color: rgba(226, 219, 241, .16);
  background: rgba(255, 255, 255, .07);
  color: #f8f4ff;
  box-shadow: none;
}

html[data-ed-theme="dark"] .edm-message-action-pill:hover,
html[data-ed-theme="dark"] .edm-message-action-pill:focus-visible,
body.dark-mode .edm-message-action-pill:hover,
body.dark-mode .edm-message-action-pill:focus-visible,
body.ed-dark-mode .edm-message-action-pill:hover,
body.ed-dark-mode .edm-message-action-pill:focus-visible {
  border-color: rgba(184, 156, 255, .32);
  background: rgba(184, 156, 255, .12);
}

html[data-ed-theme="dark"] .edm-message-action-pill.is-danger,
body.dark-mode .edm-message-action-pill.is-danger,
body.ed-dark-mode .edm-message-action-pill.is-danger {
  border-color: rgba(255, 143, 161, .22);
  background: rgba(255, 143, 161, .09);
  color: #ffb4c1;
}

html[data-ed-theme="dark"] .edm-message-action-pill.is-success,
body.dark-mode .edm-message-action-pill.is-success,
body.ed-dark-mode .edm-message-action-pill.is-success {
  border-color: rgba(45, 212, 191, .28);
  background: rgba(15, 118, 110, .18);
  color: #99f6e4;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-message.is-removed,
html[data-ed-theme="dark"] .edm-messages-page .edm-message.is-mine.is-removed,
body.dark-mode .edm-messages-page .edm-message.is-removed,
body.dark-mode .edm-messages-page .edm-message.is-mine.is-removed,
body.ed-dark-mode .edm-messages-page .edm-message.is-removed,
body.ed-dark-mode .edm-messages-page .edm-message.is-mine.is-removed {
  border-color: rgba(226, 219, 241, .18);
  background: rgba(255, 255, 255, .055);
  color: rgba(248, 244, 255, .62);
}

@media (max-width: 520px) {
  .edm-messages-page .edm-message-stack.is-actions-open,
  .edm-messages-page .edm-message-stack.is-mine.is-actions-open {
    width: min(340px, 92%) !important;
    max-width: min(340px, 92%) !important;
  }

  .edm-messages-page .edm-message-row .edm-message-stack.is-actions-open {
    width: min(340px, calc(100vw - 76px)) !important;
    max-width: min(340px, calc(100vw - 76px)) !important;
  }

  .edm-message-inline-actions__head {
    padding: 10px 10px 0;
  }

  .edm-message-inline-actions__grid {
    padding: 0 8px 8px;
  }

  .edm-message-action-pill {
    min-height: 54px;
    padding: 10px 11px;
  }
}

.edm-options-dialog h3 {
  margin: 0;
  padding: 22px 24px 16px;
  color: var(--edm-primary-strong);
  text-align: center;
}

.edm-options-dialog p,
.edm-options-dialog textarea,
.edm-options-check {
  margin: 0 24px 16px;
}

.edm-options-dialog p {
  color: var(--edm-muted);
  line-height: 1.45;
}

.edm-options-dialog textarea {
  width: auto;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--edm-line-strong);
  border-radius: 14px;
  font: inherit;
}

.edm-options-dialog-report p {
  text-align: left;
}

.edm-options-dialog-nickname label {
  display: grid;
  gap: 8px;
  margin: 0 24px 16px;
  color: var(--edm-muted);
  font-weight: 850;
}

.edm-options-dialog-nickname input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--edm-line-strong);
  border-radius: 14px;
  color: var(--edm-ink);
  font: inherit;
  font-weight: 800;
}

.edm-options-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--edm-ink);
  font-weight: 800;
}

.edm-options-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.edm-options-dialog > button:not(.edm-btn) {
  min-height: 50px;
  border: 0;
  border-top: 1px solid var(--edm-line);
  background: transparent;
  color: var(--edm-primary);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.edm-options-dialog .edm-btn {
  margin: 10px 24px 16px;
}

.edm-options-dialog-block p {
  margin: 0 34px 20px;
  color: var(--edm-muted);
  line-height: 1.42;
}

.edm-options-dialog-block strong {
  color: var(--edm-ink);
}

.edm-options-dialog-block h3,
.edm-options-dialog-report h3 {
  padding-right: 34px;
  padding-left: 34px;
}

.edm-options-dialog-block .edm-btn,
.edm-options-dialog-report .edm-btn {
  margin-right: 34px;
  margin-left: 34px;
}

.edm-options-picker {
  width: min(100%, 560px);
  max-width: 100%;
  min-height: min(520px, 92%);
  height: min(720px, 92%);
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 0;
}

.edm-options-picker header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--edm-line);
}

.edm-options-picker header h3 {
  padding: 0;
}

.edm-options-picker header button {
  border: 0;
  background: transparent;
  color: var(--edm-primary);
  font: inherit;
  font-weight: 850;
}

.edm-options-picker input[type="search"] {
  margin: 14px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--edm-line-strong);
  border-radius: var(--edm-pill);
  font: inherit;
}

.edm-picker-results {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.edm-picker-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--edm-line);
}

.edm-picker-row input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 3px solid rgba(102, 97, 113, .42);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.edm-picker-row input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 15px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transform: rotate(45deg) scale(.7);
  transition: opacity .16s ease, transform .16s ease;
}

.edm-picker-row input[type="checkbox"]:checked {
  border-color: var(--edm-teal);
  background: var(--edm-teal);
  transform: scale(1.04);
}

.edm-picker-row input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.edm-picker-row strong,
.edm-picker-row small {
  display: block;
}

.edm-picker-row small {
  color: var(--edm-muted);
  font-weight: 750;
}

.edm-options-modal.edm-options-modal--event-friends {
  background: rgba(24, 22, 34, .62);
  backdrop-filter: blur(10px);
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends {
  width: min(calc(100% - 32px), 620px);
  height: min(740px, 92%);
  min-height: min(620px, 92%);
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(109, 40, 217, .22);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(22, 18, 35, .34);
}

.edm-event-friend-share-sheet-grip {
  display: none;
}

.edm-options-dialog-event-friends header {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .1), rgba(236, 72, 153, .08)),
    #ffffff;
  border-bottom-color: rgba(109, 40, 217, .16);
}

.edm-options-dialog-event-friends header h3 {
  color: #171321;
}

.edm-options-dialog-event-friends header button {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #6d28d9;
}

.edm-options-dialog-event-friends header button:last-child {
  background: linear-gradient(135deg, #6d28d9, #c0268b);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(109, 40, 217, .18);
}

.edm-options-dialog-event-friends header button:disabled {
  opacity: .52;
  box-shadow: none;
}

.edm-options-dialog-event-friends input[type="search"] {
  min-height: 48px;
  border: 2px solid rgba(109, 40, 217, .3);
  background: #ffffff;
  color: #171321;
  box-shadow: 0 10px 26px rgba(58, 35, 103, .08);
}

.edm-options-dialog-event-friends input[type="search"]::placeholder {
  color: rgba(71, 62, 88, .58);
}

.edm-options-dialog-event-friends .edm-picker-results {
  gap: 8px;
  padding: 0 14px 16px;
}

.edm-options-dialog-event-friends .edm-picker-row {
  border: 1px solid rgba(58, 35, 103, .12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(58, 35, 103, .06);
}

.edm-event-friend-share-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 14px 14px 0;
  padding: 10px;
  border: 1px solid rgba(109, 40, 217, .14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .1), rgba(15, 118, 110, .08)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(58, 35, 103, .08);
}

.edm-event-friend-share-preview__image {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(109, 40, 217, .14);
  color: var(--edm-primary);
  font-weight: 950;
}

.edm-event-friend-share-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-event-friend-share-preview__copy {
  min-width: 0;
}

.edm-event-friend-share-preview__copy strong,
.edm-event-friend-share-preview__copy small,
.edm-event-friend-share-preview__copy em {
  display: block;
}

.edm-event-friend-share-preview__copy strong {
  color: var(--edm-ink);
  font-weight: 950;
}

.edm-event-friend-share-preview__copy small,
.edm-event-friend-share-preview__copy em {
  margin-top: 3px;
  color: var(--edm-muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
}

.edm-event-friend-share-row.is-disabled {
  opacity: .56;
}

.edm-event-friend-share-row.is-disabled input[type="checkbox"] {
  cursor: not-allowed;
}

@keyframes edmEventFriendSheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(var(--edm-sheet-drag-y, 0));
  }
}

@media (max-width: 700px) {
  .edm-options-modal.edm-options-modal--event-friends {
    place-items: end stretch;
    align-items: end;
    padding: 0;
    overflow: hidden;
    background: rgba(22, 18, 35, .64);
    backdrop-filter: blur(8px);
    overscroll-behavior: contain;
  }

  .edm-options-modal--event-friends .edm-options-dialog-event-friends {
    width: 100%;
    height: min(78dvh, 720px);
    min-height: min(520px, 82dvh);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(var(--edm-sheet-drag-y, 0));
    transition: transform .22s ease;
    animation: edmEventFriendSheetIn .24s ease both;
  }

  .edm-options-modal--event-friends .edm-options-dialog-event-friends.is-dragging {
    transition: none;
  }

  .edm-event-friend-share-sheet-grip {
    display: grid;
    place-items: center;
    min-height: 26px;
    padding-top: 8px;
    touch-action: none;
    cursor: grab;
  }

  .edm-event-friend-share-sheet-grip span {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(48, 31, 84, .28);
  }

  .edm-options-dialog-event-friends header {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    padding: 6px 16px 12px;
  }

  .edm-options-dialog-event-friends header h3 {
    font-size: 1rem;
    line-height: 1.1;
  }

  .edm-event-friend-share-preview {
    margin: 0 14px 10px;
  }

  .edm-options-dialog-event-friends input[type="search"] {
    margin: 0 14px 12px;
  }

  .edm-options-dialog-event-friends .edm-picker-results {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

.edm-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
  border: 1px dashed var(--edm-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--edm-muted);
  font-weight: 750;
}

@media (max-width: 900px) {
  .edm-profile-head,
  .edm-profile-layout,
  .edm-social-grid,
  .edm-friends-toolbar {
    grid-template-columns: 1fr;
  }

  .edm-social-panel.is-wide {
    grid-column: auto;
  }

  .edm-profile-panel,
  .edm-profile-layout {
    grid-column: 1;
  }

  .edm-profile-panel {
    grid-row: 1;
  }

  .edm-profile-head {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 0 18px 20px;
  }

  .edm-profile-avatar {
    width: 96px;
    height: 96px;
    margin-top: -44px;
  }

  .edm-profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .edm-profile-bio,
  .edm-profile-stats {
    padding: 0;
  }

  .edm-mini-member-grid {
    grid-template-columns: 1fr;
  }

  .edm-profile-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edm-register-grid {
    grid-template-columns: 1fr;
  }

  .edm-profile-upload-grid {
    grid-template-columns: 1fr;
  }

  .edm-upload-card--avatar .edm-upload-card__frame {
    max-width: 180px;
  }

  .edm-verification-card,
  .edm-verification-actions {
    grid-template-columns: 1fr;
  }

  .edm-verification-card {
    align-items: stretch;
  }

  .edm-auth-row,
  .edm-auth-help,
  .edm-auth-footer {
    align-items: stretch;
  }

  .edm-auth-footer {
    display: grid;
  }
}

.edm-user-profile .ed-updates-card {
  position: relative;
  overflow: visible;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .22s ease, background .18s ease;
}

.edm-user-profile .ed-updates-card.is-pinned {
  border-color: color-mix(in srgb, var(--edm-primary) 34%, var(--edm-line-strong));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--edm-primary) 10%, transparent);
}

.edm-user-profile .ed-updates-card--entering {
  opacity: 0;
  transform: translateY(10px) scale(.992);
}

.edm-user-profile .ed-updates-card--just-updated {
  animation: edmActivityCardUpdated .72s ease both;
}

.edm-user-profile .ed-updates-card--removing,
.edm-user-profile .ed-updates-comment--removing {
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  pointer-events: none;
}

.edm-user-profile .ed-updates-comment--entering {
  opacity: 0;
  transform: translateY(6px);
}

.edm-user-profile .ed-updates-card__head,
.edm-user-profile .ed-updates-card__author {
  min-width: 0;
}

.edm-user-profile .ed-updates-card__author {
  display: contents;
}

.edm-user-profile .ed-updates-card__context {
  display: block;
  margin-top: 2px;
  color: var(--edm-user-profile-muted, var(--edm-muted));
  font-size: .78rem;
  font-weight: 800;
}

.edm-user-profile .ed-updates-card__author-name {
  display: block;
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.edm-user-profile .ed-updates-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
  color: var(--edm-user-profile-muted, var(--edm-muted));
  font-size: .76rem;
  font-weight: 850;
}

.edm-user-profile .ed-updates-card__badge {
  color: var(--edm-user-profile-accent, var(--edm-accent));
  text-transform: uppercase;
}

.edm-user-profile .ed-updates-card__stats {
  margin-top: 14px;
}

.edm-user-profile .ed-updates-comments[hidden] {
  display: none !important;
}

.edm-user-profile .ed-updates-comments:not([hidden]) {
  animation: edmActivityCommentsIn .18s ease both;
}

.edm-user-profile .ed-updates-comments__summary {
  color: var(--edm-user-profile-muted, var(--edm-muted));
  font-size: .82rem;
  font-weight: 850;
}

.edm-user-profile .ed-updates-comments__list {
  display: grid;
  gap: 12px;
}

.edm-user-profile .ed-updates-comment__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.edm-user-profile .ed-updates-comment {
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.edm-user-profile .ed-updates-comment__head time {
  display: inline-block;
  margin-left: 6px;
  color: var(--edm-user-profile-muted, var(--edm-muted));
  font-size: .75rem;
  font-weight: 800;
}

.edm-user-profile .ed-updates-comment__copy p:first-child {
  margin-top: 0;
}

.edm-user-profile .ed-updates-comment__copy p:last-child {
  margin-bottom: 0;
}

.edm-user-profile .ed-updates-comment__media {
  overflow: hidden;
  margin-top: 10px;
  border-radius: 16px;
}

.edm-user-profile .ed-updates-comment__media img {
  width: 100%;
  display: block;
}

.edm-user-profile .ed-updates-menu summary span {
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.edm-user-profile .ed-updates-menu.edm-menu summary::before {
  content: none;
}

.edm-user-profile .ed-updates-menu button[disabled],
.edm-user-profile .ed-updates-menu .edm-menu-item[disabled] {
  opacity: .52;
  cursor: not-allowed;
}

.edm-user-profile .ed-updates-card__pin {
  width: fit-content;
  margin: -4px 0 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--edm-user-profile-border, var(--edm-border));
  border-radius: 7px;
  color: var(--edm-user-profile-accent, var(--edm-accent));
  background: color-mix(in srgb, var(--edm-primary) 8%, transparent);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  animation: edmActivityCommentsIn .2s ease both;
}

.edm-user-profile .ed-updates-card__pin::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ed-orange, #ff8a00);
}

@media (max-width: 680px) {
  .edm-profile-tabs {
    width: 100%;
  }

  .edm-profile-event-grid {
    grid-template-columns: 1fr;
  }

  .edm-profile-actions .edm-btn {
    flex: 1 1 auto;
  }

  .edm-profile-more {
    margin-left: auto;
  }

  .edm-auth {
    padding: 20px;
  }

  .edm-auth-row,
  .edm-auth-help,
  .edm-auth-footer {
    display: grid;
    justify-content: stretch;
  }

  .edm-auth-link-btn,
  .edm-auth-row .edm-btn-primary,
  .edm-register-code-actions .edm-btn,
  .edm-auth .edm-form-actions .edm-btn {
    width: 100%;
  }

  .edm-auth-row .edm-btn-primary {
    margin-left: 0;
  }

  .edm-auth .edm-form-actions {
    justify-content: stretch;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .edm-messages {
    grid-template-columns: minmax(260px, .36fr) minmax(0, 1fr);
    height: var(--edm-messages-height, clamp(360px, calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 112px), 820px));
    min-height: 0;
  }

  .edm-thread {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px 12px;
  }

  .edm-thread .edm-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}

@media (max-width: 680px) {
  .edm-messages {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas: "threads";
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: var(--edm-messages-height, clamp(360px, calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 80px), 820px));
    min-height: 0;
  }

  .edm-messages.is-keyboard-active {
    position: fixed;
    top: var(--edm-keyboard-top, 0px);
    right: 8px;
    left: 8px;
    z-index: 9999;
    width: auto;
    height: var(--edm-messages-height, 60dvh);
    max-height: var(--edm-messages-height, 60dvh);
    margin: 0;
    border-radius: 18px;
    transform: translateZ(0);
  }

  .edm-thread-list,
  .edm-chat {
    height: 100%;
    min-height: 0;
  }

  .edm-chat {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--edm-surface-strong);
    transform: translateX(100%);
    transition: transform .22s ease;
  }

  .edm-messages.is-chat-open .edm-chat {
    transform: translateX(0);
  }

  .edm-chat-back {
    display: inline-flex;
    margin-right: 8px;
    border: 0;
    background: transparent;
    color: var(--edm-primary-strong);
    font: inherit;
    font-weight: 900;
  }

  .edm-chat-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .edm-chat-person {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .edm-options-scroll {
    padding: 14px;
  }

  .edm-options-modal {
    padding: 12px;
  }

  .edm-options-dialog {
    width: min(100%, 380px);
    max-height: 90%;
  }

  .edm-reply-form,
  .edm-chat-form,
  .edm-social-row {
    grid-template-columns: 1fr;
  }

  .edm-friends {
    padding: 0 12px;
  }

  .edm-friends .edm-section-head {
    margin-bottom: 12px;
  }

  .edm-friends-toolbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .edm-friends-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .edm-friends-tabs::-webkit-scrollbar {
    display: none;
  }

  .edm-friends-tabs button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .edm-friends-search input {
    min-height: 40px;
  }

  .edm-social-grid {
    gap: 12px;
  }

  .edm-social-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .edm-social-panel h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .edm-social-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
  }

  .edm-social-row .edm-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .edm-social-row-main {
    align-self: center;
  }

  .edm-social-row h3 {
    font-size: 17px;
  }

  .edm-messages.is-keyboard-active .edm-chat-form {
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, .98);
  }

  .edm-social-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px;
  }

  .edm-social-row-actions .edm-btn {
    min-height: 38px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .edm-social-options > summary {
    width: 40px;
    height: 40px;
  }

  .edm-menu[open] .edm-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    border: 0;
    background: rgba(32, 33, 42, .36);
  }

  .edm-menu-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    width: auto;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .edm-sheet-handle {
    display: block;
    width: 100%;
    height: 26px;
    border: 0;
    background: transparent;
  }

  .edm-sheet-handle::before {
    content: "";
    display: block;
    width: 64px;
    height: 5px;
    margin: 4px auto 10px;
    border-radius: 999px;
    background: rgba(102, 97, 113, .5);
  }
}

/* ---------------------------------
   Dark mode compatibility layer
   Keeps older member/profile surfaces from staying pale in dark mode.
--------------------------------- */

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-directory,
  .edm-messages,
  .edm-auth,
  .edm-friends,
  .edm-notifications
) {
  color: var(--edm-ink);
}

html[data-ed-theme="dark"] :where(
  .edm-card,
  .edm-feed-item,
  .edm-profile-hero,
  .edm-member-card,
  .edm-social-row,
  .edm-notification-item,
  .edm-profile-panel,
  .edm-settings-group,
  .edm-verification-card,
  .edm-register-code-card,
  .edm-local-settings-card,
  .edm-profile-event-card,
  .edm-social-panel,
  .edm-empty,
  .edm-composer,
  .edm-profile-tabs,
  .edm-menu-panel
) {
  border-color: var(--edm-line) !important;
  background:
    linear-gradient(135deg, rgba(var(--edm-primary-rgb), .045), transparent 42%),
    var(--edm-panel-bg) !important;
  color: var(--edm-ink) !important;
  box-shadow: var(--edm-shadow) !important;
}

html[data-ed-theme="dark"] .edm-profile-head {
  background: var(--edm-panel-bg) !important;
  color: var(--edm-ink) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-title h1,
  .edm-section-head h2,
  .edm-profile-form .edm-settings-section h3,
  .edm-settings-group > summary strong,
  .edm-theme-setting__copy strong,
  .edm-card h1,
  .edm-card h2,
  .edm-card h3,
  .edm-card strong,
  .edm-social-panel h2,
  .edm-social-row h3
) {
  color: var(--edm-primary-strong) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-title p,
  .edm-profile-bio,
  .edm-section-head p,
  .edm-settings-group > summary small,
  .edm-theme-setting__copy span,
  .edm-muted,
  .edm-card p,
  .edm-card small,
  .edm-social-row-main p,
  .edm-profile-form .edm-settings-section p
) {
  color: var(--edm-muted) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-stats span,
  .edm-toggle-row,
  .edm-check-chip span,
  .edm-pill,
  .edm-badge,
  .edm-profile-tabs button,
  .edm-profile-tabs a,
  .edm-btn-soft,
  .edm-profile-more summary,
  .edm-social-options > summary
) {
  border-color: var(--edm-line-strong) !important;
  background: var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
  box-shadow: 0 8px 22px rgba(var(--edm-shadow-rgb), .16) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-tabs button:hover,
  .edm-profile-tabs button.is-active,
  .edm-profile-tabs a:hover,
  .edm-check-chip input:checked + span,
  .edm-toggle-row:hover,
  .edm-btn-soft:hover
) {
  background: var(--edm-primary-soft) !important;
  color: var(--edm-primary-strong) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-field input,
  .edm-field select,
  .edm-field textarea,
  .edm-auth input,
  .edm-auth select,
  .edm-auth textarea,
  .edm-composer textarea,
  .edm-search input,
  .edm-friends-search input,
  .edm-chat-form textarea
) {
  border-color: var(--edm-line-strong) !important;
  background: var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
  box-shadow: 0 8px 22px rgba(var(--edm-shadow-rgb), .14) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-field input::placeholder,
  .edm-field textarea::placeholder,
  .edm-composer textarea::placeholder,
  .edm-chat-form textarea::placeholder
) {
  color: color-mix(in srgb, var(--edm-muted) 70%, transparent) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-verification-badge,
  .edm-count-badge,
  .edm-notification-dot
) {
  background: var(--edm-primary-soft) !important;
  color: var(--edm-primary-strong) !important;
}

html[data-ed-theme="dark"] .edm-btn-primary {
  color: var(--ed-color-on-primary, #211012) !important;
}

html[data-ed-theme="dark"] .edm-messages.is-keyboard-active .edm-chat-form {
  background: var(--edm-panel-bg) !important;
}

/* Profile tab dark-mode refinements */

html[data-ed-theme="dark"] :where(
  .edm-about-list > div,
  .edm-mini-member-grid a,
  .edm-profile-event-card,
  .edm-local-settings-card,
  .edm-local-status,
  .edm-local-section,
  .edm-notification-dropdown,
  .edm-notification-options,
  .edm-channel-chip,
  .edm-new-message-panel,
  .edm-member-search-row,
  .edm-options-group,
  .edm-options-dialog,
  .edm-options-picker,
  .edm-picker-row,
  .edm-message,
  .edm-typing-indicator
) {
  border-color: var(--edm-line) !important;
  background:
    linear-gradient(135deg, rgba(var(--edm-primary-rgb), .035), transparent 44%),
    var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
  box-shadow: 0 10px 24px rgba(var(--edm-shadow-rgb), .16) !important;
}

html[data-ed-theme="dark"] .edm-settings-group-body {
  border-top-color: var(--edm-line) !important;
  background: transparent !important;
  color: var(--edm-ink) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-chat-head,
  .edm-chat-form,
  .edm-chat-options,
  .edm-thread-list
) {
  border-color: var(--edm-line) !important;
  background: var(--edm-panel-bg) !important;
  color: var(--edm-ink) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-chat-stream,
  .edm-options-scroll
) {
  background:
    linear-gradient(135deg, rgba(var(--edm-primary-rgb), .035), transparent 42%),
    var(--edm-panel-bg) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-member-search-filters button,
  .edm-option-icon span,
  .edm-switch,
  .edm-chat-notice
) {
  border-color: var(--edm-line-strong) !important;
  background: var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-member-search-filters button.is-active,
  .edm-member-search-row:hover,
  .edm-thread:hover,
  .edm-thread.is-active,
  .edm-channel-chip:has(input:checked),
  .edm-notification-item.is-unread
) {
  border-color: rgba(var(--edm-primary-rgb), .34) !important;
  background: var(--edm-primary-soft) !important;
  color: var(--edm-primary-strong) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-about-list dt,
  .edm-mini-member-grid strong,
  .edm-profile-event-card strong,
  .edm-notification-item h3,
  .edm-notification-item h3 a,
  .edm-notification-dropdown > summary strong,
  .edm-local-settings-card strong,
  .edm-local-section h3,
  .edm-member-search-row strong,
  .edm-thread-name strong,
  .edm-chat-head strong,
  .edm-options-profile h2,
  .edm-options-group h3,
  .edm-options-dialog h3,
  .edm-picker-row strong,
  .edm-option-row > span:first-child
) {
  color: var(--edm-primary-strong) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-about-list dd,
  .edm-profile-event-card small,
  .edm-notification-item p,
  .edm-notification-item small,
  .edm-notification-dropdown > summary small,
  .edm-local-settings-card p,
  .edm-local-status,
  .edm-member-search-row small,
  .edm-thread small,
  .edm-thread time,
  .edm-chat-head small,
  .edm-options-profile p,
  .edm-option-icon small,
  .edm-option-row em,
  .edm-options-dialog p,
  .edm-options-check,
  .edm-picker-row small,
  .edm-message-sender-name,
  .edm-message-meta time
) {
  color: var(--edm-muted) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-about-list a,
  .edm-options-picker header button,
  .edm-options-dialog > button:not(.edm-btn)
) {
  color: var(--edm-primary) !important;
}

html[data-ed-theme="dark"] .edm-message p {
  color: var(--edm-ink) !important;
}

html[data-ed-theme="dark"] .edm-message.is-mine {
  background: var(--edm-teal-soft) !important;
  color: var(--edm-teal) !important;
}

html[data-ed-theme="dark"] .edm-message.is-mine p {
  color: var(--edm-teal) !important;
}

html[data-ed-theme="dark"] .edm-message.is-event-invite,
html[data-ed-theme="dark"] .edm-message.is-event-invite.is-mine,
body.dark-mode .edm-message.is-event-invite,
body.dark-mode .edm-message.is-event-invite.is-mine,
body.ed-dark-mode .edm-message.is-event-invite,
body.ed-dark-mode .edm-message.is-event-invite.is-mine {
  background: transparent !important;
  color: var(--edm-message-text) !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-event-invite-shell,
html[data-ed-theme="dark"] .edm-event-invite-card,
body.dark-mode .edm-event-invite-shell,
body.dark-mode .edm-event-invite-card,
body.ed-dark-mode .edm-event-invite-shell,
body.ed-dark-mode .edm-event-invite-card {
  border-color: rgba(213, 196, 255, .28) !important;
  background: #ffffff !important;
  color: #171321 !important;
}

html[data-ed-theme="dark"] :where(
  .edm-chat-form input,
  .edm-new-message-panel input,
  .edm-options-dialog textarea,
  .edm-options-dialog-nickname input,
  .edm-options-picker input[type="search"]
) {
  border-color: var(--edm-line-strong) !important;
  background: var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
  box-shadow: 0 8px 22px rgba(var(--edm-shadow-rgb), .14) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-chat-form input::placeholder,
  .edm-new-message-panel input::placeholder,
  .edm-options-dialog textarea::placeholder,
  .edm-options-dialog-nickname input::placeholder,
  .edm-options-picker input[type="search"]::placeholder
) {
  color: color-mix(in srgb, var(--edm-muted) 70%, transparent) !important;
}

/* Friends hub controls */

html[data-ed-theme="dark"] .edm-friends-tabs {
  background: var(--edm-panel-bg) !important;
  box-shadow: var(--edm-shadow) !important;
}

html[data-ed-theme="dark"] .edm-friends-tabs button {
  background: var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
  box-shadow: 0 8px 22px rgba(var(--edm-shadow-rgb), .16) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-friends-tabs button:hover,
  .edm-friends-tabs button.is-active
) {
  background: var(--edm-primary-soft) !important;
  color: var(--edm-primary-strong) !important;
  box-shadow: 0 8px 18px rgba(var(--edm-shadow-rgb), .2) !important;
}

html[data-ed-theme="dark"] .edm-friends-tabs span {
  background: transparent !important;
  color: inherit !important;
}

html[data-ed-theme="dark"] .edm-social-row-actions .edm-btn {
  border-color: var(--edm-line-strong) !important;
  box-shadow: 0 8px 18px rgba(var(--edm-shadow-rgb), .2) !important;
}

html[data-ed-theme="dark"] .edm-social-row-actions .edm-btn-primary {
  background:
    linear-gradient(180deg, color-mix(in srgb, #FFFFFF 12%, transparent), transparent 48%),
    var(--edm-primary) !important;
  color: #FFFFFF !important;
}

html[data-ed-theme="dark"] .edm-social-row-actions .edm-btn-soft {
  background: var(--edm-surface-strong) !important;
  color: var(--edm-ink) !important;
}

html[data-ed-theme="dark"] .edm-social-row-actions .edm-btn-danger {
  background: rgba(159, 18, 57, .12) !important;
  color: #f5a3b8 !important;
}

html[data-ed-theme="dark"] .edm-social-options > summary {
  border-color: var(--edm-line-strong) !important;
  background: var(--edm-surface-strong) !important;
  color: var(--edm-primary-strong) !important;
  box-shadow: 0 8px 18px rgba(var(--edm-shadow-rgb), .2) !important;
}

html[data-ed-theme="dark"] .edm-social-options > summary:hover {
  border-color: rgba(var(--edm-primary-rgb), .32) !important;
  background: var(--edm-primary-soft) !important;
}

/* ============================================================
   Pulse / Stage Lights member palette
   Keeps profile, friends, notifications, settings and messages
   aligned with the live Everything Dancing brand tokens.
============================================================ */

:where(
  .edm-profile,
  .edm-profile-shell,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) {
  --edm-theme-bg: var(--ed-bg-light);
  --edm-theme-surface: var(--ed-surface-light);
  --edm-theme-text: var(--ed-text-main);
  --edm-theme-muted: var(--ed-text-muted);
  --edm-theme-border: var(--ed-border-light);
  color: var(--edm-theme-text);
}

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-profile-shell,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) {
  --edm-theme-bg: var(--ed-bg-dark);
  --edm-theme-surface: var(--ed-surface-dark);
  --edm-theme-text: var(--ed-bg-light);
  --edm-theme-muted: var(--ed-text-muted);
  --edm-theme-border: var(--ed-border-dark);
}

:where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(h1, h2, h3, h4, .edm-profile-name, .edm-section-title, .edm-card-title) {
  color: var(--edm-theme-text) !important;
  letter-spacing: 0 !important;
}

:where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(p, small, label, .edm-muted, .edm-help, .edm-meta, .edm-card-subtitle, .edm-profile-handle, .edm-profile-bio) {
  color: var(--edm-theme-muted) !important;
}

:where(
  .edm-profile-card,
  .edm-profile-head,
  .edm-profile-panel,
  .edm-profile-section,
  .edm-profile-tabs,
  .edm-settings-card,
  .edm-settings-section,
  .edm-accordion,
  .edm-friends-card,
  .edm-friends-panel,
  .edm-social-row,
  .edm-notification-card,
  .edm-message-card,
  .edm-chat-panel,
  .edm-feed-composer,
  .edm-feed-card,
  .edm-empty,
  .edm-empty-state,
  .edm-directory-card
) {
  border-color: var(--edm-theme-border) !important;
  background:
    radial-gradient(circle at 100% 0%, rgb(var(--ed-secondary-rgb) / 0.08), transparent 30%),
    linear-gradient(135deg, rgb(var(--ed-primary-rgb) / 0.045), transparent 44%),
    var(--edm-theme-surface) !important;
  color: var(--edm-theme-text) !important;
  box-shadow: 0 18px 46px rgb(var(--ed-bg-dark-rgb) / 0.08) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-card,
  .edm-profile-head,
  .edm-profile-panel,
  .edm-profile-section,
  .edm-profile-tabs,
  .edm-settings-card,
  .edm-settings-section,
  .edm-accordion,
  .edm-friends-card,
  .edm-friends-panel,
  .edm-social-row,
  .edm-notification-card,
  .edm-message-card,
  .edm-chat-panel,
  .edm-feed-composer,
  .edm-feed-card,
  .edm-empty,
  .edm-empty-state,
  .edm-directory-card
) {
  box-shadow: 0 22px 56px rgb(var(--ed-bg-dark-rgb) / 0.28) !important;
}

:where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  border-color: var(--edm-theme-border) !important;
  background: var(--edm-theme-surface) !important;
  color: var(--edm-theme-text) !important;
}

:where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):focus,
  select:focus,
  textarea:focus
) {
  border-color: var(--ed-primary) !important;
  box-shadow: 0 0 0 3px rgb(var(--ed-primary-rgb) / 0.20) !important;
  outline: 0 !important;
}

:where(.edm-btn-primary, .edm-profile-action-primary, .edm-save-settings, .edm-message-send, .edm-follow-button, .edm-feed-post, .edm-palette-option.is-active) {
  border-color: transparent !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, #FFFFFF 14%, transparent), transparent 48%),
    var(--ed-primary) !important;
  color: #FFFFFF !important;
  box-shadow:
    0 14px 30px rgb(var(--ed-primary-rgb) / 0.22),
    inset 0 1px 0 rgb(var(--ed-bg-light-rgb) / 0.24) !important;
}

:where(.edm-btn-primary, .edm-profile-action-primary, .edm-save-settings, .edm-message-send, .edm-follow-button, .edm-feed-post):hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, #FFFFFF 18%, transparent), transparent 48%),
    color-mix(in srgb, var(--ed-primary) 88%, var(--ed-bg-dark)) !important;
  transform: translateY(-1px);
}

:where(.edm-btn, .edm-profile-tab, .edm-friends-tabs button, .edm-settings-tab, .edm-pill, .edm-chip, .edm-badge, .edm-social-options > summary) {
  border-color: var(--edm-theme-border) !important;
  color: var(--edm-theme-text) !important;
}

:where(.edm-profile-tab.is-active, .edm-friends-tabs button.is-active, .edm-settings-tab.is-active, .edm-pill.is-active, .edm-chip.is-active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: var(--ed-primary) !important;
  background: rgb(var(--ed-primary-rgb) / 0.12) !important;
  color: var(--ed-primary) !important;
}

:where(.edm-notification-count, .edm-notification-dot, .edm-like, .edm-liked, .edm-badge--social, .edm-badge--featured) {
  border-color: rgb(var(--ed-secondary-rgb) / 0.38) !important;
  background: rgb(var(--ed-secondary-rgb) / 0.14) !important;
  color: var(--ed-secondary) !important;
}

:where(.edm-success, .edm-verified, .edm-available, .edm-badge--success) {
  border-color: rgb(var(--ed-accent-rgb) / 0.36) !important;
  background: rgb(var(--ed-accent-rgb) / 0.16) !important;
  color: var(--ed-bg-dark) !important;
}

:where(.edm-warning, .edm-reminder, .edm-badge--warning) {
  border-color: rgb(var(--ed-warning-rgb) / 0.42) !important;
  background: rgb(var(--ed-warning-rgb) / 0.18) !important;
  color: var(--ed-bg-dark) !important;
}

:where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar) {
  border: 1px solid transparent !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .42)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(var(--ed-primary-rgb), .18), rgba(255, 255, 255, .54)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    0 8px 18px rgba(48, 31, 84, .08) !important;
}

:where(.edm-empty, .edm-empty-state) {
  border: 1px dashed rgb(var(--ed-primary-rgb) / 0.28) !important;
  background: rgb(var(--ed-primary-rgb) / 0.08) !important;
}

/* ============================================================
   Dark mode depth layer for member profiles, settings, friends,
   notifications, messages, modals, popovers and mobile sheets.
============================================================ */

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-profile-shell,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) {
  --edm-theme-bg: var(--ed-bg);
  --edm-theme-surface: var(--ed-surface);
  --edm-theme-raised: var(--ed-surface-raised);
  --edm-theme-sheet: var(--ed-sheet);
  --edm-theme-sheet-raised: var(--ed-sheet-raised);
  --edm-theme-text: var(--ed-text);
  --edm-theme-muted: var(--ed-muted);
  --edm-theme-border: var(--ed-border);
  --edm-theme-border-strong: var(--ed-border-strong);
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-card,
  .edm-profile-head,
  .edm-profile-panel,
  .edm-profile-section,
  .edm-profile-tabs,
  .edm-settings-card,
  .edm-settings-section,
  .edm-accordion,
  .edm-friends-card,
  .edm-friends-panel,
  .edm-social-row,
  .edm-notification-card,
  .edm-message-card,
  .edm-chat-panel,
  .edm-feed-composer,
  .edm-feed-card,
  .edm-empty,
  .edm-empty-state,
  .edm-directory-card,
  .edm-register-code-card,
  .edm-local-panel,
  .edm-new-message-panel
) {
  border-color: var(--ed-border) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--ed-surface) !important;
  color: var(--ed-text) !important;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-head,
  .edm-settings-card,
  .edm-friends-card,
  .edm-chat-panel,
  .edm-menu-panel,
  .edm-options-dialog,
  .edm-options-picker,
  .edm-social-panel,
  .edm-modal,
  .edm-dialog,
  .edm-popover,
  .edm-sheet,
  .edm-bottom-sheet
) {
  border-color: var(--ed-border-strong) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    var(--ed-surface-raised) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 32px rgb(var(--ed-primary-dark-rgb) / 0.08) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-menu-panel,
  .edm-options-dialog,
  .edm-options-picker,
  .edm-social-panel,
  .edm-modal,
  .edm-dialog,
  .edm-popover,
  .edm-sheet,
  .edm-bottom-sheet
) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    var(--ed-sheet) !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 36px rgb(var(--ed-primary-dark-rgb) / 0.10) !important;
}

html[data-ed-theme="dark"] :where(.edm-sheet, .edm-bottom-sheet, .edm-menu-panel) {
  border-top: 1px solid var(--ed-border-strong) !important;
}

html[data-ed-theme="dark"] .edm-sheet-handle {
  background: var(--ed-border-strong) !important;
  box-shadow: 0 0 12px rgb(var(--ed-primary-dark-rgb) / 0.22) !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events,
body.dark-mode .edm-options-dialog-events,
body.ed-dark-mode .edm-options-dialog-events {
  border-color: rgba(213, 196, 255, .22) !important;
  background: #181827 !important;
  color: #f8f4ff !important;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, .58),
    0 0 0 1px rgba(255, 255, 255, .04) !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events h3,
body.dark-mode .edm-options-dialog-events h3,
body.ed-dark-mode .edm-options-dialog-events h3 {
  color: #f8f4ff !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events p,
body.dark-mode .edm-options-dialog-events p,
body.ed-dark-mode .edm-options-dialog-events p {
  color: #c9c0d6 !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events .edm-event-invite-row,
body.dark-mode .edm-options-dialog-events .edm-event-invite-row,
body.ed-dark-mode .edm-options-dialog-events .edm-event-invite-row {
  border-color: rgba(213, 196, 255, .16) !important;
  background: #222236 !important;
  color: #f8f4ff !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22) !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events .edm-event-invite-row:has(input:checked),
body.dark-mode .edm-options-dialog-events .edm-event-invite-row:has(input:checked),
body.ed-dark-mode .edm-options-dialog-events .edm-event-invite-row:has(input:checked) {
  border-color: rgba(167, 139, 250, .72) !important;
  background: #2d2544 !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events .edm-event-invite-copy strong,
body.dark-mode .edm-options-dialog-events .edm-event-invite-copy strong,
body.ed-dark-mode .edm-options-dialog-events .edm-event-invite-copy strong {
  color: #fff !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-events .edm-event-invite-copy small,
html[data-ed-theme="dark"] .edm-options-dialog-events .edm-event-invite-copy em,
body.dark-mode .edm-options-dialog-events .edm-event-invite-copy small,
body.dark-mode .edm-options-dialog-events .edm-event-invite-copy em,
body.ed-dark-mode .edm-options-dialog-events .edm-event-invite-copy small,
body.ed-dark-mode .edm-options-dialog-events .edm-event-invite-copy em {
  color: #c9c0d6 !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(h1, h2, h3, h4, h5, strong, .edm-profile-name, .edm-section-title, .edm-card-title) {
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(p, small, label, .edm-muted, .edm-help, .edm-meta, .edm-card-subtitle, .edm-profile-handle, .edm-profile-bio) {
  color: var(--ed-muted) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  border-color: var(--ed-border-strong) !important;
  background: var(--ed-surface-soft) !important;
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] :where(.edm-profile, .edm-account-settings, .edm-friends-hub, .edm-messages) :where(input::placeholder, textarea::placeholder) {
  color: var(--ed-muted) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) :where(input:focus, select:focus, textarea:focus) {
  border-color: var(--ed-primary-live) !important;
  box-shadow: 0 0 0 4px rgb(var(--ed-primary-dark-rgb) / 0.18) !important;
}

html[data-ed-theme="dark"] :where(.edm-btn-primary, .edm-profile-action-primary, .edm-save-settings, .edm-message-send, .edm-follow-button, .edm-feed-post) {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--ed-primary-live), var(--ed-secondary-live)) !important;
  color: #FFFFFF !important;
  box-shadow:
    0 12px 28px rgb(var(--ed-primary-dark-rgb) / 0.28),
    0 0 18px rgb(var(--ed-secondary-dark-rgb) / 0.14) !important;
}

html[data-ed-theme="dark"] :where(.edm-btn, .edm-profile-tab, .edm-friends-tabs button, .edm-settings-tab, .edm-pill, .edm-chip, .edm-badge, .edm-social-options > summary) {
  border-color: var(--ed-border-strong) !important;
  background: rgb(var(--ed-primary-dark-rgb) / 0.08) !important;
  color: var(--ed-primary-live) !important;
}

html[data-ed-theme="dark"] :where(.edm-profile-tab.is-active, .edm-friends-tabs button.is-active, .edm-settings-tab.is-active, .edm-pill.is-active, .edm-chip.is-active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: rgb(var(--ed-primary-dark-rgb) / 0.42) !important;
  background: rgb(var(--ed-primary-dark-rgb) / 0.16) !important;
  color: var(--ed-primary-live) !important;
}

html[data-ed-theme="dark"] :where(.edm-notification-count, .edm-notification-dot, .edm-like, .edm-liked, .edm-badge--social, .edm-badge--featured) {
  border-color: rgb(var(--ed-secondary-dark-rgb) / 0.42) !important;
  background: rgb(var(--ed-secondary-dark-rgb) / 0.16) !important;
  color: var(--ed-secondary-live) !important;
}

html[data-ed-theme="dark"] :where(.edm-success, .edm-verified, .edm-available, .edm-badge--success) {
  border-color: rgb(var(--ed-accent-dark-rgb) / 0.42) !important;
  background: rgb(var(--ed-accent-dark-rgb) / 0.16) !important;
  color: var(--ed-accent-live) !important;
}

html[data-ed-theme="dark"] :where(.edm-warning, .edm-reminder, .edm-badge--warning) {
  border-color: rgb(var(--ed-warning-dark-rgb) / 0.42) !important;
  background: rgb(var(--ed-warning-dark-rgb) / 0.16) !important;
  color: var(--ed-warning-live) !important;
}

html[data-ed-theme="dark"] :where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar),
body.dark-mode :where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar),
body.ed-dark-mode :where(.edm-avatar, .edm-profile-avatar, .edm-member-avatar, .edm-social-avatar, .edm-message-avatar) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(var(--ed-primary-dark-rgb), .28), rgba(255, 255, 255, .08)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 8px 18px rgba(0, 0, 0, .22) !important;
}

html[data-ed-theme="dark"] :where(.edm-profile, .edm-profile-shell) {
  background: var(--ed-bg) !important;
}

html[data-ed-theme="dark"] :where(.edm-profile-card, .edm-profile-head) {
  border-color: var(--ed-border) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--ed-surface) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 30px rgb(var(--ed-primary-dark-rgb) / 0.08) !important;
}

html[data-ed-theme="dark"] :where(.edm-profile-tabs, .edm-profile-tabbar, .edm-tabs) {
  border-color: var(--ed-border) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--ed-surface) !important;
}

html[data-ed-theme="dark"] .edm-profile-tab {
  border-color: transparent !important;
  background: var(--ed-surface-soft) !important;
  color: var(--ed-muted) !important;
}

html[data-ed-theme="dark"] .edm-profile-tab:is(.is-active, [aria-selected="true"], [aria-current="page"]) {
  border-color: rgb(var(--ed-primary-dark-rgb) / 0.28) !important;
  background: rgb(var(--ed-primary-dark-rgb) / 0.16) !important;
  color: var(--ed-primary-live) !important;
}

html[data-ed-theme="dark"] :where(.edm-profile-action-secondary, .edm-account-settings-button, .edm-profile-settings-button) {
  border-color: rgb(var(--ed-primary-dark-rgb) / 0.38) !important;
  background: rgb(var(--ed-primary-dark-rgb) / 0.12) !important;
  color: var(--ed-primary-live) !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-profile .edm-upload-card {
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] .edm-profile .edm-upload-card__frame {
  border-color: var(--ed-border-strong) !important;
  background:
    radial-gradient(circle at 18% 15%, rgb(var(--ed-primary-dark-rgb) / 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--ed-surface-soft) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 16px 34px rgba(0, 0, 0, .26) !important;
}

html[data-ed-theme="dark"] .edm-profile .edm-upload-card:hover .edm-upload-card__frame,
html[data-ed-theme="dark"] .edm-profile .edm-upload-card:focus-within .edm-upload-card__frame {
  border-color: rgb(var(--ed-primary-dark-rgb) / 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 40px rgba(0, 0, 0, .34),
    0 0 0 4px rgb(var(--ed-primary-dark-rgb) / 0.18) !important;
}

html[data-ed-theme="dark"] .edm-profile .edm-upload-card__empty,
html[data-ed-theme="dark"] .edm-profile .edm-upload-card small[data-edm-profile-file-label] {
  color: var(--ed-muted) !important;
}

html[data-ed-theme="dark"] .edm-profile .edm-upload-card__empty::before {
  background: rgb(var(--ed-primary-dark-rgb) / 0.16) !important;
  color: var(--ed-primary-live) !important;
}

/* Member profile: professional-profile inspired shell */
.edm-member-profile {
  --edm-member-surface: rgba(255, 255, 255, .84);
  --edm-member-surface-solid: #fff;
  --edm-member-text: var(--edm-ink);
  --edm-member-muted: var(--edm-muted);
  --edm-member-border: var(--edm-line);
  --edm-member-blue: #2563eb;
  --edm-member-shadow: 0 24px 70px rgba(var(--edm-shadow-rgb), .16);
  --edm-member-shadow-soft: 0 14px 36px rgba(var(--edm-shadow-rgb), .10);
  --edm-member-hero-fallback:
    radial-gradient(circle at 18% 16%, rgba(44, 231, 201, .26), transparent 30%),
    linear-gradient(135deg, var(--edm-primary-strong), var(--edm-primary) 58%, #ec4899);
  width: min(100% - 28px, 1180px);
  margin: 24px auto 80px;
  background: transparent;
}

.edm-member-profile__shell {
  display: grid;
  gap: 22px;
}

.edm-member-profile__hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: flex-end;
  overflow: hidden;
  border: 0;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(18, 12, 31, .14), rgba(18, 12, 31, .84)),
    var(--edm-member-hero-image, var(--edm-member-hero-fallback));
  background-position: center;
  background-size: cover;
  box-shadow: var(--edm-member-shadow);
  isolation: isolate;
}

.edm-member-profile__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(var(--edm-primary-rgb), .36), transparent 44%),
    linear-gradient(300deg, rgba(236, 72, 153, .28), transparent 42%);
}

.edm-member-profile__hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: end;
  padding: 28px;
  color: #fff;
}

.edm-member-profile .edm-profile-avatar,
.edm-member-profile__logo {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .70)),
    linear-gradient(135deg, var(--edm-primary), #ec4899);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.edm-member-profile .edm-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.edm-member-profile__identity {
  min-width: 0;
  padding: 0;
}

.edm-member-profile__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.1;
}

.edm-member-profile .edm-profile-title h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.375rem, 6vw, 4.375rem);
  line-height: .94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.edm-member-profile__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.edm-member-profile__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: rgba(255, 255, 255, .96);
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.edm-member-profile__pill small {
  color: rgba(255, 255, 255, .74);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.edm-member-profile .edm-profile-bio,
.edm-member-profile__tagline {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.55;
}

.edm-member-profile__hero-stats {
  width: 190px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.edm-member-profile__hero-stat {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 22px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.edm-member-profile__hero-stat strong {
  display: block;
  color: #fff;
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.edm-member-profile__hero-stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .74);
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.25;
}

.edm-member-profile__actions {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  align-self: start;
}

.edm-member-profile .edm-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-self: start;
  padding: 0;
}

.edm-member-profile .edm-profile-actions .edm-btn {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.edm-member-profile .edm-profile-actions .edm-btn-primary {
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, var(--edm-primary), #ec4899);
}

.edm-member-profile__control,
.edm-member-profile .edm-profile-tabs {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--edm-member-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--edm-member-surface-solid) 78%, transparent);
  box-shadow: var(--edm-member-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: none;
}

.edm-member-profile .edm-profile-tabs button,
.edm-member-profile .edm-profile-tabs a,
.edm-member-profile__nav-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--edm-member-muted);
  background: transparent;
  white-space: nowrap;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.edm-member-profile .edm-profile-tabs button:hover,
.edm-member-profile .edm-profile-tabs button.is-active,
.edm-member-profile .edm-profile-tabs a:hover,
.edm-member-profile .edm-profile-tabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--edm-primary), #ec4899);
  box-shadow: 0 10px 24px rgba(var(--edm-primary-rgb), .25);
}

.edm-member-profile__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.edm-member-profile__main-stack,
.edm-member-profile__side-stack {
  display: grid;
  gap: 22px;
}

.edm-member-profile__side-stack {
  position: sticky;
  top: 92px;
}

.edm-member-profile .edm-profile-layout {
  gap: 22px;
}

.edm-member-profile .edm-card.edm-profile-panel,
.edm-member-profile .edm-profile-panel > .edm-card,
.edm-member-profile__side-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--edm-member-border);
  border-radius: 32px;
  background: var(--edm-member-surface);
  box-shadow: var(--edm-member-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.edm-member-profile__section-head,
.edm-member-profile .edm-section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.edm-member-profile .edm-card.edm-profile-panel > .edm-section-head {
  align-items: start;
  flex-direction: column;
  gap: 6px;
}

.edm-member-profile .edm-card.edm-profile-panel > .edm-section-head p {
  max-width: 680px;
  margin: 0;
  font-size: .98rem;
}

.edm-member-profile__kicker {
  margin: 0 0 6px;
  color: var(--edm-primary);
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.edm-member-profile__section-title,
.edm-member-profile .edm-section-head h2 {
  margin: 0;
  color: var(--edm-member-text);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.edm-member-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.edm-member-profile__mini-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--edm-member-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--edm-member-surface-solid) 62%, transparent);
}

.edm-member-profile__mini-stat strong {
  display: block;
  color: var(--edm-member-blue);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.edm-member-profile__mini-stat span {
  display: block;
  margin-top: 3px;
  color: var(--edm-member-muted);
  font-size: .82rem;
  font-weight: 700;
}

.edm-member-profile__side-stack .edm-member-profile__stats {
  grid-template-columns: 1fr;
}

.edm-member-profile__side-stack .edm-member-profile__mini-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.edm-member-profile__side-stack .edm-member-profile__mini-stat span {
  margin: 0;
  text-align: right;
}

.edm-member-profile .edm-profile-event-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.edm-member-profile .edm-profile-event-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--edm-member-border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--edm-member-surface-solid) 72%, transparent);
  box-shadow: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.edm-member-profile .edm-profile-event-card::after {
  content: "->";
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--edm-primary-strong);
  background: var(--edm-primary-soft);
  font-weight: 900;
}

.edm-member-profile .edm-profile-event-card:hover,
.edm-member-profile .edm-profile-event-card:focus-visible {
  border-color: color-mix(in srgb, var(--edm-primary) 28%, var(--edm-member-border));
  box-shadow: 0 18px 40px rgba(var(--edm-shadow-rgb), .12);
  transform: translateY(-2px);
}

.edm-member-profile .edm-profile-event-card img {
  width: 112px;
  height: 92px;
  aspect-ratio: auto;
  border-radius: 18px;
  object-fit: cover;
}

.edm-member-profile .edm-profile-event-card span {
  padding: 0;
}

.edm-member-profile .edm-profile-event-card small {
  width: fit-content;
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--edm-primary-strong);
  background: var(--edm-primary-soft);
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.1;
}

.edm-member-profile .edm-profile-event-card strong {
  color: var(--edm-ink);
  font-size: 1.18rem;
  line-height: 1.15;
  white-space: normal;
}

.edm-member-profile .edm-about-list > div,
.edm-member-profile__contact-row,
.edm-member-profile .edm-mini-member-grid a {
  border: 1px solid var(--edm-member-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--edm-member-surface-solid) 66%, transparent);
}

.edm-member-profile__contact-list {
  display: grid;
  gap: 10px;
}

.edm-member-profile__contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  color: var(--edm-member-text);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.edm-member-profile__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--edm-primary-strong);
  background: var(--edm-primary-soft);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.edm-member-profile__soft-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--edm-primary-strong);
  background: var(--edm-primary-soft);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.edm-member-profile__friend-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.edm-member-profile__friend {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--edm-member-border);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--edm-primary), #ec4899);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.edm-member-profile__friend img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-member-profile__friend span {
  position: relative;
  z-index: 1;
}

.edm-member-profile__friend img + span {
  opacity: 0;
}

.edm-member-profile__setting-list,
.edm-member-profile__side-card > .edm-member-profile__setting-row {
  margin-top: 14px;
}

.edm-member-profile__setting-list {
  display: grid;
  gap: 10px;
}

.edm-member-profile__setting-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--edm-member-border);
  border-radius: 18px;
  color: var(--edm-member-text);
  background: color-mix(in srgb, var(--edm-member-surface-solid) 66%, transparent);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.edm-member-profile__setting-row strong,
.edm-member-profile__setting-row small {
  display: block;
}

.edm-member-profile__setting-row strong {
  color: var(--edm-member-text);
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.2;
}

.edm-member-profile__setting-row small {
  margin-top: 3px;
  color: var(--edm-member-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
}

.edm-member-profile__empty-note {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed color-mix(in srgb, var(--edm-primary) 28%, var(--edm-member-border));
  border-radius: 24px;
  color: var(--edm-member-muted);
  background:
    linear-gradient(135deg, rgba(var(--edm-primary-rgb), .08), color-mix(in srgb, var(--edm-member-surface-solid) 52%, transparent));
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
}

.edm-member-profile__mini-friends {
  grid-template-columns: 1fr;
  margin: 0;
}

html[data-ed-theme="dark"] .edm-member-profile {
  --edm-member-surface: rgba(31, 36, 54, .84);
  --edm-member-surface-solid: var(--ed-surface-raised, #1f2436);
  --edm-member-text: var(--ed-text, #f8f4ff);
  --edm-member-muted: var(--ed-muted, #c5cad8);
  --edm-member-border: var(--ed-border, rgba(255, 255, 255, .12));
  --edm-member-blue: #7dd3fc;
  --edm-member-hero-fallback:
    radial-gradient(circle at 18% 16%, rgba(44, 231, 201, .18), transparent 30%),
    linear-gradient(135deg, #171b2a, #34285a 60%, #7c2d59);
}

html[data-ed-theme="dark"] .edm-member-profile__side-card,
html[data-ed-theme="dark"] .edm-member-profile__mini-stat,
html[data-ed-theme="dark"] .edm-member-profile__contact-row,
html[data-ed-theme="dark"] .edm-member-profile__setting-row,
html[data-ed-theme="dark"] .edm-member-profile__friend,
html[data-ed-theme="dark"] .edm-member-profile .edm-profile-event-card,
html[data-ed-theme="dark"] .edm-member-profile .edm-about-list > div,
html[data-ed-theme="dark"] .edm-member-profile .edm-mini-member-grid a {
  border-color: var(--edm-member-border);
  background: var(--edm-member-surface);
  color: var(--edm-member-text);
}

@media (max-width: 860px) {
  .edm-member-profile {
    width: min(100% - 18px, 1180px);
    margin-top: 10px;
  }

  .edm-member-profile__hero {
    min-height: 600px;
    border-radius: 30px;
  }

  .edm-member-profile__hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .edm-member-profile .edm-profile-avatar,
  .edm-member-profile__logo {
    width: 104px;
    height: 104px;
    border-radius: 28px;
  }

  .edm-member-profile .edm-profile-title h1 {
    font-size: 2.625rem;
  }

  .edm-member-profile__actions {
    position: static;
    grid-column: 1 / -1;
  }

  .edm-member-profile__hero-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edm-member-profile__content {
    grid-template-columns: 1fr;
  }

  .edm-member-profile__side-stack {
    position: static;
  }

  .edm-member-profile__control,
  .edm-member-profile .edm-profile-tabs {
    border-radius: 22px;
  }

  .edm-member-profile__section-head,
  .edm-member-profile .edm-section-head {
    align-items: start;
    flex-direction: column;
  }

  .edm-member-profile .edm-profile-event-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .edm-member-profile .edm-profile-event-card::after {
    display: none;
  }

  .edm-member-profile .edm-profile-event-card img {
    width: 88px;
    height: 88px;
  }

  .edm-member-profile__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .edm-member-profile__hero {
    min-height: 560px;
  }

  .edm-member-profile .edm-profile-title h1 {
    font-size: 2.25rem;
  }

  .edm-member-profile__hero-inner {
    grid-template-columns: 1fr;
  }

  .edm-member-profile__hero-stats,
  .edm-member-profile__friend-list {
    grid-template-columns: 1fr;
  }

  .edm-member-profile__actions,
  .edm-member-profile .edm-profile-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .edm-member-profile .edm-profile-event-card {
    grid-template-columns: 1fr;
  }

  .edm-member-profile .edm-profile-event-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* Solid dark surfaces: cards should read as containers, not tinted glass. */
html[data-ed-theme="dark"] :where(
  .edm-profile,
  .edm-profile-shell,
  .edm-account-settings,
  .edm-friends-hub,
  .edm-friends,
  .edm-notifications,
  .edm-messages,
  .edm-directory,
  .edm-auth
) {
  --edm-theme-bg: var(--ed-bg);
  --edm-theme-surface: var(--ed-surface);
  --edm-theme-raised: var(--ed-surface-raised);
  --edm-theme-sheet: var(--ed-sheet);
  --edm-theme-sheet-raised: var(--ed-sheet-raised);
  --edm-theme-text: var(--ed-text);
  --edm-theme-muted: var(--ed-muted);
  --edm-panel-bg: var(--ed-surface-raised);
  background: var(--ed-bg) !important;
  color: var(--ed-text) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-card,
  .edm-feed-item,
  .edm-profile-hero,
  .edm-profile-card,
  .edm-profile-panel,
  .edm-profile-section,
  .edm-settings-card,
  .edm-settings-section,
  .edm-accordion,
  .edm-friends-card,
  .edm-friends-panel,
  .edm-social-row,
  .edm-notification-card,
  .edm-notification-item,
  .edm-message-card,
  .edm-chat-panel,
  .edm-feed-composer,
  .edm-feed-card,
  .edm-member-card,
  .edm-directory-card,
  .edm-register-code-card,
  .edm-local-panel,
  .edm-new-message-panel,
  .edm-empty,
  .edm-empty-state
) {
  border-color: var(--ed-border) !important;
  background: var(--ed-surface) !important;
  color: var(--ed-text) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28) !important;
}

html[data-ed-theme="dark"] :where(
  .edm-profile-head,
  .edm-profile-tabs,
  .edm-profile-tabbar,
  .edm-tabs,
  .edm-menu-panel,
  .edm-options-dialog,
  .edm-options-picker,
  .edm-social-panel,
  .edm-modal,
  .edm-dialog,
  .edm-popover,
  .edm-sheet,
  .edm-bottom-sheet
) {
  border-color: var(--ed-border-strong) !important;
  background: var(--ed-surface-raised) !important;
  color: var(--ed-text) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34) !important;
}

html[data-ed-theme="dark"] .edm-member-profile .edm-profile-title h1,
html[data-ed-theme="dark"] .edm-member-profile__eyebrow,
html[data-ed-theme="dark"] .edm-member-profile__pill {
  color: #fff !important;
}

html[data-ed-theme="dark"] .edm-member-profile .edm-profile-bio,
html[data-ed-theme="dark"] .edm-member-profile__tagline {
  color: rgba(255, 255, 255, .86) !important;
}

html[data-ed-theme="dark"] .edm-member-profile__control,
html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs {
  border-color: var(--edm-member-border) !important;
  background: color-mix(in srgb, var(--edm-member-surface-solid) 78%, transparent) !important;
}

html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs button,
html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs a {
  border-color: transparent !important;
  background: rgba(255, 255, 255, .055) !important;
  color: rgba(255, 255, 255, .76) !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs button.is-active,
html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs a.is-active,
html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs button:hover,
html[data-ed-theme="dark"] .edm-member-profile .edm-profile-tabs a:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--edm-primary), #ec4899) !important;
}

html[data-ed-theme="dark"] .edm-messages-back {
  border-color: var(--ed-border-strong) !important;
  background: var(--ed-surface-raised) !important;
  color: var(--ed-primary-live) !important;
}

/* Reimagined member profile */
.edm-user-profile {
  --edm-user-profile-max: 1180px;
  --edm-user-profile-radius-xl: 34px;
  --edm-user-profile-radius-lg: 26px;
  --edm-user-profile-radius-md: 18px;
  --edm-user-profile-bg: #f7f3ff;
  --edm-user-profile-bg-soft: #fbf8ff;
  --edm-user-profile-surface: #fff;
  --edm-user-profile-glass: rgba(255, 255, 255, .84);
  --edm-user-profile-text: #171321;
  --edm-user-profile-muted: #6f687a;
  --edm-user-profile-border: rgba(23, 19, 33, .12);
  --edm-user-profile-accent: #6d28d9;
  --edm-user-profile-accent-soft: rgba(109, 40, 217, .10);
  --edm-user-profile-primary-soft: rgba(109, 40, 217, .10);
  --edm-user-profile-primary-bg: #24153f;
  --edm-user-profile-primary-text: #fff;
  --edm-user-profile-shadow: 0 24px 70px rgba(48, 31, 84, .14);
  --edm-user-profile-shadow-soft: 0 14px 36px rgba(48, 31, 84, .09);
  --edm-user-profile-sticky-offset: calc(var(--admin-bar-height, 0px) + var(--header-height, 0px) + 12px);
  --edm-user-profile-anchor-offset: 86px;
  --edm-user-profile-end-scroll-space: clamp(220px, 34vh, 420px);
  width: min(var(--edm-user-profile-max), calc(100% - 28px));
  margin: 24px auto 80px;
  padding-bottom: var(--edm-user-profile-end-scroll-space);
  display: grid;
  gap: 22px;
  color: var(--edm-user-profile-text);
  background:
    radial-gradient(circle at top left, rgba(109, 40, 217, .18), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, .12), transparent 34rem),
    linear-gradient(180deg, var(--edm-user-profile-bg-soft), var(--edm-user-profile-bg) 42%, #fff 100%);
  border-radius: 0 0 var(--edm-user-profile-radius-xl) var(--edm-user-profile-radius-xl);
  color-scheme: light;
}

.edm-user-profile *,
.edm-user-profile *::before,
.edm-user-profile *::after {
  box-sizing: border-box;
}

.edm-user-profile a {
  color: inherit;
  text-decoration: none;
}

.edm-user-profile__owner-bar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  background: var(--edm-user-profile-glass);
  box-shadow: var(--edm-user-profile-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.edm-user-profile__owner-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 8px;
  color: var(--edm-user-profile-accent);
  font-weight: 950;
  line-height: 1.2;
}

.edm-user-profile__owner-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
}

.edm-user-profile__owner-bar {
  display: none;
}

.edm-user-profile__actions,
.edm-user-profile__hero-action-row,
.edm-user-profile__composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-user-profile__btn,
.edm-user-profile .edm-profile-actions .edm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--edm-user-profile-surface);
  color: var(--edm-user-profile-primary-bg);
  font: inherit;
  font-size: .875rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.edm-user-profile__btn--primary,
.edm-user-profile .edm-profile-actions .edm-btn-primary {
  border-color: transparent;
  background: var(--edm-user-profile-primary-bg);
  color: var(--edm-user-profile-primary-text) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.edm-user-profile__btn--secondary,
.edm-user-profile .edm-profile-actions .edm-btn-soft {
  border-color: var(--edm-user-profile-border);
  background: var(--edm-user-profile-surface);
  color: var(--edm-user-profile-primary-bg);
}

.edm-user-profile__btn--soft {
  border-color: transparent;
  background: var(--edm-user-profile-accent-soft);
  color: var(--edm-user-profile-accent);
}

.edm-user-profile .edm-user-profile__btn--primary {
  background: var(--edm-user-profile-primary-bg) !important;
  color: var(--edm-user-profile-primary-text) !important;
}

.edm-user-profile .edm-user-profile__btn--secondary {
  background: var(--edm-user-profile-surface) !important;
  color: var(--edm-user-profile-primary-bg) !important;
}

.edm-user-profile .edm-user-profile__btn--soft {
  background: var(--edm-user-profile-accent-soft) !important;
  color: var(--edm-user-profile-accent) !important;
}

.edm-user-profile .edm-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.ed-visitor-profile-hero {
  position: relative;
  overflow: visible;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, .65), rgba(219, 62, 159, .42), rgba(255, 255, 255, .12));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  color: #f8f7ff;
  isolation: isolate;
}

.ed-visitor-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .14), transparent 22%),
    radial-gradient(circle at 72% 24%, rgba(219, 62, 159, .24), transparent 30%),
    linear-gradient(135deg, rgba(101, 38, 216, .72), rgba(84, 30, 124, .68) 48%, rgba(119, 31, 91, .7)),
    var(--ed-visitor-profile-hero-image, linear-gradient(135deg, rgba(101, 38, 216, .96), rgba(84, 30, 124, .94) 48%, rgba(119, 31, 91, .92)));
  background-position: center;
  background-size: cover;
}

.ed-visitor-profile-hero--has-banner::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, .12), transparent 24%),
    radial-gradient(circle at 76% 20%, rgba(219, 62, 159, .2), transparent 32%),
    linear-gradient(180deg, rgba(7, 11, 22, .14), rgba(7, 11, 22, .68)),
    linear-gradient(135deg, rgba(101, 38, 216, .36), rgba(84, 30, 124, .28) 48%, rgba(119, 31, 91, .34)),
    var(--ed-visitor-profile-hero-image);
}

.ed-visitor-profile-hero::after {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  pointer-events: none;
}

.ed-visitor-profile-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 330px);
  gap: 26px;
  align-items: center;
  min-height: 350px;
  padding: 46px;
}

.ed-visitor-profile-hero__avatar {
  position: relative;
  align-self: start;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 30px;
  background: linear-gradient(180deg, #d8d8dd, #f4f4f7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.ed-visitor-profile-hero__avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-visitor-profile-hero__avatar span {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 82%;
  height: 82%;
  border-radius: 24px;
  background: #ffffff;
  color: #4c1d95;
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.ed-visitor-profile-hero__copy {
  min-width: 0;
}

.ed-visitor-profile-hero__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ed-visitor-profile-hero__pill,
.ed-visitor-profile-hero__chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #efeaff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ed-visitor-profile-hero__pill {
  gap: 7px;
  min-height: 34px;
  padding: 7px 14px;
  font-size: .8125rem;
  font-weight: 850;
  line-height: 1;
}

.ed-visitor-profile-hero__pill--friend {
  border-color: rgba(196, 160, 255, .52);
  background: rgba(20, 24, 42, .34);
  color: #d8c8ff;
}

.ed-visitor-profile-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.ed-visitor-profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ed-visitor-profile-hero__chip {
  min-height: 36px;
  padding: 7px 13px;
  color: #efe9ff;
  font-size: .875rem;
  font-weight: 760;
}

.ed-visitor-profile-hero__bio {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 650;
  line-height: 1.45;
}

.ed-visitor-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
}

.ed-visitor-profile-hero__btn,
.ed-visitor-profile-hero__more summary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #f9f7ff;
  font: inherit;
  font-size: .9375rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  cursor: pointer;
}

.ed-visitor-profile-hero__btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ed-visitor-profile-hero__btn--primary {
  background: #f7f2ff;
  color: #311b62;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
}

.ed-visitor-profile-hero__btn--secondary {
  border: 1px solid rgba(196, 160, 255, .62);
  background: rgba(20, 24, 42, .38);
  color: #f3edff;
}

.ed-visitor-profile-hero__btn--quiet {
  background: rgba(17, 24, 39, .6);
  color: #fff;
}

.ed-visitor-profile-hero__btn--icon,
.ed-visitor-profile-hero__more summary {
  width: 46px;
  padding: 0;
  font-size: 1.2rem;
  letter-spacing: .08em;
}

.ed-visitor-profile-hero__more {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
}

.ed-visitor-profile-hero__more[open] {
  z-index: 90;
}

.ed-visitor-profile-hero__more summary::-webkit-details-marker {
  display: none;
}

.ed-visitor-profile-hero__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 95;
  min-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(17, 24, 39, .96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ed-visitor-profile-hero__menu button {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: #f8f7ff;
  font: inherit;
  font-size: .875rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.ed-visitor-profile-hero__menu button:last-child {
  border-bottom: 0;
}

.ed-visitor-profile-hero__menu button:hover {
  background: rgba(167, 139, 250, .14);
}

.ed-visitor-profile-hero__connection-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: rgba(8, 12, 27, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ed-visitor-profile-hero__connection-card h2 {
  margin: 0 0 6px;
  color: #f8f7ff;
  font-size: 1.1875rem;
  font-weight: 950;
  letter-spacing: 0;
}

.ed-visitor-profile-hero__connection-card p {
  margin: 0;
  color: #c9c4d9;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.45;
}

.ed-visitor-profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.ed-visitor-profile-hero__stat {
  min-height: 74px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}

.ed-visitor-profile-hero__stat strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 950;
  line-height: 1;
}

.ed-visitor-profile-hero__stat span {
  display: block;
  color: #d8d2e8;
  font-size: .6875rem;
  font-weight: 850;
  line-height: 1.2;
}

.ed-visitor-profile-hero__connection-action {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.ed-visitor-profile-hero__connection-action > span {
  color: #d7c8ff;
  font-size: .8125rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .ed-visitor-profile-hero__inner {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    min-height: 0;
    padding: 30px;
  }

  .ed-visitor-profile-hero::after {
    inset: 14px;
  }

  .ed-visitor-profile-hero__avatar {
    width: 96px;
    height: 96px;
    border-radius: 25px;
  }

  .ed-visitor-profile-hero__connection-card {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 540px) {
  .ed-visitor-profile-hero {
    border-radius: 28px;
  }

  .ed-visitor-profile-hero__inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .ed-visitor-profile-hero h1 {
    font-size: 44px;
  }

  .ed-visitor-profile-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ed-visitor-profile-hero__actions .ed-visitor-profile-hero__btn--primary {
    grid-column: 1 / -1;
  }

  .ed-visitor-profile-hero__more {
    min-width: 0;
  }

  .ed-visitor-profile-hero__more summary {
    width: 100%;
  }

  .ed-visitor-profile-hero__stats {
    grid-template-columns: 1fr;
  }

  .ed-visitor-profile-hero__connection-action {
    align-items: stretch;
    flex-direction: column;
  }

  .ed-visitor-profile-hero__connection-action > span {
    white-space: normal;
  }
}

.edm-user-profile__hero--visitor .edm-user-profile__hero-inner {
  width: min(100%, 980px);
  align-self: center;
  justify-self: center;
}

.edm-user-profile__hero--visitor .edm-user-profile__hero-copy {
  display: grid;
  justify-items: start;
}

.edm-user-profile__hero--visitor .edm-user-profile__hero-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.edm-user-profile__hero--visitor .edm-profile-actions {
  display: contents;
}

.edm-user-profile__hero--visitor .edm-profile-actions .edm-btn,
.edm-user-profile__hero--visitor .edm-user-profile__btn,
.edm-user-profile__hero--visitor .edm-profile-more summary {
  min-height: 46px;
}

.edm-user-profile__hero--visitor .edm-profile-more {
  flex: 0 0 auto;
}

.edm-user-profile__hero {
  position: relative;
  min-height: clamp(380px, 44vw, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--edm-user-profile-radius-xl);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18, 12, 31, .06), rgba(18, 12, 31, .76)),
    var(--edm-user-profile-hero-image, linear-gradient(135deg, #5b21b6, #ec4899));
  background-position: center;
  background-size: cover;
  box-shadow: var(--edm-user-profile-shadow);
  isolation: isolate;
}

.edm-user-profile__hero--visitor {
  min-height: clamp(340px, 36vw, 460px);
  align-items: center;
}

.edm-user-profile__hero-tools {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: 5;
}

.edm-user-profile__settings-menu > summary,
.edm-user-profile .edm-profile-more summary {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.edm-user-profile__settings-menu > summary:hover,
.edm-user-profile .edm-profile-more summary:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .22);
}

.edm-user-profile__settings-menu .edm-profile-more-menu,
.edm-user-profile .edm-profile-more-menu {
  min-width: 230px;
  border-color: var(--edm-user-profile-border);
  background: color-mix(in srgb, var(--edm-user-profile-surface) 94%, transparent);
  color: var(--edm-user-profile-text);
  box-shadow: var(--edm-user-profile-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.edm-user-profile__settings-menu .edm-profile-more-menu button,
.edm-user-profile__settings-menu .edm-profile-more-menu a,
.edm-user-profile .edm-profile-more-menu button,
.edm-user-profile .edm-profile-more-menu a {
  border-bottom-color: var(--edm-user-profile-border);
  color: var(--edm-user-profile-text);
}

.edm-user-profile__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 22%, rgba(109, 40, 217, .38), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(236, 72, 153, .22), transparent 30rem);
}

.edm-user-profile__hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(112px, 14vw, 148px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  width: min(100%, 980px);
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(18, 14, 31, .28), rgba(18, 14, 31, .08));
  box-shadow: 0 18px 52px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.edm-user-profile__avatar {
  position: relative;
  width: clamp(112px, 14vw, 148px);
  height: clamp(112px, 14vw, 148px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 36px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.edm-user-profile__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.edm-user-profile__avatar span {
  width: min(78%, 98px);
  height: min(78%, 98px);
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: var(--edm-user-profile-primary-bg);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.edm-user-profile__hero-copy {
  min-width: 0;
}

.edm-user-profile__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: .8125rem;
  font-weight: 900;
  line-height: 1.1;
}

.edm-user-profile__hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6vw, 4.75rem);
  line-height: .96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.edm-user-profile__hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.0625rem;
  font-weight: 560;
  line-height: 1.6;
}

.edm-user-profile__hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.edm-user-profile__hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: .8125rem;
  font-weight: 850;
  line-height: 1.1;
}

.edm-user-profile__hero-action-row {
  align-items: center;
  margin-top: 18px;
}

.edm-user-profile__nav {
  position: sticky;
  top: var(--edm-user-profile-sticky-offset);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  background: var(--edm-user-profile-glass);
  box-shadow: var(--edm-user-profile-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.edm-user-profile__nav.is-stuck {
  border-color: color-mix(in srgb, var(--edm-user-profile-accent) 24%, var(--edm-user-profile-border));
  background: color-mix(in srgb, var(--edm-user-profile-surface) 86%, transparent);
  box-shadow: 0 18px 46px rgba(48, 31, 84, .16);
}

.edm-user-profile__nav::-webkit-scrollbar {
  display: none;
}

.edm-user-profile__nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--edm-user-profile-muted);
  font-size: .875rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.edm-user-profile__nav-label--mobile {
  display: none;
}

.edm-user-profile__nav a.is-active,
.edm-user-profile__nav a[aria-current="true"],
.edm-user-profile__nav a:hover,
.edm-user-profile__nav a:focus-visible {
  color: var(--edm-user-profile-accent);
  background: var(--edm-user-profile-accent-soft);
  box-shadow: inset 0 0 0 1px var(--edm-user-profile-border);
}

.edm-user-profile__card {
  scroll-margin-top: var(--edm-user-profile-anchor-offset);
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: var(--edm-user-profile-radius-lg);
  background: var(--edm-user-profile-glass);
  box-shadow: var(--edm-user-profile-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.edm-user-profile__card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.edm-user-profile__kicker {
  margin: 0 0 6px;
  color: var(--edm-user-profile-accent);
  font-size: .8125rem;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.edm-user-profile__title {
  margin: 0;
  color: var(--edm-user-profile-text);
  font-size: 2.125rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.edm-user-profile__copy {
  margin: 0;
  color: var(--edm-user-profile-muted);
  font-size: .96875rem;
  line-height: 1.7;
}

.edm-user-profile__dna-grid,
.edm-user-profile__dna-system-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.edm-user-profile__dna-system-grid {
  gap: 22px;
  align-items: start;
}

.edm-save-event-icon {
  --edm-save-size: 46px;
  --edm-save-red: #b11226;
  --edm-save-red-rgb: 177 18 38;
  --edm-save-accent: var(--edm-save-red);
  --edm-save-accent-rgb: var(--edm-save-red-rgb);
  --edm-save-bg: rgba(255, 255, 255, .94);
  --edm-save-border: rgb(var(--edm-save-accent-rgb) / .2);
  --edm-save-selected-bg: var(--edm-save-red);
  --edm-save-selected-shadow: 0 18px 42px rgb(var(--edm-save-accent-rgb) / .28);
  position: relative;
  isolation: isolate;
  width: var(--edm-save-size);
  min-width: var(--edm-save-size);
  height: var(--edm-save-size);
  min-height: var(--edm-save-size);
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edm-save-border) !important;
  border-radius: 999px;
  color: var(--edm-save-accent) !important;
  background: var(--edm-save-bg) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .15);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.edm-save-event-icon:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.edm-save-event-icon:focus-visible {
  outline: 3px solid rgb(var(--edm-save-accent-rgb) / .26);
  outline-offset: 3px;
}

.edm-save-event-icon.is-loading {
  opacity: .7;
  pointer-events: none;
}

.edm-save-event-icon__glyph {
  position: relative;
  width: 26px;
  height: 26px;
  display: block;
}

.edm-save-event-icon__heart {
  position: absolute;
  left: 6px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 4px 4px 2px 4px;
  background: currentColor;
  opacity: .72;
  transform: rotate(-45deg) scale(.78);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.edm-save-event-icon__heart::before,
.edm-save-event-icon__heart::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
}

.edm-save-event-icon__heart::before {
  left: 0;
  top: -7px;
}

.edm-save-event-icon__heart::after {
  left: 7px;
  top: 0;
}

.edm-save-event-icon__plus {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 13px;
  height: 13px;
  display: block;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
  transition: opacity .18s ease, transform .18s ease;
}

.edm-save-event-icon__plus::before,
.edm-save-event-icon__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.edm-save-event-icon__plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.edm-save-event-icon__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
  pointer-events: none;
}

.edm-save-event-icon__spark--one {
  --edm-save-spark-x: -20px;
  --edm-save-spark-y: -14px;
}

.edm-save-event-icon__spark--two {
  --edm-save-spark-x: 20px;
  --edm-save-spark-y: -12px;
}

.edm-save-event-icon__spark--three {
  --edm-save-spark-x: 4px;
  --edm-save-spark-y: 21px;
}

.edm-save-event-icon.is-active,
.edm-save-event-icon[aria-pressed="true"] {
  color: #fff !important;
  background: var(--edm-save-selected-bg) !important;
  border-color: var(--edm-save-selected-bg) !important;
  box-shadow: var(--edm-save-selected-shadow);
}

.edm-save-event-icon.is-active .edm-save-event-icon__heart,
.edm-save-event-icon[aria-pressed="true"] .edm-save-event-icon__heart {
  opacity: 1;
  transform: rotate(-45deg) scale(.96);
}

.edm-save-event-icon.is-active .edm-save-event-icon__plus,
.edm-save-event-icon[aria-pressed="true"] .edm-save-event-icon__plus {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 16px;
  height: 16px;
  border-radius: 0;
  color: var(--edm-save-accent);
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: translate(-50%, -48%) scale(1);
}

.edm-save-event-icon.is-active .edm-save-event-icon__plus::before,
.edm-save-event-icon[aria-pressed="true"] .edm-save-event-icon__plus::before {
  width: 8px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-radius: 0 0 2px 0;
  background: transparent;
  transform: translate(-50%, -62%) rotate(45deg);
}

.edm-save-event-icon.is-active .edm-save-event-icon__plus::after,
.edm-save-event-icon[aria-pressed="true"] .edm-save-event-icon__plus::after {
  opacity: 0;
}

.edm-save-event-icon.is-animating {
  animation: edm-save-icon-pop .56s cubic-bezier(.22, 1.28, .36, 1);
}

.edm-save-event-icon.is-animating .edm-save-event-icon__heart {
  animation: edm-save-heart-pop .56s cubic-bezier(.22, 1.28, .36, 1);
}

.edm-save-event-icon.is-animating .edm-save-event-icon__spark {
  animation: edm-save-spark .68s ease-out forwards;
}

@keyframes edm-save-icon-pop {
  0% { transform: scale(.9); }
  42% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes edm-save-heart-pop {
  0% { transform: rotate(-45deg) scale(.58); }
  48% { transform: rotate(-45deg) scale(1.18); }
  100% { transform: rotate(-45deg) scale(.96); }
}

@keyframes edm-save-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--edm-save-spark-x)), calc(-50% + var(--edm-save-spark-y))) scale(.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .edm-save-event-icon,
  .edm-save-event-icon *,
  .edm-save-event-icon::before,
  .edm-save-event-icon::after {
    animation: none !important;
    transition: none !important;
  }
}

.edm-user-profile__dna-main-stack,
.edm-user-profile__dna-side-stack,
.edm-user-profile__selector {
  display: grid;
  gap: 12px;
}

.edm-user-profile__dna-card,
.edm-user-profile__mini-card,
.edm-user-profile__event-card,
.edm-user-profile__friend-card,
.edm-user-profile__owner-tool,
.edm-user-profile__style-row,
.edm-user-profile__option-card,
.edm-user-profile__flow-card,
.edm-user-profile__composer,
.edm-user-profile .edm-feed-item {
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 22px;
  background: var(--edm-user-profile-surface);
}

.edm-user-profile__dna-card,
.edm-user-profile__mini-card,
.edm-user-profile__owner-tool,
.edm-user-profile__option-card,
.edm-user-profile__flow-card {
  padding: 16px;
}

.edm-user-profile__dna-card:first-child {
  padding: 18px;
}

.edm-user-profile__card-head--compact {
  margin-bottom: 14px;
}

.edm-user-profile__sub-title {
  margin: 0;
  color: var(--edm-user-profile-text);
  font-size: 1.125rem;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

.edm-user-profile__dna-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.edm-user-profile__dna-row strong {
  color: var(--edm-user-profile-text);
  font-size: .875rem;
  font-weight: 900;
}

.edm-user-profile__dna-row em {
  color: var(--edm-user-profile-muted);
  font-size: .8125rem;
  font-style: normal;
  font-weight: 850;
}

.edm-user-profile__dna-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--edm-user-profile-accent-soft);
}

.edm-user-profile__dna-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--edm-user-profile-accent);
}

.edm-user-profile__preference-bars {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.edm-user-profile__preference-row {
  display: grid;
  grid-template-columns: minmax(130px, .55fr) minmax(140px, 1fr) minmax(190px, .85fr);
  gap: 12px;
  align-items: center;
}

.edm-user-profile__preference-row > div:first-child {
  min-width: 0;
}

.edm-user-profile__preference-row strong,
.edm-user-profile__preference-row span {
  display: block;
  min-width: 0;
}

.edm-user-profile__preference-row strong {
  color: var(--edm-user-profile-accent);
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.edm-user-profile__preference-row span {
  margin-top: 4px;
  color: var(--edm-user-profile-text);
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.25;
}

.edm-user-profile__preference-row em {
  color: var(--edm-user-profile-muted);
  font-size: .8rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.edm-user-profile__looking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.edm-user-profile__look {
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  color: var(--edm-user-profile-accent);
  background: var(--edm-user-profile-accent-soft);
  font-weight: 900;
  line-height: 1.25;
}

.edm-user-profile__style-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.edm-user-profile__style-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--edm-user-profile-accent);
  background: var(--edm-user-profile-accent-soft);
  font-size: .875rem;
  font-weight: 950;
  line-height: 1;
}

.edm-user-profile__pills,
.edm-user-profile__selector-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.edm-user-profile__pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--edm-user-profile-accent);
  background: var(--edm-user-profile-accent-soft);
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.1;
}

.edm-user-profile__dna-actions-card {
  align-content: start;
}

.edm-user-profile__dna-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.edm-user-profile__search {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 18px;
  background: var(--edm-user-profile-surface);
  color: var(--edm-user-profile-text);
  font: inherit;
}

.edm-user-profile__option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.edm-user-profile__option-grid--single,
.edm-user-profile__flow-grid {
  grid-template-columns: 1fr;
}

.edm-user-profile__option-card strong,
.edm-user-profile__flow-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--edm-user-profile-text);
  font-weight: 900;
}

.edm-user-profile__option-card span,
.edm-user-profile__flow-card span {
  display: block;
  color: var(--edm-user-profile-muted);
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.45;
}

.edm-user-profile__flow-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.edm-user-profile__connector {
  color: var(--edm-user-profile-accent);
  font-size: 1.375rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.edm-user-profile__section-grid,
.edm-user-profile__owner-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.edm-user-profile__mini-card strong,
.edm-user-profile__owner-tool strong {
  display: block;
  margin-bottom: 5px;
  color: var(--edm-user-profile-text);
  font-weight: 900;
}

.edm-user-profile__mini-card span,
.edm-user-profile__owner-tool span {
  display: block;
  color: var(--edm-user-profile-muted);
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.45;
}

.edm-user-profile__manage-centre {
  display: grid;
  gap: 18px;
}

.edm-user-profile__setup-strip {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--edm-user-profile-accent) 16%, transparent), transparent 34%),
    var(--edm-user-profile-surface);
}

.edm-user-profile__setup-strip strong,
.edm-user-profile__setup-strip em {
  display: block;
  color: var(--edm-user-profile-text);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.edm-user-profile__setup-strip span {
  color: var(--edm-user-profile-muted);
  font-size: .8rem;
  font-weight: 850;
}

.edm-user-profile__setup-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--edm-user-profile-accent-soft);
}

.edm-user-profile__setup-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--edm-user-profile-accent), #ec4899);
}

.edm-user-profile__manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edm-user-profile__manage-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--edm-user-profile-surface) 82%, transparent);
  box-shadow: var(--edm-user-profile-shadow-soft);
}

.edm-user-profile__manage-card h3 {
  margin: 4px 0 8px;
  color: var(--edm-user-profile-text);
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

.edm-user-profile__manage-card p {
  margin: 0;
  color: var(--edm-user-profile-muted);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
}

.edm-user-profile__manage-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.edm-user-profile__manage-card-foot span {
  color: var(--edm-user-profile-accent);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.edm-user-profile__editor-card {
  display: grid;
  gap: 18px;
}

.edm-user-profile__editor-form {
  display: grid;
  gap: 18px;
}

.edm-user-profile__editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.edm-user-profile__editor-media,
.edm-user-profile__editor-fields,
.edm-user-profile__editor-dna {
  display: grid;
  gap: 14px;
}

.edm-user-profile__editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edm-user-profile__editor-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--edm-user-profile-text);
  font-size: .8125rem;
  font-weight: 950;
}

.edm-user-profile__editor-field--full {
  grid-column: 1 / -1;
}

.edm-user-profile__editor-field input,
.edm-user-profile__editor-field select,
.edm-user-profile__editor-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 16px;
  background: var(--edm-user-profile-surface);
  color: var(--edm-user-profile-text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.4;
  padding: 12px 14px;
  outline: none;
}

.edm-user-profile__editor-field select {
  border-radius: 999px;
  cursor: pointer;
}

.edm-user-profile__editor-field textarea {
  min-height: 132px;
  resize: vertical;
}

.edm-user-profile__editor-field input:focus,
.edm-user-profile__editor-field select:focus,
.edm-user-profile__editor-field textarea:focus {
  border-color: color-mix(in srgb, var(--edm-user-profile-accent) 54%, var(--edm-user-profile-border));
  box-shadow: 0 0 0 4px var(--edm-user-profile-accent-soft);
}

.edm-user-profile__editor-field input:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.edm-user-profile__editor-dna {
  padding: 16px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--edm-user-profile-surface) 78%, transparent);
}

.edm-user-profile__editor-style-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-user-profile__editor-style {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  cursor: pointer;
}

.edm-user-profile__editor-style input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.edm-user-profile__editor-style span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  background: var(--edm-user-profile-surface);
  color: var(--edm-user-profile-muted);
  font-size: .8125rem;
  font-weight: 900;
  line-height: 1.1;
}

.edm-user-profile__editor-style input:checked + span {
  border-color: transparent;
  background: var(--edm-user-profile-accent);
  color: #fff;
}

.edm-user-profile__editor-style input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--edm-user-profile-accent-soft);
}

.edm-user-profile__editor-save {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.edm-user-profile__editor-save .edm-profile-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--edm-user-profile-accent);
  font-weight: 900;
}

.edm-user-profile__editor-card .edm-upload-card,
.edm-profile-studio .edm-upload-card {
  color: var(--edm-user-profile-text);
}

.edm-user-profile__editor-card .edm-upload-card__frame,
.edm-profile-studio .edm-upload-card__frame {
  border-color: var(--edm-user-profile-border);
  background:
    radial-gradient(circle at 18% 15%, color-mix(in srgb, var(--edm-user-profile-accent) 16%, transparent), transparent 34%),
    var(--edm-user-profile-surface);
  box-shadow: var(--edm-user-profile-shadow-soft);
}

.edm-user-profile__editor-card .edm-upload-card__empty,
.edm-user-profile__editor-card .edm-upload-card small[data-edm-profile-file-label],
.edm-profile-studio .edm-upload-card__empty,
.edm-profile-studio .edm-upload-card small[data-edm-profile-file-label] {
  color: var(--edm-user-profile-muted);
}

.edm-user-profile__editor-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--edm-user-profile-accent);
  font-size: 3rem;
  font-weight: 950;
}

.edm-profile-studio {
  display: grid;
  gap: 20px;
}

.edm-profile-studio__header,
.edm-profile-studio__panel,
.edm-profile-studio__preview {
  border: 1px solid var(--edm-user-profile-border);
  background: var(--edm-user-profile-glass);
  box-shadow: var(--edm-user-profile-shadow-soft);
}

.edm-profile-studio__header {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  border-radius: 28px;
}

.edm-profile-studio__header h1 {
  max-width: 840px;
  margin: 5px 0 8px;
  color: var(--edm-user-profile-text);
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: .95;
  font-weight: 950;
  letter-spacing: 0;
}

.edm-profile-studio__header p {
  max-width: 760px;
  margin: 0;
  color: var(--edm-user-profile-muted);
  font-weight: 800;
  line-height: 1.55;
}

.edm-profile-studio__layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.edm-profile-studio__panel,
.edm-profile-studio__preview {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
}

.edm-profile-studio__panel {
  position: static;
}

.edm-profile-studio__section--basics .edm-user-profile__editor-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edm-profile-studio__section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--edm-user-profile-surface) 78%, transparent);
}

.edm-profile-studio__section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.edm-profile-studio__section-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--edm-user-profile-accent-soft);
  color: var(--edm-user-profile-accent);
  font-size: .78rem;
  font-weight: 950;
}

.edm-profile-studio__section-head h2 {
  margin: 0 0 4px;
  color: var(--edm-user-profile-text);
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 950;
}

.edm-profile-studio__section-head p,
.edm-profile-studio__handoff {
  margin: 0;
  color: var(--edm-user-profile-muted);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.45;
}

.edm-profile-studio__handoff {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.edm-profile-studio__handoff strong {
  color: var(--edm-user-profile-text);
  font-weight: 900;
}

.edm-profile-studio__dna-grid {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.edm-profile-studio__dna-controls,
.edm-profile-studio__dna-preview,
.edm-profile-studio__choice-group {
  display: grid;
  gap: 12px;
}

.edm-profile-studio__dna-preview {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--edm-user-profile-accent) 12%, transparent), transparent 34%),
    color-mix(in srgb, var(--edm-user-profile-surface) 82%, transparent);
}

.edm-profile-studio__choice-group > span {
  color: var(--edm-user-profile-text);
  font-size: .8125rem;
  font-weight: 950;
}

.edm-profile-studio__choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-profile-studio__save {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.edm-profile-studio__save .edm-profile-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--edm-user-profile-accent);
  font-weight: 900;
}

.edm-profile-studio__preview-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.edm-profile-studio__preview-head span {
  color: var(--edm-user-profile-muted);
  font-size: .8rem;
  font-weight: 850;
}

.edm-profile-studio__hero-preview {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(420px, 42vw, 560px);
  margin: 0;
  padding: 18px;
}

.edm-profile-studio__hero-preview .edm-user-profile__hero-inner {
  z-index: 2;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 20px;
}

.edm-profile-studio__hero-preview .edm-user-profile__avatar {
  width: 132px;
  height: 132px;
  border-radius: 32px;
}

.edm-profile-studio__hero-preview h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.edm-profile-studio__banner-picker {
  position: absolute;
  inset: 18px;
  z-index: 6;
  display: block;
  border-radius: calc(var(--edm-user-profile-radius-xl) - 18px);
  cursor: pointer;
  pointer-events: none;
}

.edm-profile-studio__banner-picker > span,
.edm-profile-studio__banner-picker small {
  position: absolute;
  right: 16px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(18, 14, 31, .46);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.edm-profile-studio__banner-picker > span {
  top: 16px;
  padding: 8px 14px;
  font-size: .86rem;
  font-weight: 950;
}

.edm-profile-studio__banner-picker small {
  top: 60px;
  max-width: min(280px, calc(100% - 32px));
  padding: 7px 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .74rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.edm-profile-studio__banner-picker:hover small,
.edm-profile-studio__banner-picker:focus-within small {
  opacity: 1;
  transform: translateY(0);
}

.edm-profile-studio__banner-picker:hover > span,
.edm-profile-studio__banner-picker:focus-within > span {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(18, 14, 31, .62);
}

.edm-profile-studio__avatar-picker {
  cursor: pointer;
}

.edm-profile-studio__avatar-picker::after {
  content: "Change avatar";
  position: absolute;
  inset: auto 10px 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(18, 14, 31, .62);
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.edm-profile-studio__avatar-picker:hover::after,
.edm-profile-studio__avatar-picker:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.edm-profile-studio__avatar-picker small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.edm-profile-studio__preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--edm-user-profile-surface) 86%, transparent);
}

.edm-profile-studio__preview-card > p:not(.edm-user-profile__kicker) {
  margin: 0;
  color: var(--edm-user-profile-muted);
  font-weight: 750;
  line-height: 1.55;
}

.edm-user-profile__composer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .05), transparent 48%),
    var(--edm-user-profile-glass);
  box-shadow: var(--edm-user-profile-shadow-soft);
}

.edm-user-profile__mini-avatar,
.edm-user-profile .edm-feed-head .edm-avatar,
.edm-user-profile__friend-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--edm-user-profile-primary-bg);
  color: var(--edm-user-profile-primary-text);
  font-weight: 950;
}

.edm-user-profile__mini-avatar img,
.edm-user-profile .edm-feed-head .edm-avatar img,
.edm-user-profile__friend-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.edm-user-profile__composer textarea {
  width: 100%;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  color: var(--edm-user-profile-text);
  font: inherit;
  resize: vertical;
  box-shadow: 0 10px 24px rgba(48, 31, 84, .05);
}

.edm-user-profile__composer-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.edm-user-profile__activity-wall {
  display: grid;
  gap: 18px;
  width: 100%;
}

.edm-user-profile .edm-feed-item {
  display: block;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .04), transparent 46%),
    var(--edm-user-profile-surface);
  box-shadow: var(--edm-user-profile-shadow-soft);
}

.edm-user-profile .edm-feed-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.edm-user-profile .edm-feed-author a,
.edm-user-profile .edm-feed-author strong {
  color: var(--edm-user-profile-text);
  font-size: 1.0625rem;
  font-weight: 900;
}

.edm-user-profile .edm-feed-author span,
.edm-user-profile .edm-feed-stats {
  color: var(--edm-user-profile-muted);
  font-size: .8125rem;
  font-weight: 800;
}

.edm-user-profile .edm-feed-text {
  max-width: 72ch;
  color: color-mix(in srgb, var(--edm-user-profile-text) 74%, var(--edm-user-profile-muted));
  font-size: .96875rem;
  line-height: 1.6;
}

.edm-user-profile .edm-feed-text p {
  margin: 0;
}

.edm-user-profile .edm-feed-media {
  display: grid;
  place-items: center;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
}

.edm-user-profile .edm-feed-media img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  display: block;
  margin-inline: auto;
  object-fit: contain;
}

.edm-user-profile .edm-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--edm-user-profile-border);
}

.edm-user-profile .edm-feed-actions button,
.edm-user-profile .edm-feed-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  background: var(--edm-user-profile-surface);
  color: var(--edm-user-profile-muted);
  font: inherit;
  font-size: .8125rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(48, 31, 84, .05);
}

.edm-user-profile .edm-feed-actions button:hover,
.edm-user-profile .edm-feed-actions button.is-active,
.edm-user-profile .edm-feed-action:hover,
.edm-user-profile .edm-feed-action.is-active {
  border-color: rgba(109, 40, 217, .24);
  background: var(--edm-user-profile-accent-soft);
  color: var(--edm-user-profile-accent);
}

.edm-user-profile .edm-feed-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--edm-user-profile-border);
}

.edm-user-profile .edm-replies {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--edm-user-profile-border);
}

.edm-user-profile .edm-replies[hidden] {
  display: none;
}

.edm-user-profile .edm-reply-list {
  display: grid;
  gap: 12px;
}

.edm-user-profile .edm-reply {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.edm-user-profile .edm-reply .edm-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 14px;
}

.edm-user-profile .edm-reply-body {
  padding: 12px 14px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .64);
  color: var(--edm-user-profile-text);
  box-shadow: 0 12px 26px rgba(48, 31, 84, .06);
}

.edm-user-profile .edm-reply-body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--edm-user-profile-text);
  font-size: .875rem;
  font-weight: 900;
}

.edm-user-profile .edm-reply-body strong span {
  color: var(--edm-user-profile-muted);
  font-size: .75rem;
  font-weight: 800;
}

.edm-user-profile .edm-reply-body p {
  color: color-mix(in srgb, var(--edm-user-profile-text) 72%, var(--edm-user-profile-muted));
  font-size: .90625rem;
  line-height: 1.55;
}

.edm-user-profile .edm-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.edm-user-profile .edm-activity-input {
  min-height: 44px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--edm-user-profile-text);
  box-shadow: none;
}

.edm-user-profile .edm-reply-form .edm-btn-primary {
  min-height: 44px;
  border-color: var(--edm-user-profile-primary-bg);
  background: var(--edm-user-profile-primary-bg);
  color: var(--edm-user-profile-primary-text) !important;
}

.edm-user-profile__event-list {
  display: grid;
  gap: 18px;
}

.edm-user-profile__event-card {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 286px;
  overflow: hidden;
  padding: 0;
}

.edm-user-profile__event-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.edm-user-profile__event-media {
  position: relative;
  display: grid;
  min-height: 286px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(17, 12, 32, .04), rgba(17, 12, 32, .58)),
    var(--edm-user-profile-event-image, linear-gradient(135deg, #7c3aed, #ec4899));
  background-position: center;
  background-size: cover;
  color: #fff;
  text-decoration: none;
}

.edm-user-profile__event-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 12, 32, .72));
  pointer-events: none;
}

.edm-user-profile__event-media > span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 28px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 2.3rem;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(17, 12, 32, .24);
}

.edm-user-profile__event-media > strong {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(17, 12, 32, .58);
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.edm-user-profile__event-body {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: 24px;
}

.edm-user-profile__event-topline,
.edm-user-profile__event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.edm-user-profile__event-topline span,
.edm-user-profile__event-chips span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 999px;
  background: var(--edm-user-profile-primary-soft);
  color: var(--edm-user-profile-primary-bg);
  font-size: .75rem;
  font-weight: 950;
}

.edm-user-profile__event-chips span {
  background: rgba(255, 255, 255, .52);
  color: var(--edm-user-profile-text);
}

.edm-user-profile__event-body h3 {
  margin: 0;
  color: var(--edm-user-profile-text);
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  font-weight: 950;
  line-height: .98;
  letter-spacing: 0;
}

.edm-user-profile__event-body h3 a {
  color: inherit;
  text-decoration: none;
}

.edm-user-profile__event-body h3 a:hover,
.edm-user-profile__event-body h3 a:focus-visible {
  color: var(--edm-user-profile-primary-bg);
}

.edm-user-profile__event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.edm-user-profile__event-meta div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--edm-user-profile-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}

.edm-user-profile__event-meta dt {
  margin: 0 0 5px;
  color: var(--edm-user-profile-primary-bg);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.edm-user-profile__event-meta dd {
  margin: 0;
  color: var(--edm-user-profile-text);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.35;
}

.edm-user-profile__event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.edm-user-profile__event-save {
  --edm-save-size: 46px;
}

.edm-user-profile__event-going {
  min-height: 46px;
}

.edm-user-profile__event-img {
  width: 96px;
  height: 78px;
  display: block;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .16), rgba(236, 72, 153, .12)),
    var(--edm-user-profile-event-image, linear-gradient(135deg, #7c3aed, #ec4899));
  background-position: center;
  background-size: cover;
}

.edm-user-profile__row-title {
  display: block;
  color: var(--edm-user-profile-text);
  font-weight: 950;
  line-height: 1.2;
}

.edm-user-profile__row-kicker {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--edm-user-profile-primary-soft);
  color: var(--edm-user-profile-primary-bg);
  font-size: .72rem;
  font-weight: 900;
}

.edm-user-profile__row-meta,
.edm-user-profile__meta {
  display: block;
  margin-top: 4px;
  color: var(--edm-user-profile-muted);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.45;
}

.edm-user-profile__friend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.edm-user-profile__friend-card {
  display: block;
  min-width: 0;
  padding: 14px;
  color: var(--edm-user-profile-text);
  text-align: center;
}

.edm-user-profile__friend-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 20px;
}

.edm-user-profile__friend-card strong {
  display: block;
  color: var(--edm-user-profile-text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.edm-user-profile__private-note,
.edm-user-profile__empty-note {
  padding: 16px;
  border-radius: 22px;
  background: var(--edm-user-profile-accent-soft);
  color: var(--edm-user-profile-muted);
  font-weight: 750;
  line-height: 1.6;
}

.edm-user-profile__empty-note {
  border: 1px dashed rgba(109, 40, 217, .22);
  text-align: center;
}

html[data-ed-theme="dark"] .edm-user-profile,
html[data-theme="dark"] .edm-user-profile,
body.dark .edm-user-profile,
body.dark-mode .edm-user-profile,
body.ed-dark-mode .edm-user-profile {
  --edm-user-profile-bg: #0e111a;
  --edm-user-profile-bg-soft: #141827;
  --edm-user-profile-surface: #1f2436;
  --edm-user-profile-glass: rgba(31, 36, 54, .84);
  --edm-user-profile-text: #f8f4ff;
  --edm-user-profile-muted: #c5cad8;
  --edm-user-profile-border: rgba(255, 255, 255, .12);
  --edm-user-profile-accent: #a78bfa;
  --edm-user-profile-accent-soft: rgba(255, 255, 255, .08);
  --edm-user-profile-primary-soft: rgba(167, 139, 250, .14);
  --edm-user-profile-primary-bg: #f8f4ff;
  --edm-user-profile-primary-text: #171321;
  --edm-user-profile-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --edm-user-profile-shadow-soft: 0 14px 36px rgba(0, 0, 0, .26);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, .18), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, .10), transparent 34rem),
    linear-gradient(180deg, var(--edm-user-profile-bg-soft), var(--edm-user-profile-bg) 42%, #111523 100%);
  color-scheme: dark;
}

html[data-ed-theme="dark"] .edm-user-profile .edm-user-profile__composer textarea,
html[data-ed-theme="dark"] .edm-user-profile .edm-user-profile__editor-field input,
html[data-ed-theme="dark"] .edm-user-profile .edm-user-profile__editor-field textarea,
html[data-ed-theme="dark"] .edm-user-profile .edm-feed-media,
html[data-ed-theme="dark"] .edm-user-profile .edm-reply-body,
html[data-ed-theme="dark"] .edm-user-profile .edm-activity-input,
html[data-theme="dark"] .edm-user-profile .edm-user-profile__composer textarea,
html[data-theme="dark"] .edm-user-profile .edm-user-profile__editor-field input,
html[data-theme="dark"] .edm-user-profile .edm-user-profile__editor-field textarea,
html[data-theme="dark"] .edm-user-profile .edm-feed-media,
html[data-theme="dark"] .edm-user-profile .edm-reply-body,
html[data-theme="dark"] .edm-user-profile .edm-activity-input,
body.dark .edm-user-profile .edm-user-profile__composer textarea,
body.dark .edm-user-profile .edm-user-profile__editor-field input,
body.dark .edm-user-profile .edm-user-profile__editor-field textarea,
body.dark .edm-user-profile .edm-feed-media,
body.dark .edm-user-profile .edm-reply-body,
body.dark .edm-user-profile .edm-activity-input,
body.dark-mode .edm-user-profile .edm-user-profile__composer textarea,
body.dark-mode .edm-user-profile .edm-user-profile__editor-field input,
body.dark-mode .edm-user-profile .edm-user-profile__editor-field textarea,
body.dark-mode .edm-user-profile .edm-feed-media,
body.dark-mode .edm-user-profile .edm-reply-body,
body.dark-mode .edm-user-profile .edm-activity-input,
body.ed-dark-mode .edm-user-profile .edm-user-profile__composer textarea,
body.ed-dark-mode .edm-user-profile .edm-user-profile__editor-field input,
body.ed-dark-mode .edm-user-profile .edm-user-profile__editor-field textarea,
body.ed-dark-mode .edm-user-profile .edm-feed-media,
body.ed-dark-mode .edm-user-profile .edm-reply-body,
body.ed-dark-mode .edm-user-profile .edm-activity-input {
  background: rgba(255, 255, 255, .06);
  color: var(--edm-user-profile-text);
}

html[data-ed-theme="dark"] .edm-user-profile .edm-user-profile__event-meta div,
html[data-ed-theme="dark"] .edm-user-profile .edm-user-profile__event-chips span,
html[data-theme="dark"] .edm-user-profile .edm-user-profile__event-meta div,
html[data-theme="dark"] .edm-user-profile .edm-user-profile__event-chips span,
body.dark .edm-user-profile .edm-user-profile__event-meta div,
body.dark .edm-user-profile .edm-user-profile__event-chips span,
body.dark-mode .edm-user-profile .edm-user-profile__event-meta div,
body.dark-mode .edm-user-profile .edm-user-profile__event-chips span,
body.ed-dark-mode .edm-user-profile .edm-user-profile__event-meta div,
body.ed-dark-mode .edm-user-profile .edm-user-profile__event-chips span {
  background: rgba(255, 255, 255, .06);
}

html[data-ed-theme="dark"] .edm-user-profile .edm-user-profile__event-topline span,
html[data-theme="dark"] .edm-user-profile .edm-user-profile__event-topline span,
body.dark .edm-user-profile .edm-user-profile__event-topline span,
body.dark-mode .edm-user-profile .edm-user-profile__event-topline span,
body.ed-dark-mode .edm-user-profile .edm-user-profile__event-topline span {
  background: rgba(167, 139, 250, .14);
  color: var(--edm-user-profile-accent);
}

html[data-ed-theme="dark"] .edm-user-profile .edm-feed-actions button,
html[data-ed-theme="dark"] .edm-user-profile .edm-feed-action,
html[data-theme="dark"] .edm-user-profile .edm-feed-actions button,
html[data-theme="dark"] .edm-user-profile .edm-feed-action,
body.dark .edm-user-profile .edm-feed-actions button,
body.dark .edm-user-profile .edm-feed-action,
body.dark-mode .edm-user-profile .edm-feed-actions button,
body.dark-mode .edm-user-profile .edm-feed-action,
body.ed-dark-mode .edm-user-profile .edm-feed-actions button,
body.ed-dark-mode .edm-user-profile .edm-feed-action {
  background: rgba(255, 255, 255, .06);
  color: var(--edm-user-profile-muted);
  box-shadow: none;
}

html[data-ed-theme="dark"] .edm-user-profile .edm-feed-actions button:hover,
html[data-ed-theme="dark"] .edm-user-profile .edm-feed-actions button.is-active,
html[data-theme="dark"] .edm-user-profile .edm-feed-actions button:hover,
html[data-theme="dark"] .edm-user-profile .edm-feed-actions button.is-active,
body.dark .edm-user-profile .edm-feed-actions button:hover,
body.dark .edm-user-profile .edm-feed-actions button.is-active,
body.dark-mode .edm-user-profile .edm-feed-actions button:hover,
body.dark-mode .edm-user-profile .edm-feed-actions button.is-active,
body.ed-dark-mode .edm-user-profile .edm-feed-actions button:hover,
body.ed-dark-mode .edm-user-profile .edm-feed-actions button.is-active {
  background: rgba(167, 139, 250, .14);
  color: var(--edm-user-profile-accent);
}

@media (max-width: 900px) {
  .edm-user-profile {
    width: min(100% - 18px, var(--edm-user-profile-max));
    padding-top: 10px;
  }

  .edm-user-profile__owner-bar {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .edm-user-profile__hero {
    min-height: clamp(280px, 46vw, 380px);
    padding: 18px;
    border-radius: 30px;
  }

  .edm-user-profile__hero--visitor {
    min-height: auto;
  }

  .edm-user-profile__hero-inner,
  .edm-user-profile__dna-grid,
	  .edm-user-profile__dna-system-grid,
	  .edm-user-profile__section-grid,
	  .edm-user-profile__owner-panel,
	  .edm-user-profile__manage-grid,
	  .edm-user-profile__editor-grid,
	  .edm-profile-studio__dna-grid,
	  .edm-profile-studio__layout,
	  .edm-user-profile__option-grid {
	    grid-template-columns: 1fr;
	  }

	  .edm-profile-studio__panel {
	    position: static;
	  }

  .edm-user-profile__hero-inner {
    align-self: end;
    gap: 14px;
    padding: 18px;
  }

  .edm-user-profile__friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edm-user-profile__hero h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 760px) {
  .edm-user-profile {
    gap: 14px;
    width: min(100% - 12px, var(--edm-user-profile-max));
    margin-top: 10px;
  }

  .edm-user-profile__nav {
    position: static;
    top: auto;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 4px;
    border-radius: 19px;
    background: color-mix(in srgb, var(--edm-user-profile-surface) 92%, var(--edm-user-profile-bg-soft));
    box-shadow: inset 0 0 0 1px var(--edm-user-profile-border), 0 10px 28px rgba(48, 31, 84, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  .edm-user-profile__nav.is-stuck {
    border-color: var(--edm-user-profile-border);
    background: color-mix(in srgb, var(--edm-user-profile-surface) 92%, var(--edm-user-profile-bg-soft));
    box-shadow: inset 0 0 0 1px var(--edm-user-profile-border), 0 10px 28px rgba(48, 31, 84, .08);
  }

  .edm-user-profile__nav a {
    flex: initial;
    min-width: 0;
    min-height: 38px;
    padding: 7px 4px;
    border-radius: 15px;
    font-size: .72rem;
    font-weight: 900;
    white-space: normal;
    text-align: center;
  }

  .edm-user-profile__nav-label--full {
    display: none;
  }

  .edm-user-profile__nav-label--mobile {
    display: inline;
  }
}

@media (max-width: 620px) {
  .edm-user-profile__hero {
    min-height: clamp(190px, 56vw, 260px);
    padding: 10px;
    border-radius: 24px;
  }

  .edm-user-profile__hero-inner {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 21px;
  }

  .edm-user-profile__avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .edm-user-profile__avatar span {
    border-radius: 17px;
    font-size: 1.45rem;
  }

  .edm-user-profile__hero h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.35rem);
    line-height: 1;
  }

  .edm-user-profile__hero p[data-edm-profile-bio],
  .ed-visitor-profile-hero__bio,
  .ed-visitor-profile-hero__connection-card {
    display: none;
  }

  .edm-user-profile__hero-pills,
  .edm-user-profile__hero-action-row {
    grid-column: 1 / -1;
  }

  .edm-user-profile__hero-action-row {
    gap: 6px;
    margin-top: 10px;
  }

  .edm-user-profile__hero-action-row .edm-user-profile__btn,
  .edm-user-profile__hero--visitor .edm-profile-actions .edm-btn {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: .78rem;
  }

  .ed-visitor-profile-hero {
    overflow: hidden;
    border-radius: 24px;
  }

  .ed-visitor-profile-hero::after {
    inset: 10px;
    border-radius: 20px;
  }

  .ed-visitor-profile-hero__inner {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: clamp(190px, 56vw, 260px);
    padding: 12px;
  }

  .ed-visitor-profile-hero__avatar {
    align-self: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .ed-visitor-profile-hero__avatar span {
    border-radius: 17px;
    font-size: 1.45rem;
  }

  .ed-visitor-profile-hero h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.35rem);
    line-height: 1;
  }

  .ed-visitor-profile-hero__actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ed-visitor-profile-hero__actions::-webkit-scrollbar {
    display: none;
  }

  .ed-visitor-profile-hero__btn,
  .ed-visitor-profile-hero__more summary {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: .78rem;
  }

  .ed-visitor-profile-hero__btn--icon,
  .ed-visitor-profile-hero__more summary {
    width: 36px;
    padding: 0;
  }

  .edm-user-profile__hero-action-row > .edm-user-profile__btn,
  .edm-user-profile__hero-action-row > .edm-profile-actions,
  .edm-user-profile__hero--visitor .edm-profile-actions .edm-btn {
    flex: 1 1 auto;
  }

  .edm-user-profile__hero--visitor .edm-profile-more {
    margin-left: 0;
  }

  .edm-user-profile__card {
    padding: 20px;
  }

  .edm-user-profile__card-head {
    align-items: flex-start;
    flex-direction: column;
  }

	  .edm-user-profile__looking-grid,
	  .edm-user-profile__editor-field-grid,
	  .edm-user-profile__dna-row,
	  .edm-user-profile__preference-row,
	  .edm-user-profile__style-row,
	  .edm-user-profile__event-card,
	  .edm-user-profile__composer,
	  .edm-user-profile .edm-feed-head {
	    grid-template-columns: 1fr;
	  }

	  .edm-user-profile__setup-strip,
	  .edm-profile-studio__header,
	  .edm-profile-studio__hero-preview .edm-user-profile__hero-inner {
	    grid-template-columns: 1fr;
	    align-items: start;
	  }

	  .edm-profile-studio__header {
	    display: grid;
	  }

	  .edm-profile-studio__banner-picker {
	    inset: 12px;
	  }

	  .edm-profile-studio__banner-picker > span {
	    top: 12px;
	    right: 12px;
	  }

	  .edm-profile-studio__banner-picker small {
	    display: none;
	  }

	  .edm-profile-studio__hero-preview {
	    min-height: auto;
	  }

  .edm-user-profile__event-img {
    width: 100%;
    height: 160px;
  }

  .edm-user-profile__event-card {
    min-height: 0;
  }

  .edm-user-profile__event-media {
    min-height: 220px;
    border-radius: 0;
  }

  .edm-user-profile__event-body {
    padding: 20px;
  }

  .edm-user-profile__event-meta {
    grid-template-columns: 1fr;
  }

  .edm-user-profile__event-main {
    grid-template-columns: 1fr;
  }

  .edm-user-profile__event-actions {
    justify-content: flex-start;
  }

  .edm-user-profile .edm-feed-item {
    padding: 14px;
  }

  .edm-user-profile .edm-feed-head {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .edm-user-profile .edm-feed-head .edm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .edm-user-profile .edm-reply-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .edm-user-profile__hero-inner,
  .ed-visitor-profile-hero__inner {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .edm-user-profile__avatar,
  .ed-visitor-profile-hero__avatar {
    width: 64px;
    height: 64px;
  }
}

/* Messaging photo attachments. */
.edm-photo-note-panel {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(109, 61, 245, .2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .1), rgba(31, 118, 110, .07)),
    var(--edm-message-surface);
  box-shadow: 0 12px 28px rgba(48, 31, 84, .09);
  overflow: hidden;
}

.edm-photo-note-panel[hidden],
.edm-photo-note-panel__preview[hidden] {
  display: none !important;
}

.edm-photo-note-panel__preview {
  width: 84px;
  height: 68px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--edm-message-border);
  border-radius: 12px;
  background: rgba(23, 19, 33, .08);
}

.edm-photo-note-panel__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-photo-note-panel__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.edm-photo-note-panel__copy strong {
  color: var(--edm-message-text);
  font-size: .84rem;
  font-weight: 950;
  line-height: 1.15;
}

.edm-photo-note-panel__copy small {
  overflow: hidden;
  color: var(--edm-message-muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-photo-note-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.edm-photo-note-panel__actions .edm-btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: .74rem;
}

.edm-chat-form.is-photo-message-active .edm-chat-tools,
.edm-chat-form.is-photo-message-active .edm-chat-form-main {
  opacity: .46;
  pointer-events: none;
}

.edm-chat-form.is-uploading-photo-message .edm-photo-note-panel {
  background-image: linear-gradient(110deg, transparent 0%, rgba(109, 61, 245, .08) 38%, rgba(255, 255, 255, .4) 50%, rgba(31, 118, 110, .08) 62%, transparent 100%);
  background-size: 220% 100%;
  animation: edm-loading-shimmer 1.1s linear infinite;
}

.edm-messages-page .edm-message-stack.is-photo,
.edm-messages-page .edm-message-stack.is-photo.is-mine {
  width: min(520px, 72%);
  max-width: min(520px, 72%);
}

.edm-messages-page .edm-message-row .edm-message-stack.is-photo {
  width: min(520px, 100%);
  max-width: min(520px, 100%);
}

.edm-messages-page .edm-message.is-photo,
.edm-messages-page .edm-message.is-photo.is-mine {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--edm-message-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
  color: var(--edm-message-text);
  box-shadow: 0 14px 34px rgba(48, 31, 84, .12);
}

.edm-message-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(23, 19, 33, .94);
  color: #fff;
  cursor: zoom-in;
}

.edm-message-photo img {
  display: block;
  width: 100%;
  max-height: min(56vh, 520px);
  object-fit: contain;
  background: rgba(23, 19, 33, .94);
}

.edm-message-photo > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(18, 15, 26, .66);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.edm-message-photo:hover > span,
.edm-message-photo:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.edm-message-photo:focus-visible {
  outline: 3px solid rgba(109, 61, 245, .36);
  outline-offset: -3px;
}

.edm-messages-page .edm-message-stack.is-photo .edm-message-meta {
  padding-inline: 8px;
}

html.edm-photo-viewer-open,
body.edm-photo-viewer-open {
  overflow: hidden !important;
}

.edm-message-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(11, 9, 16, .92);
  backdrop-filter: blur(12px);
}

.edm-message-photo-viewer[hidden] {
  display: none !important;
}

.edm-message-photo-viewer img {
  display: block;
  max-width: 92vw;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.edm-message-photo-viewer > button {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 1;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(18, 15, 26, .72);
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 760px) {
  .edm-messages-page .edm-message-stack.is-photo,
  .edm-messages-page .edm-message-stack.is-photo.is-mine {
    width: min(520px, 88%);
    max-width: min(520px, 88%);
  }

  .edm-messages-page .edm-message-row .edm-message-stack.is-photo {
    width: min(520px, calc(100% - 48px));
    max-width: min(520px, calc(100% - 48px));
  }
}

@media (max-width: 520px) {
  .edm-photo-note-panel {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .edm-photo-note-panel__preview {
    width: 68px;
    height: 58px;
  }

  .edm-photo-note-panel__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edm-photo-note-panel__actions .edm-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
  }

  .edm-message-photo img {
    max-height: 52dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edm-chat-form.is-uploading-photo-message .edm-photo-note-panel {
    animation: none;
  }
}

/* Reimagined account settings page */

body.ed-member-settings-page {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .12), transparent 34rem),
    linear-gradient(225deg, rgba(236, 72, 153, .09), transparent 34rem),
    linear-gradient(180deg, #fbf8ff 0%, #f7f3ff 46%, #ffffff 100%);
}

.edm-account-settings-page {
  --edm-account-settings-max: 1220px;
  --edm-account-settings-bg: #f7f3ff;
  --edm-account-settings-bg-soft: #fbf8ff;
  --edm-account-settings-surface: #ffffff;
  --edm-account-settings-glass: rgba(255, 255, 255, .86);
  --edm-account-settings-text: #171321;
  --edm-account-settings-muted: #6f687a;
  --edm-account-settings-border: rgba(23, 19, 33, .12);
  --edm-account-settings-accent: #6d28d9;
  --edm-account-settings-accent-soft: rgba(109, 40, 217, .1);
  --edm-account-settings-primary: #24153f;
  --edm-account-settings-danger: #dc2626;
  --edm-account-settings-success: #16a34a;
  --edm-account-settings-shadow: 0 24px 70px rgba(48, 31, 84, .14);
  --edm-account-settings-shadow-soft: 0 14px 36px rgba(48, 31, 84, .09);
  width: min(var(--edm-account-settings-max), calc(100% - 28px));
  max-width: var(--edm-account-settings-max);
  margin: 0 auto 80px;
  padding: 24px 0 80px;
  display: grid;
  gap: 22px;
  color: var(--edm-account-settings-text);
  font-family: var(--edm-font, Inter, Arial, sans-serif);
}

.edm-account-settings-page a {
  color: inherit;
  text-decoration: none;
}

.edm-account-settings-page button,
.edm-account-settings-page input,
.edm-account-settings-page textarea,
.edm-account-settings-page select {
  font: inherit;
}

.edm-account-settings-page__hero {
  min-height: 330px;
  border-radius: 36px;
  padding: 38px;
  display: grid;
  align-items: end;
  color: #fff;
  box-shadow: var(--edm-account-settings-shadow);
  background:
    linear-gradient(135deg, rgba(18, 12, 31, .97), rgba(91, 33, 182, .9)),
    linear-gradient(90deg, rgba(236, 72, 153, .26), transparent 62%);
}

.edm-account-settings-page__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .82rem;
  font-weight: 900;
}

.edm-account-settings-page__hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 4.5rem;
  line-height: .95;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-account-settings-page__hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 1.06rem;
  line-height: 1.65;
  font-weight: 650;
}

.edm-account-settings-page__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.edm-account-settings-page__nav {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 28px;
  background: var(--edm-account-settings-glass);
  box-shadow: var(--edm-account-settings-shadow-soft);
  backdrop-filter: blur(20px);
  z-index: 2;
}

body.admin-bar .edm-account-settings-page__nav {
  top: 46px;
}

.edm-account-settings-page__nav.is-stuck {
  box-shadow: 0 18px 46px rgba(48, 31, 84, .16);
}

.edm-account-settings-page__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 13px;
  border-radius: 18px;
  color: var(--edm-account-settings-muted);
  font-weight: 900;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.edm-account-settings-page__nav a:hover,
.edm-account-settings-page__nav a:focus-visible,
.edm-account-settings-page__nav a.is-active,
.edm-account-settings-page__nav a[aria-current="true"] {
  background: var(--edm-account-settings-accent-soft);
  color: var(--edm-account-settings-accent);
  transform: translateY(-1px);
}

.edm-account-settings-page__nav span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 14px;
  background: var(--edm-account-settings-surface);
  color: var(--edm-account-settings-primary);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.edm-account-settings-page__stack,
.edm-account-settings-page__form {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.edm-account-settings-page__card {
  scroll-margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 28px;
  background: var(--edm-account-settings-glass);
  box-shadow: var(--edm-account-settings-shadow-soft);
  backdrop-filter: blur(20px);
}

.edm-account-settings-page__card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.edm-account-settings-page__kicker {
  margin: 0 0 6px;
  color: var(--edm-account-settings-accent);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edm-account-settings-page__card h2 {
  margin: 0;
  color: var(--edm-account-settings-text);
  font-size: 2.12rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-account-settings-page__btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: .88rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.edm-account-settings-page__btn:hover,
.edm-account-settings-page__btn:focus-visible {
  transform: translateY(-1px);
}

.edm-account-settings-page__btn:disabled {
  opacity: .58;
  cursor: wait;
}

.edm-account-settings-page__btn--primary {
  background: var(--edm-account-settings-primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.edm-account-settings-page__btn--secondary {
  border-color: var(--edm-account-settings-border);
  background: var(--edm-account-settings-surface);
  color: var(--edm-account-settings-primary);
}

.edm-account-settings-page__btn--soft {
  background: var(--edm-account-settings-accent-soft);
  color: var(--edm-account-settings-accent);
}

.edm-account-settings-page__btn--danger {
  background: rgba(220, 38, 38, .1);
  color: var(--edm-account-settings-danger);
}

.edm-account-settings-page__form-grid,
.edm-account-settings-page__password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.edm-account-settings-page__password-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edm-account-settings-page__field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--edm-account-settings-text);
  font-size: .82rem;
  font-weight: 950;
}

.edm-account-settings-page__field--full {
  grid-column: 1 / -1;
}

.edm-account-settings-page__field span {
  color: var(--edm-account-settings-text);
}

.edm-account-settings-page input,
.edm-account-settings-page textarea,
.edm-account-settings-page select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 16px;
  background: var(--edm-account-settings-surface);
  color: var(--edm-account-settings-text);
  padding: 12px 13px;
  outline: none;
  box-shadow: none;
}

.edm-account-settings-page input:focus,
.edm-account-settings-page textarea:focus,
.edm-account-settings-page select:focus {
  border-color: rgba(109, 40, 217, .38);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, .12);
}

.edm-account-settings-page input:disabled {
  color: rgba(23, 19, 33, .62);
  background: rgba(255, 255, 255, .62);
}

.edm-account-settings-page textarea {
  min-height: 110px;
  resize: vertical;
}

.edm-account-settings-page__status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--edm-account-settings-accent);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.4;
}

.edm-account-settings-page__setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 20px;
  background: var(--edm-account-settings-surface);
  color: var(--edm-account-settings-text);
}

.edm-account-settings-page__setting-row + .edm-account-settings-page__setting-row,
.edm-account-settings-page__setting-row + .edm-account-settings-page__password-grid {
  margin-top: 10px;
}

.edm-account-settings-page__apple-security {
  margin-top: 14px;
}

.edm-account-settings-page__setting-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--edm-account-settings-text);
  font-weight: 950;
}

.edm-account-settings-page__setting-row small,
.edm-account-settings-page__setting-row > span > span {
  display: block;
  color: var(--edm-account-settings-muted);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 750;
}

.edm-account-settings-page__setting-row select {
  width: auto;
  min-width: 154px;
  max-width: min(260px, 100%);
  min-height: 42px;
  padding: 9px 38px 9px 14px;
  border-radius: 999px;
  appearance: auto;
  -webkit-appearance: menulist;
}

.edm-account-settings-page__note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px dashed rgba(109, 40, 217, .24);
  border-radius: 18px;
  background: var(--edm-account-settings-accent-soft);
  color: var(--edm-account-settings-muted);
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 800;
}

.edm-account-settings-page__toggle-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
}

.edm-account-settings-page__toggle {
  width: 54px;
  height: 32px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(23, 19, 33, .18);
  display: flex;
  justify-content: flex-start;
  transition: background .18s ease;
}

.edm-account-settings-page__toggle i {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(23, 19, 33, .16);
}

.edm-account-settings-page__toggle-input:checked + .edm-account-settings-page__toggle {
  justify-content: flex-end;
  background: var(--edm-account-settings-accent);
}

.edm-account-settings-page__toggle-input:focus-visible + .edm-account-settings-page__toggle {
  box-shadow: 0 0 0 4px rgba(109, 40, 217, .16);
}

.edm-account-settings-page__dna-list {
  display: grid;
  gap: 10px;
}

.edm-account-settings-page__dna-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 20px;
  background: var(--edm-account-settings-surface);
  cursor: pointer;
}

.edm-account-settings-page__style-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--edm-account-settings-accent-soft);
  color: var(--edm-account-settings-accent);
  font-weight: 950;
}

.edm-account-settings-page__dna-row strong {
  display: block;
  color: var(--edm-account-settings-text);
  font-weight: 950;
}

.edm-account-settings-page__dna-row small {
  display: block;
  margin-top: 4px;
  color: var(--edm-account-settings-muted);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 650;
}

.edm-account-settings-page__dna-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--edm-account-settings-accent);
}

.edm-account-settings-page__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.edm-account-settings-page__pills span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--edm-account-settings-accent-soft);
  color: var(--edm-account-settings-accent);
  font-size: .75rem;
  font-weight: 900;
}

.edm-account-settings-page__inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.edm-account-settings-page__theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.edm-account-settings-page__theme-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 22px;
  background: var(--edm-account-settings-surface);
  color: var(--edm-account-settings-text);
  text-align: left;
  cursor: pointer;
}

.edm-account-settings-page__theme-card.is-active {
  border-color: rgba(109, 40, 217, .32);
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, .2);
}

.edm-account-settings-page__theme-card strong {
  color: var(--edm-account-settings-text);
  font-weight: 950;
}

.edm-account-settings-page__theme-card span {
  color: var(--edm-account-settings-muted);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 750;
}

.edm-account-settings-page__swatches {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}

.edm-account-settings-page__swatches i {
  width: 28px;
  height: 28px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 999px;
  background: var(--swatch);
}

.edm-account-settings-page__warning {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(220, 38, 38, .18);
  border-radius: 22px;
  background: rgba(220, 38, 38, .08);
  color: var(--edm-account-settings-muted);
  line-height: 1.6;
  font-weight: 750;
}

.edm-account-settings-page__warning strong {
  color: var(--edm-account-settings-danger);
  font-weight: 950;
}

.edm-account-settings-page__warning .edm-account-settings-page__btn {
  width: fit-content;
}

.edm-account-settings-page__empty {
  padding: 18px;
  border: 1px solid var(--edm-account-settings-border);
  border-radius: 20px;
  background: var(--edm-account-settings-surface);
  color: var(--edm-account-settings-muted);
  font-weight: 800;
}

@media (max-width: 940px) {
  .edm-account-settings-page {
    width: min(100% - 18px, var(--edm-account-settings-max));
    padding-top: 10px;
  }

  .edm-account-settings-page__hero {
    border-radius: 30px;
    padding: 30px;
  }

  .edm-account-settings-page__hero h1 {
    font-size: 3.1rem;
  }

  .edm-account-settings-page__layout {
    grid-template-columns: 1fr;
  }

  .edm-account-settings-page__nav {
    position: sticky;
    top: 8px;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-radius: 24px;
    z-index: 8;
    scrollbar-width: none;
  }

  body.admin-bar .edm-account-settings-page__nav {
    top: 54px;
  }

  .edm-account-settings-page__nav::-webkit-scrollbar {
    display: none;
  }

  .edm-account-settings-page__nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .edm-account-settings-page__card {
    scroll-margin-top: 116px;
  }

  .edm-account-settings-page__form-grid,
  .edm-account-settings-page__password-grid,
  .edm-account-settings-page__theme-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .edm-account-settings-page__hero {
    min-height: 360px;
    padding: 24px;
  }

  .edm-account-settings-page__hero h1 {
    font-size: 2.5rem;
  }

  .edm-account-settings-page__card {
    padding: 20px;
  }

  .edm-account-settings-page__card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .edm-account-settings-page__setting-row,
  .edm-account-settings-page__dna-row {
    grid-template-columns: 1fr;
  }

  .edm-account-settings-page__setting-row select {
    width: auto;
    max-width: 100%;
  }

  .edm-account-settings-page__btn,
  .edm-account-settings-page__inline-actions .edm-account-settings-page__btn {
    width: 100%;
  }
}

/* My Events page */

.edm-my-events {
  --edm-my-events-bg: #fbf8ff;
  --edm-my-events-surface: #ffffff;
  --edm-my-events-surface-strong: #ffffff;
  --edm-my-events-surface-soft: #f7f1ff;
  --edm-my-events-card: #ffffff;
  --edm-my-events-stat-bg: rgba(255, 255, 255, .78);
  --edm-my-events-ink: #181326;
  --edm-my-events-muted: #746b86;
  --edm-my-events-border: rgba(90, 66, 130, .16);
  --edm-my-events-primary: #6d28d9;
  --edm-my-events-primary-strong: #4c1d95;
  --edm-my-events-primary-soft: rgba(109, 40, 217, .11);
  --edm-my-events-pink: #ec4899;
  --edm-my-events-red: #b11226;
  --edm-my-events-teal: #0f766e;
  --edm-my-events-going-rest-bg: #f5efff;
  --edm-my-events-going-rest-text: #4c1d95;
  --edm-my-events-going-rest-border: rgba(109, 40, 217, .24);
  --edm-my-events-going-active-bg: linear-gradient(135deg, #3d13b0 0%, #7a1bd4 48%, #c91e8a 100%);
  --edm-my-events-going-active-text: #ffffff;
  --edm-my-events-shadow: 0 22px 60px rgba(58, 35, 103, .11);
  --edm-my-events-shadow-soft: 0 12px 28px rgba(58, 35, 103, .08);
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 80px;
  padding: 22px 0 78px;
  display: grid;
  gap: 18px;
  color: var(--edm-my-events-ink);
  font-family: var(--edm-font, Inter, Arial, sans-serif);
}

.edm-my-events *,
.edm-my-events *::before,
.edm-my-events *::after {
  box-sizing: border-box;
}

.edm-my-events a {
  color: inherit;
  text-decoration: none;
}

.edm-my-events button,
.edm-my-events input,
.edm-my-events select {
  font: inherit;
}

.edm-my-events__hero,
.edm-my-events__controls,
.edm-my-events__library,
.edm-my-events__empty {
  border: 1px solid var(--edm-my-events-border);
  border-radius: 26px;
  background: var(--edm-my-events-surface);
  box-shadow: var(--edm-my-events-shadow);
}

html[data-ed-theme="dark"] .edm-my-events {
  --edm-my-events-bg: #080d18;
  --edm-my-events-surface: #111827;
  --edm-my-events-surface-strong: #161f32;
  --edm-my-events-surface-soft: #1d2740;
  --edm-my-events-card: #121b2d;
  --edm-my-events-stat-bg: rgba(22, 31, 50, .86);
  --edm-my-events-ink: #fbf8ff;
  --edm-my-events-muted: #cfc5dd;
  --edm-my-events-border: rgba(224, 214, 255, .18);
  --edm-my-events-primary: #c7adff;
  --edm-my-events-primary-strong: #efe8ff;
  --edm-my-events-primary-soft: rgba(158, 116, 255, .18);
  --edm-my-events-pink: #ff83c3;
  --edm-my-events-red: #ff8fa1;
  --edm-my-events-teal: #7dd9cf;
  --edm-my-events-going-rest-bg: rgba(158, 116, 255, .16);
  --edm-my-events-going-rest-text: #efe8ff;
  --edm-my-events-going-rest-border: rgba(199, 173, 255, .32);
  --edm-my-events-going-active-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 48%, #ec4899 100%);
  --edm-my-events-going-active-text: #ffffff;
  --edm-my-events-shadow: 0 24px 68px rgba(0, 0, 0, .34);
  --edm-my-events-shadow-soft: 0 14px 34px rgba(0, 0, 0, .26);
}

.edm-my-events__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(236, 72, 153, .12) 58% 74%, transparent 74%),
    linear-gradient(135deg, rgba(109, 40, 217, .15), transparent 58%),
    linear-gradient(90deg, rgba(15, 118, 110, .09), transparent 42%),
    var(--edm-my-events-surface);
}

.edm-my-events__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--edm-my-events-primary), var(--edm-my-events-pink), var(--edm-my-events-teal)) 1;
}

.edm-my-events__kicker {
  margin: 0 0 8px;
  color: var(--edm-my-events-primary);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.edm-my-events__hero h1,
.edm-my-events__empty h1,
.edm-my-events__empty h2 {
  margin: 0;
  color: var(--edm-my-events-ink);
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-my-events__hero p,
.edm-my-events__empty p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--edm-my-events-muted);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 700;
}

.edm-my-events__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
}

.edm-my-events__stats span {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 18px;
  background: var(--edm-my-events-stat-bg);
  color: var(--edm-my-events-muted);
  font-size: .82rem;
  font-weight: 850;
  box-shadow: var(--edm-my-events-shadow-soft);
}

.edm-my-events__stats strong {
  display: block;
  color: var(--edm-my-events-primary-strong);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 950;
}

.edm-my-events__controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 16px;
}

.edm-my-events__setting {
  min-width: 0;
}

.edm-my-events__setting label,
.edm-my-events__setting--toggle {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .045), transparent 58%),
    var(--edm-my-events-surface-strong);
  box-shadow: var(--edm-my-events-shadow-soft);
}

.edm-my-events__setting strong {
  display: block;
  margin-bottom: 4px;
  color: var(--edm-my-events-ink);
  font-weight: 950;
}

.edm-my-events__setting small {
  display: block;
  color: var(--edm-my-events-muted);
  font-size: .8rem;
  line-height: 1.45;
  font-weight: 750;
}

.edm-my-events__setting select {
  min-width: 154px;
  min-height: 42px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 14px;
  background: var(--edm-my-events-surface-strong);
  color: var(--edm-my-events-ink);
  padding: 10px 12px;
  outline: none;
  font-weight: 850;
}

.edm-my-events__setting--toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.edm-my-events__setting--toggle i {
  width: 54px;
  height: 32px;
  display: flex;
  justify-content: flex-start;
  padding: 4px;
  border-radius: 999px;
  background: rgba(25, 25, 35, .18);
}

.edm-my-events__setting--toggle i::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--edm-my-events-surface-strong);
  box-shadow: 0 3px 8px rgba(25, 25, 35, .16);
}

.edm-my-events__setting--toggle input:checked + i {
  justify-content: flex-end;
  background: linear-gradient(135deg, var(--edm-my-events-primary), var(--edm-my-events-pink));
}

.edm-my-events__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  justify-content: flex-end;
}

.edm-my-events__action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.edm-my-events__btn,
.edm-my-events__icon-btn,
.edm-my-events__tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 15px;
  background: transparent;
  color: var(--edm-my-events-ink);
  font-size: .86rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.edm-my-events__btn:hover,
.edm-my-events__icon-btn:hover,
.edm-my-events__tabs button:hover {
  transform: translateY(-1px);
}

.edm-my-events__btn--primary {
  background: linear-gradient(135deg, var(--edm-my-events-primary), var(--edm-my-events-pink));
  color: #fff;
  box-shadow: 0 16px 32px rgba(109, 40, 217, .24);
}

.edm-my-events__btn--soft {
  border-color: rgba(109, 40, 217, .14);
  background: var(--edm-my-events-primary-soft);
  color: var(--edm-my-events-primary);
}

.edm-my-events__status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--edm-my-events-primary);
  font-size: .86rem;
  font-weight: 850;
}

.edm-my-events__library {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.edm-my-events__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edm-my-events__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 999px;
  background: var(--edm-my-events-surface-soft);
}

.edm-my-events__tabs button {
  min-height: 36px;
  padding: 9px 13px;
  color: var(--edm-my-events-muted);
}

.edm-my-events__tabs button.is-active {
  background: var(--edm-my-events-surface);
  color: var(--edm-my-events-primary);
  box-shadow: 0 8px 18px rgba(109, 40, 217, .12);
}

.edm-my-events__grid {
  display: grid;
  gap: 12px;
}

.edm-my-events__filter-empty[hidden] {
  display: none;
}

.edm-my-events.is-calendar-view .edm-my-events__card:not([hidden]) {
  position: relative;
  border-left: 5px solid var(--edm-my-events-primary);
}

.edm-my-events.is-calendar-view .edm-my-events__card:not([hidden])::before {
  content: attr(data-calendar-month);
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--edm-my-events-primary);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.edm-my-events__card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .035), transparent 45%),
    var(--edm-my-events-card);
  box-shadow: var(--edm-my-events-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.edm-my-events__card:hover {
  border-color: rgba(109, 40, 217, .24);
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(58, 35, 103, .13);
}

.edm-my-events__card.is-removing {
  opacity: .54;
  pointer-events: none;
}

.edm-my-events__image {
  min-height: 112px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .20), rgba(236, 72, 153, .16)),
    var(--edm-my-events-image, linear-gradient(135deg, #6d28d9, #ec4899));
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.edm-my-events__body {
  min-width: 0;
}

.edm-my-events__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.edm-my-events__topline span,
.edm-my-events__chips span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--edm-my-events-primary-soft);
  color: var(--edm-my-events-primary);
  font-size: .72rem;
  font-weight: 900;
}

.edm-my-events__topline span:nth-child(2) {
  background: rgba(236, 72, 153, .1);
  color: var(--edm-my-events-pink);
}

.edm-my-events__card h2 {
  margin: 0;
  color: var(--edm-my-events-ink);
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-my-events__card p {
  margin: 8px 0 0;
  color: var(--edm-my-events-muted);
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 700;
}

.edm-my-events__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.edm-my-events__chips span {
  background: rgba(15, 118, 110, .09);
  color: var(--edm-my-events-teal);
}

.edm-my-events__card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 7px;
  justify-content: end;
  align-items: center;
  width: min(244px, 100%);
  margin-left: auto;
}

.edm-my-events__card-actions .edm-my-events__mini-toggle,
.edm-my-events__card-actions .edm-event-going-button,
.edm-my-events__card-actions .edm-my-events__icon-btn {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: .78rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(58, 35, 103, .055);
}

.edm-my-events__card-actions .edm-event-going-button:disabled,
.edm-my-events__card-actions .edm-my-events__icon-btn:disabled {
  opacity: 1;
}

.edm-my-events__card-actions .edm-my-events__mini-toggle:has(input:disabled) {
  opacity: 1;
}

.edm-my-events__card-actions .edm-event-going-button.is-going,
.edm-my-events__card-actions .edm-event-going-button[aria-pressed="true"] {
  border-color: rgba(96, 31, 196, .58);
  background: var(--edm-my-events-going-active-bg);
  color: var(--edm-my-events-going-active-text) !important;
  text-shadow: 0 1px 1px rgba(35, 15, 80, .26);
  box-shadow: 0 15px 30px rgba(76, 25, 184, .3), 0 7px 16px rgba(201, 30, 138, .17);
}

.edm-my-events__card-actions .edm-event-going-button:disabled:not(.is-going):not([aria-pressed="true"]) {
  border-color: var(--edm-my-events-going-rest-border);
  background: var(--edm-my-events-going-rest-bg);
  color: var(--edm-my-events-going-rest-text) !important;
}

.edm-my-events .edm-event-going-button:not(.is-going):not([aria-pressed="true"]) {
  border-color: var(--edm-my-events-going-rest-border);
  background: var(--edm-my-events-going-rest-bg);
  color: var(--edm-my-events-going-rest-text) !important;
  box-shadow: var(--edm-my-events-shadow-soft);
}

.edm-my-events__card-options {
  display: none;
}

.edm-my-events__mini-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 40, 217, .12);
  background: rgba(109, 40, 217, .07);
  color: var(--edm-my-events-primary);
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}

.edm-my-events__mini-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--edm-my-events-primary);
}

.edm-my-events__icon-btn {
  min-height: 40px;
  padding: 9px 12px;
  border-color: var(--edm-my-events-border);
  background: var(--edm-my-events-surface-strong);
  color: var(--edm-my-events-ink);
  box-shadow: 0 8px 18px rgba(58, 35, 103, .06);
}

.edm-my-events__icon-btn--danger {
  background: rgba(177, 18, 38, .08);
  color: var(--edm-my-events-red);
  border-color: rgba(177, 18, 38, .16);
}

.edm-my-events__icon-btn--friends {
  background: rgba(15, 118, 110, .09);
  color: var(--edm-my-events-teal);
  border-color: rgba(15, 118, 110, .18);
}

.edm-my-events__options {
  position: relative;
}

.edm-my-events__options--page {
  display: none;
}

.edm-my-events__options summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 999px;
  background: var(--edm-my-events-surface-strong);
  color: var(--edm-my-events-primary);
  font-size: .86rem;
  font-weight: 950;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  box-shadow: var(--edm-my-events-shadow-soft);
}

.edm-my-events__options summary::-webkit-details-marker {
  display: none;
}

.edm-my-events__options-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: min(260px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 18px;
  background: var(--edm-my-events-surface-strong);
  box-shadow: 0 20px 48px rgba(58, 35, 103, .18);
}

.edm-my-events__options:not([open]) .edm-my-events__options-panel {
  display: none;
}

.edm-my-events__options-panel button,
.edm-my-events__options-panel a,
.edm-my-events__options-panel label {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--edm-my-events-ink);
  font-size: .86rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.edm-my-events__options-panel button:hover,
.edm-my-events__options-panel a:hover,
.edm-my-events__options-panel label:hover {
  background: var(--edm-my-events-primary-soft);
  color: var(--edm-my-events-primary);
}

.edm-my-events__options-panel .is-danger {
  color: var(--edm-my-events-red);
}

.edm-my-events__options-panel .edm-event-going-button {
  justify-content: center;
  border: 1px solid var(--edm-my-events-going-rest-border);
  border-radius: 999px;
  background: var(--edm-my-events-going-rest-bg);
  color: var(--edm-my-events-going-rest-text) !important;
  box-shadow: 0 10px 22px rgba(111, 44, 255, .1);
}

.edm-my-events__options-panel .edm-event-going-button:hover {
  background: var(--edm-my-events-primary-soft);
  color: var(--edm-my-events-primary-strong) !important;
}

.edm-my-events__options-panel .edm-event-going-button.is-going,
.edm-my-events__options-panel .edm-event-going-button[aria-pressed="true"],
.edm-my-events__options-panel .edm-event-going-button.is-going:hover,
.edm-my-events__options-panel .edm-event-going-button[aria-pressed="true"]:hover {
  border-color: rgba(96, 31, 196, .58);
  background: var(--edm-my-events-going-active-bg);
  color: var(--edm-my-events-going-active-text) !important;
  text-shadow: 0 1px 1px rgba(35, 15, 80, .26);
  box-shadow: 0 16px 34px rgba(76, 25, 184, .3), 0 8px 18px rgba(201, 30, 138, .18);
}

.edm-my-events__empty {
  padding: 30px;
}

.edm-my-events__grid > .edm-my-events__empty {
  box-shadow: none;
}

.edm-my-events__empty .edm-my-events__btn {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .edm-my-events__hero,
  .edm-my-events__controls,
  .edm-my-events__card {
    grid-template-columns: 1fr;
  }

  .edm-my-events__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edm-my-events__actions,
  .edm-my-events__card-actions {
    justify-content: flex-start;
  }

  .edm-my-events__image {
    min-height: 190px;
  }
}

@media (min-width: 781px) and (max-width: 980px) {
  .edm-my-events__actions,
  .edm-my-events__action-cluster {
    width: 100%;
    justify-content: stretch;
  }

  .edm-my-events__action-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edm-my-events__action-cluster .edm-my-events__btn {
    min-height: 44px;
    font-size: .9rem;
  }

  .edm-my-events__card-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .edm-my-events__card-actions .edm-my-events__mini-toggle,
  .edm-my-events__card-actions .edm-event-going-button,
  .edm-my-events__card-actions .edm-my-events__icon-btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: .84rem;
  }
}

@media (min-width: 621px) and (max-width: 780px) {
  .edm-my-events__actions,
  .edm-my-events__action-cluster {
    width: 100%;
    justify-content: stretch;
  }

  .edm-my-events__action-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edm-my-events__action-cluster .edm-my-events__btn {
    min-height: 44px;
    font-size: .9rem;
  }

  .edm-my-events__card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .edm-my-events__card-actions .edm-my-events__mini-toggle,
  .edm-my-events__card-actions .edm-event-going-button,
  .edm-my-events__card-actions .edm-my-events__icon-btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: .84rem;
  }
}

@media (max-width: 620px) {
  .edm-my-events {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .edm-my-events__hero h1,
  .edm-my-events__empty h1,
  .edm-my-events__empty h2 {
    font-size: 2.2rem;
  }

  .edm-my-events__hero,
  .edm-my-events__empty {
    padding: 22px;
  }

  .edm-my-events__stats {
    grid-template-columns: 1fr;
  }

  .edm-my-events__setting label,
  .edm-my-events__setting--toggle {
    grid-template-columns: 1fr;
  }

  .edm-my-events__setting select,
  .edm-my-events__btn,
  .edm-my-events__actions,
  .edm-my-events__icon-btn,
  .edm-my-events__mini-toggle {
    width: 100%;
  }

  .edm-my-events__action-cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    justify-content: stretch;
  }

  .edm-my-events__card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
    width: 100%;
    margin-left: 0;
  }

  .edm-my-events__card-actions .edm-my-events__mini-toggle,
  .edm-my-events__card-actions .edm-event-going-button,
  .edm-my-events__card-actions .edm-my-events__icon-btn {
    min-height: 38px;
    padding: 8px 10px;
  }

  .edm-my-events__options--page {
    display: none;
  }

  .edm-my-events__card-options {
    display: none;
  }

  .edm-my-events__options summary {
    width: 100%;
  }

  .edm-my-events__options-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: var(--edm-my-events-shadow-soft);
  }

  .edm-my-events__tabs {
    width: 100%;
    border-radius: 18px;
  }

  .edm-my-events__tabs button {
    flex: 1 1 0;
  }
}

/* Reimagined messages page */

body.ed-member-messages-page {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .12), transparent 34rem),
    linear-gradient(225deg, rgba(236, 72, 153, .09), transparent 34rem),
    linear-gradient(180deg, #fbf8ff 0%, #f7f3ff 46%, #ffffff 100%);
}

body.ed-member-runtime-messages-page.ed-member-messages-page {
  overflow: auto;
  overscroll-behavior: auto;
}

.edm-messages-page {
  --edm-message-max: 1280px;
  --edm-message-surface: #ffffff;
  --edm-message-glass: rgba(255, 255, 255, .86);
  --edm-message-text: #171321;
  --edm-message-muted: #6f687a;
  --edm-message-border: rgba(23, 19, 33, .12);
  --edm-message-accent: #6d28d9;
  --edm-message-accent-soft: rgba(109, 40, 217, .1);
  --edm-message-primary: #24153f;
  --edm-message-shadow: 0 24px 70px rgba(48, 31, 84, .14);
  --edm-message-shadow-soft: 0 14px 36px rgba(48, 31, 84, .09);
  width: min(var(--edm-message-max), calc(100% - 28px));
  max-width: var(--edm-message-max);
  margin: 0 auto 80px;
  padding: 24px 0 80px;
  display: grid;
  gap: 22px;
  color: var(--edm-message-text);
  font-family: var(--edm-font, Inter, Arial, sans-serif);
}

.edm-messages-page * {
  box-sizing: border-box;
}

.edm-messages-page a {
  color: inherit;
  text-decoration: none;
}

.edm-messages-hero {
  min-height: 290px;
  border-radius: 36px;
  padding: 38px;
  color: #fff;
  display: grid;
  align-items: end;
  box-shadow: var(--edm-message-shadow);
  background:
    linear-gradient(135deg, rgba(18, 12, 31, .97), rgba(91, 33, 182, .9)),
    linear-gradient(90deg, rgba(236, 72, 153, .28), transparent 62%);
}

.edm-messages-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .82rem;
  font-weight: 900;
}

.edm-messages-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 4.35rem;
  line-height: .95;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-messages-hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 1.06rem;
  line-height: 1.65;
  font-weight: 650;
}

.edm-messages-mobile-note {
  display: none;
  padding: 14px;
  border-radius: 22px;
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
  font-weight: 900;
}

.edm-messages-page .edm-messages {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-areas: "threads chat";
  width: 100%;
  max-width: 100%;
  height: var(--edm-messages-height, auto);
  min-height: 760px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--edm-message-border);
  border-radius: 34px;
  background: var(--edm-message-glass);
  box-shadow: var(--edm-message-shadow);
  backdrop-filter: blur(20px);
}

.edm-messages-page .edm-thread-list {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  border-right: 1px solid var(--edm-message-border);
  background: rgba(255, 255, 255, .54);
}

.edm-messages-page .edm-thread-list header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--edm-message-border);
}

.edm-messages-page .edm-thread-list h1 {
  margin: 0;
  color: var(--edm-message-text);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-messages-page .edm-thread-list header p {
  display: block !important;
  margin: 5px 0 0;
  color: var(--edm-message-muted);
  font-size: .8rem;
  font-weight: 800;
}

.edm-messages-page .edm-messages-back {
  width: 44px;
  height: 44px;
  border-color: var(--edm-message-border);
  background: var(--edm-message-surface);
  color: var(--edm-message-accent);
  box-shadow: 0 10px 24px rgba(48, 31, 84, .08);
}

.edm-message-search {
  grid-column: 1 / -1;
  display: block;
}

.edm-message-search input,
.edm-messages-page .edm-new-message-panel input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid var(--edm-message-border);
  border-radius: 16px;
  background: var(--edm-message-surface);
  color: var(--edm-message-text);
  font: inherit;
  outline: none;
}

.edm-message-search input:focus,
.edm-messages-page .edm-new-message-panel input:focus {
  border-color: rgba(109, 40, 217, .38);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, .12);
}

.edm-messages-page .edm-new-message-btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--edm-message-primary);
  color: #fff;
}

.edm-inbox-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 18px;
  border-bottom: 1px solid var(--edm-message-border);
  scrollbar-width: none;
}

.edm-inbox-tabs::-webkit-scrollbar {
  display: none;
}

.edm-inbox-tabs button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--edm-message-border);
  border-radius: 999px;
  background: var(--edm-message-surface);
  color: var(--edm-message-muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.edm-inbox-tabs button.is-active {
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
}

.edm-messages-page .edm-new-message-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 12px 18px;
  border-bottom: 1px solid var(--edm-message-border);
  background: rgba(255, 255, 255, .5);
}

.edm-messages-page [data-edm-conversations] {
  padding: 12px;
}

.edm-messages-page [data-edm-conversations][aria-busy="true"] {
  overflow: hidden;
}

.edm-archive-folder-note {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid var(--edm-message-border);
  border-radius: 18px;
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-primary);
  line-height: 1.35;
}

.edm-archive-folder-note strong,
.edm-archive-folder-note span {
  display: block;
}

.edm-archive-folder-note strong {
  font-weight: 950;
}

.edm-archive-folder-note span {
  color: var(--edm-message-muted);
  font-size: .82rem;
  font-weight: 800;
}

.edm-messages-page .edm-thread {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
}

.edm-messages-page .edm-thread:hover,
.edm-messages-page .edm-thread.is-active {
  border-color: var(--edm-message-border);
  background: var(--edm-message-surface);
  box-shadow: 0 8px 20px rgba(48, 31, 84, .055);
}

.edm-messages-page .edm-thread.is-active {
  border: 1px solid rgba(109, 40, 217, .22);
  border-left-width: 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .48)),
    var(--edm-message-surface);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .48),
    0 8px 18px rgba(48, 31, 84, .05);
}

.edm-messages-page .edm-thread .edm-avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 18px;
}

.edm-messages-page .edm-thread-name strong {
  color: var(--edm-message-text);
  font-weight: 950;
}

.edm-messages-page .edm-thread-name em {
  background: var(--edm-message-accent);
  color: #fff;
}

.edm-messages-page .edm-thread small,
.edm-messages-page .edm-thread time {
  color: var(--edm-message-muted);
}

.edm-messages-page .edm-loading-list {
  display: grid;
  gap: 6px;
}

.edm-messages-page .edm-thread--loading,
.edm-messages-page .edm-thread--loading:hover {
  border-color: rgba(109, 40, 217, .08);
  background: rgba(255, 255, 255, .48);
  box-shadow: none;
  pointer-events: none;
}

.edm-messages-page .edm-loading-lines {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.edm-messages-page .edm-loading-avatar,
.edm-messages-page .edm-loading-line,
.edm-messages-page .edm-loading-bubble {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: rgba(109, 40, 217, .1);
  background-image: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .72) 45%, transparent 74%);
  background-size: 230% 100%;
  animation: edm-loading-shimmer 1.25s ease-in-out infinite;
}

.edm-messages-page .edm-loading-avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 18px;
}

.edm-messages-page .edm-loading-line {
  width: 58%;
  height: 10px;
  border-radius: 999px;
}

.edm-messages-page .edm-loading-line.is-title {
  width: 72%;
  height: 15px;
}

.edm-messages-page .edm-loading-line.is-medium {
  width: 64%;
}

.edm-messages-page .edm-loading-line.is-wide {
  width: 82%;
}

.edm-messages-page .edm-loading-line.is-short {
  width: 42%;
}

.edm-messages-page .edm-chat {
  grid-area: chat;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas:
    "head context-panel"
    "context context-panel"
    "notice context-panel"
    "stream context-panel"
    "form context-panel";
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, .28);
}

.edm-messages-page .edm-chat-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--edm-message-border);
  background: rgba(255, 255, 255, .52);
}

.edm-messages-page .edm-chat-person {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
}

.edm-messages-page .edm-chat-person .edm-avatar,
.edm-messages-page .edm-message-sender-avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 18px;
}

.edm-messages-page .edm-chat-head strong {
  color: var(--edm-message-text);
  font-size: 1.5rem;
  font-weight: 950;
  letter-spacing: 0;
}

.edm-messages-page .edm-chat-head small {
  color: var(--edm-message-muted);
  font-weight: 750;
}

.edm-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.edm-messages-page .edm-btn {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 900;
}

.edm-messages-page .edm-btn-primary {
  background: var(--edm-message-primary);
  color: #fff;
}

.edm-messages-page .edm-btn-secondary {
  border-color: var(--edm-message-border);
  background: var(--edm-message-surface);
  color: var(--edm-message-primary);
}

.edm-messages-page .edm-btn-soft {
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
}

.edm-chat-context-strip {
  grid-area: context;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--edm-message-border);
  background: rgba(109, 40, 217, .045);
}

.edm-chat-context-strip div {
  padding: 12px;
  border: 1px solid var(--edm-message-border);
  border-radius: 18px;
  background: var(--edm-message-surface);
}

.edm-chat-context-strip strong {
  display: block;
  color: var(--edm-message-accent);
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 950;
}

.edm-chat-context-strip span {
  display: block;
  margin-top: 4px;
  color: var(--edm-message-muted);
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 800;
}

.edm-messages-page .edm-chat-stream {
  grid-area: stream;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  background: transparent;
}

.edm-messages-page .edm-chat-stream[aria-busy="true"] {
  overflow: hidden;
}

.edm-messages-page .edm-chat-loading {
  display: grid;
  align-content: start;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 4px 0 28px;
}

.edm-messages-page .edm-loading-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: min(76%, 680px);
  max-width: 100%;
}

.edm-messages-page .edm-loading-message.is-mine {
  justify-content: flex-end;
  margin-left: auto;
}

.edm-messages-page .edm-loading-bubble {
  width: min(360px, 74%);
  height: 58px;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(48, 31, 84, .05);
}

.edm-messages-page .edm-loading-bubble.is-small {
  width: min(150px, 42%);
  height: 52px;
}

.edm-messages-page .edm-loading-bubble.is-medium {
  width: min(300px, 64%);
}

.edm-messages-page .edm-loading-bubble.is-wide {
  width: min(460px, 86%);
  height: 74px;
}

@keyframes edm-loading-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@keyframes edm-message-edit-shimmer {
  0% {
    transform: translateX(-72%) rotate(8deg);
  }

  100% {
    transform: translateX(72%) rotate(8deg);
  }
}

@keyframes edm-message-edit-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(109, 61, 245, .07),
      0 16px 36px rgba(48, 31, 84, .12);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(31, 118, 110, .09),
      0 18px 42px rgba(48, 31, 84, .16);
  }
}

@keyframes edm-message-line-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  68% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes edm-message-bubble-in {
  0% {
    filter: blur(2px);
  }

  100% {
    filter: blur(0);
  }
}

@keyframes edm-message-line-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px) scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .edm-messages-page .edm-loading-avatar,
  .edm-messages-page .edm-loading-line,
  .edm-messages-page .edm-loading-bubble,
  .edm-messages-page .edm-message-row.is-new-message-line,
  .edm-messages-page .edm-message-row.is-message-line-leaving,
  .edm-messages-page .edm-message-stack.is-new-message-line,
  .edm-messages-page .edm-message-stack.is-message-line-leaving,
  .edm-messages-page .is-new-message-line .edm-message,
  .edm-messages-page .edm-message-stack.is-editing-source > .edm-message,
  .edm-messages-page .edm-message-stack.is-editing-source > .edm-message::after,
  .edm-chat-form.is-saving-edit .edm-chat-form-main input {
    animation: none;
  }
}

.edm-messages-page .edm-message-row {
  gap: 10px;
  max-width: min(76%, 680px);
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.edm-messages-page .edm-message {
  max-width: min(560px, 75%);
  position: relative;
  overflow: hidden;
  padding: 13px 15px;
  border: 1px solid var(--edm-message-border);
  border-radius: 22px;
  background: var(--edm-message-surface);
  box-shadow: 0 8px 22px rgba(48, 31, 84, .06);
  color: var(--edm-message-text);
  line-height: 1.55;
}

.edm-messages-page .edm-message-stack {
  max-width: min(560px, 75%);
}

.edm-messages-page .edm-message-stack.is-mine {
  margin-left: auto;
}

.edm-messages-page .edm-message-stack > .edm-message {
  max-width: 100%;
}

.edm-messages-page .edm-message-row .edm-message-stack {
  max-width: 100%;
}

.edm-messages-page .edm-message-row .edm-message {
  max-width: 100%;
}

.edm-messages-page .edm-message-row.is-new-message-line,
.edm-messages-page .edm-message-stack.is-new-message-line {
  animation: edm-message-line-in .42s cubic-bezier(.18, .9, .24, 1) both;
  transform-origin: bottom right;
}

.edm-messages-page .edm-message-row.is-new-message-line {
  transform-origin: bottom left;
}

.edm-messages-page .is-new-message-line .edm-message {
  animation: edm-message-bubble-in .34s ease-out both;
}

.edm-messages-page .edm-message-row.is-message-line-leaving,
.edm-messages-page .edm-message-stack.is-message-line-leaving {
  animation: edm-message-line-out .22s ease-in both;
}

.edm-messages-page .edm-message.is-mine {
  margin-left: auto;
  border-color: transparent;
  border-radius: 22px;
  background: var(--edm-message-primary);
  color: #fff;
}

.edm-messages-page .edm-message.is-event-invite,
.edm-messages-page .edm-message.is-event-invite.is-mine {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 22px;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  color: #171321 !important;
}

.edm-messages-page .edm-message-stack.is-editing-source > .edm-message:not(.is-event-invite) {
  border-color: rgba(109, 61, 245, .38);
  box-shadow:
    0 0 0 4px rgba(109, 61, 245, .08),
    0 16px 36px rgba(48, 31, 84, .14);
  animation: edm-message-edit-pulse 1.8s ease-in-out infinite;
}

.edm-messages-page .edm-message-stack.is-editing-source > .edm-message:not(.is-event-invite)::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .34) 48%, transparent 61%);
  transform: translateX(-62%) rotate(8deg);
  animation: edm-message-edit-shimmer 1.45s cubic-bezier(.22, .72, .28, 1) infinite;
}

.edm-messages-page .edm-message-stack.is-editing-source > .edm-message:not(.is-event-invite) > * {
  position: relative;
  z-index: 1;
}

.edm-messages-page .edm-message-stack.is-saving-edit > .edm-message:not(.is-event-invite) {
  filter: saturate(1.05);
  animation-duration: .95s;
}

.edm-messages-page .edm-message-stack.is-event-invite,
.edm-messages-page .edm-message-stack.is-event-invite.is-mine {
  width: min(560px, 72%);
  max-width: min(560px, 72%);
  background: transparent !important;
  box-shadow: none !important;
}

.edm-messages-page .edm-message-row .edm-message.is-event-invite {
  width: 100%;
  max-width: 100%;
}

.edm-messages-page .edm-message-stack.is-event-invite .edm-message-meta {
  padding: 0 10px;
}

.edm-messages-page .edm-message-stack.is-voice-note,
.edm-messages-page .edm-message-stack.is-voice-note.is-mine {
  width: min(380px, 72%);
  max-width: min(380px, 72%);
}

.edm-messages-page .edm-message.is-voice-note {
  width: 100%;
  max-width: 100%;
  padding: 9px;
  overflow: hidden;
}

.edm-voice-player {
  --edm-voice-progress: 0%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
}

.edm-voice-player__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: inherit;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.edm-message:not(.is-mine) .edm-voice-player__play {
  border-color: rgba(109, 61, 245, .18);
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
}

.edm-voice-player__play:hover,
.edm-voice-player__play:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(48, 31, 84, .14);
}

.edm-voice-player__play span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.edm-voice-player.is-playing .edm-voice-player__play span {
  width: 10px;
  height: 12px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}

.edm-voice-player__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 8px;
  min-width: 0;
}

.edm-voice-player__body strong {
  grid-column: 1 / -1;
  font-size: .8rem;
  font-weight: 950;
  line-height: 1.1;
}

.edm-voice-player__body small {
  color: currentColor;
  font-size: .66rem;
  font-weight: 850;
  line-height: 1;
  opacity: .72;
  white-space: nowrap;
}

.edm-voice-player__wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  height: 24px;
  overflow: hidden;
}

.edm-voice-player__wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, currentColor 0 var(--edm-voice-progress), rgba(255, 255, 255, .28) var(--edm-voice-progress) 100%);
}

.edm-message:not(.is-mine) .edm-voice-player__wave::after {
  background: linear-gradient(90deg, var(--edm-message-accent) 0 var(--edm-voice-progress), rgba(119, 105, 140, .2) var(--edm-voice-progress) 100%);
}

.edm-voice-player__wave i {
  flex: 1 1 3px;
  min-width: 2px;
  max-width: 4px;
  height: var(--edm-voice-bar, 10px);
  border-radius: 999px;
  background: currentColor;
  opacity: .54;
  transform-origin: center;
}

.edm-voice-player.is-playing .edm-voice-player__wave i {
  animation: edm-voice-playback-bars .75s ease-in-out infinite alternate;
}

.edm-voice-player.is-playing .edm-voice-player__wave i:nth-child(2n) { animation-delay: -.2s; }
.edm-voice-player.is-playing .edm-voice-player__wave i:nth-child(3n) { animation-delay: -.4s; }

.edm-voice-player audio {
  display: none;
}

.edm-voice-player.has-error {
  opacity: .58;
}

@keyframes edm-voice-playback-bars {
  from { transform: scaleY(.7); }
  to { transform: scaleY(1); }
}

.edm-messages-page .edm-message p {
  margin: 0;
  line-height: 1.55;
}

.edm-messages-page .edm-message-edit-label {
  display: block;
  margin-top: 6px;
  color: var(--edm-message-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
}

.edm-messages-page .edm-message.is-mine .edm-message-edit-label {
  color: rgba(255, 255, 255, .72);
}

.edm-messages-page .edm-message-stack.is-removed {
  width: auto;
  max-width: min(280px, 76%);
}

.edm-messages-page .edm-message.is-removed,
.edm-messages-page .edm-message.is-mine.is-removed {
  padding: 8px 12px;
  border: 1px dashed rgba(119, 105, 140, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  box-shadow: none;
  color: var(--edm-message-muted);
}

.edm-message-removed-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.1;
}

.edm-message-removed-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .42;
}

.edm-messages-page .edm-message-meta {
  margin-top: 0;
  padding: 0 8px;
}

.edm-messages-page .edm-message-stack.is-mine time,
.edm-messages-page .edm-message-stack.is-mine .edm-message-receipt {
  color: var(--edm-message-muted);
}

.edm-messages-page .edm-chat-form {
  grid-area: form;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--edm-message-border);
  background: rgba(255, 255, 255, .58);
}

.edm-voice-note-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(109, 61, 245, .2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .1), rgba(31, 118, 110, .07)),
    var(--edm-message-surface);
  box-shadow: 0 12px 28px rgba(48, 31, 84, .09);
  overflow: hidden;
}

.edm-voice-note-panel[hidden] {
  display: none !important;
}

.edm-voice-note-panel__status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.edm-voice-note-panel__status > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.edm-voice-note-panel__status strong {
  color: var(--edm-message-text);
  font-size: .84rem;
  font-weight: 950;
  line-height: 1.15;
}

.edm-voice-note-panel__status small {
  color: var(--edm-message-muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
}

.edm-voice-note-panel__status time {
  min-width: 42px;
  color: var(--edm-message-text);
  font-size: .84rem;
  font-weight: 950;
  text-align: right;
}

.edm-voice-recording-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc3152;
  box-shadow: 0 0 0 6px rgba(220, 49, 82, .11);
}

.edm-voice-note-panel[data-voice-state="recording"] .edm-voice-recording-dot {
  animation: edm-voice-recording-pulse 1.15s ease-in-out infinite;
}

.edm-voice-note-panel[data-voice-state="ready"] .edm-voice-recording-dot {
  background: #16877e;
  box-shadow: 0 0 0 6px rgba(22, 135, 126, .11);
}

.edm-voice-note-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 130px;
  height: 34px;
}

.edm-voice-note-visual[hidden] {
  display: none !important;
}

.edm-voice-note-visual i {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6d3df5, #16877e);
  transform-origin: center;
  transition: height 70ms linear, opacity 70ms linear;
}

.edm-voice-note-panel.has-fallback-meter .edm-voice-note-visual i {
  animation: edm-voice-meter .8s ease-in-out infinite alternate;
}

.edm-voice-note-panel.has-fallback-meter .edm-voice-note-visual i:nth-child(2n) { animation-delay: -.15s; }
.edm-voice-note-panel.has-fallback-meter .edm-voice-note-visual i:nth-child(3n) { animation-delay: -.35s; }
.edm-voice-note-panel.has-fallback-meter .edm-voice-note-visual i:nth-child(4n) { animation-delay: -.5s; }

.edm-voice-note-panel audio {
  grid-column: 1 / -1;
  width: 100%;
  height: 40px;
  accent-color: var(--edm-message-accent);
}

.edm-voice-note-panel audio[hidden] {
  display: none !important;
}

.edm-voice-note-panel__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.edm-voice-note-panel__actions .edm-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: .76rem;
}

.edm-chat-form.is-voice-note-active .edm-chat-tools,
.edm-chat-form.is-voice-note-active .edm-chat-form-main {
  opacity: .46;
  pointer-events: none;
}

.edm-chat-form.is-uploading-voice-note .edm-voice-note-panel {
  background-image: linear-gradient(110deg, transparent 0%, rgba(109, 61, 245, .08) 38%, rgba(255, 255, 255, .38) 50%, rgba(31, 118, 110, .08) 62%, transparent 100%);
  background-size: 220% 100%;
  animation: edm-loading-shimmer 1.1s linear infinite;
}

@keyframes edm-voice-recording-pulse {
  0%, 100% { transform: scale(.86); box-shadow: 0 0 0 4px rgba(220, 49, 82, .1); }
  50% { transform: scale(1); box-shadow: 0 0 0 8px rgba(220, 49, 82, .04); }
}

@keyframes edm-voice-meter {
  from { height: 6px; opacity: .55; }
  to { height: 27px; opacity: 1; }
}

.edm-chat-editing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(109, 61, 245, .18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .1), rgba(31, 118, 110, .06)),
    rgba(255, 255, 255, .72);
  color: var(--edm-message-text);
  box-shadow: 0 10px 24px rgba(48, 31, 84, .08);
}

.edm-chat-editing-bar[hidden] {
  display: none !important;
}

.edm-chat-editing-bar span {
  min-width: 0;
  color: var(--edm-message-text);
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.1;
}

.edm-chat-editing-bar button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(109, 61, 245, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--edm-message-accent);
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}

.edm-chat-form.is-editing-message .edm-chat-tools {
  opacity: .46;
  pointer-events: none;
  transform: translateY(2px);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.edm-chat-form.is-editing-message .edm-chat-form-main input {
  border-color: rgba(109, 61, 245, .34);
  box-shadow:
    0 0 0 3px rgba(109, 61, 245, .1),
    0 12px 28px rgba(48, 31, 84, .08);
}

.edm-chat-form.is-saving-edit .edm-chat-form-main input {
  background-image: linear-gradient(110deg, transparent 0%, rgba(109, 61, 245, .08) 38%, rgba(255, 255, 255, .35) 50%, rgba(31, 118, 110, .08) 62%, transparent 100%);
  background-size: 220% 100%;
  animation: edm-loading-shimmer 1.1s linear infinite;
}

.edm-chat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-chat-form-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.edm-messages-page .edm-chat-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--edm-message-border);
  border-radius: 18px;
  background: var(--edm-message-surface);
  color: var(--edm-message-text);
  padding: 13px 14px;
  font: inherit;
}

.edm-chat-context-panel {
  grid-area: context-panel;
  min-height: 0;
  overflow: auto;
  border-left: 1px solid var(--edm-message-border);
  background: rgba(255, 255, 255, .48);
}

.edm-chat-context-panel-inner {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.edm-chat-profile-card,
.edm-chat-side-card {
  padding: 16px;
  border: 1px solid var(--edm-message-border);
  border-radius: 24px;
  background: var(--edm-message-surface);
}

.edm-chat-profile-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.edm-chat-context-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 22px;
}

.edm-chat-profile-card h3,
.edm-chat-side-card h3 {
  margin: 0 0 5px;
  color: var(--edm-message-text);
  font-size: 1.12rem;
  letter-spacing: 0;
  font-weight: 950;
}

.edm-chat-profile-card p,
.edm-chat-side-card p {
  margin: 0;
  color: var(--edm-message-muted);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 750;
}

.edm-chat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.edm-chat-pills span,
.edm-chat-pills button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
  font: inherit;
  font-size: .75rem;
  font-weight: 900;
  cursor: pointer;
}

.edm-chat-profile-card > .edm-btn {
  margin-top: 14px;
}

.edm-dna-context-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.edm-dna-context-row strong {
  color: var(--edm-message-text);
  font-size: .82rem;
  font-weight: 900;
}

.edm-dna-context-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--edm-message-accent-soft);
}

.edm-dna-context-row span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--edm-message-accent);
}

.edm-chat-request-box {
  padding: 14px;
  border-radius: 20px;
  background: rgba(109, 40, 217, .08);
  color: var(--edm-message-muted);
  font-size: .82rem;
  line-height: 1.55;
  font-weight: 750;
}

.edm-messages-page .edm-chat-options {
  background: var(--edm-message-surface);
}

@media (max-width: 1050px) {
  .edm-messages-page .edm-messages {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .edm-messages-page .edm-chat {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "context"
      "notice"
      "stream"
      "form";
  }

  .edm-chat-context-panel {
    display: none;
  }

  .edm-chat-context-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .edm-messages-page {
    width: min(100% - 18px, var(--edm-message-max));
    padding-top: 10px;
  }

  .edm-messages-hero {
    min-height: 300px;
    border-radius: 30px;
    padding: 24px;
  }

  .edm-messages-hero h1 {
    font-size: 2.5rem;
  }

  .edm-messages-mobile-note {
    display: block;
  }

  .edm-messages-page .edm-messages {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 26px;
  }

  .edm-messages-page .edm-thread-list {
    min-height: 520px;
    border-right: 0;
  }

  .edm-messages-page .edm-chat-head {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .edm-chat-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .edm-chat-context-strip,
  .edm-chat-form-main {
    grid-template-columns: 1fr;
  }

  .edm-chat-tools .edm-btn {
    flex: 1 1 auto;
  }

  .edm-messages-page .edm-message,
  .edm-messages-page .edm-message-stack,
  .edm-messages-page .edm-message-row {
    max-width: 92%;
  }
}

/* Messages app shell: keep the inbox, chat stream and context rail scrollable inside one fixed workspace. */
.edm-messages-page {
  width: min(1480px, calc(100% - 24px));
  max-width: 1480px;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(10px, 1.8vw, 20px) 0;
  gap: 0;
}

.edm-messages-page .edm-messages-hero,
.edm-messages-page .edm-messages-mobile-note {
  display: none !important;
}

.edm-messages-page .edm-messages {
  height: var(--edm-messages-height, clamp(560px, calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 92px), 920px));
  min-height: 0;
  max-height: var(--edm-messages-height, 920px);
}

.edm-messages-page .edm-thread-list,
.edm-messages-page .edm-chat {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.edm-messages-page .edm-thread-list {
  display: grid;
  grid-area: threads;
}

.edm-messages-page .edm-new-message-panel {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

.edm-messages-page .edm-new-message-panel[hidden] {
  display: none !important;
}

.edm-messages-page [data-edm-conversations],
.edm-messages-page .edm-member-search-results,
.edm-messages-page .edm-chat-stream,
.edm-messages-page .edm-chat-context-panel,
.edm-messages-page .edm-options-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.edm-messages-page .edm-chat-stream {
  align-content: start;
}

.edm-messages-page .edm-chat-context-panel {
  height: 100%;
  max-height: 100%;
}

.edm-dna-compare-button {
  width: 100%;
  margin-top: 14px;
}

.edm-options-dialog-dna,
.edm-options-dialog-events {
  width: min(calc(100% - 32px), 620px);
}

.edm-options-dialog-events {
  gap: 16px;
  padding: 22px;
  border-color: rgba(124, 58, 237, .18);
  background: #fff;
  color: #171321;
  box-shadow: 0 30px 90px rgba(17, 13, 33, .34);
}

.edm-options-dialog-events h3 {
  padding: 0;
  color: #171321;
  text-align: left;
}

.edm-options-dialog-dna p,
.edm-options-dialog-events p {
  margin: 0;
  color: #675f73;
  line-height: 1.55;
  font-weight: 750;
}

.edm-options-dialog-dna p,
.edm-options-dialog-events p,
.edm-dna-section,
.edm-event-invite-list,
.edm-event-invite-actions {
  margin-left: 24px;
  margin-right: 24px;
}

.edm-options-dialog-events p,
.edm-options-dialog-events .edm-event-invite-list,
.edm-options-dialog-events .edm-event-invite-actions {
  margin-left: 0;
  margin-right: 0;
}

.edm-dna-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 24px 16px;
}

.edm-dna-summary-grid > div {
  display: grid;
  align-content: start;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--edm-message-border);
  border-radius: 16px;
  background: var(--edm-message-accent-soft);
}

.edm-dna-summary-grid strong {
  color: var(--edm-message-accent);
  font-size: 1.15rem;
  font-weight: 950;
}

.edm-dna-summary-grid span {
  color: var(--edm-message-muted);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.2;
}

.edm-dna-section {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.edm-dna-section h4,
.edm-dna-section h5 {
  margin: 0;
  color: var(--edm-message-text);
  font-weight: 950;
}

.edm-dna-section h4 {
  font-size: 1rem;
}

.edm-dna-section h5 {
  font-size: .84rem;
}

.edm-dna-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edm-dna-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--edm-message-border);
  border-radius: 999px;
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-text);
  font-size: .82rem;
  font-weight: 850;
}

.edm-dna-empty.edm-empty {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  text-align: left;
}

.edm-dna-compare-list {
  display: grid;
  gap: 12px;
}

.edm-dna-compare-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--edm-message-border);
  border-radius: 18px;
  background: var(--edm-message-accent-soft);
}

.edm-dna-compare-row > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.edm-dna-compare-row strong {
  color: var(--edm-message-text);
  font-weight: 950;
}

.edm-dna-compare-row small {
  color: var(--edm-message-muted);
  font-weight: 850;
}

.edm-dna-compare-row > div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
}

.edm-dna-compare-row > div > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--edm-message-accent);
}

.edm-dna-event-list,
.edm-dna-profile-list,
.edm-event-invite-list {
  display: grid;
  gap: 10px;
}

.edm-dna-event-item,
.edm-dna-profile-item,
.edm-event-invite-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--edm-message-border);
  border-radius: 16px;
  background: var(--edm-message-glass);
  color: var(--edm-message-text);
  text-decoration: none;
}

.edm-dna-event-item strong,
.edm-dna-profile-item strong,
.edm-event-invite-row strong {
  color: var(--edm-message-text);
  font-weight: 950;
}

.edm-dna-event-item small,
.edm-dna-profile-item small,
.edm-event-invite-row small,
.edm-event-invite-row em {
  color: var(--edm-message-muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.edm-dna-profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.edm-dna-profile-columns > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.edm-dna-profile-item,
.edm-event-invite-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.edm-dna-profile-media,
.edm-event-invite-image {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
  font-weight: 950;
}

.edm-dna-profile-media img,
.edm-event-invite-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edm-event-invite-row {
  grid-template-columns: auto auto 1fr;
  cursor: pointer;
}

.edm-options-dialog-events .edm-event-invite-row {
  min-height: 82px;
  padding: 14px;
  border-color: rgba(124, 58, 237, .16);
  background: #fbf9ff;
  color: #171321;
  box-shadow: 0 10px 28px rgba(17, 13, 33, .06);
}

.edm-options-dialog-events .edm-event-invite-row:has(input:checked) {
  border-color: rgba(124, 58, 237, .62);
  background: #f3edff;
  box-shadow: 0 14px 34px rgba(124, 58, 237, .14);
}

.edm-event-invite-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--edm-message-accent);
}

.edm-event-invite-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.edm-event-invite-copy strong,
.edm-event-invite-copy small,
.edm-event-invite-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edm-options-dialog-events .edm-event-invite-copy strong {
  color: #171321;
}

.edm-options-dialog-events .edm-event-invite-copy small,
.edm-options-dialog-events .edm-event-invite-copy em {
  color: #6d6577;
}

.edm-event-invite-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.edm-options-dialog-events .edm-event-invite-actions {
  margin-bottom: 0;
}

.edm-event-invite-actions .edm-btn {
  margin: 0;
}

.edm-event-invite-actions > button:not(.edm-btn) {
  min-height: 46px;
  border: 1px solid var(--edm-message-border);
  border-radius: 999px;
  background: var(--edm-message-accent-soft);
  color: var(--edm-message-accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 640px) {
  .edm-messages-page .edm-message-stack.is-event-invite,
  .edm-messages-page .edm-message-stack.is-event-invite.is-mine {
    width: min(100%, 92vw);
    max-width: min(100%, 92vw);
  }

  .edm-event-invite-card {
    grid-template-columns: 1fr;
  }

  .edm-event-invite-card-media-wrap {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .edm-event-invite-details summary em {
    display: none;
  }

  .edm-event-invite-card dl div {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .edm-event-going-list {
    gap: 6px;
  }

  .edm-event-going-chip {
    max-width: 100%;
  }

  .edm-event-rsvp-dock {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .edm-event-going-button--dock {
    width: 100%;
  }

  .edm-dna-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .edm-dna-profile-columns {
    grid-template-columns: 1fr;
  }

  .edm-event-invite-row {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
}

html[data-ed-theme="dark"] .edm-messages-page,
body.dark-mode .edm-messages-page,
body.ed-dark-mode .edm-messages-page {
  --edm-message-surface: #1a2030;
  --edm-message-glass: rgba(16, 21, 33, .92);
  --edm-message-text: #f8f4ff;
  --edm-message-muted: #c9bdd8;
  --edm-message-border: rgba(213, 196, 255, .16);
  --edm-message-accent: #b89cff;
  --edm-message-accent-soft: rgba(184, 156, 255, .15);
  --edm-message-primary: #7c3aed;
  --edm-message-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --edm-message-shadow-soft: 0 14px 36px rgba(0, 0, 0, .2);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-thread-list,
html[data-ed-theme="dark"] .edm-messages-page .edm-chat,
html[data-ed-theme="dark"] .edm-messages-page .edm-chat-head,
html[data-ed-theme="dark"] .edm-messages-page .edm-chat-form,
html[data-ed-theme="dark"] .edm-messages-page .edm-new-message-panel,
body.dark-mode .edm-messages-page .edm-thread-list,
body.dark-mode .edm-messages-page .edm-chat,
body.dark-mode .edm-messages-page .edm-chat-head,
body.dark-mode .edm-messages-page .edm-chat-form,
body.dark-mode .edm-messages-page .edm-new-message-panel,
body.ed-dark-mode .edm-messages-page .edm-thread-list,
body.ed-dark-mode .edm-messages-page .edm-chat,
body.ed-dark-mode .edm-messages-page .edm-chat-head,
body.ed-dark-mode .edm-messages-page .edm-chat-form,
body.ed-dark-mode .edm-messages-page .edm-new-message-panel {
  background: rgba(20, 25, 38, .76);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-chat-context-panel,
body.dark-mode .edm-messages-page .edm-chat-context-panel,
body.ed-dark-mode .edm-messages-page .edm-chat-context-panel {
  background: rgba(13, 17, 28, .68);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-thread--loading,
html[data-ed-theme="dark"] .edm-messages-page .edm-thread--loading:hover,
body.dark-mode .edm-messages-page .edm-thread--loading,
body.dark-mode .edm-messages-page .edm-thread--loading:hover,
body.ed-dark-mode .edm-messages-page .edm-thread--loading,
body.ed-dark-mode .edm-messages-page .edm-thread--loading:hover {
  border-color: rgba(184, 156, 255, .13);
  background: rgba(255, 255, 255, .035);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active,
body.dark-mode .edm-messages-page .edm-thread.is-active,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active {
  border-color: rgba(184, 156, 255, .2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    var(--edm-message-surface);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .035),
    0 8px 20px rgba(0, 0, 0, .16);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-loading-avatar,
html[data-ed-theme="dark"] .edm-messages-page .edm-loading-line,
html[data-ed-theme="dark"] .edm-messages-page .edm-loading-bubble,
body.dark-mode .edm-messages-page .edm-loading-avatar,
body.dark-mode .edm-messages-page .edm-loading-line,
body.dark-mode .edm-messages-page .edm-loading-bubble,
body.ed-dark-mode .edm-messages-page .edm-loading-avatar,
body.ed-dark-mode .edm-messages-page .edm-loading-line,
body.ed-dark-mode .edm-messages-page .edm-loading-bubble {
  background-color: rgba(184, 156, 255, .13);
  background-image: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .12) 45%, transparent 74%);
}

html[data-ed-theme="dark"] .edm-chat-editing-bar,
body.dark-mode .edm-chat-editing-bar,
body.ed-dark-mode .edm-chat-editing-bar {
  border-color: rgba(184, 156, 255, .2);
  background:
    linear-gradient(135deg, rgba(184, 156, 255, .12), rgba(28, 184, 166, .08)),
    rgba(20, 25, 42, .94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
}

html[data-ed-theme="dark"] .edm-chat-editing-bar button,
body.dark-mode .edm-chat-editing-bar button,
body.ed-dark-mode .edm-chat-editing-bar button {
  border-color: rgba(226, 219, 241, .16);
  background: rgba(255, 255, 255, .07);
  color: #f8f4ff;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-message-stack.is-editing-source > .edm-message:not(.is-event-invite),
body.dark-mode .edm-messages-page .edm-message-stack.is-editing-source > .edm-message:not(.is-event-invite),
body.ed-dark-mode .edm-messages-page .edm-message-stack.is-editing-source > .edm-message:not(.is-event-invite) {
  border-color: rgba(184, 156, 255, .42);
  box-shadow:
    0 0 0 4px rgba(184, 156, 255, .08),
    0 18px 42px rgba(0, 0, 0, .34);
}

@media (min-width: 901px) {
  .edm-messages-page .edm-chat {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 360px);
    grid-template-areas:
      "head context-panel"
      "context context-panel"
      "notice context-panel"
      "stream context-panel"
      "form context-panel";
  }

  .edm-messages-page .edm-chat-context-panel {
    display: block;
  }
}

@media (max-width: 900px) {
  .edm-messages-page .edm-messages {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .edm-messages-page .edm-chat {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "context"
      "notice"
      "stream"
      "form";
  }

  .edm-messages-page .edm-chat-context-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .edm-messages-page {
    width: min(100% - 16px, 720px);
    padding: 8px 0;
  }

  .edm-messages-page .edm-messages {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas: "messages-stack";
    height: var(--edm-messages-height, calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 20px));
    min-height: 0;
    border-radius: 24px;
  }

  .edm-messages-page .edm-thread-list,
  .edm-messages-page .edm-chat {
    grid-area: messages-stack;
    min-height: 0;
    height: 100%;
  }

  .edm-messages-page .edm-thread-list {
    position: relative;
    z-index: 1;
    border-right: 0;
    transform: translateX(0);
    transition: opacity .22s ease, transform .22s ease;
  }

  .edm-messages-page .edm-chat {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform: translateX(100%);
    transition: transform .24s ease;
  }

  .edm-messages-page .edm-messages.is-chat-open .edm-chat {
    transform: translateX(0);
  }

  .edm-messages-page .edm-messages.is-chat-open .edm-thread-list {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-18%);
  }

  .edm-messages-page .edm-chat-back {
    display: inline-flex;
  }

  .edm-messages-page .edm-chat-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .edm-messages-page .edm-chat-person {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .edm-messages-page .edm-chat-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .edm-messages-page .edm-chat-actions::-webkit-scrollbar {
    display: none;
  }
}

/* Messages responsive structure polish: keep chat content first on tablet and mobile. */
@media (max-width: 900px) {
  .edm-messages-page .edm-chat {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }

  .edm-messages-page .edm-chat-head {
    gap: 10px;
    padding: 12px;
  }

  .edm-messages-page .edm-chat-person {
    min-width: 0;
  }

  .edm-messages-page .edm-chat-person .edm-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
  }

  .edm-messages-page .edm-chat-head strong {
    font-size: clamp(1.05rem, 4vw, 1.38rem);
  }

  .edm-messages-page .edm-chat-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 1px 0 3px;
    scrollbar-width: none;
  }

  .edm-messages-page .edm-chat-actions::-webkit-scrollbar {
    display: none;
  }

  .edm-messages-page .edm-chat-actions .edm-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    font-size: .82rem;
    white-space: nowrap;
  }

  .edm-messages-page .edm-chat-context-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 10px 12px;
    scrollbar-width: none;
  }

  .edm-messages-page .edm-chat-context-strip::-webkit-scrollbar {
    display: none;
  }

  .edm-messages-page .edm-chat-context-strip div {
    flex: 0 0 clamp(142px, 24vw, 190px);
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .edm-messages-page .edm-chat-context-strip strong {
    font-size: .98rem;
  }

  .edm-messages-page .edm-chat-context-strip span {
    font-size: .7rem;
  }

  .edm-messages-page .edm-chat-stream {
    padding: 14px;
  }

  .edm-messages-page .edm-chat-form {
    gap: 8px;
    padding: 10px;
  }

  .edm-messages-page .edm-chat-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .edm-messages-page .edm-chat-tools::-webkit-scrollbar {
    display: none;
  }

  .edm-messages-page .edm-chat-tools .edm-btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    font-size: .8rem;
    white-space: nowrap;
  }

  .edm-messages-page .edm-chat-form-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .edm-messages-page .edm-chat-form input {
    min-height: 44px;
    border-radius: 16px;
    padding: 11px 13px;
  }

  .edm-messages-page .edm-chat-form-main .edm-btn {
    min-width: 76px;
    min-height: 44px;
    padding: 10px 14px;
  }
}

@media (max-width: 760px) {
  .edm-messages-page .edm-chat-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .edm-messages-page .edm-chat-back {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--edm-message-border);
    border-radius: 999px;
    background: var(--edm-message-accent-soft);
    color: var(--edm-message-accent);
    font-size: .82rem;
    font-weight: 950;
  }

  .edm-messages-page .edm-chat-person {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .edm-messages-page .edm-chat-person .edm-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }

  .edm-messages-page .edm-chat-context-strip div {
    flex-basis: 136px;
  }

  .edm-messages-page .edm-chat-stream {
    padding: 12px;
  }

  .edm-messages-page .edm-message,
  .edm-messages-page .edm-message-stack,
  .edm-messages-page .edm-message-row {
    max-width: 88%;
  }

  .edm-messages-page .edm-loading-message {
    width: 100%;
  }

  .edm-messages-page .edm-loading-message .edm-loading-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
  }

  .edm-messages-page .edm-loading-bubble {
    max-width: calc(100% - 52px);
  }
}

@media (max-width: 430px) {
  .edm-messages-page .edm-chat-head {
    padding: 10px;
  }

  .edm-messages-page .edm-chat-context-strip {
    padding: 8px 10px;
  }

  .edm-messages-page .edm-chat-context-strip div {
    flex-basis: 126px;
    min-height: 54px;
  }

  .edm-messages-page .edm-chat-form {
    padding: 8px;
  }
}

/* Keep mobile focus inside the chat shell instead of expanding the whole app. */
@media (max-width: 900px) {
  .edm-messages-page .edm-messages {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .edm-messages-page .edm-messages.is-keyboard-active {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    max-height: var(--edm-messages-height, 100%);
    margin: 0;
    border-radius: 0;
    transform: none;
  }

  .edm-messages-page .edm-chat {
    border: 1px solid var(--edm-message-border);
    border-radius: 22px;
    background: var(--edm-message-glass);
    box-shadow: var(--edm-message-shadow-soft);
  }

  .edm-messages-page .edm-chat-stream {
    min-height: 0;
  }

  .edm-messages-page .edm-chat-form {
    position: relative;
    bottom: auto;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .edm-messages-page {
    width: min(100% - 10px, 720px);
  }

  .edm-messages-page .edm-chat {
    border-radius: 18px;
  }

  .edm-messages-page .edm-messages.is-keyboard-active .edm-chat-form {
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    background: var(--edm-message-glass);
  }
}

/* Streamline chat context: all viewports open details from the compact contact bar. */
@media (min-width: 901px) {
  .edm-messages-page .edm-chat {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "notice"
      "stream"
      "form";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .edm-messages-page .edm-chat-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 68px;
    padding: 12px 16px;
    position: relative;
    z-index: 8;
  }

  .edm-messages-page .edm-chat-actions,
  .edm-messages-page .edm-chat-context-strip,
  .edm-messages-page .edm-chat-context-panel {
    display: none !important;
  }

  .edm-messages-page .edm-chat-person {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    gap: 10px;
    min-width: 0;
  }

  .edm-messages-page .edm-chat-person::after {
    content: "";
    justify-self: end;
    width: 4px;
    height: 4px;
    margin-right: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
    opacity: .58;
  }

  .edm-messages-page .edm-chat-person:disabled::after {
    opacity: 0;
  }

  .edm-messages-page .edm-chat-person .edm-avatar,
  .edm-messages-page .edm-message-sender-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
  }

  .edm-messages-page .edm-chat-head strong {
    font-size: 1.12rem;
    line-height: 1.15;
  }

  .edm-messages-page .edm-chat-head small {
    margin-top: 2px;
    font-size: .78rem;
    line-height: 1.2;
  }
}

@media (max-width: 900px) {
  body.ed-member-messages-page {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .edm-messages-page {
    --edm-messages-height: calc(100dvh - var(--admin-bar-height, 0px) - var(--header-height, 72px));
    width: min(100% - 10px, 720px);
    max-width: 720px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
  }

  .edm-messages-page .edm-messages {
    height: var(--edm-messages-height);
    max-height: var(--edm-messages-height);
    min-height: 0;
  }

  .edm-messages-page .edm-chat {
    grid-template-areas:
      "head"
      "notice"
      "stream"
      "form";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .edm-messages-page .edm-chat-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    position: relative;
    z-index: 8;
  }

  .edm-messages-page .edm-chat-actions,
  .edm-messages-page .edm-chat-context-strip {
    display: none !important;
  }

  .edm-messages-page .edm-chat-person {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 9px;
    min-width: 0;
  }

  .edm-messages-page .edm-chat-person::after {
    content: "";
    justify-self: end;
    width: 4px;
    height: 4px;
    margin-right: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
    opacity: .56;
  }

  .edm-messages-page .edm-chat-person:disabled::after {
    opacity: 0;
  }

  .edm-messages-page .edm-chat-person .edm-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 14px;
  }

  .edm-messages-page .edm-chat-head strong {
    font-size: 1rem;
    line-height: 1.12;
  }

  .edm-messages-page .edm-chat-head small {
    margin-top: 2px;
    font-size: .76rem;
    line-height: 1.2;
  }
}

@media (max-width: 430px) {
  .edm-messages-page .edm-chat-head {
    padding: 7px 8px;
  }

  .edm-options-context-grid {
    grid-template-columns: 1fr;
  }
}

/* Hard stop for mobile sideways drift: every messaging surface sizes to its container. */
@media (max-width: 900px) {
  html.ed-member-lock-scroll,
  body.ed-member-runtime-messages-page,
  body.ed-member-messages-page {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .edm-messages-page,
  .edm-messages-page .edm-messages,
  .edm-messages-page .edm-thread-list,
  .edm-messages-page .edm-chat,
  .edm-messages-page .edm-chat-head,
  .edm-messages-page .edm-chat-stream,
  .edm-messages-page .edm-chat-form,
  .edm-messages-page .edm-chat-form-main,
  .edm-messages-page .edm-message,
  .edm-messages-page .edm-message-stack,
  .edm-messages-page .edm-message-row,
  .edm-messages-page .edm-loading-list,
  .edm-messages-page .edm-chat-loading,
  .edm-messages-page .edm-loading-message,
  .edm-event-invite-cards,
  .edm-event-invite-shell,
  .edm-event-invite-card,
  .edm-event-invite-card-body,
  .edm-event-rsvp-dock {
    min-width: 0;
    max-width: 100%;
  }

  .edm-messages-page {
    width: 100%;
    margin-inline: auto;
    overflow-x: hidden;
  }

  .edm-messages-page .edm-chat,
  .edm-messages-page .edm-chat-stream,
  .edm-messages-page .edm-chat-form {
    overflow-x: hidden;
  }

  .edm-messages-page .edm-message-row {
    width: 100%;
  }

  .edm-messages-page .edm-message-row .edm-message-stack {
    flex: 0 1 calc(100% - 52px);
    max-width: calc(100% - 52px);
  }

  .edm-messages-page .edm-message-row .edm-message-stack.is-event-invite {
    width: calc(100% - 52px);
  }

  .edm-messages-page .edm-message-stack.is-event-invite,
  .edm-messages-page .edm-message-stack.is-event-invite.is-mine {
    width: 100%;
    max-width: 100%;
  }

  .edm-messages-page .edm-chat-tools,
  .edm-messages-page .edm-chat-actions,
  .edm-messages-page .edm-chat-context-strip,
  .edm-event-invite-card-actions,
  .edm-event-going-list {
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: hidden;
  }

  .edm-messages-page .edm-chat-tools .edm-btn,
  .edm-messages-page .edm-chat-actions .edm-btn,
  .edm-event-invite-card-actions a,
  .edm-event-going-button {
    min-width: 0;
  }

  .edm-messages-page .edm-chat-form-main {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .edm-messages-page .edm-chat-stream {
    padding-inline: 8px;
  }

  .edm-messages-page .edm-message-row .edm-message-stack {
    flex-basis: calc(100% - 48px);
    max-width: calc(100% - 48px);
  }

  .edm-messages-page .edm-message-row .edm-message-stack.is-event-invite {
    width: calc(100% - 48px);
  }
}

html.edm-profile-save-pending,
html.edm-profile-save-pending a,
html.edm-profile-save-pending button {
  cursor: progress;
}

/* Final messaging selection polish: no heavy left-edge focus stripe. */
.edm-messages-page .edm-thread,
.edm-messages-page .edm-thread:focus,
.edm-messages-page .edm-thread:focus-visible {
  outline: 0 !important;
}

.edm-messages-page .edm-thread.is-active,
.edm-messages-page .edm-thread.is-active:focus,
.edm-messages-page .edm-thread.is-active:focus-visible {
  border: 1px solid rgba(48, 31, 84, .1) !important;
  border-left-color: rgba(48, 31, 84, .1) !important;
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: 0 8px 18px rgba(48, 31, 84, .045) !important;
}

.edm-messages-page .edm-thread:focus-visible {
  border-color: rgba(109, 40, 217, .2) !important;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .08) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active,
html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active:focus,
html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active:focus-visible,
body.dark-mode .edm-messages-page .edm-thread.is-active,
body.dark-mode .edm-messages-page .edm-thread.is-active:focus,
body.dark-mode .edm-messages-page .edm-thread.is-active:focus-visible,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active:focus,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active:focus-visible {
  border-color: rgba(255, 255, 255, .12) !important;
  border-left-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14) !important;
}

/* Keep the member activity section aligned to the full profile card width. */
.edm-user-profile #activity > .edm-user-profile__card-head,
.edm-user-profile #activity > .edm-user-profile__composer,
.edm-user-profile #activity > .edm-user-profile__activity-wall {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.edm-user-profile #activity .edm-feed-item {
  width: 100% !important;
  max-width: none !important;
}

/* Messaging active row: a clean one-pixel outline with no heavy side stripe. */
.edm-messages-page .edm-thread,
.edm-messages-page .edm-thread:focus,
.edm-messages-page .edm-thread:focus-visible {
  outline: 0 !important;
}

.edm-messages-page .edm-option-row[hidden],
.edm-messages-page [data-edm-leave-group-chat][hidden] {
  display: none !important;
}

.edm-messages-page .edm-thread.is-active,
.edm-messages-page .edm-thread.is-active:hover,
.edm-messages-page .edm-thread.is-active:focus,
.edm-messages-page .edm-thread.is-active:focus-visible {
  border: 1px solid rgba(48, 31, 84, .12) !important;
  border-left-width: 1px !important;
  border-left-color: rgba(48, 31, 84, .12) !important;
  background: rgba(255, 255, 255, .72) !important;
  background-image: none !important;
  box-shadow: 0 8px 18px rgba(48, 31, 84, .045) !important;
  animation: edm-active-thread-soft-pulse 5s ease-in-out infinite !important;
}

.edm-messages-page .edm-thread:focus-visible {
  box-shadow:
    0 0 0 3px rgba(109, 40, 217, .09),
    0 8px 18px rgba(48, 31, 84, .045) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active,
html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active:hover,
html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active:focus,
html[data-ed-theme="dark"] .edm-messages-page .edm-thread.is-active:focus-visible,
body.dark-mode .edm-messages-page .edm-thread.is-active,
body.dark-mode .edm-messages-page .edm-thread.is-active:hover,
body.dark-mode .edm-messages-page .edm-thread.is-active:focus,
body.dark-mode .edm-messages-page .edm-thread.is-active:focus-visible,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active:hover,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active:focus,
body.ed-dark-mode .edm-messages-page .edm-thread.is-active:focus-visible {
  border-color: rgba(255, 255, 255, .12) !important;
  border-left-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .055) !important;
  background-image: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14) !important;
}

@keyframes edm-active-thread-soft-pulse {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(48, 31, 84, .045);
  }

  50% {
    box-shadow: 0 10px 22px rgba(109, 40, 217, .075);
  }
}

@media (prefers-reduced-motion: reduce) {
  .edm-messages-page .edm-thread.is-active,
  .edm-messages-page .edm-thread.is-active:hover,
  .edm-messages-page .edm-thread.is-active:focus,
  .edm-messages-page .edm-thread.is-active:focus-visible {
    animation: none;
  }
}

/* Selected conversation: no perimeter treatment, so no clipped dark edge can show. */
.edm-messages-page [data-edm-conversations] .edm-thread.is-active,
.edm-messages-page [data-edm-conversations] .edm-thread.is-active:hover,
.edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus,
.edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus-visible {
  border-color: transparent !important;
  border-left-color: transparent !important;
  background: rgba(255, 255, 255, .7) !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  animation: none !important;
  overflow: hidden;
  transform: none !important;
  -webkit-tap-highlight-color: transparent;
}

.edm-messages-page [data-edm-conversations] .edm-thread.is-active::before,
.edm-messages-page [data-edm-conversations] .edm-thread.is-active::after {
  content: none !important;
  display: none !important;
}

.edm-messages-page [data-edm-conversations] .edm-thread.is-active .edm-avatar:not(.is-online) {
  --edm-avatar-presence-ring: transparent;
}

html[data-ed-theme="dark"] .edm-messages-page [data-edm-conversations] .edm-thread.is-active,
html[data-ed-theme="dark"] .edm-messages-page [data-edm-conversations] .edm-thread.is-active:hover,
html[data-ed-theme="dark"] .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus,
html[data-ed-theme="dark"] .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus-visible,
body.dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active,
body.dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active:hover,
body.dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus,
body.dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus-visible,
body.ed-dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active,
body.ed-dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active:hover,
body.ed-dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus,
body.ed-dark-mode .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus-visible {
  border-color: transparent !important;
  background: rgba(255, 255, 255, .045) !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Friend event sharing needs a solid, readable surface even when the site is in dark mode. */
.edm-options-modal.edm-options-modal--event-friends {
  background: rgba(12, 10, 20, .72) !important;
  backdrop-filter: blur(12px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.05) !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends {
  border-color: rgba(109, 40, 217, .24) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #171321 !important;
  box-shadow: 0 34px 90px rgba(5, 4, 12, .46) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends header,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header {
  border-bottom-color: rgba(109, 40, 217, .16) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .11), rgba(236, 72, 153, .08)),
    #ffffff !important;
  color: #171321 !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
.edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
.edm-options-modal--event-friends .edm-picker-row strong,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-picker-row strong,
body.dark-mode .edm-options-modal--event-friends .edm-picker-row strong,
body.ed-dark-mode .edm-options-modal--event-friends .edm-picker-row strong {
  color: #171321 !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends header button,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header button,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button {
  background: rgba(109, 40, 217, .1) !important;
  color: #5b21b6 !important;
  box-shadow: none !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child {
  background: linear-gradient(135deg, #6d28d9, #c0268b) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(109, 40, 217, .22) !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled {
  opacity: .58 !important;
  box-shadow: none !important;
}

.edm-options-modal--event-friends .edm-event-friend-share-preview,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview {
  border-color: rgba(109, 40, 217, .18) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .08), rgba(15, 118, 110, .07)),
    #ffffff !important;
  color: #171321 !important;
  box-shadow: 0 14px 32px rgba(58, 35, 103, .1) !important;
}

.edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
.edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
.edm-options-modal--event-friends .edm-picker-row small,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-picker-row small,
body.dark-mode .edm-options-modal--event-friends .edm-picker-row small,
body.ed-dark-mode .edm-options-modal--event-friends .edm-picker-row small {
  color: #645b72 !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"],
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"],
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"],
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"] {
  border-color: rgba(109, 40, 217, .34) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #171321 !important;
  box-shadow: 0 10px 26px rgba(58, 35, 103, .08) !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder {
  color: rgba(71, 62, 88, .62) !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results {
  background: #ffffff !important;
  background-image: none !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row {
  border-color: rgba(58, 35, 103, .16) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #171321 !important;
  box-shadow: 0 10px 24px rgba(58, 35, 103, .08) !important;
}

.edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked),
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked),
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked),
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked) {
  border-color: rgba(109, 40, 217, .44) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .1), rgba(236, 72, 153, .06)),
    #ffffff !important;
}

.edm-options-modal.edm-options-modal--event-friends.edm-options-modal--mobile-sheet {
  place-items: end stretch !important;
  align-items: end !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet {
  width: 100% !important;
  height: min(82dvh, 760px);
  min-height: min(540px, 86dvh);
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
  border-width: 1px 0 0 !important;
  border-radius: 24px 24px 0 0 !important;
  transform: translateY(var(--edm-sheet-drag-y, 0));
  transition: transform .22s ease;
  animation: edmEventFriendSheetIn .24s ease both;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends.is-dragging,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet.is-dragging {
  transition: none;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-event-friend-share-sheet-grip,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet .edm-event-friend-share-sheet-grip {
  display: grid !important;
  place-items: center;
  min-height: 26px;
  padding-top: 8px;
  touch-action: none;
  cursor: grab;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-event-friend-share-sheet-grip span,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet .edm-event-friend-share-sheet-grip span {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(48, 31, 84, .28);
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends header,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet header {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  padding: 6px 16px 12px;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends header h3,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet header h3 {
  font-size: 1rem;
  line-height: 1.1;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-event-friend-share-preview,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet .edm-event-friend-share-preview {
  margin: 0 14px 10px;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends input[type="search"],
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet input[type="search"] {
  margin: 0 14px 12px;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends .edm-picker-results,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet .edm-picker-results {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.edm-options-modal.edm-options-modal--event-friends {
  opacity: 1;
  transition:
    opacity .22s ease,
    background-color .22s ease,
    backdrop-filter .22s ease;
}

.edm-options-modal.edm-options-modal--event-friends.is-closing {
  opacity: .01;
  pointer-events: none !important;
  background: rgba(12, 10, 20, 0) !important;
  backdrop-filter: blur(0) saturate(1) !important;
  -webkit-backdrop-filter: blur(0) saturate(1) !important;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet {
  will-change: transform;
  animation: edmEventFriendSheetIn .32s cubic-bezier(.2, .82, .22, 1) both;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet.is-closing .edm-options-dialog-event-friends,
.edm-options-modal--event-friends.is-closing .edm-options-dialog-event-friends.is-mobile-sheet {
  transform: translateY(calc(100% + 32px)) !important;
  transition: transform .26s cubic-bezier(.22, .78, .18, 1) !important;
  animation: none !important;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-event-friend-share-sheet-grip,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet .edm-event-friend-share-sheet-grip,
.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends header,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet header {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.edm-options-modal--event-friends.edm-options-modal--mobile-sheet .edm-options-dialog-event-friends.is-dragging,
.edm-options-modal--event-friends .edm-options-dialog-event-friends.is-mobile-sheet.is-dragging {
  cursor: grabbing;
}

html[data-ed-theme="dark"] .edm-options-modal.edm-options-modal--event-friends,
body.dark-mode .edm-options-modal.edm-options-modal--event-friends,
body.ed-dark-mode .edm-options-modal.edm-options-modal--event-friends {
  background: rgba(4, 3, 10, .78) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends {
  border-color: rgba(213, 196, 255, .26) !important;
  background:
    linear-gradient(145deg, rgba(109, 40, 217, .12), rgba(15, 118, 110, .08) 42%, transparent 72%),
    #171321 !important;
  color: #fbf8ff !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .72) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header {
  border-bottom-color: rgba(213, 196, 255, .18) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .26), rgba(236, 72, 153, .13)),
    #211a2e !important;
  color: #fbf8ff !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header h3,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy strong,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-picker-row strong,
body.dark-mode .edm-options-modal--event-friends .edm-picker-row strong,
body.ed-dark-mode .edm-options-modal--event-friends .edm-picker-row strong {
  color: #fbf8ff !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header button,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button {
  background: rgba(213, 196, 255, .13) !important;
  color: #d9ccff !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:last-child {
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(124, 58, 237, .24) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends header button:disabled {
  opacity: .62 !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview {
  border-color: rgba(213, 196, 255, .22) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .16), rgba(15, 118, 110, .12)),
    #201a2b !important;
  color: #fbf8ff !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .34) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy small,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-preview__copy em,
html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-picker-row small,
body.dark-mode .edm-options-modal--event-friends .edm-picker-row small,
body.ed-dark-mode .edm-options-modal--event-friends .edm-picker-row small {
  color: #c8bed8 !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"],
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"],
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"] {
  border-color: rgba(213, 196, 255, .32) !important;
  background: #120f1c !important;
  color: #fbf8ff !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends input[type="search"]::placeholder {
  color: rgba(226, 219, 241, .58) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-results {
  background: transparent !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row,
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row,
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row {
  border-color: rgba(213, 196, 255, .18) !important;
  background: rgba(255, 255, 255, .055) !important;
  color: #fbf8ff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked),
body.dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked),
body.ed-dark-mode .edm-options-modal--event-friends .edm-options-dialog-event-friends .edm-picker-row:has(input:checked) {
  border-color: rgba(192, 132, 252, .54) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .24), rgba(236, 72, 153, .14)),
    rgba(255, 255, 255, .07) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--event-friends .edm-event-friend-share-sheet-grip span,
body.dark-mode .edm-options-modal--event-friends .edm-event-friend-share-sheet-grip span,
body.ed-dark-mode .edm-options-modal--event-friends .edm-event-friend-share-sheet-grip span {
  background: rgba(226, 219, 241, .38) !important;
}

@media (prefers-reduced-motion: reduce) {
  .edm-options-modal.edm-options-modal--event-friends,
  .edm-options-modal--event-friends .edm-options-dialog-event-friends {
    animation: none !important;
    transition: none !important;
  }
}

/* Light mode needs a clearer selected chat cue without the old heavy border. */
html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active,
html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active:hover,
html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus,
html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active:focus-visible {
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .105), rgba(236, 72, 153, .045) 54%, rgba(255, 255, 255, .88)) !important;
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, .13) !important;
}

html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active .edm-avatar:not(.is-online) {
  --edm-avatar-presence-ring: transparent;
}

.edm-messages-page .edm-avatar.is-online,
.edm-messages-page [data-edm-conversations] .edm-thread.is-active .edm-avatar.is-online,
.edm-messages-page .edm-chat-person .edm-avatar.is-online,
.edm-messages-page .edm-message-sender-avatar.is-online,
.edm-messages-page .edm-chat-context-avatar.is-online {
  --edm-avatar-presence-ring: #22c55e;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-avatar.is-online,
body.dark-mode .edm-messages-page .edm-avatar.is-online,
body.ed-dark-mode .edm-messages-page .edm-avatar.is-online {
  --edm-avatar-presence-ring: #4ade80;
}

html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active .edm-thread-name strong {
  color: #2f2450 !important;
}

html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active small,
html:not([data-ed-theme="dark"]) body:not(.dark-mode):not(.ed-dark-mode) .edm-messages-page [data-edm-conversations] .edm-thread.is-active time {
  color: #655677 !important;
}

/* My Events card actions: keep Going visible and move everything else behind options. */
.edm-my-events__card-actions {
  grid-template-columns: minmax(138px, 1fr) 40px 46px !important;
  gap: 10px !important;
  width: min(336px, 100%) !important;
  align-items: stretch !important;
}

.edm-my-events__card-actions .edm-event-going-button {
  width: 100% !important;
  min-height: 44px !important;
  padding: 9px 14px !important;
  font-size: .84rem !important;
}

.edm-my-events__share-trigger {
  width: 40px;
  min-width: 40px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 999px;
  color: var(--edm-my-events-primary);
  background: color-mix(in srgb, var(--edm-my-events-primary) 10%, var(--edm-my-events-surface-strong));
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.edm-my-events__share-trigger:hover {
  border-color: color-mix(in srgb, var(--edm-my-events-primary) 34%, var(--edm-my-events-border));
  background: var(--edm-my-events-surface-strong);
  transform: translateY(-1px);
}

.edm-my-events__share-trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--edm-my-events-primary) 24%, transparent);
  outline-offset: 3px;
}

.edm-my-events__share-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edm-my-events__options-trigger {
  width: 46px;
  min-width: 46px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--edm-my-events-border);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .055), transparent 58%),
    var(--edm-my-events-surface-strong);
  color: var(--edm-my-events-primary);
  box-shadow: var(--edm-my-events-shadow-soft);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.edm-my-events__options-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 40, 217, .26);
  box-shadow: 0 14px 28px rgba(58, 35, 103, .12);
}

.edm-my-events__options-trigger:focus-visible {
  outline: 3px solid rgba(109, 40, 217, .22);
  outline-offset: 3px;
}

.edm-my-events__options-trigger svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edm-options-modal.edm-options-modal--my-event {
  background: rgba(12, 10, 20, .58) !important;
  backdrop-filter: blur(10px) saturate(1.04) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.04) !important;
}

.edm-options-dialog-my-event {
  width: min(calc(100% - 32px), 520px);
  max-height: min(720px, 92dvh);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  color: #171321;
  box-shadow: 0 34px 90px rgba(5, 4, 12, .38);
}

.edm-options-dialog-my-event header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(109, 40, 217, .14);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .1), rgba(236, 72, 153, .07)),
    #ffffff;
}

.edm-options-dialog-my-event header::after {
  content: "";
}

.edm-options-dialog-my-event header h3 {
  margin: 0;
  color: #171321;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
  font-weight: 950;
}

.edm-options-dialog-my-event header button {
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(109, 40, 217, .1);
  color: #5b21b6;
  font-weight: 950;
  cursor: pointer;
}

.edm-options-dialog-my-event .edm-event-friend-share-preview {
  margin: 14px 14px 0;
}

.edm-my-event-options-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
}

.edm-my-event-option-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(58, 35, 103, .13);
  border-radius: 17px;
  background: #ffffff;
  color: #171321;
  text-align: left;
  box-shadow: 0 10px 24px rgba(58, 35, 103, .07);
  cursor: pointer;
}

.edm-my-event-option-row:hover {
  border-color: rgba(109, 40, 217, .26);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .07), rgba(236, 72, 153, .035)),
    #ffffff;
}

.edm-my-event-option-row strong,
.edm-my-event-option-row small {
  display: block;
}

.edm-my-event-option-row strong {
  color: #171321;
  font-weight: 950;
}

.edm-my-event-option-row small {
  margin-top: 3px;
  color: #645b72;
  font-size: .8rem;
  line-height: 1.35;
  font-weight: 760;
}

.edm-my-event-option-row em {
  min-width: 82px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(109, 40, 217, .1);
  color: #5b21b6;
  font-size: .76rem;
  font-style: normal;
  font-weight: 950;
}

.edm-my-event-option-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #6d28d9;
}

.edm-my-event-option-row.is-danger strong,
.edm-my-event-option-row.is-danger em {
  color: #b11226;
}

.edm-my-event-option-row.is-danger em {
  background: rgba(177, 18, 38, .08);
}

.edm-options-modal.edm-options-modal--my-event.edm-options-modal--mobile-sheet {
  place-items: end stretch !important;
  align-items: end !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-options-dialog-my-event,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet {
  width: 100% !important;
  height: auto;
  min-height: 0;
  max-height: min(78dvh, 700px);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  border: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -22px 60px rgba(0, 0, 0, .48) !important;
  transform: translateY(var(--edm-sheet-drag-y, 0));
  transition: transform .22s ease;
  animation: edmEventFriendSheetIn .32s cubic-bezier(.2, .82, .22, 1) both;
  will-change: transform;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-options-dialog-my-event.is-dragging,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet.is-dragging {
  transition: none;
  cursor: grabbing;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet.is-closing .edm-options-dialog-my-event,
.edm-options-modal--my-event.is-closing .edm-options-dialog-my-event.is-mobile-sheet {
  transform: translateY(calc(100% + 32px)) !important;
  transition: transform .26s cubic-bezier(.22, .78, .18, 1) !important;
  animation: none !important;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-event-friend-share-sheet-grip,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-sheet-grip {
  display: grid !important;
  place-items: center;
  min-height: 22px;
  padding-top: 7px;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .1), rgba(236, 72, 153, .07)),
    #ffffff;
  touch-action: none;
  cursor: grab;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-event-friend-share-sheet-grip span,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-sheet-grip span {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(48, 31, 84, .28);
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-options-dialog-my-event header,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet header {
  padding: 3px 14px 10px;
  border-top: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-options-dialog-my-event .edm-event-friend-share-preview,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-preview {
  margin: 0 12px 8px;
  min-height: 0;
  align-self: start;
}

.edm-options-modal--my-event.edm-options-modal--mobile-sheet .edm-my-event-options-actions,
.edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-my-event-options-actions {
  min-height: 0;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

html[data-ed-theme="dark"] .edm-my-events__options-trigger {
  background:
    linear-gradient(135deg, rgba(199, 173, 255, .12), transparent 58%),
    var(--edm-my-events-surface-strong);
  color: var(--edm-my-events-primary);
}

html[data-ed-theme="dark"] .edm-options-modal.edm-options-modal--my-event,
body.dark-mode .edm-options-modal.edm-options-modal--my-event,
body.ed-dark-mode .edm-options-modal.edm-options-modal--my-event {
  background: rgba(4, 3, 10, .78) !important;
}

html[data-ed-theme="dark"] .edm-options-dialog-my-event,
body.dark-mode .edm-options-dialog-my-event,
body.ed-dark-mode .edm-options-dialog-my-event {
  border: 0;
  background:
    linear-gradient(145deg, rgba(109, 40, 217, .12), rgba(15, 118, 110, .08) 42%, transparent 72%),
    #171321;
  color: #fbf8ff;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(167, 139, 250, .08);
}

html[data-ed-theme="dark"] .edm-options-dialog-my-event header,
body.dark-mode .edm-options-dialog-my-event header,
body.ed-dark-mode .edm-options-dialog-my-event header {
  border-bottom-color: rgba(213, 196, 255, .18);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .26), rgba(236, 72, 153, .13)),
    #211a2e;
}

html[data-ed-theme="dark"] .edm-options-dialog-my-event header h3,
body.dark-mode .edm-options-dialog-my-event header h3,
body.ed-dark-mode .edm-options-dialog-my-event header h3,
html[data-ed-theme="dark"] .edm-my-event-option-row strong,
body.dark-mode .edm-my-event-option-row strong,
body.ed-dark-mode .edm-my-event-option-row strong {
  color: #fbf8ff;
}

html[data-ed-theme="dark"] .edm-options-dialog-my-event header button,
body.dark-mode .edm-options-dialog-my-event header button,
body.ed-dark-mode .edm-options-dialog-my-event header button {
  background: rgba(213, 196, 255, .13);
  color: #d9ccff;
}

html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-event-friend-share-preview,
body.dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview,
body.ed-dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview {
  border-color: rgba(213, 196, 255, .22) !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .16), rgba(15, 118, 110, .12)),
    #201a2b !important;
  color: #fbf8ff !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .34) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-event-friend-share-preview__copy strong,
body.dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview__copy strong,
body.ed-dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview__copy strong {
  color: #fbf8ff !important;
}

html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-event-friend-share-preview__copy small,
html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-event-friend-share-preview__copy em,
body.dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview__copy small,
body.dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview__copy em,
body.ed-dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview__copy small,
body.ed-dark-mode .edm-options-modal--my-event .edm-event-friend-share-preview__copy em {
  color: #c8bed8 !important;
}

html[data-ed-theme="dark"] .edm-my-event-option-row,
body.dark-mode .edm-my-event-option-row,
body.ed-dark-mode .edm-my-event-option-row {
  border-color: rgba(213, 196, 255, .18);
  background: rgba(255, 255, 255, .055);
  color: #fbf8ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

html[data-ed-theme="dark"] .edm-my-event-option-row:hover,
body.dark-mode .edm-my-event-option-row:hover,
body.ed-dark-mode .edm-my-event-option-row:hover {
  border-color: rgba(192, 132, 252, .42);
  background:
    linear-gradient(135deg, rgba(109, 40, 217, .22), rgba(236, 72, 153, .12)),
    rgba(255, 255, 255, .07);
}

html[data-ed-theme="dark"] .edm-my-event-option-row small,
body.dark-mode .edm-my-event-option-row small,
body.ed-dark-mode .edm-my-event-option-row small {
  color: #c8bed8;
}

html[data-ed-theme="dark"] .edm-my-event-option-row em,
body.dark-mode .edm-my-event-option-row em,
body.ed-dark-mode .edm-my-event-option-row em {
  background: rgba(213, 196, 255, .13);
  color: #d9ccff;
}

html[data-ed-theme="dark"] .edm-my-event-option-row.is-danger strong,
html[data-ed-theme="dark"] .edm-my-event-option-row.is-danger em,
body.dark-mode .edm-my-event-option-row.is-danger strong,
body.dark-mode .edm-my-event-option-row.is-danger em,
body.ed-dark-mode .edm-my-event-option-row.is-danger strong,
body.ed-dark-mode .edm-my-event-option-row.is-danger em {
  color: #ff8fa1;
}

html[data-ed-theme="dark"] .edm-my-event-option-row.is-danger em,
body.dark-mode .edm-my-event-option-row.is-danger em,
body.ed-dark-mode .edm-my-event-option-row.is-danger em {
  background: rgba(255, 143, 161, .13);
}

html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-event-friend-share-sheet-grip span,
body.dark-mode .edm-options-modal--my-event .edm-event-friend-share-sheet-grip span,
body.ed-dark-mode .edm-options-modal--my-event .edm-event-friend-share-sheet-grip span {
  background: rgba(226, 219, 241, .38) !important;
}

html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-sheet-grip,
body.dark-mode .edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-sheet-grip,
body.ed-dark-mode .edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-sheet-grip,
html[data-ed-theme="dark"] .edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet header,
body.dark-mode .edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet header,
body.ed-dark-mode .edm-options-modal--my-event .edm-options-dialog-my-event.is-mobile-sheet header {
  background: #29183a !important;
}

@media (max-width: 980px) {
  .edm-my-events__card-actions {
    width: 100% !important;
    margin-left: 0 !important;
    grid-template-columns: minmax(0, 1fr) 42px 48px !important;
  }

  .edm-my-events__share-trigger {
    width: 42px;
    min-width: 42px;
    min-height: 46px;
  }

  .edm-my-events__options-trigger {
    width: 48px;
    min-width: 48px;
    min-height: 46px;
  }
}

@media (max-width: 620px) {
  .edm-my-events__card-actions .edm-event-going-button {
    min-height: 46px !important;
    font-size: .9rem !important;
  }

  .edm-options-dialog-my-event header {
    grid-template-columns: 70px minmax(0, 1fr) 70px;
  }

  .edm-options-dialog-my-event header button {
    min-height: 34px;
    padding: 5px 9px;
    font-size: .88rem;
  }

  .edm-options-dialog-my-event header h3 {
    font-size: .96rem;
  }

  .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-preview {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    min-height: 72px;
    padding: 8px;
    border-radius: 15px;
  }

  .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-preview__image {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

  .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-preview__copy strong {
    font-size: .92rem;
    line-height: 1.12;
  }

  .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-preview__copy small,
  .edm-options-dialog-my-event.is-mobile-sheet .edm-event-friend-share-preview__copy em {
    margin-top: 2px;
    font-size: .7rem;
    line-height: 1.18;
  }

  .edm-options-dialog-my-event.is-mobile-sheet .edm-my-event-options-actions {
    gap: 8px;
    padding: 10px 12px max(14px, env(safe-area-inset-bottom));
  }

  .edm-my-event-option-row {
    min-height: 52px;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 15px;
  }

  .edm-my-event-option-row strong {
    font-size: .92rem;
    line-height: 1.12;
  }

  .edm-my-event-option-row small {
    margin-top: 2px;
    font-size: .72rem;
    line-height: 1.2;
  }

  .edm-my-event-option-row em {
    min-width: 62px;
    min-height: 27px;
    padding: 5px 9px;
    font-size: .7rem;
  }

.edm-my-event-option-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}

/* Modern event invite ticket. Keeps existing save, RSVP, details, and link hooks intact. */
.edm-messages-page .edm-message-stack.is-event-invite,
.edm-messages-page .edm-message-stack.is-event-invite.is-mine {
  width: min(820px, 96%) !important;
  max-width: min(820px, 96%) !important;
}

.edm-messages-page .edm-event-invite-cards {
  gap: 16px;
}

.edm-messages-page .edm-event-invite-shell {
  --edm-event-ticket-bg: rgba(255, 255, 255, .96);
  --edm-event-ticket-panel: #f8f5ff;
  --edm-event-ticket-text: #181326;
  --edm-event-ticket-muted: #6b617b;
  --edm-event-ticket-line: rgba(74, 44, 145, .16);
  --edm-event-ticket-accent: #6d3df5;
  --edm-event-ticket-accent-2: #ec4899;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edm-event-ticket-line) !important;
  border-radius: 24px !important;
  background: var(--edm-event-ticket-bg) !important;
  color: var(--edm-event-ticket-text) !important;
  box-shadow:
    0 18px 44px rgba(33, 23, 58, .14),
    0 2px 0 rgba(255, 255, 255, .86) inset !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.edm-messages-page .edm-event-invite-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 4px;
  background: linear-gradient(180deg, var(--edm-event-ticket-accent), var(--edm-event-ticket-accent-2));
  opacity: .9;
}

.edm-messages-page .edm-event-invite-shell:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 61, 245, .24) !important;
  box-shadow:
    0 22px 52px rgba(33, 23, 58, .18),
    0 2px 0 rgba(255, 255, 255, .88) inset !important;
}

.edm-messages-page .edm-event-invite-card {
  display: grid !important;
  grid-template-columns: minmax(154px, 36%) minmax(0, 1fr) !important;
  min-height: 184px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--edm-event-ticket-text) !important;
  box-shadow: none !important;
}

.edm-messages-page .edm-event-invite-card-media-wrap {
  min-height: 184px !important;
  aspect-ratio: auto !important;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .26), transparent 34%),
    linear-gradient(135deg, rgba(109, 61, 245, .16), rgba(236, 72, 153, .1)),
    #fff3ec !important;
}

.edm-messages-page .edm-event-invite-card-media {
  padding: 10px;
}

.edm-messages-page .edm-event-invite-card-media img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 12px 18px rgba(17, 13, 33, .18));
}

.edm-messages-page .edm-event-invite-save.edm-save-event-icon {
  --edm-save-size: 40px;
  top: 12px;
  right: 12px;
  box-shadow: 0 10px 24px rgba(33, 23, 58, .22);
}

.edm-messages-page .edm-event-invite-card-body {
  display: grid !important;
  align-content: center;
  gap: 9px !important;
  min-width: 0;
  padding: 18px 18px 16px !important;
}

.edm-messages-page .edm-event-invite-card-kicker {
  width: fit-content;
  padding: 5px 10px !important;
  border: 1px solid rgba(109, 61, 245, .13);
  border-radius: 999px;
  background: rgba(109, 61, 245, .1) !important;
  color: var(--edm-event-ticket-accent) !important;
  font-size: .72rem !important;
  letter-spacing: 0 !important;
}

.edm-messages-page .edm-event-invite-card-sender {
  color: var(--edm-event-ticket-muted) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
}

.edm-messages-page .edm-event-invite-card h4 {
  margin: 0 !important;
  color: var(--edm-event-ticket-text) !important;
  font-size: clamp(1rem, 1.1vw, 1.16rem) !important;
  font-weight: 950 !important;
  line-height: 1.14 !important;
}

.edm-messages-page .edm-event-invite-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 2px 0 0 !important;
}

.edm-messages-page .edm-event-invite-card-actions a,
.edm-messages-page .edm-event-going-button {
  min-height: 36px !important;
  padding: 8px 13px !important;
  border-color: rgba(109, 61, 245, .18) !important;
  background: #ffffff !important;
  color: #4a2c91 !important;
  box-shadow: 0 8px 18px rgba(109, 61, 245, .08) !important;
}

.edm-messages-page .edm-event-invite-card-actions a,
.edm-messages-page .edm-event-invite-card-actions .edm-event-details-toggle {
  flex: 0 1 auto;
  min-height: 36px !important;
  padding: 8px 13px !important;
  font-family: inherit !important;
  font-size: .86rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.edm-messages-page .edm-event-invite-card-actions a:hover,
.edm-messages-page .edm-event-going-button:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 61, 245, .32) !important;
  background: #f7f2ff !important;
}

.edm-messages-page .edm-event-invite-details {
  display: block;
  grid-column: 1 / -1;
  margin: 0 18px 18px;
  min-width: 0;
}

.edm-messages-page .edm-event-invite-details summary {
  display: none !important;
}

.edm-messages-page .edm-event-invite-details dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0 !important;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(109, 61, 245, .14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .07), rgba(31, 118, 110, .04)),
    rgba(255, 255, 255, .72);
  animation: edmEventDetailsReveal .18s ease both;
}

.edm-messages-page .edm-event-invite-card dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
  padding: 12px 13px;
  border-right: 1px solid rgba(109, 61, 245, .1);
}

.edm-messages-page .edm-event-invite-card dl div:last-child {
  border-right: 0;
}

.edm-messages-page .edm-event-invite-card dt {
  color: var(--edm-event-ticket-muted) !important;
  font-size: .72rem !important;
  line-height: 1.1;
}

.edm-messages-page .edm-event-invite-card dd {
  color: var(--edm-event-ticket-text) !important;
  overflow-wrap: anywhere;
  font-size: .92rem !important;
  line-height: 1.18;
}

.edm-messages-page .edm-event-rsvp-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px 13px !important;
  border-top: 1px solid var(--edm-event-ticket-line) !important;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .065), rgba(31, 118, 110, .06)),
    var(--edm-event-ticket-panel) !important;
}

.edm-messages-page .edm-event-going-panel-title,
.edm-messages-page .edm-event-going-empty {
  color: var(--edm-event-ticket-muted) !important;
}

.edm-messages-page .edm-event-going-chip {
  border-color: rgba(31, 118, 110, .18) !important;
  background: rgba(31, 118, 110, .1) !important;
  color: var(--edm-event-ticket-text) !important;
}

.edm-messages-page .edm-event-going-button--dock {
  min-width: 132px;
  background:
    linear-gradient(135deg, rgba(109, 61, 245, .1), rgba(255, 255, 255, .94)) !important;
}

.edm-messages-page .edm-event-going-button.is-going,
.edm-messages-page .edm-event-going-button[aria-pressed="true"] {
  border-color: rgba(31, 118, 110, .45) !important;
  background: linear-gradient(135deg, #0f766e, #4f46e5) !important;
  color: #ffffff !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-shell,
body.dark-mode .edm-messages-page .edm-event-invite-shell,
body.ed-dark-mode .edm-messages-page .edm-event-invite-shell {
  --edm-event-ticket-bg: rgba(18, 23, 36, .96);
  --edm-event-ticket-panel: #171d2e;
  --edm-event-ticket-text: #f8f4ff;
  --edm-event-ticket-muted: #c9bdd8;
  --edm-event-ticket-line: rgba(213, 196, 255, .16);
  --edm-event-ticket-accent: #b89cff;
  --edm-event-ticket-accent-2: #f472b6;
  background: var(--edm-event-ticket-bg) !important;
  color: var(--edm-event-ticket-text) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card,
body.dark-mode .edm-messages-page .edm-event-invite-card,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card {
  background: transparent !important;
  color: var(--edm-event-ticket-text) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card-media-wrap,
body.dark-mode .edm-messages-page .edm-event-invite-card-media-wrap,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card-media-wrap {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(135deg, rgba(124, 58, 237, .26), rgba(236, 72, 153, .12)),
    #24162c !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card h4,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card-sender,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card dt,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card dd,
body.dark-mode .edm-messages-page .edm-event-invite-card h4,
body.dark-mode .edm-messages-page .edm-event-invite-card-sender,
body.dark-mode .edm-messages-page .edm-event-invite-card dt,
body.dark-mode .edm-messages-page .edm-event-invite-card dd,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card h4,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card-sender,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card dt,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card dd {
  color: inherit !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card-sender,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card dt,
body.dark-mode .edm-messages-page .edm-event-invite-card-sender,
body.dark-mode .edm-messages-page .edm-event-invite-card dt,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card-sender,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card dt {
  color: var(--edm-event-ticket-muted) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card-actions a,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-going-button,
body.dark-mode .edm-messages-page .edm-event-invite-card-actions a,
body.dark-mode .edm-messages-page .edm-event-going-button,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card-actions a,
body.ed-dark-mode .edm-messages-page .edm-event-going-button {
  border-color: rgba(213, 196, 255, .2) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #f8f4ff !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-details[open] summary,
body.dark-mode .edm-messages-page .edm-event-invite-details[open] summary,
body.ed-dark-mode .edm-messages-page .edm-event-invite-details[open] summary {
  border-color: rgba(184, 156, 255, .3) !important;
  background: rgba(184, 156, 255, .12) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-details dl,
body.dark-mode .edm-messages-page .edm-event-invite-details dl,
body.ed-dark-mode .edm-messages-page .edm-event-invite-details dl {
  border-color: rgba(213, 196, 255, .14);
  background: rgba(255, 255, 255, .055);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-going-button.is-going,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-going-button[aria-pressed="true"],
body.dark-mode .edm-messages-page .edm-event-going-button.is-going,
body.dark-mode .edm-messages-page .edm-event-going-button[aria-pressed="true"],
body.ed-dark-mode .edm-messages-page .edm-event-going-button.is-going,
body.ed-dark-mode .edm-messages-page .edm-event-going-button[aria-pressed="true"] {
  border-color: rgba(45, 212, 191, .42) !important;
  background: linear-gradient(135deg, #0f766e, #5b21b6) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(15, 118, 110, .24) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-going-button.is-going:hover,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-going-button[aria-pressed="true"]:hover,
body.dark-mode .edm-messages-page .edm-event-going-button.is-going:hover,
body.dark-mode .edm-messages-page .edm-event-going-button[aria-pressed="true"]:hover,
body.ed-dark-mode .edm-messages-page .edm-event-going-button.is-going:hover,
body.ed-dark-mode .edm-messages-page .edm-event-going-button[aria-pressed="true"]:hover {
  background: linear-gradient(135deg, #0d9488, #6d28d9) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-going-chip small,
body.dark-mode .edm-messages-page .edm-event-going-chip small,
body.ed-dark-mode .edm-messages-page .edm-event-going-chip small {
  color: rgba(248, 244, 255, .72) !important;
}

@keyframes edmEventDetailsReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .edm-messages-page .edm-message-stack.is-event-invite,
  .edm-messages-page .edm-message-stack.is-event-invite.is-mine {
    width: 100% !important;
    max-width: 100% !important;
  }

  .edm-messages-page .edm-event-invite-card {
    grid-template-columns: 132px minmax(0, 1fr) !important;
    min-height: 168px;
  }

  .edm-messages-page .edm-event-invite-card-media-wrap {
    min-height: 168px !important;
  }

  .edm-messages-page .edm-event-invite-card-body {
    padding: 14px !important;
  }

  .edm-messages-page .edm-event-invite-details summary em {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .edm-messages-page .edm-event-invite-card {
    grid-template-columns: 1fr !important;
  }

  .edm-messages-page .edm-event-invite-card-media-wrap {
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  .edm-messages-page .edm-event-rsvp-dock {
    grid-template-columns: 1fr !important;
  }

  .edm-messages-page .edm-event-going-button--dock {
    width: 100%;
  }
}

/* Event invite refinement: remove the rail and let the image breathe. */
.edm-messages-page .edm-event-invite-shell::before {
  content: none !important;
  display: none !important;
}

.edm-messages-page .edm-event-invite-shell {
  border-left-color: var(--edm-event-ticket-line) !important;
}

.edm-messages-page .edm-event-invite-card {
  grid-template-columns: minmax(188px, 38%) minmax(0, 1fr) !important;
  min-height: 0 !important;
}

.edm-messages-page .edm-event-invite-card-media-wrap {
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-right: 1px solid var(--edm-event-ticket-line);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .18), transparent 36%),
    linear-gradient(135deg, #ff383d 0%, #ff8f49 100%) !important;
}

.edm-messages-page .edm-event-invite-card-media {
  padding: 0 !important;
  background: transparent !important;
}

.edm-messages-page .edm-event-invite-card-media img {
  border-radius: 0 !important;
  object-fit: contain !important;
  filter: none !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card-media-wrap,
body.dark-mode .edm-messages-page .edm-event-invite-card-media-wrap,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card-media-wrap {
  background: #101624 !important;
}

@media (max-width: 760px) {
  .edm-messages-page .edm-event-invite-card {
    grid-template-columns: 156px minmax(0, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .edm-messages-page .edm-event-invite-card {
    grid-template-columns: 1fr !important;
  }

  .edm-messages-page .edm-event-invite-card-media-wrap {
    aspect-ratio: 16 / 10 !important;
    border-right: 0;
    border-bottom: 1px solid var(--edm-event-ticket-line);
  }
}

/* Event invite details face: the card now crossfades between summary and details. */
.edm-messages-page .edm-event-invite-card {
  position: relative;
  display: block !important;
  grid-template-columns: none !important;
  height: var(--edm-event-summary-height, auto);
  min-height: 0 !important;
  overflow: hidden;
  transition: height .34s cubic-bezier(.22, .72, .28, 1);
  will-change: height;
}

.edm-messages-page .edm-event-invite-shell.is-showing-details .edm-event-invite-card {
  height: var(--edm-event-details-height, var(--edm-event-summary-height, auto));
}

.edm-messages-page .edm-event-invite-card-main {
  display: grid;
  grid-template-columns: clamp(172px, 30%, 230px) minmax(0, 1fr);
  min-height: 0;
  transition:
    opacity .22s ease,
    transform .28s cubic-bezier(.22, .72, .28, 1),
    filter .22s ease;
}

@media (min-width: 761px) and (max-width: 1180px) {
  .edm-messages-page .edm-message-stack.is-event-invite,
  .edm-messages-page .edm-message-stack.is-event-invite.is-mine {
    width: min(780px, 98%) !important;
    max-width: min(780px, 98%) !important;
  }

  .edm-messages-page .edm-event-invite-card-main {
    grid-template-columns: clamp(140px, 24%, 188px) minmax(0, 1fr);
  }

  .edm-messages-page .edm-event-invite-card-body {
    padding: 16px !important;
  }

  .edm-messages-page .edm-event-invite-card-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .edm-messages-page .edm-event-invite-card-actions a,
  .edm-messages-page .edm-event-invite-card-actions .edm-event-details-toggle {
    padding-inline: 11px !important;
    font-size: .84rem !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .edm-messages-page .edm-event-invite-card-body {
    padding: 14px !important;
  }

  .edm-messages-page .edm-event-invite-card-actions {
    gap: 5px;
  }

  .edm-messages-page .edm-event-invite-card-actions a,
  .edm-messages-page .edm-event-invite-card-actions .edm-event-details-toggle {
    padding-inline: 9px !important;
    font-size: .78rem !important;
  }
}

.edm-messages-page .edm-event-invite-shell.is-showing-details .edm-event-invite-card-main {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  filter: blur(2px);
}

.edm-messages-page .edm-event-details-toggle,
.edm-messages-page .edm-event-invite-details-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(109, 61, 245, .18) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #4a2c91 !important;
  box-shadow: 0 8px 18px rgba(109, 61, 245, .08) !important;
  font-family: inherit;
  font-size: .86rem !important;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none !important;
  cursor: pointer;
  appearance: none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.edm-messages-page .edm-event-details-toggle:hover,
.edm-messages-page .edm-event-invite-details-head button:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 61, 245, .32) !important;
  background: #f7f2ff !important;
}

.edm-messages-page .edm-event-invite-details {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid !important;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 14px;
  margin: 0 !important;
  padding: 18px !important;
  min-width: 0;
  overflow: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  background:
    radial-gradient(circle at 12% 12%, rgba(109, 61, 245, .12), transparent 32%),
    linear-gradient(135deg, rgba(109, 61, 245, .08), rgba(31, 118, 110, .055)),
    var(--edm-event-ticket-bg) !important;
  transition:
    opacity .18s ease,
    transform .26s cubic-bezier(.22, .72, .28, 1);
}

.edm-messages-page .edm-event-invite-shell.is-showing-details .edm-event-invite-details {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity .24s ease .08s,
    transform .3s cubic-bezier(.22, .72, .28, 1) .04s;
}

.edm-messages-page .edm-event-invite-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.edm-messages-page .edm-event-invite-details-head strong {
  color: var(--edm-event-ticket-text) !important;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
}

.edm-messages-page .edm-event-invite-details dl {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  animation: none !important;
}

.edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px !important;
  border: 1px solid rgba(109, 61, 245, .14) !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
}

.edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div:last-child {
  border-right: 1px solid rgba(109, 61, 245, .14) !important;
}

.edm-messages-page .edm-event-invite-card .edm-event-invite-details dt {
  color: var(--edm-event-ticket-muted) !important;
  font-size: .72rem !important;
  line-height: 1.1;
}

.edm-messages-page .edm-event-invite-card .edm-event-invite-details dd {
  color: var(--edm-event-ticket-text) !important;
  overflow-wrap: anywhere;
  font-size: 1rem !important;
  line-height: 1.18;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-details-toggle,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-details-head button,
body.dark-mode .edm-messages-page .edm-event-details-toggle,
body.dark-mode .edm-messages-page .edm-event-invite-details-head button,
body.ed-dark-mode .edm-messages-page .edm-event-details-toggle,
body.ed-dark-mode .edm-messages-page .edm-event-invite-details-head button {
  border-color: rgba(213, 196, 255, .2) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #f8f4ff !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-details-toggle:hover,
html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-details-head button:hover,
body.dark-mode .edm-messages-page .edm-event-details-toggle:hover,
body.dark-mode .edm-messages-page .edm-event-invite-details-head button:hover,
body.ed-dark-mode .edm-messages-page .edm-event-details-toggle:hover,
body.ed-dark-mode .edm-messages-page .edm-event-invite-details-head button:hover {
  border-color: rgba(184, 156, 255, .34) !important;
  background: rgba(184, 156, 255, .13) !important;
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div,
body.dark-mode .edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div {
  border-color: rgba(213, 196, 255, .14) !important;
  background: rgba(255, 255, 255, .06);
}

html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div:last-child,
body.dark-mode .edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div:last-child,
body.ed-dark-mode .edm-messages-page .edm-event-invite-card .edm-event-invite-details dl div:last-child {
  border-right-color: rgba(213, 196, 255, .14) !important;
}

@media (max-width: 760px) {
  .edm-messages-page .edm-event-invite-card-main {
    grid-template-columns: 156px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .edm-messages-page .edm-event-invite-card-main {
    grid-template-columns: 1fr;
  }

  .edm-messages-page .edm-event-invite-card-media-wrap {
    display: grid;
    place-items: center;
    height: clamp(82px, 23vw, 104px);
    min-height: 0 !important;
    aspect-ratio: auto !important;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18), transparent 36%),
      linear-gradient(135deg, #ff3b42 0%, #ff8748 100%) !important;
  }

  .edm-messages-page .edm-event-invite-card-media {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 9px 54px 9px 16px !important;
  }

  .edm-messages-page .edm-event-invite-card-media img {
    width: clamp(58px, 18vw, 76px) !important;
    height: clamp(58px, 18vw, 76px) !important;
    max-width: 28%;
    max-height: calc(100% - 18px);
    border-radius: 14px !important;
    object-fit: contain !important;
    box-shadow:
      0 10px 22px rgba(33, 23, 58, .16),
      0 0 0 1px rgba(255, 255, 255, .32);
  }

  .edm-messages-page .edm-event-invite-save.edm-save-event-icon {
    --edm-save-size: 36px;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
  }

  .edm-messages-page .edm-event-invite-details {
    padding: 14px !important;
  }

  .edm-messages-page .edm-event-invite-details dl {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile event invites use a compact artwork tile instead of a full-width banner. */
@media (max-width: 520px) {
  .edm-messages-page .edm-event-invite-card-main {
    grid-template-columns: clamp(78px, 23vw, 100px) minmax(0, 1fr);
    align-items: stretch;
  }

  .edm-messages-page .edm-event-invite-card-media-wrap {
    height: auto;
    min-height: 124px !important;
    border-right: 1px solid var(--edm-event-ticket-line);
    border-bottom: 0;
    border-radius: 22px 0 0 0;
    overflow: hidden;
  }

  .edm-messages-page .edm-event-invite-card-media {
    place-items: center;
    padding: 10px !important;
  }

  .edm-messages-page .edm-event-invite-card-media img {
    width: clamp(48px, 15vw, 62px) !important;
    height: clamp(48px, 15vw, 62px) !important;
    max-width: none !important;
    max-height: none !important;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .64) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .58),
      0 8px 16px rgba(59, 24, 52, .16) !important;
    filter: none !important;
  }

  .edm-messages-page .edm-event-invite-save.edm-save-event-icon {
    --edm-save-size: 32px;
    top: 9px;
    right: 8px;
    transform: none;
  }

  .edm-messages-page .edm-event-invite-card-body {
    align-content: center;
    gap: 8px !important;
    padding: 14px 12px !important;
  }

  .edm-messages-page .edm-event-invite-card h4 {
    font-size: clamp(.95rem, 4.15vw, 1.08rem) !important;
  }

  .edm-messages-page .edm-event-invite-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  .edm-messages-page .edm-event-invite-card-actions a,
  .edm-messages-page .edm-event-invite-card-actions .edm-event-details-toggle {
    width: 100%;
    min-width: 0;
    min-height: 32px !important;
    padding: 7px 4px !important;
    font-size: clamp(.66rem, 2.75vw, .76rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-align: center;
  }

  html[data-ed-theme="dark"] .edm-messages-page .edm-event-invite-card-media img,
  body.dark-mode .edm-messages-page .edm-event-invite-card-media img,
  body.ed-dark-mode .edm-messages-page .edm-event-invite-card-media img {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(20, 22, 34, .82) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .1),
      0 12px 28px rgba(0, 0, 0, .32) !important;
  }
}

/* Friends page modern social hub */
.edm-friends-hub {
  --edm-friends-bg: var(--ed-bg-light, #fcfcfc);
  --edm-friends-surface: var(--ed-surface-light, #fff);
  --edm-friends-surface-soft: color-mix(in srgb, var(--ed-primary, #7524db) 6%, #fff);
  --edm-friends-text: var(--ed-ink, #0d062a);
  --edm-friends-muted: var(--ed-text-muted, #635a70);
  --edm-friends-border: var(--ed-border-light, #e7def0);
  --edm-friends-border-strong: color-mix(in srgb, var(--ed-primary, #7524db) 22%, var(--ed-border-light, #e7def0));
  --edm-friends-primary: var(--ed-primary, #7524db);
  --edm-friends-primary-rgb: var(--ed-color-primary-rgb, 117, 36, 219);
  --edm-friends-accent: var(--ed-secondary, #ed2790);
  --edm-friends-teal: var(--ed-accent, #18748f);
  --edm-friends-shadow: 0 18px 48px rgb(13 6 42 / .08);
  width: min(100%, 1280px) !important;
  margin-inline: auto !important;
  padding: clamp(14px, 2.5vw, 28px) !important;
  background:
    linear-gradient(180deg, rgba(var(--edm-friends-primary-rgb), .045), transparent 20rem),
    var(--edm-friends-bg) !important;
  color: var(--edm-friends-text) !important;
}

html[data-ed-theme="dark"] .edm-friends-hub,
body.dark-mode .edm-friends-hub,
body.ed-dark-mode .edm-friends-hub {
  --edm-friends-bg: var(--ed-bg, #0d062a);
  --edm-friends-surface: var(--ed-surface, #171036);
  --edm-friends-surface-soft: var(--ed-surface-raised, #21164a);
  --edm-friends-text: var(--ed-text, #fcfcfc);
  --edm-friends-muted: var(--ed-muted, #d7cfe4);
  --edm-friends-border: var(--ed-border, rgb(252 252 252 / .14));
  --edm-friends-border-strong: var(--ed-border-strong, rgb(252 252 252 / .24));
  --edm-friends-primary: var(--ed-primary-live, #9d74ff);
  --edm-friends-accent: var(--ed-secondary-live, #ff4aa9);
  --edm-friends-teal: var(--ed-accent-live, #35a6c5);
  --edm-friends-shadow: 0 22px 58px rgb(0 0 0 / .32);
  background: var(--edm-friends-bg) !important;
}

.edm-friends-hub :where(.edm-friends-hero, .edm-friends-sidebar, .edm-friends-panel) {
  border-color: var(--edm-friends-border) !important;
  background: var(--edm-friends-surface) !important;
  background-image: none !important;
  color: var(--edm-friends-text) !important;
  box-shadow: var(--edm-friends-shadow) !important;
}

.edm-friends-hub .edm-friends-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: end !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 94% 18%, rgba(var(--edm-friends-primary-rgb), .12), transparent 18rem),
    var(--edm-friends-surface) !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-hero,
body.dark-mode .edm-friends-hub .edm-friends-hero,
body.ed-dark-mode .edm-friends-hub .edm-friends-hero {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .045), transparent),
    var(--edm-friends-surface) !important;
}

.edm-friends-hub .edm-friends-hero h1,
.edm-friends-hub .edm-friends-panel h2,
.edm-friends-hub .edm-social-row h3,
.edm-friends-hub .edm-social-row h3 a,
.edm-friends-hub .edm-friends-sidebar__head strong,
.edm-friends-hub .edm-friends-hero__stats strong {
  color: var(--edm-friends-text) !important;
}

.edm-friends-hub .edm-friends-hero p:not(.edm-eyebrow),
.edm-friends-hub .edm-friends-sidebar__head span,
.edm-friends-hub .edm-social-row p,
.edm-friends-hub .edm-friends-tabs small,
.edm-friends-hub .edm-friends-hero__stats small {
  color: var(--edm-friends-muted) !important;
}

.edm-friends-hub .edm-friends-hero__stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(88px, 1fr)) !important;
  gap: 10px !important;
  min-width: min(100%, 360px) !important;
}

.edm-friends-hub .edm-friends-hero__stats span {
  display: grid !important;
  min-height: 86px !important;
  align-content: center !important;
  gap: 3px !important;
  padding: 14px !important;
  border: 1px solid var(--edm-friends-border) !important;
  border-radius: 22px !important;
  background: var(--edm-friends-surface-soft) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-layout {
  display: grid !important;
  grid-template-columns: minmax(230px, 280px) minmax(0, 920px) !important;
  gap: clamp(14px, 2vw, 22px) !important;
  align-items: start !important;
  justify-content: center !important;
}

.edm-friends-hub .edm-friends-sidebar {
  position: sticky !important;
  top: 112px !important;
  display: grid !important;
  gap: 16px !important;
  padding: 16px !important;
  border-radius: 24px !important;
}

.edm-friends-hub .edm-friends-tabs,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs,
body.dark-mode .edm-friends-hub .edm-friends-tabs,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  gap: 6px !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-tabs button,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button,
body.dark-mode .edm-friends-hub .edm-friends-tabs button,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  min-height: 54px !important;
  justify-content: start !important;
  gap: 11px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: var(--edm-friends-text) !important;
  text-align: left !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-tabs button:hover,
.edm-friends-hub .edm-friends-tabs button.is-active,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button:hover,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button.is-active,
body.dark-mode .edm-friends-hub .edm-friends-tabs button:hover,
body.dark-mode .edm-friends-hub .edm-friends-tabs button.is-active,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button:hover,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button.is-active {
  border-color: rgba(var(--edm-friends-primary-rgb), .18) !important;
  background: rgba(var(--edm-friends-primary-rgb), .10) !important;
  color: var(--edm-friends-primary) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-tabs span {
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
body.dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: var(--edm-friends-surface-soft) !important;
  color: var(--edm-friends-primary) !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
}

.edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.edm-friends-hub .edm-friends-tabs button > span:not(.edm-friends-tab-icon) {
  display: grid !important;
  gap: 2px !important;
}

.edm-friends-hub .edm-friends-tabs strong {
  color: inherit !important;
  font-size: .95rem !important;
  font-weight: 920 !important;
}

.edm-friends-hub .edm-friends-tabs em {
  display: grid !important;
  min-width: 24px !important;
  height: 24px !important;
  place-items: center !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: var(--edm-friends-accent) !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button,
body.dark-mode .edm-friends-hub .edm-friends-tabs button,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button {
  border-color: rgba(213, 196, 255, .10) !important;
  background: rgba(255, 255, 255, .018) !important;
  color: rgba(252, 252, 252, .88) !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button:hover,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button.is-active,
body.dark-mode .edm-friends-hub .edm-friends-tabs button:hover,
body.dark-mode .edm-friends-hub .edm-friends-tabs button.is-active,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button:hover,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button.is-active {
  border-color: rgba(213, 196, 255, .20) !important;
  background: rgba(255, 255, 255, .052) !important;
  color: #fcfcfc !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs span,
body.dark-mode .edm-friends-hub .edm-friends-tabs span,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs span {
  background: transparent !important;
  color: inherit !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs small,
body.dark-mode .edm-friends-hub .edm-friends-tabs small,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs small {
  color: rgba(226, 219, 241, .62) !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
body.dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon {
  border: 1px solid rgba(213, 196, 255, .10) !important;
  background: rgba(255, 255, 255, .045) !important;
  color: rgba(189, 167, 255, .92) !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button:hover .edm-friends-tab-icon,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button.is-active .edm-friends-tab-icon,
body.dark-mode .edm-friends-hub .edm-friends-tabs button:hover .edm-friends-tab-icon,
body.dark-mode .edm-friends-hub .edm-friends-tabs button.is-active .edm-friends-tab-icon,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button:hover .edm-friends-tab-icon,
body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button.is-active .edm-friends-tab-icon {
  border-color: rgba(213, 196, 255, .18) !important;
  background: rgba(117, 36, 219, .16) !important;
  color: #cbb8ff !important;
}

.edm-friends-hub .edm-friends-search {
  display: grid !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--edm-friends-border) !important;
  color: var(--edm-friends-muted) !important;
}

.edm-friends-hub .edm-friends-search input,
html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-search input,
body.dark-mode .edm-friends-hub .edm-friends-search input,
body.ed-dark-mode .edm-friends-hub .edm-friends-search input {
  width: 100% !important;
  border-color: var(--edm-friends-border) !important;
  background: var(--edm-friends-surface-soft) !important;
  color: var(--edm-friends-text) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-main,
.edm-friends-hub .edm-friends-aside {
  display: grid !important;
  gap: clamp(14px, 1.7vw, 20px) !important;
}

.edm-friends-hub .edm-friends-panel {
  display: grid !important;
  align-content: start !important;
  gap: 14px !important;
  padding: clamp(16px, 1.8vw, 22px) !important;
  border-radius: 24px !important;
}

.edm-friends-hub .edm-friends-panel__head {
  display: flex !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.edm-friends-hub .edm-friends-panel__head span {
  color: var(--edm-friends-primary) !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-panel__head span,
body.dark-mode .edm-friends-hub .edm-friends-panel__head span,
body.ed-dark-mode .edm-friends-hub .edm-friends-panel__head span {
  color: var(--edm-friends-teal) !important;
}

.edm-friends-hub .edm-friends-panel__head > strong {
  display: grid !important;
  min-width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: rgba(var(--edm-friends-primary-rgb), .12) !important;
  color: var(--edm-friends-primary) !important;
  font-size: .9rem !important;
  font-weight: 950 !important;
}

.edm-friends-hub[data-edm-friends-active="all"] [data-edm-friends-exclusive] {
  display: none !important;
}

.edm-friends-hub .edm-friends-safety-panel {
  gap: 0 !important;
  overflow: hidden !important;
}

.edm-friends-hub .edm-friends-safety-panel[open] {
  gap: 16px !important;
}

.edm-friends-hub .edm-friends-subtabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 6px !important;
  border: 1px solid var(--edm-friends-border) !important;
  border-radius: 18px !important;
  background: var(--edm-friends-surface-soft) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-subtabs button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 1 1 150px !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--edm-friends-text) !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-subtabs button:hover,
.edm-friends-hub .edm-friends-subtabs button.is-active {
  border-color: var(--edm-friends-border-strong) !important;
  background: var(--edm-friends-surface) !important;
  color: var(--edm-friends-primary) !important;
}

.edm-friends-hub .edm-friends-subtabs em {
  display: grid !important;
  min-width: 24px !important;
  height: 24px !important;
  place-items: center !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: var(--edm-friends-accent) !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.edm-friends-hub .edm-friends-subtab-panel,
.edm-friends-hub .edm-friends-safety-panels {
  display: grid !important;
  gap: 12px !important;
}

.edm-friends-hub .edm-friends-safety-summary {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 62px !important;
  cursor: pointer !important;
  list-style: none !important;
  color: var(--edm-friends-text) !important;
}

.edm-friends-hub .edm-friends-safety-summary::-webkit-details-marker {
  display: none !important;
}

.edm-friends-hub .edm-friends-safety-summary::after {
  content: "" !important;
  width: 9px !important;
  height: 9px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
  transition: transform .18s ease !important;
}

.edm-friends-hub .edm-friends-safety-panel[open] .edm-friends-safety-summary::after {
  transform: rotate(225deg) translateY(-2px) !important;
}

.edm-friends-hub .edm-friends-safety-summary__icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: var(--edm-friends-surface-soft) !important;
  color: var(--edm-friends-primary) !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
}

.edm-friends-hub .edm-friends-safety-summary span:not(.edm-friends-safety-summary__icon) {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.edm-friends-hub .edm-friends-safety-summary strong {
  color: var(--edm-friends-text) !important;
  font-size: 1.08rem !important;
  font-weight: 950 !important;
}

.edm-friends-hub .edm-friends-safety-summary small {
  color: var(--edm-friends-muted) !important;
  font-size: .82rem !important;
  font-weight: 760 !important;
}

.edm-friends-hub .edm-friends-safety-summary em {
  display: grid !important;
  min-width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: var(--edm-friends-accent) !important;
  color: #fff !important;
  font-size: .78rem !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.edm-friends-hub .edm-friends-safety-card {
  display: grid !important;
  align-content: start !important;
  gap: 14px !important;
  padding: 14px !important;
  border: 1px solid var(--edm-friends-border) !important;
  border-radius: 18px !important;
  background: var(--edm-friends-surface-soft) !important;
  color: var(--edm-friends-text) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-social-list {
  gap: 10px !important;
}

.edm-friends-hub .edm-social-row {
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  gap: 13px !important;
  padding: 12px !important;
  border: 1px solid var(--edm-friends-border) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--edm-friends-surface) 82%, var(--edm-friends-surface-soft)) !important;
  background-image: none !important;
  color: var(--edm-friends-text) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-social-row:hover {
  border-color: var(--edm-friends-border-strong) !important;
  background: var(--edm-friends-surface) !important;
}

.edm-friends-hub .edm-friends-panel--discover .edm-social-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.edm-friends-hub .edm-friends-panel--discover .edm-social-row,
.edm-friends-hub .edm-friends-safety-card .edm-social-row {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.edm-friends-hub .edm-friends-panel--discover .edm-social-row-actions,
.edm-friends-hub .edm-friends-safety-card .edm-social-row-actions {
  grid-column: 1 / -1 !important;
  justify-content: stretch !important;
}

.edm-friends-hub .edm-friends-panel--discover .edm-social-row-actions .edm-btn,
.edm-friends-hub .edm-friends-safety-card .edm-social-row-actions .edm-btn {
  flex: 1 1 auto !important;
}

.edm-friends-hub .edm-avatar {
  width: 54px !important;
  height: 54px !important;
}

.edm-friends-hub .edm-social-row-actions .edm-btn {
  min-height: 40px !important;
  min-width: 92px !important;
  border-radius: 999px !important;
}

.edm-friends-hub .edm-social-row-actions .edm-btn-primary {
  border-color: transparent !important;
  background: var(--edm-friends-primary) !important;
  background-image: none !important;
  color: #fff !important;
}

.edm-friends-hub .edm-social-row-actions .edm-btn-soft {
  border-color: var(--edm-friends-border) !important;
  background: var(--edm-friends-surface) !important;
  background-image: none !important;
  color: var(--edm-friends-text) !important;
  box-shadow: none !important;
}

html[data-ed-theme="dark"] .edm-friends-hub .edm-social-row-actions .edm-btn-soft,
html[data-ed-theme="dark"] .edm-friends-hub .edm-social-row-actions .edm-btn-soft:hover,
html[data-ed-theme="dark"] .edm-friends-hub .edm-social-row-actions .edm-btn-soft:focus-visible,
body.dark-mode .edm-friends-hub .edm-social-row-actions .edm-btn-soft,
body.dark-mode .edm-friends-hub .edm-social-row-actions .edm-btn-soft:hover,
body.dark-mode .edm-friends-hub .edm-social-row-actions .edm-btn-soft:focus-visible,
body.ed-dark-mode .edm-friends-hub .edm-social-row-actions .edm-btn-soft,
body.ed-dark-mode .edm-friends-hub .edm-social-row-actions .edm-btn-soft:hover,
body.ed-dark-mode .edm-friends-hub .edm-social-row-actions .edm-btn-soft:focus-visible {
  border-color: rgba(213, 196, 255, .28) !important;
  background: rgba(255, 255, 255, .035) !important;
  background-image: none !important;
  color: rgba(252, 252, 252, .9) !important;
  -webkit-text-fill-color: rgba(252, 252, 252, .9) !important;
}

.edm-friends-hub .edm-social-options > summary,
html[data-ed-theme="dark"] .edm-friends-hub .edm-social-options > summary,
body.dark-mode .edm-friends-hub .edm-social-options > summary,
body.ed-dark-mode .edm-friends-hub .edm-social-options > summary {
  border-color: var(--edm-friends-border) !important;
  background: var(--edm-friends-surface) !important;
  background-image: none !important;
  color: var(--edm-friends-primary) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-empty {
  border-color: var(--edm-friends-border) !important;
  background: var(--edm-friends-surface-soft) !important;
  color: var(--edm-friends-muted) !important;
  box-shadow: none !important;
}

.edm-friends-hub .edm-friends-aside .edm-social-row {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.edm-friends-hub .edm-friends-aside .edm-social-row-actions {
  grid-column: 1 / -1 !important;
  justify-content: stretch !important;
}

.edm-friends-hub .edm-friends-aside .edm-social-row-actions .edm-btn {
  flex: 1 1 auto !important;
}

@media (max-width: 1180px) {
  .edm-friends-hub .edm-friends-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 940px) {
  .edm-friends-hub .edm-friends-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .edm-friends-hub .edm-friends-sidebar,
  .edm-friends-hub .edm-friends-aside {
    grid-column: 1 !important;
  }

  .edm-friends-hub .edm-friends-sidebar {
    position: static !important;
  }

  .edm-friends-hub .edm-friends-tabs {
    grid-template-columns: repeat(5, minmax(8.5rem, 1fr)) !important;
    overflow-x: auto !important;
    padding-bottom: .25rem !important;
    scrollbar-width: none;
  }

  .edm-friends-hub .edm-friends-tabs::-webkit-scrollbar {
    display: none;
  }

  .edm-friends-hub .edm-friends-hero {
    grid-template-columns: 1fr !important;
  }

  .edm-friends-hub .edm-friends-hero__stats {
    width: 100% !important;
  }

  .edm-friends-hub .edm-friends-panel--discover .edm-social-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .edm-friends-hub {
    padding: 12px !important;
  }

  .edm-friends-hub .edm-friends-hero {
    border-radius: 24px !important;
    padding: 20px !important;
  }

  .edm-friends-hub .edm-friends-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .edm-friends-hub .edm-friends-hero__stats span {
    min-height: 72px !important;
    padding: 10px !important;
  }

  .edm-friends-hub .edm-social-row,
  .edm-friends-hub .edm-friends-aside .edm-social-row {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }

  .edm-friends-hub .edm-social-row-actions {
    grid-column: 1 / -1 !important;
    justify-content: stretch !important;
  }

  .edm-friends-hub .edm-social-row-actions .edm-btn {
    flex: 1 1 auto !important;
  }
}

.edm-friends-hub [data-edm-friends-section][hidden],
.edm-friends-hub [data-edm-subtab-panel][hidden],
.edm-friends-hub [data-edm-friends-section].is-search-empty,
.edm-friends-hub .edm-social-panel[hidden],
.edm-friends-hub .edm-social-panel.is-search-empty,
.edm-friends-hub .edm-social-row[hidden] {
  display: none !important;
}

/* Friends hub compact tablet and mobile layout */
@media (max-width: 940px) {
  .edm-friends-hub {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .edm-friends-hub .edm-friends-layout,
  .edm-friends-hub .edm-friends-main,
  .edm-friends-hub .edm-friends-sidebar {
    min-width: 0 !important;
  }

  .edm-friends-hub .edm-friends-sidebar {
    gap: 14px !important;
    padding: 18px !important;
  }

  .edm-friends-hub .edm-friends-tabs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr)) !important;
    gap: 8px !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-inline: 0 !important;
  }

  .edm-friends-hub .edm-friends-tabs button,
  html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button,
  body.dark-mode .edm-friends-hub .edm-friends-tabs button,
  body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button {
    position: relative !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    justify-items: start !important;
    align-content: center !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 62px !important;
    padding: 10px !important;
    text-align: left !important;
  }

  .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  body.dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  body.ed-dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .edm-friends-hub .edm-friends-tabs button > span:not(.edm-friends-tab-icon) {
    justify-items: start !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
  }

  .edm-friends-hub .edm-friends-tabs strong {
    font-size: clamp(.76rem, 1.7vw, .92rem) !important;
    line-height: 1.05 !important;
  }

  .edm-friends-hub .edm-friends-tabs small {
    display: none !important;
  }

  .edm-friends-hub .edm-friends-tabs em {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 6px !important;
  }

  .edm-friends-hub .edm-friends-search {
    padding-top: 14px !important;
  }

  .edm-friends-hub .edm-friends-panel--discover .edm-social-list {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .edm-friends-hub {
    padding: 12px !important;
  }

  .edm-friends-hub .edm-friends-hero {
    display: none !important;
  }

  .edm-friends-hub .edm-friends-sidebar {
    padding: 16px !important;
    border-radius: 24px !important;
  }

  .edm-friends-hub .edm-friends-sidebar__head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
  }

  .edm-friends-hub .edm-friends-sidebar__head span {
    justify-self: end !important;
    font-size: .82rem !important;
  }

  .edm-friends-hub .edm-friends-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .edm-friends-hub .edm-friends-tabs button,
  html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button,
  body.dark-mode .edm-friends-hub .edm-friends-tabs button,
  body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    min-height: 48px !important;
    padding: 5px !important;
    border-radius: 16px !important;
    text-align: center !important;
  }

  .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  body.dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  body.ed-dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
  }

  .edm-friends-hub .edm-friends-tabs button > span:not(.edm-friends-tab-icon) {
    display: none !important;
  }

  .edm-friends-hub .edm-friends-tabs strong {
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: .9rem !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .edm-friends-hub .edm-friends-tabs small {
    display: none !important;
  }

  .edm-friends-hub .edm-friends-tabs em {
    top: -4px !important;
    right: -4px !important;
    transform: none !important;
    min-width: 22px !important;
    height: 22px !important;
    font-size: .68rem !important;
  }

  .edm-friends-hub .edm-friends-panel {
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .edm-friends-hub .edm-friends-panel__head {
    align-items: center !important;
  }

  .edm-friends-hub .edm-friends-panel__head h2 {
    font-size: clamp(1.55rem, 9vw, 2.35rem) !important;
    line-height: .98 !important;
  }

  .edm-friends-hub .edm-friends-panel__head > strong {
    min-width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 520px) {
  .edm-friends-hub {
    gap: 12px !important;
    padding: 10px !important;
  }

  .edm-friends-hub .edm-friends-sidebar {
    padding: 14px !important;
    border-radius: 22px !important;
  }

  .edm-friends-hub .edm-friends-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .edm-friends-hub .edm-friends-tabs button,
  html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs button,
  body.dark-mode .edm-friends-hub .edm-friends-tabs button,
  body.ed-dark-mode .edm-friends-hub .edm-friends-tabs button {
    min-height: 46px !important;
    padding: 4px !important;
  }

  .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  html[data-ed-theme="dark"] .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  body.dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon,
  body.ed-dark-mode .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .edm-friends-hub .edm-friends-tabs .edm-friends-tab-icon svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
  }

  .edm-friends-hub .edm-friends-sidebar__head strong {
    font-size: 1.55rem !important;
  }

  .edm-friends-hub .edm-friends-search input {
    min-height: 48px !important;
    padding-inline: 14px !important;
    font-size: .9rem !important;
  }

  .edm-friends-hub .edm-social-row,
  .edm-friends-hub .edm-friends-panel--discover .edm-social-row,
  .edm-friends-hub .edm-friends-safety-card .edm-social-row {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .edm-friends-hub .edm-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .edm-friends-hub .edm-social-row-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .edm-friends-hub .edm-social-row-actions .edm-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
  }

  .edm-friends-hub .edm-social-options {
    width: 42px !important;
  }

  .edm-friends-hub .edm-social-options > summary {
    width: 42px !important;
    height: 42px !important;
  }

  .edm-friends-hub .edm-friends-subtabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .edm-friends-hub .edm-friends-subtabs::-webkit-scrollbar {
    display: none !important;
  }

  .edm-friends-hub .edm-friends-subtabs button {
    flex: 1 0 max(6.6rem, 34vw) !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
  }

  .edm-friends-hub .edm-friends-safety-summary {
    grid-template-columns: 38px minmax(0, 1fr) auto 14px !important;
    gap: 10px !important;
  }

  .edm-friends-hub .edm-friends-safety-summary__icon {
    width: 38px !important;
    height: 38px !important;
  }
}

@media (max-width: 760px) {
  .edm-messages-page .edm-message-stack.is-voice-note,
  .edm-messages-page .edm-message-stack.is-voice-note.is-mine {
    width: min(360px, 88%);
    max-width: min(360px, 88%);
  }
}

@media (max-width: 430px) {
  .edm-voice-note-panel {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
  }

  .edm-voice-note-visual {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .edm-voice-note-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edm-voice-note-panel__actions .edm-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Shared activity wall polish: linked authors and solid option menus. */
.edm-user-profile {
  --edm-menu-solid: var(--ed-color-surface-strong, #fff);
  --edm-menu-row-solid: var(--ed-color-surface, #fcfcfc);
  --edm-menu-row-hover: color-mix(in srgb, var(--edm-primary) 11%, transparent);
}

html[data-ed-theme="dark"] .edm-user-profile,
html[data-theme="dark"] .edm-user-profile,
body.dark .edm-user-profile,
body.dark-mode .edm-user-profile,
body.ed-dark-mode .edm-user-profile {
  --edm-menu-solid: var(--ed-dark-surface, #171036);
  --edm-menu-row-solid: #201746;
  --edm-menu-row-hover: color-mix(in srgb, var(--edm-primary) 22%, transparent);
}

.edm-user-profile .ed-updates-card,
.edm-user-profile .edm-feed-composer,
.edm-user-profile .ed-updates-comment,
.edm-user-profile .ed-updates-comment-form {
  background: var(--edm-surface-strong);
}

.edm-user-profile .ed-updates-card__author-name,
.edm-user-profile .ed-updates-comment__author-name {
  color: var(--edm-ink);
  font-weight: 950;
  text-decoration: none;
}

.edm-user-profile a.ed-updates-card__author-name:hover,
.edm-user-profile a.ed-updates-comment__author-name:hover {
  color: var(--edm-primary);
}

.edm-user-profile a.ed-updates-avatar {
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.edm-user-profile a.ed-updates-avatar:focus-visible,
.edm-user-profile a.ed-updates-card__author-name:focus-visible,
.edm-user-profile a.ed-updates-comment__author-name:focus-visible {
  outline: 3px solid rgb(var(--edm-primary-rgb) / .28);
  outline-offset: 3px;
}

.edm-user-profile .ed-updates-menu > summary,
.edm-user-profile .edm-menu > summary {
  border-color: var(--edm-line-strong);
  background: var(--edm-menu-solid) !important;
  background-image: none !important;
  color: var(--edm-primary);
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.edm-user-profile .ed-updates-menu[open] > summary,
.edm-user-profile .edm-menu[open] > summary {
  border-color: var(--edm-primary);
  background: var(--edm-primary) !important;
  background-image: none !important;
  color: #fff;
}

.edm-user-profile .ed-updates-menu[open] > summary span,
.edm-user-profile .edm-menu[open] > summary::before {
  color: #fff;
}

.edm-user-profile .ed-updates-menu__panel,
.edm-user-profile .edm-menu-panel {
  border-color: var(--edm-line-strong);
  border-radius: 12px;
  padding: 6px;
  background: var(--edm-menu-solid) !important;
  background-image: none !important;
  color: var(--edm-ink);
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 22px 58px rgba(13, 6, 42, .16);
  transform-origin: top right;
}

.edm-user-profile .ed-updates-menu[open] > .ed-updates-menu__panel,
.edm-user-profile .edm-menu[open] > .edm-menu-panel {
  animation: edmActivityMenuIn .16s ease both;
}

.edm-user-profile .edm-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: start;
  width: 100%;
  height: auto !important;
  min-height: 0;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 6px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--edm-ink);
  line-height: 1.25;
  opacity: 1 !important;
  overflow: visible;
  text-align: left;
  white-space: normal;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.edm-user-profile .edm-menu-item:hover {
  background: var(--edm-menu-row-hover) !important;
  transform: translateY(-1px);
}

.edm-user-profile .edm-menu-item small {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: var(--edm-muted);
  line-height: 1.35;
}

.edm-user-profile .edm-menu-edit {
  display: grid;
  gap: 6px;
}

.edm-user-profile .edm-menu-edit > summary {
  list-style: none;
}

.edm-user-profile .edm-menu-edit > summary::-webkit-details-marker {
  display: none;
}

.edm-user-profile .edm-menu-edit > summary::marker {
  content: "";
}

.edm-user-profile .edm-menu-edit > summary span,
.edm-user-profile .edm-menu-item span {
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.18;
}

.edm-user-profile .edm-menu-form {
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
}

.edm-user-profile .edm-menu-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--edm-line-strong);
  border-radius: 8px;
  padding: 10px;
  background: var(--edm-surface);
  color: var(--edm-ink);
  font: inherit;
}

.edm-user-profile .edm-menu-form textarea:focus {
  border-color: var(--edm-primary);
  outline: 2px solid color-mix(in srgb, var(--edm-primary) 24%, transparent);
  outline-offset: 2px;
}

.edm-user-profile .edm-menu-form button[type="submit"] {
  justify-self: start;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--edm-primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.edm-user-profile .ed-updates-comments__closed {
  margin: 10px 0 0;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--edm-primary) 18%, var(--edm-line-strong));
  border-radius: 8px;
  color: var(--edm-muted);
  background: color-mix(in srgb, var(--edm-primary) 7%, transparent);
  font-weight: 750;
  animation: edmActivityCommentsIn .18s ease both;
}

.edm-activity-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 99999;
  max-width: min(340px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--ed-violet, #7524db) 22%, transparent);
  border-radius: 8px;
  background: var(--ed-color-surface-strong, #fcfcfc);
  color: var(--ed-ink, #0d062a);
  box-shadow: 0 18px 44px rgba(13, 6, 42, .18);
  font-size: .88rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.edm-activity-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-ed-theme="dark"] .edm-activity-toast,
body.dark-mode .edm-activity-toast,
body.ed-dark-mode .edm-activity-toast {
  background: var(--ed-dark-surface, #171036);
  color: var(--ed-dark-text, #fcfcfc);
  border-color: color-mix(in srgb, var(--ed-teal, #18748f) 42%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

@keyframes edmActivityMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes edmActivityCommentsIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes edmActivityCardUpdated {
  0% {
    outline: 0 solid color-mix(in srgb, var(--edm-primary) 0%, transparent);
    outline-offset: 0;
  }
  36% {
    outline: 4px solid color-mix(in srgb, var(--edm-primary) 15%, transparent);
    outline-offset: 2px;
  }
  100% {
    outline: 0 solid color-mix(in srgb, var(--edm-primary) 0%, transparent);
    outline-offset: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edm-user-profile .ed-updates-card,
  .edm-user-profile .ed-updates-card--just-updated,
  .edm-user-profile .ed-updates-comments:not([hidden]),
  .edm-user-profile .ed-updates-card__pin,
  .edm-user-profile .ed-updates-menu[open] > .ed-updates-menu__panel,
  .edm-user-profile .edm-menu[open] > .edm-menu-panel,
  .edm-activity-toast {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

html[data-ed-theme="dark"] .edm-user-profile .ed-updates-card,
html[data-ed-theme="dark"] .edm-user-profile .edm-feed-composer,
html[data-ed-theme="dark"] .edm-user-profile .ed-updates-comment,
html[data-ed-theme="dark"] .edm-user-profile .ed-updates-comment-form,
html[data-ed-theme="dark"] .edm-user-profile .ed-updates-menu__panel,
html[data-ed-theme="dark"] .edm-user-profile .edm-menu-panel,
body.dark-mode .edm-user-profile .ed-updates-card,
body.dark-mode .edm-user-profile .edm-feed-composer,
body.dark-mode .edm-user-profile .ed-updates-comment,
body.dark-mode .edm-user-profile .ed-updates-comment-form,
body.dark-mode .edm-user-profile .ed-updates-menu__panel,
body.dark-mode .edm-user-profile .edm-menu-panel,
body.ed-dark-mode .edm-user-profile .ed-updates-card,
body.ed-dark-mode .edm-user-profile .edm-feed-composer,
body.ed-dark-mode .edm-user-profile .ed-updates-comment,
body.ed-dark-mode .edm-user-profile .ed-updates-comment-form,
body.ed-dark-mode .edm-user-profile .ed-updates-menu__panel,
body.ed-dark-mode .edm-user-profile .edm-menu-panel {
  background: var(--edm-menu-solid, #171036) !important;
  background-image: none !important;
  color: var(--ed-text, #fcfcfc) !important;
}

html[data-ed-theme="dark"] .edm-user-profile .ed-updates-card__author-name,
html[data-ed-theme="dark"] .edm-user-profile .ed-updates-comment__author-name,
html[data-ed-theme="dark"] .edm-user-profile .edm-menu-item,
body.dark-mode .edm-user-profile .ed-updates-card__author-name,
body.dark-mode .edm-user-profile .ed-updates-comment__author-name,
body.dark-mode .edm-user-profile .edm-menu-item,
body.ed-dark-mode .edm-user-profile .ed-updates-card__author-name,
body.ed-dark-mode .edm-user-profile .ed-updates-comment__author-name,
body.ed-dark-mode .edm-user-profile .edm-menu-item {
  color: var(--ed-text, #fcfcfc) !important;
}

html[data-ed-theme="dark"] .edm-user-profile .edm-menu-item small,
body.dark-mode .edm-user-profile .edm-menu-item small,
body.ed-dark-mode .edm-user-profile .edm-menu-item small {
  color: var(--ed-muted, #c9c3df) !important;
}

html[data-ed-theme="dark"] .edm-user-profile .edm-menu-form textarea,
body.dark-mode .edm-user-profile .edm-menu-form textarea,
body.ed-dark-mode .edm-user-profile .edm-menu-form textarea {
  background: color-mix(in srgb, var(--edm-menu-solid, #171036) 88%, #fff 12%);
  color: var(--ed-text, #fcfcfc);
}

/* Protected personal-account deletion and privacy actions. */
.edm-account-delete-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(86dvh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--edm-account-settings-border, rgba(23, 19, 33, .12));
  border-radius: 28px;
  background: var(--edm-account-settings-surface, #fff);
  color: var(--edm-account-settings-text, #171321);
  box-shadow: 0 28px 90px rgba(20, 11, 35, .34);
}

.edm-account-delete-dialog::backdrop {
  background: rgba(12, 7, 22, .68);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.edm-account-delete-dialog__content {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 6vw, 42px);
}

.edm-account-delete-dialog__content h2,
.edm-account-delete-dialog__content p,
.edm-account-delete-dialog__content ul {
  margin: 0;
}

.edm-account-delete-dialog__content h2 {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.08;
}

.edm-account-delete-dialog__content > p,
.edm-account-delete-dialog__content li {
  color: var(--edm-account-settings-muted, #6f687a);
  line-height: 1.6;
}

.edm-account-delete-dialog__content ul {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.edm-account-delete-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.edm-account-settings-page__status-link,
.edm-account-delete-dialog [data-edm-delete-status] a {
  color: var(--edm-account-settings-accent, #6d28d9);
  font-weight: 800;
}

html[data-ed-theme="dark"] .edm-account-delete-dialog,
body.dark-mode .edm-account-delete-dialog,
body.ed-dark-mode .edm-account-delete-dialog {
  --edm-account-settings-surface: #1b1230;
  --edm-account-settings-text: #fff;
  --edm-account-settings-muted: #d4c8e3;
  --edm-account-settings-border: rgba(255, 255, 255, .16);
  color-scheme: dark;
}

@media (max-width: 560px) {
  .edm-account-delete-dialog__actions {
    display: grid;
  }

  .edm-account-delete-dialog__actions .edm-account-settings-page__btn {
    width: 100%;
  }
}
