/* The members' club look (Jay, October 21, 2026; the Room mockups D–I): near-black grounds, hairline dividers, small
   letter-spaced caps over sections, a serif for big titles and names, off-white filled primary buttons with dark text,
   outlined secondaries, gold only for lines, text and outlines (never a gold background), and steel blue for chosen
   states on the Social side. Loaded last on the member page, after kit.css, so it wins at equal specificity. */
:root {
  --room-serif:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --club-gold:#c9a96a;
  --club-ink:#ece6da;
  --club-ink-social:#e8e9ec;
  --club-steel:#e0957a;
  --club-label:#8f8574;
  --club-label-social:#7f8794;
  --club-hair:#2a251e;
  --club-hair-social:#1a1e24;
  --club-outline:#3a3328;
  --club-outline-social:#2e3540;
}

/* ---------- Big titles ---------- */
body.app-framed .club-title { margin:6px 20px 0; padding:0 0 16px; font-family:var(--room-serif); font-size:34px; font-weight:500; line-height:1.1; letter-spacing:.3px; color:var(--club-gold); border-bottom:1px solid transparent; border-image:linear-gradient(90deg,transparent,#5a4c33,transparent) 1; }
body.app-framed .club-title.is-social { color:var(--club-steel); border-image:linear-gradient(90deg,transparent,#34404f,transparent) 1; }
body.app-framed .club-title-button { display:inline-flex; align-items:baseline; gap:10px; min-height:44px; padding:0; border:0; background:none; color:inherit; font:inherit; letter-spacing:inherit; cursor:pointer; }
body.app-framed .club-title-chevron { font-size:.7em; opacity:.55; }
body.app-framed .member-events-section > .club-title { margin:6px 4px 14px; }

/* ---------- Menu (I) ---------- */
.member-portal.app-framed .portal-navigation:not(.hidden) { background:#0b0a09; }
.member-portal.app-framed .portal-navigation .portal-menu-swipe-hint { background:#0b0a09; }
.member-portal.app-framed .portal-navigation .portal-menu-profile { gap:16px; padding:18px 20px 22px; border-bottom:1px solid var(--club-hair); }
.member-portal.app-framed .portal-navigation .portal-menu-profile .portal-menu-text { display:flex; flex-direction:column; gap:4px; }
.portal-menu-number { font-size:11.5px; letter-spacing:2.4px; text-transform:uppercase; color:var(--club-gold); }
.portal-menu-number.hidden { display:none; }
.member-portal.app-framed .portal-navigation .portal-menu-profile .portal-menu-avatar { width:72px; height:96px; border-radius:12px; background:#1a1714; }
.member-portal.app-framed .portal-navigation .portal-menu-profile .portal-menu-avatar.has-photo img { border-radius:12px; padding:0; border:0; background:none; box-shadow:none; }
.member-portal.app-framed .portal-navigation .portal-menu-name-row strong { font-family:var(--room-serif); font-size:30px; font-weight:500; line-height:1; color:#f3ecdf; }
/* "Verified · Founding Member" as a plain line under the name, no pill. */
.member-portal.app-framed .member-profile-pill.portal-menu-verify { height:auto; padding:0; border:0; border-radius:0; background:none; box-shadow:none; font-size:13px; font-weight:500; color:#4cc38a; }
.member-portal.app-framed .member-profile-pill.portal-menu-verify.is-not-vetted { color:#e0876a; }
.member-portal.app-framed .member-profile-pill.portal-menu-verify.hidden { display:none; }
.member-portal.app-framed .portal-navigation .portal-menu-item { min-height:52px; padding:0 20px; font-size:15.5px; color:var(--club-ink); border-bottom:1px solid #1e1b16; }
.member-portal.app-framed .portal-navigation .portal-menu-item:hover, .member-portal.app-framed .portal-navigation .portal-menu-profile:hover { background:#14120f; }
.member-portal.app-framed .portal-navigation .portal-menu-chevron { color:#7c7466; }
body.app-framed .portal-navigation .portal-menu-section { margin:24px 20px 4px; font-size:11.5px; font-weight:500; letter-spacing:2.4px; color:var(--club-label); }
/* InvitedIn Plus as a gold-outlined card, no glow or fill. */
.member-portal.app-framed .portal-navigation .portal-menu-item.portal-menu-plus { width:calc(100% - 40px); min-height:64px; margin:18px 20px 0; padding:0 18px; border:1px solid var(--club-gold); border-radius:16px; background:none; box-shadow:none; animation:none; }
.member-portal.app-framed .portal-navigation .portal-menu-item.portal-menu-plus::before, .member-portal.app-framed .portal-navigation .portal-menu-item.portal-menu-plus::after { display:none; }
.member-portal.app-framed .portal-navigation .portal-menu-plus .portal-menu-text { font-family:var(--room-serif); font-size:22px; color:var(--club-gold); }
.member-portal.app-framed .portal-navigation .portal-menu-plus .portal-menu-chevron { color:var(--club-gold); }
.member-portal.app-framed .portal-navigation .portal-menu-plus .plus-spark { display:none; }
.member-portal.app-framed .portal-navigation .portal-menu-signout { width:calc(100% - 40px); min-height:48px; margin:28px 20px 8px; border:1px solid var(--club-outline); border-radius:24px; color:#cfc6b6; }
.member-portal.app-framed .portal-navigation .portal-menu-home-bar { width:134px; height:5px; border-radius:3px; background:#8a8172; }

/* ---------- Profiles (D Hush, F Social) ---------- */
:is(#memberProfileView,[data-copy-of="memberProfileView"]) { --club-accent:var(--club-steel); --club-line:var(--club-label-social); --club-rule:var(--club-hair-social); --club-edge:var(--club-outline-social); --club-fill:var(--club-ink-social); }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid { --club-accent:var(--club-gold); --club-line:var(--club-label); --club-rule:var(--club-hair); --club-edge:var(--club-outline); --club-fill:var(--club-ink); }
body.app-framed .member-profile-number { margin:0 0 6px; font-size:11.5px; letter-spacing:2.4px; text-transform:uppercase; color:var(--club-accent); }
body.app-framed .member-profile-name { font-family:var(--room-serif); font-size:42px; font-weight:500; line-height:1; letter-spacing:.2px; }
/* ✓ Verified right after the name in green, as text. */
body.app-framed .member-profile-name-row > .member-profile-pill.is-verified { height:auto; padding:0; border:0; background:none; box-shadow:none; color:#4cc38a; font-size:13px; font-weight:500; }
body.app-framed .member-profile-name-row > .member-profile-pill.is-verified .member-profile-verified-check { width:auto; height:auto; background:none; color:#4cc38a; font-size:13px; }
body.app-framed .member-profile-line { font-size:14px; color:#b8ad99; }
body.app-framed :is(#memberProfileView,[data-copy-of="memberProfileView"]):not(.is-grid) .member-profile-line { color:#a3a9b3; }
body.app-framed .member-profile-content { gap:22px; padding-top:16px; }
/* The description under the name: no card, no heading. A Hush Headline is an italic serif quote. */
body.app-framed .member-profile-about.member-profile-description { margin:0 20px; padding:0; border:0; background:none; }
body.app-framed .member-profile-description > .member-profile-about-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
body.app-framed .member-profile-description .member-profile-about-text { font-size:15.5px; line-height:1.55; color:#d4d8de; }
body.app-framed .member-profile-description.is-headline .member-profile-about-text { font-family:var(--room-serif); font-style:italic; font-size:21px; line-height:1.35; color:#e9dfcd; }
body.app-framed .member-profile-description.is-headline .member-profile-about-text::before { content:'\201C'; }
body.app-framed .member-profile-description.is-headline .member-profile-about-text::after { content:'\201D'; }
/* Sections: caps labels over outlined pills, no cards. */
body.app-framed .member-profile-about:not(.member-profile-description) { margin:0 20px; padding:0; border:0; border-radius:0; background:none; }
body.app-framed .member-profile-about-title { margin:0 0 10px; font-size:11.5px; font-weight:500; letter-spacing:2.4px; color:var(--club-line); }
body.app-framed :is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-about-title { color:var(--club-line); }
body.app-framed .member-profile-pills.is-wrap { padding:0 20px; gap:8px; }
body.app-framed .member-profile-content .member-profile-pill { height:auto; min-height:32px; padding:6px 11px; border:1px solid var(--club-edge); border-radius:14px; background:none; box-shadow:none; font-size:13px; font-weight:500; color:#d9d0c0; }
body.app-framed .member-profile-content .member-profile-pill.is-founding { border-color:var(--club-gold); color:var(--club-gold); }
body.app-framed .member-profile-content .member-profile-pill.is-founding .member-profile-founding-star { color:var(--club-gold); }
body.app-framed .member-profile-content .member-profile-pill.is-inviter { border-color:#6c5f8c; color:#b7a6d8; }
body.app-framed .member-profile-content .member-profile-pill.is-nominator { border-color:#4a567a; color:#8f9fc4; }
body.app-framed .member-profile-content .member-profile-pill.is-voted { border-color:#3f6650; color:#9ccdb0; }
body.app-framed .member-profile-content .member-profile-pill.is-replier { border-color:#46607a; color:#a9c4de; }
body.app-framed .member-profile-content .member-profile-pill.is-good-chats { border-color:#7a4c5a; color:#d9a3b4; }
body.app-framed .member-profile-content .member-profile-pill.is-promo { border-color:#7a4a38; color:#e0957a; }
body.app-framed .member-profile-content .member-profile-pill.is-hidden-pill { opacity:.45; }
/* Details as label-free rows with hairlines between them. */
/* "Only you see these": Favorite, Met up, Contender as outlined tiles. */
body.app-framed .member-profile-about.member-profile-marks-section { padding:16px; border:1px solid #2f2920; border-radius:18px; background:#110f0d; }
body.app-framed .member-profile-marks-section > .member-profile-about-title { font-family:var(--room-serif); font-size:20px; font-weight:500; letter-spacing:0; text-transform:none; color:var(--club-ink); }
body.app-framed .member-profile-marks-section .member-profile-mark { min-height:44px; border:1px solid var(--club-outline); border-radius:12px; background:none; box-shadow:none; color:#cfc6b6; }
body.app-framed .member-profile-marks-section .member-profile-mark.is-on { border-color:var(--club-gold); color:var(--club-gold); background:none; }
body.app-framed .member-profile-two-link { color:#8f8574; }
/* The bottom row: Back and Nominate outlined, Message filled off-white with dark text. */
body.app-framed .member-profile-nav { background:linear-gradient(180deg,rgba(11,10,9,0),#0b0a09 55%); }
body.app-framed .member-profile-nav :is(.member-profile-nominate,.member-profile-swap) { border:1px solid var(--club-accent); background:rgba(11,10,9,.8); color:var(--club-accent); }
body.app-framed .member-profile-nav .member-profile-message { border:0; background:var(--club-fill); color:#0b0a09; }
body.app-framed.member-portal :is(#memberProfileView,[data-copy-of="memberProfileView"]) .member-profile-nav .chat-nav-back { border:1px solid var(--club-edge); background:rgba(11,10,9,.8); color:#cfc6b6; }

/* ---------- Social tab (E) ---------- */
body.app-framed .chat-list-view .chat-section-label, body.app-framed .chat-loading-list .chat-section-label { margin:18px 20px 6px; font-size:11.5px; font-weight:500; letter-spacing:2.4px; color:var(--club-label-social); }
body.app-framed .chat-list-view .chat-list-pills { padding:14px 20px 6px; }
body.app-framed .chat-list-view .chat-list-pill { border:1px solid var(--club-outline-social); background:none; color:#cdd2da; }
body.app-framed .chat-list-view .chat-list-pill.is-on { border-color:var(--club-steel); color:var(--club-steel); }
/* A row is a <button>, which shrinks to its content at width:auto: every row spans the list, so the times line up on the right. */
body.app-framed .chat-panel .chat-list-view .chat-item { gap:14px; margin:0 20px; width:calc(100% - 40px); box-sizing:border-box; padding:12px 0; border-bottom:1px solid var(--club-hair-social); }
/* Square: member-chat.css's flex-basis:66px made them 66 wide and 52 tall. */
body.app-framed .chat-list-view .chat-item > .chat-avatar, body.app-framed .chat-list-view .chat-item > .chat-profile-link > .chat-avatar { flex:0 0 52px; width:52px; height:52px; border-radius:14px; }
body.app-framed .chat-list-view .chat-item .chat-avatar img { border-radius:14px; }
body.app-framed .chat-list-view .chat-item-name { font-size:15.5px; font-weight:600; }
body.app-framed .chat-list-view .chat-member-count { background:none; padding:0; color:var(--club-label-social); font-weight:500; }
body.app-framed .chat-list-view .chat-item-time { font-size:12px; color:var(--club-label-social); }
body.app-framed .chat-list-view .chat-item-last { font-size:13.5px; color:#a3a9b3; line-height:1.35; }
/* Unread is a steel-blue count badge, like the Hush list's (Jay, October 22, 2026; it was a small dot). */
body.app-framed .chat-list-view .chat-badge:not(.chat-badge-grid) { flex:none; background:var(--club-steel); color:#0d1014; box-shadow:none; }

/* ---------- Bids (G) ---------- */
body.app-framed .bids-title { font-family:var(--room-serif); font-size:34px; font-weight:500; line-height:1.1; color:var(--club-gold); }
body.app-framed .bids-tabs { gap:0; margin:18px 0 0; padding:0; border-bottom:1px solid var(--club-hair); background:none; border-radius:0; }
body.app-framed .bids-tabs .bids-subtab { flex:1; height:44px; border:0; border-radius:0; background:none; box-shadow:none; font-size:12.5px; font-weight:500; color:var(--club-label); }
body.app-framed .bids-tabs .bids-subtab.is-on { color:var(--club-gold); background:none; box-shadow:inset 0 -2px 0 var(--club-gold); }
body.app-framed .bids-tabs .bids-subtab-badge { margin-left:3px; min-width:0; height:auto; padding:1px 6px; border-radius:9px; background:var(--club-ink); color:#0b0a09; font-size:11px; box-shadow:none; }
body.app-framed .bids-card { border:0; background:none; box-shadow:none; padding:0; }
body.app-framed .bids-card-title { display:flex; align-items:baseline; gap:8px; font-family:var(--room-serif); font-size:22px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--club-ink); }
/* The heading's count: centered on the serif title, in the sans with its number dead center, like the tab badges (Jay, October 21, 2026: it sat low). */
body.app-framed .bids-card-title .bids-count { align-self:center; display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 7px; border-radius:11px; background:var(--club-ink); color:#0b0a09; font:700 12px/1 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:0; font-variant-numeric:tabular-nums; }
body.app-framed .bids-card-aside { margin-left:auto; min-width:0; max-width:60%; text-align:right; line-height:1.35; font-size:15px; font-weight:600; color:#d7d2c8; }
body.app-framed .bids-card .bids-row { gap:14px; padding:12px; margin-top:12px; border:1px solid var(--club-hair); border-radius:16px; background:#110f0d; }
body.app-framed .bids-card.is-voted-on .bids-row { background:none; }
/* Results' new members are cards like Election's, with the same 60x80 portrait (Jay, October 21, 2026). */
body.app-framed .bids-card.is-new-members .bids-new-row { gap:14px; min-height:0; padding:12px; margin-top:12px; border:1px solid var(--club-hair); border-radius:16px; background:#110f0d; }
body.app-framed .bids-card.is-new-members .bids-new-row + .bids-new-row { padding-top:12px; border-top:1px solid var(--club-hair); }
body.app-framed .bids-card.is-new-members .bids-new-row > .bids-new-tag,
body.app-framed .bids-card.is-new-members .bids-new-row + .bids-new-row > .bids-new-tag { top:6px; left:6px; }
body.app-framed .bids-card.is-new-members .bids-new-row .bids-row-text { gap:3px; }
body.app-framed .bids-avatar.is-portrait { width:60px; height:80px; border-radius:10px; }
body.app-framed .bids-avatar.is-portrait img { border-radius:10px; object-fit:cover; }
body.app-framed .bids-row-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
body.app-framed .bids-row-name { font-size:15.5px; font-weight:600; color:var(--club-ink); }
body.app-framed .bids-row-name-line { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; row-gap:2px; min-width:0; }
body.app-framed .bids-row-name-line .bids-row-verify { white-space:nowrap; }
body.app-framed .bids-row-text small { font-size:12.5px; color:#9b917f; }
body.app-framed .bids-row-verify.is-verified { color:#4cc38a; }
body.app-framed .bids-row-verify.is-not-verified { color:#e0876a; }
body.app-framed .bids-row-closes.bids-closes-soon { color:#e0876a; }
body.app-framed .bids-card .bids-pill { flex:none; height:40px; padding:0 16px; border:1px solid var(--club-gold); border-radius:20px; background:none; color:var(--club-gold); font-weight:600; }
body.app-framed .bids-card .bids-pill.is-done { border-color:var(--club-outline); color:#9b917f; }

/* ---------- Events (H) ---------- */
body.app-framed .portal-events-soon { border:1px dashed var(--club-outline); background:none; box-shadow:none; }
body.app-framed .portal-events-soon strong { color:var(--club-ink); }
body.app-framed .portal-events-soon p { color:#9b917f; }
body.app-framed .hosted-event-card { border:1px solid #221e18; border-radius:18px; background:#0b0a09; box-shadow:none; }
body.app-framed .hosted-event-card .hev-card-when { color:var(--club-gold); font-size:12px; letter-spacing:1.8px; text-transform:uppercase; }
body.app-framed .hosted-event-card .hev-card-title { font-family:var(--room-serif); font-size:26px; font-weight:500; line-height:1.1; color:var(--club-ink); }
body.app-framed .hosted-event-card .hev-card-where { font-size:13px; color:#9b917f; }
body.app-framed .hosted-event-card .hev-card-description { font-size:13.5px; color:#c9c0b0; line-height:1.45; }
body.app-framed .hosted-event-card .hev-side { border:1px solid rgba(236,230,218,.4); background:rgba(11,10,9,.5); color:var(--club-ink); font-size:10.5px; letter-spacing:1.6px; text-transform:uppercase; }
body.app-framed .hosted-event-card .hev-chip { border:1px solid #cfc6b6; background:rgba(11,10,9,.6); color:#cfc6b6; }
body.app-framed .hosted-event-card .hev-chip.is-going { border-color:#4cc38a; color:#4cc38a; }
body.app-framed .hosted-event-card .hev-card-count { color:#9b917f; }
/* Menu rows keep an empty mark where an emoji was (a group's logo still fills it). */
body.app-framed .portal-menu-icon.is-empty { display:none; }

/* The ☰ menu's rows lead with a thin line icon (Jay, October 24, 2026; option A of the menu icons mockup): inline SVG in
   index.html, stroked in the row's own color; Plus and Sign out in their own text color. */
.member-portal.app-framed .portal-navigation .portal-menu-glyph { flex:none; width:22px; height:22px; fill:none; stroke:#c9ced6; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.member-portal.app-framed .portal-navigation .portal-menu-plus .portal-menu-glyph { stroke:currentColor; }
.member-portal.app-framed .portal-navigation .portal-menu-signout .portal-menu-glyph { width:18px; height:18px; stroke:currentColor; }

/* The Groups tab's "Your groups" (Jay, October 25, 2026; the proposed Groups mockup): the group chats' own rows above the
   events, then Join a group and Build a group. */
.portal-your-groups { margin:18px 0 22px; }
.portal-your-groups-title, .portal-events-heading, .bids-section-title { margin:0 0 6px; font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:#8f8574; font-weight:600; }
.portal-events-heading, .bids-section-title { margin:18px 0 12px; }
.portal-your-groups-list.chat-panel { padding:0; min-height:0; background:transparent; grid-template-columns:minmax(0,1fr); }
/* A row never grows past the screen for a long name or an unbroken link in its last message (Mike, October 26, 2026: the unread badges were cut off). */
.portal-your-groups-list .chat-item { min-width:0; }
.portal-your-groups-empty { margin:6px 0 10px; color:#a89f92; font-size:15px; }
.portal-your-groups-actions { display:flex; gap:6px; flex:none; }
/* Rows first (Jay, October 30, 2026; the "Groups Tab Rows" mockup): Join a group and Build a group are small grey pills
   beside the heading; each row has a larger logo with no clay rim, vertically centered, and three lines under the name,
   where a last post that's a photo shows as a small preview the height of those lines. */
.portal-your-groups-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.portal-your-groups-head .portal-your-groups-title { margin:0; min-width:0; }
.portal-your-groups-action { position:relative; height:30px; padding:0 12px; border:1px solid #3a332c; border-radius:15px; background:transparent; color:#b8ad9d; font-family:inherit; font-size:13px; font-weight:500; line-height:1; white-space:nowrap; }
.portal-your-groups-action::after { content:""; position:absolute; inset:-7px -2px; }
body.app-framed .portal-your-groups-list .chat-item { align-items:center; }
body.app-framed .portal-your-groups-list .chat-item > .chat-avatar.chat-avatar-crest { flex:0 0 64px; width:64px; height:64px; padding:0; border-radius:16px; background:none; box-shadow:none; }
.portal-your-groups-list .chat-avatar-crest .chat-avatar-chip { display:none; }
.portal-your-groups-list .chat-avatar-crest .chat-avatar-crest-face { border:0; border-radius:16px; }
body.app-framed .portal-your-groups-list .chat-item-last { font-size:14px; line-height:19px; min-height:57px; -webkit-line-clamp:3; line-clamp:3; }
.portal-your-groups-list .chat-item-preview { display:flex; gap:10px; align-items:flex-start; min-width:0; }
.portal-your-groups-list .chat-item-preview .chat-item-last { flex:1; min-width:0; }
.portal-your-groups-list .chat-item-last.chat-item-lines { position:relative; display:flex; flex-direction:column; justify-content:flex-end; height:57px; overflow:hidden; }
.portal-your-groups-list .chat-item-lines.is-fit { justify-content:flex-start; }
.portal-your-groups-list .chat-item-line { flex:none; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; overflow-wrap:anywhere; }
.portal-your-groups-list .chat-item-thumb { flex:none; width:57px; height:57px; object-fit:cover; border-radius:8px; background:#1a1613; }
.group-page-open-chat { width:100%; margin:4px 0 14px; }

/* One tab heading (Jay, October 25, 2026): The Room, Chats, Groups and Events each open with the same title, the gold
   serif at 36px, 26px under the header and 20px in from the frame's edge, with a gold hairline 16px under it (The Room's
   sits under its "By invitation only" line). The Events tab has no greeting or group pills above its title any more. */
body.app-framed :is(.room-title,.club-title,.bids-title) { font-family:var(--room-serif); font-size:36px; font-weight:500; line-height:1.05; letter-spacing:.2px; color:var(--club-gold); }
body.app-framed .is-after-dark .room-title { color:#f5ebe3; }
body.app-framed :is(.club-title,.bids-title) { margin:26px 20px 0; padding:0 0 16px; border-bottom:1px solid transparent; border-image:linear-gradient(90deg,transparent,#5a4c33,transparent) 1; }
body.app-framed .room-head { padding:30px 20px 0; }
body.app-framed .bids-home > .bids-title { margin:14px 4px 0; }
body.app-framed .member-events-section > .club-title { margin:14px 20px 14px; }
body.app-framed .portal-home-intro { display:none; }
/* Groups tab: tighter around the sub-tabs, more room under "Your groups" (Jay, October 26, 2026). */
body.app-framed .bids-home > .bids-tabs { margin-top:-8px; }
body.app-framed .bids-home > .portal-your-groups { margin-top:-4px; }
body.app-framed .portal-your-groups-head { margin-bottom:14px; }

/* Events: "+ Create Event" at the header's right end, like Groups' Join a group and Build a group but smaller; the
   host-your-own-event card is gone (Jay, October 26, 2026). */
body.app-framed .portal-events-soon { display:none; }
body.app-framed .member-events-section > .member-events-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
body.app-framed .member-events-head-title { margin:0; font:inherit; color:inherit; letter-spacing:inherit; }
body.app-framed .member-events-head .member-events-create { flex:none; min-height:36px; padding:0 14px; border-radius:18px; font-family:Inter,system-ui,-apple-system,sans-serif; font-size:14px; font-weight:600; letter-spacing:0; }
body.app-framed .member-events-head .member-events-create.hidden { display:none; }

/* A group's highlight pill leads with the two-people icon in clay, not a side's square (Jay, October 26, 2026). */
body.app-framed .member-profile-pill.is-group .member-profile-group-icon { flex:none; display:inline-block; width:14px; height:14px; margin-right:6px; vertical-align:-2px; background:#d97757; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm7.5-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM9 13c-3.9 0-7 2-7 4.5V20h14v-2.5C16 15 12.9 13 9 13Zm7.5-1c-.6 0-1.2.1-1.8.2 1.4 1 2.3 2.4 2.3 4.1V20h5v-2.4c0-2.5-2.5-4.6-5.5-4.6Z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm7.5-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM9 13c-3.9 0-7 2-7 4.5V20h14v-2.5C16 15 12.9 13 9 13Zm7.5-1c-.6 0-1.2.1-1.8.2 1.4 1 2.3 2.4 2.3 4.1V20h5v-2.4c0-2.5-2.5-4.6-5.5-4.6Z'/%3E%3C/svg%3E") center/contain no-repeat; }
/* The List's group pill: its gold key in place of the people icon, a gold edge (Jay, October 28, 2026). */
body.app-framed .member-profile-pill.is-group.is-elite { border-color:rgba(201,169,106,.75); color:#e6cf9c; }
body.app-framed .member-profile-pill.is-group .member-profile-group-key { flex:none; display:inline-flex; align-items:center; margin-right:6px; color:#c9a96a; vertical-align:-2px; }

/* RSVPs unlocked by a verified invite (migration 358): the rule over a greyed, locked RSVP button. */
.app-framed .member-event-invite-gate { margin:0 0 12px; padding:14px 16px; border:1px dashed #d97757; border-radius:14px; background:rgba(217,119,87,.07); }
.app-framed .member-event-invite-gate strong { display:block; color:#f1eee8; font-size:17px; margin:0 0 4px; }
.app-framed .member-event-invite-gate strong::before { content:'🔒 '; }
.app-framed .member-event-invite-gate p { margin:0 0 12px; color:#c9c3b8; font-size:15px; line-height:1.45; }
.app-framed .member-event-invite-share { width:100%; min-height:44px; border-radius:22px; border:1px solid #d97757; background:transparent; color:#d97757; font-weight:700; font-size:16px; }
.app-framed .member-event-rsvp-inline :is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"]).is-locked { background:#22262d; border-color:#3a4049; color:#9aa2ad; text-shadow:none; box-shadow:none; }
/* Chat list photos (Jay, November 4, 2026): a person's photo fills the row's full height as a sharp-cornered 3:4 portrait
   flush with the screen's left edge, with no ring, border or shadow. Group crests (the Groups tab) keep their own look. */
body.app-framed .chat-panel .chat-list-view .chat-item:not(:has(.chat-avatar-crest)), body.app-framed .chat-loading-list .chat-item-skeleton { align-items:stretch; margin-left:0; width:calc(100% - 20px); padding:0; min-height:84px; }
body.app-framed .chat-list-view .chat-item:not(:has(.chat-avatar-crest)) > .chat-item-middle, body.app-framed .chat-loading-list .chat-item-skeleton > .chat-item-middle { align-self:center; padding:12px 0; }
body.app-framed .chat-list-view .chat-item:not(:has(.chat-avatar-crest)) > .chat-badge { align-self:center; }
body.app-framed .chat-list-view .chat-item:not(:has(.chat-avatar-crest))::after { content:none; }
body.app-framed .chat-list-view .chat-item > .chat-avatar-wrap { align-self:stretch; display:flex; }
body.app-framed .chat-list-view .chat-item > .chat-avatar:not(.chat-avatar-crest), body.app-framed .chat-list-view .chat-item > .chat-avatar-wrap > .chat-avatar, body.app-framed .chat-loading-list .chat-item-skeleton > .chat-skeleton-avatar { flex:0 0 63px; width:63px; height:auto; min-height:84px; align-self:stretch; padding:0; border:0; border-radius:0; box-shadow:none; }
body.app-framed .chat-list-view .chat-item > .chat-avatar:not(.chat-avatar-crest), body.app-framed .chat-list-view .chat-item > .chat-avatar-wrap > .chat-avatar { background:#1a2029; }
body.app-framed .chat-list-view .chat-item .chat-avatar:not(.chat-avatar-crest) img { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; border:0; border-radius:0; }
body.app-framed .chat-list-view .chat-item > .chat-avatar-wrap > .chat-online-dot { right:5px; bottom:5px; }
