:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #151b24;
  --raised: #202024;
  --line: #31272a;
  --wine: #7a0d2e;
  --wine-light: #f35178;
  --gold: #e8c483;
  --text: #e2e6ea;
  --muted: #bdb1b3;
  --green: #64ca88;
  --radius: 13px;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; color: var(--text); background: radial-gradient(ellipse 780px 470px at 51% 0, #260d16, transparent 90%), var(--bg); }
button, input, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1 { font: 500 clamp(2rem, 4vw, 2.7rem)/1.1 Georgia, serif; letter-spacing: -.045em; }
h2 { font-size: 1.04rem; }
small, .muted { color: var(--muted); }
small { font-size: .8rem; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 5; background: #0b0f14f5; border-bottom: 1px solid #68223c; }
.topbar-inner { min-height: 68px; max-width: 1440px; padding: 0 32px; margin: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; width: fit-content; gap: 7px; color: #ff6283; font: italic 2.05rem/1 Georgia, serif; letter-spacing: -.065em; white-space: nowrap; }
.wordmark em { color: #e2e6ea; }
.wordmark img { width: 34px; height: 34px; flex: 0 0 auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions { justify-self: end; gap: 13px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: #e1d8d8; font-size: .91rem; white-space: nowrap; }
.nav-link:hover, .icon-button:hover, .soft:hover { background: #2d2127; }
.nav-link[aria-current="page"], .pill[aria-pressed="true"] { color: #fff; background: linear-gradient(110deg, #840e34, #450d20); }
.sidebar .nav-link[aria-current="page"] { background: linear-gradient(100deg, #790e2f, #2b121b); box-shadow: inset 2px 0 #f05273; }
.sidebar .nav-link .icon { width: 18px; height: 18px; }
.layout { max-width: 1440px; margin: auto; padding: 28px 32px 40px; display: grid; grid-template-columns: 210px minmax(0, 1fr) 278px; gap: 25px; align-items: start; }
.layout.wide { grid-template-columns: 210px minmax(0, 1fr); }
.layout.wide .right-rail { display: none; }
.sidebar, .right-rail { display: grid; gap: 18px; }
.sidebar { position: sticky; top: 96px; }
.member-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-row > span { min-width: 0; }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: .9rem; }
.identity { padding: 4px 7px 15px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; outline: 1px solid #b28558; outline-offset: 1px; flex: 0 0 auto; }
.avatar.mini { width: 32px; height: 32px; }
.verified { color: var(--gold); }
.badge { display: inline-grid; place-items: center; background: #a87536; color: #100809; width: 17px; height: 17px; border-radius: 50%; vertical-align: 2px; margin-left: 4px; }
.badge .icon { width: 13px; height: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, #191a23, #101218 72%); overflow: hidden; }
.premium { padding: 16px; border-color: #653139; background: radial-gradient(ellipse at 50% 0, #441324, transparent 85%), #180d12; }
.premium .icon, .section-label .icon { color: var(--gold); }
.premium h2 { margin: 7px 0 4px; color: var(--gold); font: italic 1.45rem Georgia, serif; }
.premium p { color: #d6c4c7; font-size: .85rem; margin-bottom: 14px; }
.gold, .primary, .soft { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; min-height: 38px; border-radius: 8px; font-size: .88rem; font-weight: 650; }
.gold { width: 100%; background: linear-gradient(120deg, #f3d397, #c89457); color: #26150b; }
.primary { background: linear-gradient(120deg, #b71c45, #7a0d2e); color: #fff; }
.primary:hover, .gold:hover { filter: brightness(1.18); }
.soft { background: var(--raised); color: var(--text); }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: transparent; color: var(--text); }
.section-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.section-label .icon { height: 17px; width: 17px; }
.page-title { margin: 2px 0 19px; }
.page-title p { margin-top: 6px; color: var(--muted); }
.composer { padding: 13px; margin-bottom: 17px; }
.composer-line { display: flex; gap: 11px; align-items: center; }
.field { width: 100%; min-width: 0; padding: 9px 13px; border-radius: 8px; border: 1px solid #3a3036; background: #211c20; }
.field::placeholder { color: #c2b5b8; }
.compose-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.post { margin-bottom: 16px; }
.post-head { padding: 14px 16px 11px; }
.post-head p { margin-top: 10px; }
.post-photo { aspect-ratio: 1.67; object-position: center 40%; }
.post-actions { padding: 3px 11px; display: flex; align-items: center; gap: 10px; }
.post-actions button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 7px; border-radius: 8px; background: transparent; color: #e2d5d8; font-size: .86rem; }
.post-actions button:hover { background: #2a1b23; }
.post-actions button[aria-pressed="true"] { color: var(--wine-light); }
.comments { border-top: 1px solid var(--line); padding: 12px 16px; }
.comments p { margin-bottom: 7px; font-size: .9rem; overflow-wrap: anywhere; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.rail-card { padding: 13px; }
.event-tile { display: block; border-radius: 9px; overflow: hidden; border: 1px solid #443039; background: #1d151c; }
.event-tile img { height: 117px; }
.event-tile div { padding: 9px 11px; }
.event-tile strong, .event-tile small { display: block; }
.suggestions { display: grid; gap: 11px; }
.suggestions .soft { width: 100%; margin-top: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.pill { background: var(--raised); color: var(--text); border: 1px solid var(--line); padding: 7px 15px; border-radius: 30px; font-size: .87rem; }
.select { width: auto; max-width: 100%; padding-right: 30px; appearance: none; background: #211c20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8c483' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; font-size: .88rem; }
.age-field { display: flex; align-items: center; gap: 7px; font-size: .875rem; }
.age-field .field { width: 76px; padding-inline: 8px; }
.room-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 14px; }
.room-filters label { display: grid; align-content: start; gap: 5px; font-size: .875rem; }
.room-filters .select { width: 100%; }
.room-count { margin: 13px 0 8px; font-size: .875rem; }
.room-list { list-style: none; margin: 0; padding: 0; }
.room-list li + li { border-top: 1px solid var(--line); }
.room-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 9px 14px; }
.room-active { color: var(--gold); background: #351521; border-radius: 20px; padding: 4px 8px; white-space: nowrap; font-size: .8rem; }
.room-row .room-active { justify-self: end; padding: 0; background: transparent; }
.room-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 26%); gap: 12px; align-items: start; }
.room-members { padding: 13px; }
.room-members-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.room-members ul { list-style: none; display: grid; gap: 11px; margin: 13px 0; padding: 0; }
.room-members button { margin-top: 8px; }
@media (max-width: 850px) {
  .room-view { grid-template-columns: minmax(0, 1fr); }
  .room-members { grid-row: 1; }
  .room-members ul { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
}
.room-row:hover { background: #2d1720; }
.room-row:focus-visible { outline-offset: -3px; }
.room-row small { display: block; }
.room-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; background: #351521; border-radius: 8px; }
.room-icon, .profile-detail h2 .icon { color: var(--gold); }
.room-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.room-pagination button:disabled { opacity: .45; cursor: default; }
@media (max-width: 1180px) {
  .room-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .room-row { gap: 8px; padding-inline: 9px; }
}
.room-back { margin-bottom: 12px; }
.discovery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.person { position: relative; aspect-ratio: 1.2; border: 1px solid #5d3c39; }
.person > a, .person img { display: block; width: 100%; height: 100%; }
.person-info { position: absolute; inset: auto 0 0; padding: 29px 11px 10px; background: linear-gradient(transparent, #0a0707f5 77%); }
.person-info strong, .person-info small { display: block; }
.person > button { position: absolute; right: 8px; top: 8px; background: #0d090bcf; }
.person > button[aria-pressed="true"], .profile-actions button[aria-pressed="true"] { color: var(--wine-light); }
.cover { aspect-ratio: 2.6; object-position: center 37%; }
.profile-summary { padding: 0 19px 18px; position: relative; }
.profile-summary .avatar { margin-top: -45px; width: 88px; height: 88px; outline: 2px solid var(--gold); box-shadow: 0 0 0 6px #151114; }
.profile-summary h1 { margin: 10px 0 4px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.profile-tabs { padding: 0 14px; display: flex; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-tabs button { background: transparent; padding: 10px; color: var(--muted); border-bottom: 2px solid transparent; }
.profile-tabs button[aria-pressed="true"] { color: var(--text); border-color: #e9456c; }
.profile-detail { padding: 17px 19px; }
.profile-detail p + p { margin-top: 8px; }
.profile-detail h2 { margin-bottom: 6px; }
.profile-detail img { max-width: 390px; border-radius: 9px; }
.inbox { min-height: 520px; display: grid; grid-template-columns: minmax(190px, 30%) minmax(0, 1fr); }
.thread-list { padding: 12px; border-right: 1px solid var(--line); }
.thread-list ul { list-style: none; margin: 10px 0 0; padding: 0; }
.thread-list a { padding: 9px 7px; border-radius: 8px; }
.thread-list a[aria-current="true"], .thread-list a:hover { background: #301925; }
.thread-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation { min-height: 520px; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.conversation-head { padding: 13px 17px; border-bottom: 1px solid var(--line); }
.back-link { display: none; }
.online { color: var(--green); }
.bubbles { padding: 17px; display: flex; flex-direction: column; gap: 10px; max-height: 450px; overflow: auto; }
.bubble { align-self: start; max-width: 79%; background: #262126; border-radius: 11px 11px 11px 3px; padding: 9px 12px; overflow-wrap: anywhere; }
.bubble.sent { align-self: end; background: #690e2d; border-radius: 11px 11px 3px 11px; }
.bubble small { display: block; color: #e1cdd4; margin-top: 3px; }
.conversation form { padding: 12px; border-top: 1px solid var(--line); }
.info-card { padding: 17px; margin-bottom: 13px; }
.info-card p { margin: 6px 0 0; }
.info-card img { max-height: 340px; margin-bottom: 13px; border-radius: 9px; }
#mobile-nav { display: none; }
@media (max-width: 1150px) {
  .layout { grid-template-columns: 175px minmax(0,1fr) 230px; gap: 16px; padding-inline: 20px; }
  .layout.wide { grid-template-columns: 175px minmax(0,1fr); }
}
@media (max-width: 950px) {
  .layout, .layout.wide { grid-template-columns: 175px minmax(0,1fr); }
  .right-rail { display: none; }
}
@media (max-width: 700px) {
  .topbar-inner { min-height: 58px; grid-template-columns: 1fr auto; padding-inline: 14px; }
  .wordmark { font-size: clamp(1.36rem, 5vw, 1.9rem); }
  .wordmark img { width: 28px; height: 28px; }
  .sidebar { display: none; }
  .header-actions { gap: 7px; }
  .layout, .layout.wide { display: block; padding: 17px 12px calc(85px + env(safe-area-inset-bottom)); }
  .page-title { margin-bottom: 15px; }
  #mobile-nav { position: fixed; z-index: 5; inset: auto 0 0; background: #110c10; border-top: 1px solid #53313a; display: flex; justify-content: space-evenly; padding: 5px 3px calc(5px + env(safe-area-inset-bottom)); }
  #mobile-nav .nav-link { flex: 1; justify-content: center; flex-direction: column; font-size: .75rem; gap: 3px; padding: 5px 2px; }
  .cover { aspect-ratio: 1.95; }
  .profile-summary { text-align: center; }
  .profile-summary .avatar { margin-inline: auto; }
  .profile-actions { justify-content: center; }
  .profile-tabs { justify-content: space-around; gap: 0; padding: 0 5px; }
  .profile-tabs button { font-size: .875rem; padding-inline: 6px; }
  .inbox { display: block; min-height: 0; }
  .inbox.thread-open .thread-list, .inbox:not(.thread-open) .conversation { display: none; }
  .thread-list { border-right: 0; }
  .conversation { min-height: min(520px, 66dvh); }
  .back-link { display: inline-grid; margin-right: 1px; }
  .bubbles { max-height: 48dvh; }
}
@media (max-width: 370px) {
  .person-info { padding-inline: 7px; }
  .person-info strong { font-size: .85rem; }
  .profile-tabs button { padding-inline: 6px; }
}

.account-action { white-space: nowrap; }
.account-shell { width: min(100% - 28px, 440px); margin: 48px auto; }
.account-shell > .wordmark { margin-bottom: 22px; }
.account-panel { padding: clamp(18px, 5vw, 30px); }
.account-panel h1 { margin-bottom: 22px; }
.account-panel p { margin-top: 20px; }
.account-panel p a { color: var(--gold); text-decoration: underline; }
.account-form, .account-form label { display: grid; gap: 6px; }
.account-form { gap: 14px; }
.account-form input:not([type="checkbox"]) { width: 100%; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.account-form .account-age { display: flex; align-items: center; gap: 8px; }
.account-errors { color: #ffabbc; padding-left: 20px; }
@media (max-width: 410px) {
  .preview-actions { display: none; }
}

.staff-shell { max-width: 1100px; margin: auto; padding: 25px 16px 48px; }
.staff-shell > h1 { margin-bottom: 20px; }
.staff-header, .staff-header nav, .staff-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.staff-header { justify-content: space-between; margin-bottom: 28px; }
.staff-header nav { gap: 7px; }
.staff-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.staff-panel { padding: 16px; margin-bottom: 12px; }
.staff-panel p { margin-top: 4px; overflow-wrap: anywhere; }
.staff-form { align-items: end; margin-top: 12px; }
.staff-form label { display: grid; gap: 4px; max-width: 100%; }
.staff-form input, .staff-form select { max-width: 100%; }
.staff-form input[type="number"] { width: 145px; }
.staff-member { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.staff-member h3 { font-size: 1rem; overflow-wrap: anywhere; }
.staff-feedback { color: var(--green); margin: 0 0 14px; }

.public-header, .public-shell, .public-footer { max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
.public-header, .public-header nav, .public-actions, .public-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.public-header, .public-footer { justify-content: space-between; }
.public-header { min-height: 65px; padding-block: 10px; }
.public-header [aria-current="page"] { color: var(--gold); }
.public-shell { padding-block: 28px 42px; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); background: radial-gradient(ellipse at 100% 100%, #59122d, transparent 52%), #0b0f14; border-color: #5b2338; }
.public-hero-photo { position: relative; min-width: 0; }
.public-hero-photo img { height: 100%; min-height: 330px; object-position: 46% 48%; filter: saturate(.52); }
.public-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 53%, #0b0f14); }
.public-hero-copy { padding: clamp(22px, 4vw, 46px); align-self: center; text-align: center; }
.public-hero-copy .public-hero-mark { width: 50px; height: 50px; margin: 0 auto 8px; }
.public-hero h1 { color: #ff6283; font: italic clamp(2.7rem, 6.1vw, 5.1rem)/1 Georgia, serif; letter-spacing: -.075em; }
.public-hero h1 em { color: #e2e6ea; }
.public-hero-tagline { margin-top: 16px; color: #e2e6ea; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.public-hero-description { margin: 13px auto 0; max-width: 400px; color: #d4cbd1; }
.public-hero-copy .public-actions { justify-content: center; }
.public-section > p { margin-top: 12px; }
.public-actions { margin-top: 20px; }
.public-section { margin-top: 24px; }
.public-section > h2 { font: 500 1.5rem Georgia, serif; }
.public-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.public-grid h3 { font-size: 1rem; }
.membership-grid .primary { margin-top: 14px; }
.public-footer { padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.public-footer a { text-decoration: underline; }
@media (max-width: 680px) {
  .public-hero { grid-template-columns: 1fr; }
  .public-hero-photo img { height: 202px; min-height: 0; }
  .public-hero-photo::after { background: linear-gradient(transparent 55%, #0b0f14); }
}

.member-table-wrap { overflow-x: auto; margin-top: 14px; }
.member-table { width: 100%; min-width: 550px; border-collapse: collapse; text-align: left; }
.member-table th, .member-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.member-table thead th { color: var(--muted); font-size: .875rem; }
.member-table-name strong, .member-table-name small { display: block; overflow-wrap: anywhere; }
.member-table-name small { font-weight: 400; }
.member-active { color: var(--green); }

.room-feedback:empty { display: none; }
.room-feedback { padding: 7px 12px; font-size: .875rem; }
.room-view .bubble { overflow-wrap: anywhere; white-space: pre-wrap; }
.room-members li { overflow-wrap: anywhere; }

.room-remove { display: flex; width: fit-content; margin-top: 4px; min-height: 30px; font-size: .75rem; }

.album-section-title { margin: 20px 0 10px; }
.album-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.album-heading { margin: 0 0 15px; }
.album-list { margin: 10px 0 0; padding: 0; list-style: none; }
.album-list li { border-top: 1px solid var(--line); }
.album-list li > a, .album-access { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 4px; }
.album-list li > a:hover { background: var(--raised); }
.album-list li > a > span { color: var(--muted); font-size: .875rem; }
.album-list li.muted { padding: 10px 4px; }
.album-access .album-actions { margin: 0; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.album-photo { margin: 0; }
.album-photo a { display: block; }
.album-photo img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--bg); }
.album-photo figcaption { display: grid; gap: 6px; padding: 9px; overflow-wrap: anywhere; }
.album-delete { margin-top: 22px; }
.album-delete summary { cursor: pointer; }
@media (max-width: 500px) {
  .header-actions.preview-actions { display: none; }
}

.member-profile { --profile-tone: #66243a; --profile-accent: #f35178; }
.member-profile.profile-theme-midnight { --profile-tone: #283b69; --profile-accent: #9bb7f6; }
.member-profile.profile-theme-ember { --profile-tone: #713e27; --profile-accent: #e9ad72; }
.member-cover { width: 100%; background: radial-gradient(ellipse at 25% 30%, var(--profile-tone), transparent 75%), linear-gradient(115deg, #191319, #2b2027); aspect-ratio: 3.4; }
.member-profile .profile-summary .avatar { outline-color: var(--profile-accent); }
.profile-initial { display: grid; place-items: center; background: #30222b; color: var(--gold); font: 600 1.15rem Georgia, serif; }
.profile-summary .profile-initial { font-size: 2.2rem; }
.member-tagline { margin: 5px 0; overflow-wrap: anywhere; }
.member-profile h1, .profile-text, .member-discover-card h2, .member-discover-card p { overflow-wrap: anywhere; }
.member-profile .profile-actions { align-items: center; }
.member-profile-tabs { flex-wrap: wrap; }
.member-profile-tabs a { padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.member-profile-tabs a[aria-current="page"] { color: var(--text); border-color: var(--profile-accent); }
.profile-text { white-space: pre-wrap; }
.profile-detail h3 { margin-top: 16px; font-size: .95rem; }
.profile-interests { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.profile-interests li { border: 1px solid var(--line); padding: 3px 10px; border-radius: 20px; overflow-wrap: anywhere; }
.profile-return { margin-bottom: 12px; }
.profile-edit-form, .profile-image-settings, .member-discover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 12px; }
.profile-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-edit-form label, .profile-wall-form label { display: grid; gap: 5px; }
.profile-full { grid-column: 1 / -1; }
.profile-edit-form textarea, .profile-wall-form textarea { resize: vertical; }
.profile-image-settings h3 { margin: 5px 0 10px; font-size: .95rem; }
.profile-image-preview { max-height: 160px; object-fit: contain; object-position: left; }
.profile-image-preview.avatar { width: 70px; height: 70px; object-fit: cover; }
.member-discover-card a { display: flex; align-items: center; gap: 12px; padding: 15px; }
.member-discover-card a:hover { background: var(--raised); }
.member-discover-card .avatar { width: 52px; height: 52px; }
.profile-wall-form { margin: 8px 0 15px; }
.profile-wall-form button { margin-top: 8px; }
.profile-wall-post { padding: 12px 0; border-top: 1px solid var(--line); }
.profile-wall-post header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.profile-friend-link { text-decoration: underline; }
@media (max-width: 620px) {
  .profile-edit-form { grid-template-columns: 1fr; }
  .member-cover { aspect-ratio: 2.15; }
}

.profile-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: .875rem; }
.profile-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.profile-status.profile-online { color: var(--green); }
.profile-edit-form .profile-checkbox { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.event-card time { color: var(--gold); font-size: .875rem; }
.event-card h2 { margin-top: 7px; overflow-wrap: anywhere; }
.event-card h2 a:hover { text-decoration: underline; }
.event-card .event-description { margin: 10px 0; }
.business-card { display: flex; align-items: flex-start; gap: 10px; }
.business-card .soft { margin-top: 6px; }
.business-card > div { min-width: 0; overflow-wrap: anywhere; }

.profile-edit-form { align-items: start; }
.profile-blank-cover, .profile-cover-media { display: block; width: 100%; }
.profile-photo-trigger { position: relative; display: block; padding: 0; background: transparent; }
.profile-cover-trigger { width: 100%; text-align: left; }
.profile-cover-trigger .profile-photo-label { right: 10px; top: 10px; }
.profile-photo-label { position: absolute; padding: 4px 9px; border-radius: 7px; background: #151114; color: var(--text); font-size: .75rem; }
.profile-avatar-trigger { margin-top: -45px; border-radius: 50%; }
.profile-summary .profile-avatar-trigger .avatar { margin-top: 0; }
.profile-avatar-trigger .profile-photo-label { right: -7px; bottom: -3px; }
.profile-edit-portrait { margin-bottom: 16px; }
.profile-edit-portrait .member-cover { height: clamp(145px, 25vw, 245px); }
.photo-picker { width: min(680px, calc(100% - 24px)); max-height: min(84dvh, 760px); padding: 16px; color: var(--text); overflow-y: auto; }
.photo-picker::backdrop { background: rgb(0 0 0 / 75%); }
.photo-picker [hidden] { display: none; }
.photo-picker-head, .profile-uploads-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.photo-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 8px; margin: 12px 0; }
.photo-picker-option { padding: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.photo-picker-option img { aspect-ratio: 1; }
.photo-crop-preview { display: block; width: min(100%, 600px); height: auto; margin: auto; border: 1px solid var(--line); border-radius: 6px; }
.photo-crop-preview.round-crop { width: min(100%, 260px); border-radius: 50%; }
.photo-crop-sliders { display: grid; gap: 8px; margin: 12px 0 0; }
.photo-crop-sliders label { display: grid; gap: 4px; }
.photo-picker-feedback { margin-top: 8px; }
.photo-picker-feedback:empty { display: none; }
.profile-uploads-heading { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.profile-upload-details { display: grid; gap: 7px; padding: 10px; overflow-wrap: anywhere; }
.profile-upload-form, .profile-upload-form label { display: grid; gap: 5px; min-width: 0; }
.profile-upload-form select { width: 100%; }
.profile-upload summary { cursor: pointer; font-size: .875rem; }
.profile-upload details form { margin-top: 5px; }
@media (max-width: 700px) {
  .profile-avatar-trigger { margin-inline: auto; }
}

.profile-block summary { cursor: pointer; color: var(--muted); font-size: .875rem; }
.profile-block[open] { flex-basis: 100%; }
.profile-block p { margin: 5px 0; }

.member-admin-summary, .member-admin-badges, .member-admin-checkbox { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.member-admin-summary { justify-content: space-between; gap: 12px; }
.member-admin-summary h2 { font: 500 1.5rem Georgia, serif; overflow-wrap: anywhere; }
.member-admin-badges span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: .8rem; }
.member-admin-reason { flex-basis: 100%; }
.member-edit-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); gap: 14px; align-items: start; }
.member-edit-grid aside .staff-form { align-items: stretch; }
.member-edit-grid aside .staff-form label { width: 100%; }
@media (max-width: 760px) {
  .member-edit-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.directory-filter-form { display: grid; gap: 13px; }
.directory-search-row, .directory-filter-grid label { display: grid; gap: 5px; }
.directory-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.directory-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.directory-filter-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.directory-filter-footer label { display: flex; align-items: center; gap: 6px; }

.directory-filter-dialog { width: min(560px, calc(100% - 24px)); max-height: 85dvh; overflow-y: auto; color: var(--text); padding: 16px; }
.directory-filter-dialog::backdrop { background: rgb(0 0 0 / 75%); }
@media (max-width: 480px) {
  .directory-search-controls { grid-template-columns: 1fr 1fr; }
  .directory-search-controls input { grid-column: 1 / -1; }
}

.community-page-heading, .event-toolbar, .event-toolbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.community-page-heading, .event-toolbar { justify-content: space-between; }
.event-toolbar { padding: 8px; }
.event-toolbar nav { gap: 4px; }
.event-toolbar nav a { padding: 8px 12px; border-radius: 7px; color: var(--muted); font-size: .9rem; }
.event-toolbar nav a:hover { background: var(--raised); }
.event-toolbar nav a[aria-current="page"] { background: #391522; color: var(--text); }
.event-filter-summary { margin: 12px 0; color: var(--muted); font-size: .875rem; }
.event-filter-summary a { margin-left: 8px; color: var(--gold); text-decoration: underline; }
.event-list { display: grid; gap: 10px; margin-top: 14px; }
.event-result > a { display: flex; align-items: flex-start; gap: 14px; padding: 14px; }
.event-result > a:hover { background: var(--raised); }
.event-date { display: grid; place-items: center; min-width: 54px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold); line-height: 1.2; }
.event-date span { font-size: .75rem; }
.event-date strong { font-size: 1.35rem; }
.event-result-body { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.event-empty { border-style: dashed; padding: 30px 16px; text-align: center; }
.event-empty p { margin-top: 5px; }

.feed-nav, .feed-post-head, .policy-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feed-nav { margin-bottom: 12px; }
.feed-nav a[aria-current="page"] { background: #391522; }
.feed-post { overflow: visible; }
.feed-post-head { justify-content: space-between; align-items: flex-start; padding: 13px 14px 0; }
.feed-post-body { padding: 10px 14px; }
.feed-body { resize: vertical; }
.feed-title { text-align: center; }
.feed-post-menu { position: relative; margin-left: auto; }
.feed-post-menu summary { display: grid; place-items: center; min-width: 36px; min-height: 36px; width: fit-content; margin-left: auto; cursor: pointer; font-size: 1.25rem; }
.feed-post-menu summary::-webkit-details-marker { display: none; }
.feed-post-menu[open] summary, .feed-post-menu summary:hover { color: var(--gold); }
.feed-post-menu-links { position: absolute; z-index: 3; top: 100%; right: 0; display: grid; justify-items: end; gap: 3px; padding: 4px 8px; background: var(--surface); }
.feed-menu-link { display: inline-block; padding: 3px 0; background: transparent; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.feed-menu-link:hover, .feed-menu-link:focus-visible { color: var(--text); text-decoration: underline; }
.feed-post-status { margin: 0 14px 12px; color: var(--gold); }
.feed-post-actions { justify-content: flex-start; }
.feed-comments { margin: 0 14px 12px; }
.feed-comments summary { cursor: pointer; color: var(--muted); }
.feed-comments p { margin-top: 7px; overflow-wrap: anywhere; }
.feed-comments form, .account-panel .account-form { margin-top: 10px; }
.policy-document h2 { margin-top: 19px; }
.policy-document p { margin-top: 8px; max-width: 78ch; }
.policy-document a, .account-age a { color: var(--gold); text-decoration: underline; }
.policy-links { justify-content: flex-start; gap: 12px; }
[data-signup-submit]:disabled { opacity: .5; cursor: default; }
@media (max-width: 700px) {
  .layout + .public-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

.feed-body { font: inherit; }
.feed-attachment-fields { display: grid; gap: 10px; margin-top: 8px; }
.feed-attachment-fields label { display: grid; gap: 4px; min-width: 0; }
.feed-attachment-fields a { text-decoration: underline; }
.feed-attachments { display: grid; gap: 8px; padding: 8px 14px 12px; }
.feed-photo-grid { display: grid; gap: 6px; }
.feed-photo-grid-multiple { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
.feed-photo-grid img { max-height: 480px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.feed-photo-grid-multiple img { aspect-ratio: 4 / 3; object-fit: cover; }
.feed-event-attachment { display: grid; gap: 3px; padding: 10px 12px; overflow-wrap: anywhere; }
.feed-event-attachment:hover { background: var(--raised); }

.feed-thread { display: grid; gap: 9px; margin-top: 8px; }
.feed-comment { padding: 8px 10px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.feed-comment p { margin-top: 0; }
.feed-replies { display: grid; gap: 5px; list-style: none; margin: 7px 0 0; padding-left: 12px; }
.feed-reply summary { width: fit-content; font-size: .85rem; }
.feed-reply { margin-top: 5px; }
.feed-more-comments { margin-top: 6px; }

.feed-upload-feedback { margin-top: 8px; }
.feed-upload-feedback:empty { display: none; }

.feed-composer-toolbar, .feed-composer-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.feed-composer-toolbar { justify-content: space-between; margin-top: 10px; }
.feed-tool { position: relative; padding: 8px 10px; color: var(--gold); }
.feed-tool[aria-expanded="true"] { background: #391522; }
.feed-tool:hover::after, .feed-tool:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 4;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 5px;
  background: #151114;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
}
.feed-emoji-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.feed-emoji-picker button { padding-inline: 8px; }
.feed-attachment-fields[hidden], .feed-comments[hidden] { display: none; }
.feed-post-context { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-post-context span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); overflow-wrap: anywhere; }
.feed-post-context strong { color: var(--gold); }
@media (max-width: 480px) {
  .feed-composer-icons { gap: 4px; }
  .feed-tool { padding: 7px 6px; }
  .feed-tool .icon { width: 18px; }
  .feed-composer-toolbar { gap: 5px; }
}

.profile-gallery-heading, .profile-private-heading { margin-top: 0; padding-top: 0; border-top: 0; }
.profile-gallery-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.profile-gallery-upload .select { width: auto; max-width: 100%; }
.profile-private-access .album-access > a { padding: 0; }

.feed-preset-group { display: grid; gap: 6px; }
.feed-preset-options, .feed-preset-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.feed-preset-selection button[hidden] { display: none; }
.feed-gif-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px), 1fr)); gap: 8px; }
.feed-gif-picker button { display: grid; gap: 5px; justify-items: center; padding: 5px; }
.feed-gif-picker img { width: 112px; max-width: 100%; border-radius: 5px; }
.feed-preset-options button[aria-pressed="true"], .feed-gif-picker button[aria-pressed="true"] { background: #391522; outline: 1px solid var(--gold); }
.feed-gif-preview { width: min(100%, 240px); border-radius: 8px; }

@media (max-width: 390px) {
  #mobile-nav .nav-link { font-size: .66rem; padding-inline: 1px; }
}

.header-account-menu { position: relative; }
.header-account-trigger { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; cursor: pointer; border-radius: 50%; }
.header-account-trigger::-webkit-details-marker { display: none; }
.header-account-menu[open] .header-account-trigger, .header-account-trigger:hover { background: var(--raised); }
.header-account-links { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; min-width: 166px; padding: 4px; }
.header-account-links a, .header-account-links button { display: block; width: 100%; padding: 8px 10px; text-align: left; background: transparent; border-radius: 5px; font-size: .88rem; white-space: nowrap; }
.header-account-links a:hover, .header-account-links button:hover { background: var(--raised); }
.account-overview-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.account-overview-header h2, .account-overview-header p { overflow-wrap: anywhere; }
.account-plan { color: var(--gold); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: .85rem; }
.account-overview-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-section-heading { margin: 18px 0 8px; color: var(--gold); }
.account-privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; align-items: start; }
.account-privacy-grid .staff-panel { margin-bottom: 0; }

/* Admin workspace */
.admin-shell { max-width: 1320px; }
.admin-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-nav { position: sticky; top: 16px; display: grid; gap: 4px; padding: 9px; }
.admin-nav a { color: inherit; text-decoration: none; border-radius: 7px; padding: 10px 12px; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a:focus-visible { background: #232025; }
.admin-nav a[aria-current="page"] { background: #401725; box-shadow: inset 2px 0 #f64b78; color: #fff; }
.admin-content { min-width: 0; }
.admin-content > h1 { margin: 0 0 18px; }
.admin-heading, .admin-report-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-heading h1, .admin-report h2 { margin: 0; }
.admin-heading p, .admin-report-heading p { margin: 5px 0 0; }
.admin-heading .field { min-width: 85px; }
.admin-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin: 20px 0; }
.admin-metric { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 5px; margin: 0; padding: 14px; }
.admin-metric dt { font-size: .88rem; color: #cbbfc4; }
.admin-metric dd { margin: 0; text-align: center; font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-report { margin: 0 0 14px; padding: 18px; }
.admin-report-heading > div { flex: 1 1 280px; }
.admin-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 14px 0 8px; color: #d6cbd0; font-size: .82rem; }
.admin-chart-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--chart-color); }
.chart-net { --chart-color: #e8bc74; }
.chart-members { --chart-color: #d45887; }
.chart-customers { --chart-color: #e8bc74; }
.admin-chart-scroll { position: relative; overflow-x: auto; }
.admin-line-chart { display: block; width: 100%; min-width: 465px; }
.admin-line-chart text { fill: #cbbfc4; font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-chart-grid { stroke: #53414a; stroke-width: 1; }
.admin-series-line { stroke: var(--chart-color); stroke-width: 2.5; stroke-linecap: round; }
.admin-series-point { fill: var(--chart-color); }
.admin-chart-empty { position: absolute; inset: 0 0 15%; display: grid; place-items: center; margin: 0; padding: 8px; text-align: center; pointer-events: none; color: #ded2d8; }
.admin-chart-year { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.admin-chart-year .field { width: auto; }
.admin-chart-description { margin: 5px 0 0; }
.admin-chart-status:empty { display: none; }
.admin-member-search { width: min(420px, 100%); }
.admin-member-search .field { width: 100%; }
.admin-report-data { margin-top: 12px; }
.admin-report-data summary { color: #e8bc74; cursor: pointer; width: fit-content; }
.admin-report-data table { margin-top: 8px; }
.stripe-events { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; }
  .admin-report { padding: 12px; }
}

.admin-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.admin-template { display: flex; flex-direction: column; align-items: flex-start; padding: 14px; margin: 0; }
.admin-template h3 { margin: 0; }
.admin-template p { margin: 7px 0 12px; }
.admin-template-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.admin-template-actions form { margin: 0; }

.account-centered-actions { display: grid; justify-items: center; gap: 10px; }
