/* Member app frame: a phone-width frame 4px inside the visible screen, with a thin border and
   rounded corners. The page itself never scrolls; only #appScroll does. The header stays on top
   and the tabs on the bottom. app-frame.js keeps the frame on the visible area, so the keyboard
   pushes the bottom of the app up (behind the keyboard is black). Loaded after the other styles.
   Text is one size up from the shared styles: the root is 17px (so rem sizes grow too). */
/* 19px (was 18px): text a little larger everywhere in the member app (Jay, October 13, 2026), with the px sizes
   in the member styles up about 7%. */
html:has(body.app-framed) { font-size:19px; height:100%; overflow:hidden; overscroll-behavior:none; background:#000; }
/* Photos in the app have no Save / Share / Copy menu: no iPhone press-and-hold callout, no dragging
   out, no selecting (member-portal.js also stops the right-click and Android long-press menu). */
body.app-framed img { -webkit-touch-callout:none; -webkit-user-drag:none; -webkit-user-select:none; user-select:none; }
body.app-framed {
  position:fixed; left:0; right:0; top:var(--app-top,0px); height:var(--app-height,100dvh);
  min-height:0; margin:0; overflow:hidden; overscroll-behavior:none; background:#000;
  display:flex; justify-content:center; box-sizing:border-box;
  padding:calc(4px + env(safe-area-inset-top,0px)) calc(4px + env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) calc(4px + env(safe-area-inset-left,0px));
}
body.app-framed.keyboard-open { padding-bottom:4px; }
body.app-framed main.app-frame {
  /* !important: an older phone rule for the staff dashboard pads .shell:has(#authenticatedView). */
  position:relative; width:100%; max-width:440px; height:100%; min-height:0; margin:0; padding:0 !important;
  display:flex; flex-direction:column; overflow:hidden;
  background:#0d1014; border:1px solid #363e4a; border-radius:14px;
}

/* The iPhone app fills the whole screen (Jay, October 29, 2026): no 4px gap, no light border and no rounded corners.
   The frame's top border fills the status bar and its bottom border the home bar, in the color the screen ends in
   (--frame-ground, which room.css sets for The Room and The List), so nothing pinned to the frame's bottom sits on
   the home bar. */
html.native-app body.app-framed { padding:0 env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px); }
html.native-app body.app-framed main.app-frame {
  max-width:none; border:0; border-radius:0;
  border-top:env(safe-area-inset-top,0px) solid #0d1014;
  border-bottom:env(safe-area-inset-bottom,0px) solid rgb(var(--frame-ground,13,16,20));
}
html.native-app body.app-framed.keyboard-open main.app-frame { border-bottom-width:0; }
html.native-app body.app-framed .grid-sheet-backdrop { top:calc(var(--app-top,0px) + env(safe-area-inset-top,0px)); width:100%; height:calc(var(--app-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); border-radius:0; }
html.native-app body.app-framed.keyboard-open .grid-sheet-backdrop { height:calc(var(--app-height,100dvh) - env(safe-area-inset-top,0px)); }

/* Header: one compact row */
.app-framed .portal-header { position:static; flex:none; margin:0; padding:6px 8px 6px 14px; border-bottom:1px solid #262c35; }
.app-framed .portal-wordmark { font-size:24.5px; letter-spacing:-.6px; }
/* "Beta" after the wordmark until the official launch (member.js hides it from October 29). */
.portal-beta-tag { display:inline-block; margin-left:8px; padding:2px 6px; border:1px solid #3a4250; border-radius:6px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-style:normal; font-size:10.5px; font-weight:700; letter-spacing:1.2px; line-height:1.3; text-transform:uppercase; vertical-align:4px; color:#9aa4b2; }
.portal-beta-tag.hidden { display:none; }
.app-framed .portal-menu-toggle { width:44px; height:44px; gap:4px; }
.app-framed .portal-menu-toggle span { width:17px; }
/* Menu: fills the frame under the header. The header's ☰ turns into ✕ while it is open. */

.app-framed .portal-menu-toggle span { transition:transform .2s, opacity .2s; }
.app-framed .portal-menu-toggle[aria-expanded=true] span:nth-child(1) { transform:translateY(5px) rotate(45deg); }
.app-framed .portal-menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
.portal-menu-toggle.portal-menu-toggle-off { visibility:hidden; pointer-events:none; }
.app-framed .portal-menu-toggle[aria-expanded=true] span:nth-child(3) { transform:translateY(-5px) rotate(-45deg); }
.member-portal.app-framed .portal-navigation:not(.hidden) { position:absolute; top:49px; left:0; right:0; bottom:0; z-index:9; display:flex; flex-direction:column; width:auto; height:auto; max-height:none; margin:0; padding:0; overflow:hidden; border:0; border-radius:0; background:#0d1014; box-shadow:none; }
.member-portal.app-framed .portal-navigation #portalMenuClose { display:none; }
.app-framed .portal-menu-root { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:12px; }
.member-portal.app-framed .portal-navigation .portal-menu-item, .member-portal.app-framed .portal-navigation .portal-menu-profile { display:flex; align-items:center; gap:14px; width:100%; min-height:52px; margin:0; padding:8px 16px; box-sizing:border-box; border:0; border-radius:0; background:none; color:#f1f3f5; font-size:17px; font-weight:400; text-align:left; text-decoration:none; }
.member-portal.app-framed .portal-navigation .portal-menu-item:hover, .member-portal.app-framed .portal-navigation .portal-menu-profile:hover { background:#161c24; }
.member-portal.app-framed .portal-navigation .portal-menu-item.hidden { display:none; }
.member-portal.app-framed .portal-navigation .portal-menu-profile { padding:14px 16px; border-bottom:1px solid #1f252d; }
.portal-menu-avatar { flex:none; width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(135deg,#3a4a60,#1f2833); font-weight:700; font-size:19.5px; color:#f1f3f5; }
.portal-menu-avatar { position:relative; overflow:hidden; }
.portal-menu-avatar.has-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* Round profile photos everywhere get the chat photos' ring: a soft light ring, a dark gap inside it and a shadow. */
.member-response-photo, .portal-menu-avatar.has-photo img { box-sizing:border-box; border:1.5px solid transparent; padding:2px; background:linear-gradient(#0d1014,#0d1014) padding-box, linear-gradient(140deg,rgba(255,255,255,.55),rgba(255,255,255,.12)) border-box; box-shadow:0 3px 10px rgba(0,0,0,.4); }
.portal-menu-avatar.has-photo { overflow:visible; background:none; }
.portal-menu-text { flex:1; min-width:0; }
.portal-menu-text strong { display:block; font-size:18px; }
.portal-menu-text small { display:block; margin-top:2px; font-size:14.5px; line-height:1.3; color:#9aa6b6; overflow-wrap:anywhere; }
/* The ☰ menu's own rows are just an emoji and a title (Jay, October 19 and 21, 2026: their subtitles came out of
   index.html); rows on pages inside it keep theirs. */
/* "Created by {name}" on built groups (Jay, October 18, 2026): the name opens the owner's profile. */
.group-creator-link { color:#d8e2ef; text-decoration:underline; text-underline-offset:2px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.portal-menu-icon { flex:none; width:22px; text-align:center; font-size:18px; }
.portal-menu-chevron { flex:none; font-size:22.5px; line-height:1; color:#6f7b8b; }
.portal-menu-section { margin:16px 16px 6px; font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:#8f9bab; }
.member-portal.app-framed .portal-navigation .portal-menu-signout { justify-content:center; margin-top:20px; border-top:1px solid #1f252d; color:#f0868c; text-align:center; }
.member-portal.app-framed .portal-navigation .portal-menu-signout .portal-menu-text { flex:none; }
/* The menu's one Plus row (Jay, October 21, 2026; Menu.dc.html): a card under the profile row with the soft, still glow. */
.member-portal.app-framed .portal-navigation .portal-menu-item.portal-menu-plus { width:calc(100% - 24px); min-height:52px; margin:8px 12px 4px; padding:0 14px; border:1px solid rgba(110,168,255,.45); border-radius:14px;
  background:linear-gradient(90deg,rgba(110,168,255,.16),rgba(110,168,255,.05)); color:#cfe0ff; font-weight:700; }
.member-portal.app-framed .portal-navigation .portal-menu-item.portal-menu-plus.hidden { display:none; }
.portal-menu-plus .portal-menu-chevron { color:#9fc0ff; }
/* Account settings' red dot while they aren't verified (member-portal.js renderMenuVerify): it replaced the pulsing
   red glow on Verify my Account. */
.portal-menu-dot { flex:none; width:9px; height:9px; border-radius:50%; background:#f0868c; }
.portal-menu-dot.hidden { display:none; }
/* A menu page: scrolls on its own, with Back pinned at the bottom left. */
.portal-menu-page:not(.hidden) { flex:1; min-height:0; display:flex; flex-direction:column; }
.portal-menu-page-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px; display:flex; flex-direction:column; gap:14px; }
.portal-menu-page-body > * { flex-shrink:0; }
.app-framed .portal-menu-nav { padding:4px 8px 6px 4px; border-top:1px solid #262c35; }
.member-portal.app-framed .portal-menu-nav .chat-nav-back { flex:none; display:flex; align-items:center; gap:2px; width:auto; height:34px; min-height:0; margin:0; padding:0 6px 0 4px; border:0; border-radius:8px; background:none; box-shadow:none; font-size:17px; font-weight:600; line-height:1; color:#d97757; }
.portal-menu-title { margin:0; font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:28px; color:#f1f3f5; }
.portal-menu-card { border:1px solid #262c35; border-radius:14px; overflow:hidden; background:#141920; }
/* Help's info pages, under its title (member-portal.js helpTopics). */
.portal-help-topics { margin:16px 0 20px; text-align:left; }
.member-portal.app-framed .portal-menu-card .portal-menu-item { min-height:52px; border-bottom:1px solid #1f252d; }
/* Rows held for a menu (Your groups' pin menu): holding them never selects (highlights) their text. */
.portal-menu-holdable, .portal-menu-holdable * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.member-portal.app-framed .portal-menu-card .portal-menu-item:last-child { border-bottom:0; }
/* Your groups › Create Group (coming soon): a blue-tinted card with a glowing ＋ badge and a "Soon" pill, so it stands out from the groups above it. */
.portal-menu-card.portal-menu-create { border-color:rgba(217,119,87,.55); background:linear-gradient(135deg,rgba(217,119,87,.16),rgba(217,119,87,.04) 70%); box-shadow:0 0 0 1px rgba(217,119,87,.08), 0 6px 22px rgba(217,119,87,.12); }
.portal-menu-create .portal-menu-icon { width:34px; margin:-6px 0; }
.portal-create-plus { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#d97757; color:#1a0f0b; font-size:25.5px; font-weight:700; line-height:1; box-shadow:0 0 12px rgba(217,119,87,.55); }
.member-portal.app-framed .portal-menu-create .portal-menu-text { font-weight:700; color:#dbe7f7; }
.portal-create-soon { display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px; border:1px solid rgba(217,119,87,.6); background:rgba(217,119,87,.14); color:#cfe0f5; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; vertical-align:2px; }
.portal-menu-create .portal-menu-text small { font-weight:400; color:#a9b8cc; }
.portal-menu-create .portal-menu-chevron { color:#d97757; }
.portal-menu-logo { flex:none; width:30px; height:30px; margin:-4px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:#1b2129; font-size:12px; font-weight:700; color:#c9a24a; }
.portal-menu-logo img, .portal-menu-group-logo img { width:100%; height:100%; object-fit:cover; }
/* A Hush group's logo in ☰ › Your groups › Hush Groups: its emoji on black inside a faint clay ring. */
.portal-menu-hush-logo { background:#000; font-size:18px; font-weight:400; box-shadow:0 0 0 1.5px rgba(217,119,87,.55); }
.portal-menu-hush-logo img { width:100%; height:100%; object-fit:cover; border-radius:inherit; display:block; }
/* An emoji logo, with the same soft light from the upper left as the chat crests' (member-chat.css). */
.portal-menu-hush-logo:not(:has(img)), .build-group-logo, .has-emoji-light { position:relative; }
.portal-menu-hush-logo:not(:has(img))::after, .build-group-logo::after, .has-emoji-light::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(circle at 18% 14%,rgba(255,255,255,.34),rgba(255,255,255,.12) 32%,rgba(255,255,255,0) 62%); }
.portal-menu-group-head { display:flex; align-items:center; gap:12px; }
.portal-menu-group-head small { display:block; margin-top:2px; font-size:14.5px; color:#9aa6b6; }
.portal-menu-group-logo { flex:none; width:52px; height:52px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:#1b2129; font-weight:700; color:#c9a24a; }
.portal-menu-find { height:40px; padding:0 12px; border-radius:12px; }
.portal-menu-coming { margin:0; }

/* The only scrolling area */
.app-scroll { position:relative; flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:12px; }

/* Bottom tabs (Jay, October 21, 2026, from The Room mockups): text labels only, no icons, floating over the bottom of
 * the screen with a fade to black under them, so the screen shows behind the fade and the labels stay readable over any
 * photo. --tabs-h is the bar's height while it shows (0 on screens that hide it): the scroll area keeps that much room
 * at its end, and anything pinned to the bottom of a tab (Hush Chats' bar, Bids' dock, an event's Back) sits above it. */
body.app-framed main.app-frame { --tabs-h:0px; }
body.app-framed main.app-frame:has(#portalTabBar:not(.hidden)) { --tabs-h:74px; }
body:is(.chat-conversation-open,.member-profile-open,.grid-chat-open,.grid-sheet-open) main.app-frame { --tabs-h:0px; }
.app-tabs:not(.hidden) { position:absolute; left:0; right:0; bottom:0; z-index:5; display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:18px 8px 6px; border-top:0; --tabs-ground:13,16,20; background:linear-gradient(rgba(var(--tabs-ground),.5),rgba(var(--tabs-ground),.72) 55%,rgb(var(--tabs-ground)) 100%); pointer-events:none; }
/* One slow fade from 150px above the labels down to solid black only at the window's bottom edge, so the labels still sit over a little of the screen (Jay, October 21, 2026); its own layer, so the bar keeps its size. */
.app-tabs:not(.hidden)::before { content:""; position:absolute; left:0; right:0; bottom:100%; height:150px; background:linear-gradient(rgba(var(--tabs-ground),0),rgba(var(--tabs-ground),.1) 35%,rgba(var(--tabs-ground),.28) 70%,rgba(var(--tabs-ground),.5)); pointer-events:none; }
/* The bottom tabs are clay (Jay, October 25, 2026): soft clay labels, the chosen one bright, clay badges. */
.app-tabs button { touch-action:manipulation; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; position:relative; height:50px; margin:0; padding:0; border:0; border-radius:12px; background:transparent; line-height:1; cursor:pointer; pointer-events:auto; display:flex; flex-direction:column; align-items:center; justify-content:center; color:rgba(217,119,87,.62); }
.app-tab-label { font-size:14.5px; font-weight:600; line-height:1; letter-spacing:.02em; }
.app-tabs button[aria-selected=true] { color:#D97757; }
.app-tabs #portalGridTab[aria-selected=true] { color:var(--grid-accent,#D97757); }
.app-scroll { padding-bottom:calc(12px + var(--tabs-h,0px)); }
.app-tabs button:focus-visible { outline:2px solid #D97757; outline-offset:2px; }
.app-tabs .chat-tab-badge { position:absolute; top:2px; right:calc(50% - 28px); margin:0; background:#D97757; color:#1a0f0b; }
/* Grid chats' unread count: orange (like 🔸), under the blue one at the Chat tab's corner. */
.app-tabs .chat-tab-badge-grid { background:#f0a14a; color:#1a1206; }

/* Chat fills the frame edge to edge */
.app-framed :is(#portalChatPanel,[data-copy-of="portalChatPanel"]).chat-panel { margin:-12px; }
.app-framed .chat-card { border:0; border-radius:0; background:transparent; }
.app-framed .chat-home-card { margin:12px 12px 0; }
/* An open chat covers the whole area between the header and the bottom of the frame; the tabs hide. */
body.chat-conversation-open .app-tabs { display:none; }
body.chat-conversation-open .app-scroll { overflow:hidden; }
body.chat-conversation-open :is(#portalChatPanel,[data-copy-of="portalChatPanel"]).chat-panel { position:absolute; inset:0; margin:0; z-index:2; display:flex; flex-direction:column; background:#0d1014; }
body.chat-conversation-open :is(#portalChatPanel,[data-copy-of="portalChatPanel"]) .chat-card { flex:1; min-height:0; display:flex; flex-direction:column; }
.app-framed .chat-conversation { flex:1; height:auto; min-height:0; }
/* The frame already stops above the phone's home bar, so an open chat's message box adds no inset of its own (Jay,
   October 21, 2026: it left an empty strip under the box). */
body.app-framed .chat-conversation > .chat-composer-wrap:last-child { padding-bottom:12px; }
/* An open chat sits on a soft light (like a lamp off to the upper right): a wide glow in the Social blue
   over a dark slate fade, a fainter one low on the left, and the darkest at the corners. It's the
   background of the whole chat, so it stays put while the messages scroll over it. Hush chats glow clay. */
.app-framed .chat-conversation { --chat-glow:217,119,87; --chat-base-1:#0d0a09; --chat-base-2:#1d1613; --chat-base-3:#090706;
  background:
    radial-gradient(115% 62% at 88% 26%,rgba(var(--chat-glow),.16),rgba(var(--chat-glow),.05) 45%,transparent 70%),
    radial-gradient(85% 55% at 8% 88%,rgba(var(--chat-glow),.07),transparent 65%),
    linear-gradient(162deg,var(--chat-base-1) 0%,var(--chat-base-2) 46%,var(--chat-base-3) 100%); }
.app-framed .chat-conversation.is-grid { --chat-glow:217,119,87; --chat-base-1:#0d0a09; --chat-base-2:#1d1613; --chat-base-3:#090706; }

/* Under the message box: Back, a thin line, then the groups in common (scrolls sideways) */
.chat-nav-bar { flex:none; display:flex; align-items:center; gap:8px; padding:0 8px 7px 4px; }
.chat-panel .chat-nav-back, .member-event-nav .chat-nav-back { flex:none; display:flex; align-items:center; gap:2px; height:34px; padding:0 6px 0 4px; font-size:17px; font-weight:600; color:#d97757; }
.chat-nav-arrow { font-size:31px; line-height:1; margin-top:-3px; }
.chat-nav-divider { flex:none; width:1px; height:22px; background:#363e4a; }
.chat-pills { flex:1; min-width:0; display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
.chat-pills::-webkit-scrollbar { display:none; }
.chat-panel .chat-pill { flex:none; height:30px; padding:0 12px; border-radius:15px; border:1px solid #363e4a; background:#161c24; font-size:15px; font-weight:600; color:#d7dee8; white-space:nowrap; }
.chat-panel .chat-pill:active { background:#26303c; }
.chat-panel .chat-pill.is-none { display:inline-block; box-sizing:border-box; line-height:28px; font-weight:500; color:#8f9aab; border-style:dashed; }
.chat-composer-wrap + .chat-nav-bar { margin-top:-4px; }
/* In a chat (group chat, DM, Hush chat) and a group's member list, Back is the same floating pill as a profile's
   (.member-profile-nav .chat-nav-back); a Hush chat's keeps the clay text. */
.chat-panel .chat-nav-bar .chat-nav-back { height:40px; margin:0; padding:0 16px 0 10px; border:0; border-radius:20px; background:rgba(30,37,47,.86); box-sizing:border-box; outline:1px solid rgba(255,255,255,.08); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 4px 14px rgba(0,0,0,.45); }
.chat-panel .chat-nav-bar { padding-left:8px; }

/* ---------- Events tab ---------- */
/* Greeting and group filter stay at the top while the list scrolls. */
.app-framed .portal-home-intro { position:sticky; top:-12px; z-index:6; margin:-12px -12px 0; padding:10px 14px; background:#0d1014; border-bottom:1px solid #262c35; }
.app-framed .portal-home-intro.portal-intro-collapsed { padding:0 14px; border-bottom:0; }
.app-framed .portal-home-intro :is(:is(#memberWelcomeHeading,[data-copy-of="memberWelcomeHeading"]),[data-copy-of="memberWelcomeHeading"]) { order:-1; margin:0 0 9px; font-size:21.5px; font-weight:400; line-height:1.25; color:#e9e6e0; }
.app-framed .portal-home-intro { display:flex; flex-direction:column; }
/* Children keep their height, so the slide-in measures the filter row too. */
.app-framed .portal-home-intro > * { flex-shrink:0; }
.app-framed .portal-logo-row { gap:8px; padding:0; }
.app-framed .portal-organization-logo { flex:none; flex-direction:row; gap:7px; height:32px; padding:0 12px 0 4px; border:1px solid #363e4a; border-radius:16px; background:#161c24; color:#d7dee8; font-size:15px; font-weight:600; }
/* All stays put at the left, with a thin line after it; the groups scroll sideways behind it. */
.app-framed .portal-organization-all { position:sticky; left:0; z-index:1; padding:0 14px; margin-right:9px; }
/* The shadows cover the groups as they scroll under All; ::after draws the line. */
.app-framed .portal-organization-all { box-shadow:0 0 0 7px #0d1014, -14px 0 0 7px #0d1014; }
.app-framed .portal-organization-all::after { content:''; position:absolute; top:-6px; bottom:-6px; right:-17px; width:17px; background:linear-gradient(to right,#0d1014 0 8px,#363e4a 8px 9px,#0d1014 9px); pointer-events:none; }
.app-framed .portal-organization-logo-image { width:24px; height:24px; border:0; border-radius:50%; background:#fff; }
.app-framed .portal-organization-logo-image img { object-fit:cover; }
.app-framed .portal-organization-logo[aria-pressed=true] { background:#e8edf3; border-color:#e8edf3; color:#0d1014; }
.app-framed .portal-organization-name { white-space:nowrap; }

/* Event rows run to the frame border, like chat rows. */
.app-framed :is(#portalEventsPanel,[data-copy-of="portalEventsPanel"]) { margin:0 -12px; }
.app-framed .member-events-section { margin:0; padding:0; border:0; background:none; }
.app-framed :is(:is(#memberEventsMessage,[data-copy-of="memberEventsMessage"]),[data-copy-of="memberEventsMessage"]):not(:empty) { margin:24px 14px; color:#9aa6b6; }
.app-framed .portal-event-group:first-child { margin-top:12px; }
/* "Host your own events" teaser above the Events list (Jay, October 20, 2026). */
.app-framed .portal-events-soon { display:flex; align-items:center; gap:14px; margin:14px 14px 0; padding:14px 16px; border:1px solid rgba(217,119,87,.35); border-radius:18px;
  background:radial-gradient(120% 140% at 0% 0%,rgba(217,119,87,.22),transparent 55%),radial-gradient(120% 140% at 100% 100%,rgba(217,119,87,.2),transparent 60%),#121722;
  box-shadow:0 0 22px rgba(217,119,87,.12); }
.app-framed .portal-events-soon-icon { flex:none; display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:#0b0d12; border:1px solid rgba(217,119,87,.45); font-size:26px; box-shadow:0 0 16px rgba(217,119,87,.3); }
.app-framed .portal-events-soon-tag { display:inline-block; margin-bottom:4px; padding:2px 8px; border-radius:999px; background:rgba(217,119,87,.16); color:#d97757; font:700 11.5px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:1px; text-transform:uppercase; }
.app-framed .portal-events-soon strong { display:block; color:#f2f5f9; font-size:18px; line-height:1.25; }
.app-framed .portal-events-soon p { margin:3px 0 0; color:#a9b4c3; font-size:15px; line-height:1.4; }
.app-framed .portal-events-soon { position:relative; cursor:pointer; -webkit-tap-highlight-color:transparent; user-select:none; -webkit-user-select:none; outline:0; }
.app-framed .portal-events-soon.is-tapped { animation:events-soon-bounce .6s cubic-bezier(.3,1.6,.5,1), events-soon-glow .9s ease-out; }
.app-framed .portal-events-soon.is-tapped .portal-events-soon-icon { animation:events-soon-spin .7s cubic-bezier(.3,1.4,.5,1); }
.app-framed .portal-events-soon.is-shaken { animation:events-soon-shake .5s ease-in-out, events-soon-glow .9s ease-out; }
.app-framed .portal-events-soon.is-shaken .portal-events-soon-icon { animation:events-soon-wiggle .5s ease-in-out; }
.app-framed .portal-events-soon-bit { position:absolute; left:38px; top:28px; font-size:22px; pointer-events:none; opacity:0; animation:events-soon-float 1.3s ease-out forwards; }
@keyframes events-soon-bounce { 0%{transform:scale(1)} 30%{transform:scale(.95)} 65%{transform:scale(1.03)} 100%{transform:scale(1)} }
@keyframes events-soon-glow { 0%{box-shadow:0 0 22px rgba(217,119,87,.12)} 30%{box-shadow:0 0 34px rgba(217,119,87,.55),0 0 0 2px rgba(217,119,87,.5)} 100%{box-shadow:0 0 22px rgba(217,119,87,.12)} }
@keyframes events-soon-spin { 0%{transform:rotate(0) scale(1)} 50%{transform:rotate(200deg) scale(1.25)} 100%{transform:rotate(360deg) scale(1)} }
@keyframes events-soon-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px) rotate(-1deg)} 40%{transform:translateX(6px) rotate(1deg)} 60%{transform:translateX(-4px)} 80%{transform:translateX(3px)} }
@keyframes events-soon-wiggle { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-18deg) scale(1.1)} 50%{transform:rotate(16deg) scale(1.15)} 75%{transform:rotate(-10deg)} }
@keyframes events-soon-float { 0%{opacity:0;transform:translate(0,0) scale(.6)} 15%{opacity:1} 100%{opacity:0;transform:translate(var(--x),-90px) rotate(var(--r)) scale(1.1)} }
@media (prefers-reduced-motion: reduce) {
  .app-framed .portal-events-soon.is-tapped, .app-framed .portal-events-soon.is-shaken { animation:events-soon-glow .9s ease-out; }
  .app-framed .portal-events-soon.is-tapped .portal-events-soon-icon, .app-framed .portal-events-soon.is-shaken .portal-events-soon-icon { animation:none; }
}
.app-framed .member-events-list { display:block; }
.member-portal.app-framed .portal-event-row { display:flex; align-items:center; gap:16px; width:100%; margin:0; padding:20px 14px; border:0; border-bottom:1px solid #1f252d; border-radius:0; background:none; box-shadow:none; box-sizing:border-box; }
.member-portal.app-framed .portal-event-row:hover, .member-portal.app-framed .portal-event-row:active { background:#161c24; border-color:#1f252d; }
.member-portal.app-framed .portal-event-row:focus-visible { outline:2px solid #d97757; outline-offset:-2px; }
.member-portal.app-framed .portal-event-row.is-past { opacity:.6; background:none; }
.portal-event-day { flex:none; width:46px; text-align:center; line-height:1; }
.portal-event-day b { display:block; font-size:12.5px; letter-spacing:1px; color:#e58f8f; }
.portal-event-day span { display:block; margin:3px 0 2px; font-size:24.5px; font-weight:700; color:#f1f3f5; font-variant-numeric:tabular-nums; }
.portal-event-day small { display:block; font-size:12.5px; color:#9aa6b6; }
.member-portal.app-framed .portal-event-row .portal-event-heading-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.member-portal.app-framed .portal-event-row h3 { margin:0; font-size:20px; line-height:1.25; color:#f0eee9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-portal.app-framed .portal-event-row .portal-event-date { margin:0; font-size:15px; line-height:1.35; color:#9aa6b6; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-portal.app-framed .portal-event-row .portal-card-meta { display:flex; justify-content:flex-start; align-items:center; gap:10px; margin:3px 0 0; font-size:14px; color:#8f9bab; }
.member-portal.app-framed .portal-event-row .portal-card-meta:empty { display:none; }
.member-portal.app-framed .portal-event-row .portal-rsvp-status { margin:0; padding:2px 8px; border:1px solid #363e4a; border-radius:9px; font-size:13.5px; font-weight:700; color:#c4ccd7; white-space:nowrap; }
.member-portal.app-framed .portal-event-row .portal-rsvp-status.is-going { background:#17271f; border-color:#2b4a37; color:#9ecdb0; }
.member-portal.app-framed .portal-event-row .portal-rsvp-status.is-going::before { content:'✓ '; }
.member-portal.app-framed .portal-event-row .portal-rsvp-status.is-waitlisted { background:#2a2414; border-color:#4a3f22; color:#e2c27a; }
.member-portal.app-framed .portal-event-row .portal-rsvp-status.is-cancelled { border-color:#4a2b2b; color:#e58f8f; }
.member-portal.app-framed .portal-event-row .portal-event-thumbnail { flex:none; width:54px; height:54px; border-radius:12px; object-fit:cover; }
.app-framed :is(#memberEventsMoreButton,[data-copy-of="memberEventsMoreButton"]):not(.hidden) { display:block; margin:14px auto 18px; padding:9px 16px; border-radius:18px; font-size:15px; }

/* ---------- Event page: fills the frame; RSVP and Back are pinned to the bottom ---------- */
.app-scroll:has(> #memberEventView:not(.hidden)) { overflow:hidden; }
/* Nor under a profile, which scrolls itself: anything that scrolled the page carried the profile up with it. */
.app-scroll:has(> #memberProfileView:not(.hidden)) { overflow:hidden; }
/* A poll's results fill the frame like an event: the results scroll, "‹ Back" stays at the bottom left. */
.app-scroll:has(> #memberPollResultsView:not(.hidden)) { overflow:hidden; }
.app-framed :is(#memberPollResultsView,[data-copy-of="memberPollResultsView"]):not(.hidden) { position:absolute; inset:0 0 var(--tabs-h,0px); z-index:2; display:flex; flex-direction:column; background:#0d1014; }
.app-framed :is(#memberPollResultsContent,[data-copy-of="memberPollResultsContent"]) { flex:1; min-height:0; display:flex; flex-direction:column; }
.app-framed :is(#memberPollResultsContent,[data-copy-of="memberPollResultsContent"]) .member-poll-results-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0; padding:16px 16px 18px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.app-framed .member-poll-results-nav { flex:none; border-top:1px solid #262c35; padding-top:6px; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]):not(.hidden) { position:absolute; inset:0 0 var(--tabs-h,0px); z-index:2; display:flex; flex-direction:column; background:#0d1014; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-top-actions { display:none; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-detail { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0; padding:0 0 18px; border:0; border-radius:0; background:none; box-shadow:none; display:flex; flex-direction:column; gap:14px; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-detail > * { flex-shrink:0; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-detail > :not(:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"])) { margin-left:16px; margin-right:16px; }
/* The whole image shows at full width, however tall it is. */
.app-framed :is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]) .member-event-image { width:100%; height:auto; max-height:none; object-fit:contain; border-radius:0; }
.app-framed .member-event-title { margin-top:14px; }
.app-framed :is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]):not(.hidden) + .member-event-title { margin-top:0; }
.app-framed .member-event-community { margin:0; font-size:14px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:#8f9bab; }
.app-framed :is(#memberEventHeading,[data-copy-of="memberEventHeading"]) { margin:4px 0 0; font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:28px; line-height:1.15; color:#f0eee9; text-wrap:balance; }
.member-event-facts { border:1px solid #262c35; border-radius:12px; overflow:hidden; }
.member-event-fact { display:flex; align-items:center; gap:12px; padding:11px 12px; border-bottom:1px solid #262c35; }
.member-event-fact:last-child, .member-event-fact:has(+ .member-event-fact.hidden) { border-bottom:0; }
.member-event-fact:empty { display:none; }
.member-event-fact-icon { flex:none; width:22px; text-align:center; font-size:18px; }
.member-event-fact-text { flex:1; min-width:0; }
.member-event-fact-text strong { display:block; font-size:16.5px; font-weight:600; color:#f1f3f5; overflow-wrap:anywhere; }
.member-event-fact-text small { display:block; margin-top:2px; font-size:14.5px; line-height:1.4; color:#9aa6b6; white-space:pre-line; overflow-wrap:anywhere; }
.member-event-fact-action { flex:none; white-space:nowrap; font-size:15px; font-weight:600; line-height:1.25; text-align:right; color:#d97757; text-decoration:none; }
/* Check-in QR: just the button until a code is made. */
.member-portal.app-framed :is(:is(#memberEventQrSection,[data-copy-of="memberEventQrSection"]),[data-copy-of="memberEventQrSection"]) { margin:0 16px; padding:0; border:0; background:none; }
.app-framed :is(:is(#memberEventQrSection,[data-copy-of="memberEventQrSection"]),[data-copy-of="memberEventQrSection"]) .portal-section-heading, .app-framed :is(#portalQrContext,[data-copy-of="portalQrContext"]) { display:none; }
.app-framed :is(:is(#memberEventQrSection,[data-copy-of="memberEventQrSection"]),[data-copy-of="memberEventQrSection"]) #memberGenerateQrButton { width:100%; }
.app-framed :is(:is(#memberEventQrSection,[data-copy-of="memberEventQrSection"]),[data-copy-of="memberEventQrSection"]) .member-qr-hint { margin:8px 0 0; font-size:14px; }
.app-framed :is(:is(#memberEventQrSection,[data-copy-of="memberEventQrSection"]),[data-copy-of="memberEventQrSection"]) #memberQrMessage:empty { display:none; }
.app-framed :is(#memberEventDescription,[data-copy-of="memberEventDescription"]) { margin:0 16px; font-size:16.5px; line-height:1.55; color:#d6dbe2; }
.app-framed :is(#memberEventDescription,[data-copy-of="memberEventDescription"]):empty, .app-framed :is(#memberEventMessage,[data-copy-of="memberEventMessage"]):empty { display:none; }
.app-framed .member-event-plus-ones h3, .app-framed .member-event-responses h3 { margin:4px 0 8px; font:700 13px/1.3 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; letter-spacing:1.5px; text-transform:uppercase; color:#8f9bab; }
/* Who's going: a small two-way switch for the list (Jay, October 20, 2026: two big buttons read like a second RSVP). */
.app-framed .member-event-responses .member-response-counts { display:flex; flex-wrap:nowrap; justify-content:stretch; gap:0; padding:3px; border:1px solid #262c35; border-radius:12px; background:#12161c; }
.app-framed .member-event-responses .member-response-counts button { flex:1; min-width:0; min-height:34px; margin:0; padding:4px 10px; border:0; border-radius:9px; background:transparent; box-shadow:none; color:#8f9bab; font:600 15px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.app-framed .member-event-responses .member-response-counts button[aria-pressed=true] { background:#273141; color:#f5f7fa; }
.app-framed .member-event-responses :is(#memberEventResponsesHeading,[data-copy-of="memberEventResponsesHeading"]) { display:none; }
.app-framed .member-event-responses :is(#memberEventResponsesMessage,[data-copy-of="memberEventResponsesMessage"]):empty { display:none; }
.app-framed :is(.member-event-responses,.member-poll-result-option) .member-response-list { gap:0; margin:4px 0 6px; }
.app-framed :is(.member-event-responses,.member-poll-result-option) .member-response-row { gap:10px; padding:3px 0; }
.app-framed :is(.member-event-responses,.member-poll-result-option) .member-response-photo { width:36px; height:36px; flex-basis:36px; }
.app-framed :is(#memberEventResponsesMore,[data-copy-of="memberEventResponsesMore"]) { min-height:0; margin:0; padding:4px 0; border:0; background:none; box-shadow:none; color:#d97757; font-size:16px; font-weight:600; }
/* Poll results: tighter options. */
.app-framed .member-poll-results-scroll > h2 { margin:0 0 4px; }
.app-framed .member-poll-result-option { margin-top:10px; padding-top:8px; }
.app-framed .member-poll-result-option h3 { margin:0 0 2px; font-size:17px; }
.app-framed .member-poll-result-option .text-button { margin:0; padding:4px 0; }
.app-framed .member-poll-result-option .member-qr-hint { margin:2px 0; }
/* The dock */
.app-framed .member-event-dock { flex:none; margin:0; padding:8px 8px 0; border-top:1px solid #262c35; background:#0d1014; }
.app-framed .member-event-rsvp-inline .member-rsvp-actions { display:flex; flex-wrap:nowrap; gap:8px; margin:0; }
.app-framed .member-event-rsvp-inline .member-rsvp-actions button { flex:1; min-width:0; height:42px; margin:0; border-radius:12px; font-weight:700; }
/* RSVP Yes: golden yellow, lit from the top left with a shadow at the bottom right; once saved, a happy green (Jay, October 21, 2026). */
.app-framed .member-event-rsvp-inline :is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"]) { background:radial-gradient(circle at 18% 12%, rgba(255,250,220,.75), rgba(255,250,220,0) 45%), linear-gradient(135deg,#ffd75e 0%,#f2b632 55%,#c98a12 100%); border:1px solid #e0a52a; color:#3a2600; text-shadow:0 1px 0 rgba(255,240,190,.6); box-shadow:inset 2px 2px 3px rgba(255,255,255,.55), inset -3px -4px 8px rgba(120,70,0,.45), 0 4px 14px rgba(242,182,50,.25); }
.app-framed .member-event-rsvp-inline :is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"])[aria-pressed=true] { background:radial-gradient(circle at 18% 12%, rgba(220,255,230,.55), rgba(220,255,230,0) 45%), linear-gradient(135deg,#4fd67c 0%,#22a650 55%,#16813b 100%); border-color:#3cc46a; color:#fff; text-shadow:0 1px 1px rgba(0,60,20,.45); box-shadow:inset 2px 2px 3px rgba(255,255,255,.35), inset -3px -4px 8px rgba(0,60,20,.4), 0 4px 14px rgba(34,166,80,.25); }
.app-framed .member-event-rsvp-inline :is(#memberEventNotGoingButton,[data-copy-of="memberEventNotGoingButton"])[aria-pressed=true] { background:#2a1b1b; border-color:#4a2b2b; color:#f0a8a8; }
.app-framed .member-event-dock-notes { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:2px 10px; margin:6px 4px 2px; font-size:14px; color:#9aa6b6; }
.app-framed .member-event-dock-notes p { margin:0; font-size:14px; color:#9aa6b6; }
.app-framed .member-event-dock-notes p:empty { display:none; }
.app-framed .member-event-dock-notes .member-rsvp-privacy { display:flex; align-items:center; gap:6px; margin:0; font-size:14.5px; color:#c4ccd7; }
.app-framed .member-event-nav { padding:2px 8px 6px 0; }
.member-portal.app-framed .member-event-nav .chat-nav-back { width:auto; min-height:0; margin:0; border:0; border-radius:8px; background:none; box-shadow:none; color:#d97757; line-height:1; letter-spacing:0; }
.app-framed .member-event-dock-notes input[type=checkbox] { width:16px; height:16px; margin:0; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-responses, .app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-plus-ones, .app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-polls { margin-top:0; padding-top:0; border-top:0; }
.app-framed :is(#memberEventView,[data-copy-of="memberEventView"]) .member-event-responses > h3 { text-align:left; }

/* Plus ones: one line per guest, Cancel on the same line. */
.app-framed .member-plus-one-list { gap:0; margin:4px 0 10px; }
.app-framed .member-plus-one-row { flex-wrap:nowrap; justify-content:space-between; gap:12px; min-height:0; padding:4px 0; border-bottom:1px solid #1f252d; }
.app-framed .member-plus-one-row span { flex:1 1 auto; min-width:0; font-size:16.5px; line-height:1.35; }
.app-framed .member-plus-one-row .text-button { flex:none; min-height:0; margin:0; padding:2px 0; line-height:1.35; }
.member-plus-one-dialog input { display:block; width:100%; box-sizing:border-box; margin:0; }
.member-plus-one-dialog h2 { margin-bottom:14px; }

/* A group's member list fills the frame like an open chat: the list scrolls, Back sits at the bottom left. */
.app-framed .chat-members { flex:1; min-height:0; display:flex; flex-direction:column; }
.app-framed .chat-members-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.app-framed .chat-members .chat-member-list { max-height:none; overflow:visible; }
.app-framed .chat-members-nav { padding-top:6px; border-top:1px solid #262c35; }

/* Pages opened from the menu (account settings, chat settings, help, legal, referrals) */
.portal-menu-page-body > .portal-coming-panel, .portal-menu-page-body > #portalReferralsContent { margin:0; }
.portal-menu-chat-settings { margin:-16px; }
.portal-menu-chat-settings .chat-settings { padding:0 16px 24px; }
.portal-menu-chat-settings .chat-settings-title { margin:16px 0 4px; font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:28px; color:#f1f3f5; }
.portal-menu-legal-text { padding:4px 4px 24px; }
.portal-menu-legal-loading { color:#a7b0bd; font-size:16px; }
:is(#portalMenuPage,[data-copy-of="portalMenuPage"]) :is(#memberRulesView,[data-copy-of="memberRulesView"]) .member-top-actions { display:none; }
:is(#portalMenuPage,[data-copy-of="portalMenuPage"]) :is(#memberRulesView,[data-copy-of="memberRulesView"]) > .panel { margin:0; }

/* ---------- Account settings: sections of tappable rows; each opens a small sheet ---------- */
:is(#portalSettingsContent,[data-copy-of="portalSettingsContent"]).portal-coming-panel { padding:0; border:0; background:none; }
:is(#portalSettingsContent,[data-copy-of="portalSettingsContent"]) > .eyebrow { display:none; }
:is(#portalSettingsContent,[data-copy-of="portalSettingsContent"]) > h2 { margin:0 0 6px; font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:28px; color:#f1f3f5; }
/* Help is a plain page like Settings (Jay, October 21, 2026): no boxed card around it. */
:is(#portalHelpContent,[data-copy-of="portalHelpContent"]).portal-coming-panel { margin:0; padding:0; border:0; background:none; }
:is(#portalHelpContent,[data-copy-of="portalHelpContent"]) > .eyebrow { display:none; }
:is(#portalHelpContent,[data-copy-of="portalHelpContent"]) > h2 { margin:0 0 6px; font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:28px; color:#f1f3f5; }
:is(#portalHelpContent,[data-copy-of="portalHelpContent"]) > p { color:#a7b2c1; font-size:15px; line-height:1.5; }
.member-account { display:flex; flex-direction:column; gap:6px; }
.member-account > * { flex-shrink:0; }
.member-account-note { margin:8px 4px 0; color:#9aa6b6; font-size:15px; line-height:1.4; }
.member-account-section { margin:18px 2px 8px; font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:#8f9bab; }
.member-account-card { border:1px solid #262c35; border-radius:14px; overflow:hidden; background:#141920; }
.member-portal .member-account-row { display:flex; align-items:center; gap:12px; width:100%; min-height:52px; margin:0; padding:10px 14px; box-sizing:border-box; border:0; border-bottom:1px solid #1f252d; border-radius:0; background:none; color:#f1f3f5; font:inherit; font-size:17px; font-weight:400; text-align:left; }
.member-portal .member-account-row:last-child { border-bottom:0; }
.member-portal button.member-account-row:hover { background:#161c24; }
.member-account-key { flex:none; width:92px; font-size:15.5px; color:#9aa6b6; }
.member-account-value { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-account-value.is-empty { color:#6f7b8b; }
.member-account-value > span, .member-account-value > small { display:block; white-space:normal; }
.member-account-hint { display:block; margin:3px 0 0; font-size:14px; line-height:1.35; color:#a7b2c1; }
/* The first photo's rules in its Replace sheet (Jay, October 18, 2026). */
.member-face-rules { margin:6px 0 14px; padding-left:20px; color:#d6dde6; font-size:15.5px; line-height:1.5; }
.member-account-chevron { flex:none; font-size:22.5px; line-height:1; color:#6f7b8b; }
.member-account-tag { flex:none; padding:1px 7px; border:1px solid #2b4a37; border-radius:9px; background:#17271f; font-size:13.5px; font-weight:700; color:#9ecdb0; }
.member-account-tag.is-warning { border-color:#5a2b2b; background:#2a1717; color:#f0a5a5; }
/* Account settings' switch is the kit's one switch (51×31; kit.css). */
.member-portal .member-account-link { flex:none; width:auto; min-height:0; margin:0; padding:4px 0; border:0; background:none; font-size:15.5px; font-weight:600; color:#d97757; }
/* Two-step sign-in setup: the QR code on white (scanners need contrast) and the key, easy to copy. */
.member-two-step-qr { display:block; width:200px; height:200px; margin:10px auto; border-radius:10px; background:#fff; }
.member-two-step-key { margin:2px 0 6px; font:600 16px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.04em; word-break:break-all; user-select:all; -webkit-user-select:all; }
.member-portal .member-account-delete { color:#f0a8a8; }
.member-account-photos { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.member-portal .member-account-photo { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:3/4; min-height:0; margin:0; padding:0; overflow:hidden; border:1px solid #262c35; border-radius:12px; background:linear-gradient(160deg,#2c3a4d,#141a22); color:#9aa6b6; }
.member-account-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.member-account-photo-label { position:absolute; left:8px; bottom:8px; padding:3px 8px; border-radius:9px; background:rgba(0,0,0,.6); font-size:14px; font-weight:700; color:#f1f3f5; }
.member-account-photo-edit { position:absolute; right:8px; top:8px; padding:3px 9px; border-radius:9px; background:#e8edf3; font-size:14px; font-weight:700; color:#0d1014; }
.member-account-status:empty { display:none; }
.member-account-status { margin:4px 2px; font-size:15px; color:#9ecdb0; }
.member-account-sheet .member-account-sheet-body { display:flex; flex-direction:column; gap:10px; }
.member-account-sheet .member-account-sheet-body label { display:flex; flex-direction:column; gap:6px; margin:0; }
.member-account-sheet .member-account-sheet-body > .secondary-button { width:100%; }
.member-account-sheet:focus { outline:none; }
/* Provide feedback, as a menu page */
.portal-feedback form { display:block; }
.portal-feedback label { display:block; margin:0 0 10px; color:#c9d1dc; line-height:1.45; }
.portal-feedback textarea { box-sizing:border-box; margin:0; width:100%; min-height:160px; padding:12px; border:1px solid #3a4454; border-radius:12px; background:#0f141b; color:#f0f1f3; font:inherit; resize:vertical; }
.portal-feedback .feedback-photos { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0 0; }
.portal-feedback .feedback-photo { position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; background:#0f141b; }
.portal-feedback .feedback-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.portal-feedback .feedback-photo-remove { position:absolute; top:4px; right:4px; width:32px; height:32px; border:0; border-radius:16px; background:rgba(0,0,0,.65); color:#fff; font-size:15px; line-height:1; cursor:pointer; }
.portal-feedback .feedback-photo-add { aspect-ratio:1; border:1px dashed #3a4454; border-radius:10px; background:transparent; color:#d97757; font:inherit; font-size:15px; cursor:pointer; }
.portal-feedback .feedback-photos:has(> .feedback-photo-add:only-child) { grid-template-columns:1fr; }
.portal-feedback .feedback-photo-add:only-child { aspect-ratio:auto; min-height:48px; }
.portal-feedback .feedback-anonymous { display:flex; align-items:center; gap:10px; margin:12px 0 0; font-weight:400; cursor:pointer; }
.portal-feedback #feedbackSend { width:100%; margin-top:8px; }
:is(#portalFeedbackContent,[data-copy-of="portalFeedbackContent"]).portal-coming-panel { padding:0; border:0; background:none; box-shadow:none; }
:is(#portalFeedbackContent,[data-copy-of="portalFeedbackContent"]) h2 { margin:0 0 10px; font-family:Georgia,"Times New Roman",serif; font-weight:400; font-size:27px; color:#f0eee9; }
/* Closing the menu (✕ or a swipe up) slides it up under the header bar (member-portal.js
   slideMenuUp). The header row sits above the sliding menu so the menu vanishes beneath it. */
.app-framed .portal-header::before { content:''; position:absolute; top:0; left:0; right:0; height:49px; z-index:6; background:#0d1014; border-bottom:1px solid #262c35; pointer-events:none; }
.app-framed .portal-header > .portal-wordmark, .app-framed .portal-header > .portal-menu-toggle { position:relative; z-index:7; }
.member-portal .portal-navigation.portal-menu-leaving { pointer-events:none; }
/* Bottom center of the menu itself: a bar like the iPhone's home bar, no text (Jay, October 21, 2026).
   A full-width handle of its own under the list, 44px tall: dragging it carries the menu up (swipe-back.js
   hintDrag); a tap does nothing. The frame's padding already keeps it above the phone's own home bar. */
.member-portal.app-framed .portal-navigation .portal-menu-swipe-hint { flex:none; display:flex; align-items:center; justify-content:center; width:100%; height:44px; margin:0; padding:0; background:#0d1014; cursor:grab; touch-action:none; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.member-portal.app-framed .portal-navigation .portal-menu-swipe-hint.hidden { display:none; }
.portal-menu-home-bar { display:block; width:134px; height:5px; border-radius:3px; background:#8a919b; transition:background-color .15s; }
.portal-menu-swipe-hint:active .portal-menu-home-bar { background:#c9d1dc; }
/* No scrollbars on the menu or its pages; they still scroll. */
.app-framed .portal-menu-root, .portal-menu-page-body { scrollbar-width:none; }
.app-framed .portal-menu-root::-webkit-scrollbar, .portal-menu-page-body::-webkit-scrollbar { display:none; }
/* ---------- RSVP motion (member.js): press, check pop, waitlist, shake, rolling count, sparkle ---------- */
:is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"]), :is(#memberEventNotGoingButton,[data-copy-of="memberEventNotGoingButton"]) { position:relative; overflow:visible; transition:transform .12s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
:is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"]):active:not(:disabled), :is(#memberEventNotGoingButton,[data-copy-of="memberEventNotGoingButton"]):active:not(:disabled) { transform:scale(.96); }
.app-framed .member-event-rsvp-inline :is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"]).is-waitlisted[aria-pressed=true] { background:#2a2414; text-shadow:none; box-shadow:none; border-color:#5a4a1c; color:#e9c46a; }
.rsvp-pop { animation:rsvp-pop .42s cubic-bezier(.3,1.6,.5,1); }
.rsvp-pop::before { animation:rsvp-check .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes rsvp-pop { 0% { transform:scale(1); } 45% { transform:scale(1.06); } 100% { transform:scale(1); } }
@keyframes rsvp-check { 0% { transform:scale(0); } 60% { transform:scale(1.35); } 100% { transform:scale(1); } }
.rsvp-shake { animation:rsvp-shake .42s ease; }
@keyframes rsvp-shake { 0%,100% { transform:none; } 20% { transform:translateX(-7px); } 40% { transform:translateX(6px); } 60% { transform:translateX(-4px); } 80% { transform:translateX(2px); } }
.rsvp-count-number { display:inline-block; }
.rsvp-roll-up { animation:rsvp-roll-up .35s ease-out; }
.rsvp-roll-down { animation:rsvp-roll-down .35s ease-out; }
@keyframes rsvp-roll-up { from { transform:translateY(.75em); opacity:0; } to { transform:none; opacity:1; } }
@keyframes rsvp-roll-down { from { transform:translateY(-.75em); opacity:0; } to { transform:none; opacity:1; } }
.rsvp-sparkle { position:absolute; left:50%; top:50%; width:0; height:0; pointer-events:none; }
.rsvp-sparkle i { position:absolute; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:#e9c46a; animation:rsvp-spark .75s ease-out forwards; }
.rsvp-sparkle i:nth-child(even) { background:#9ecdb0; width:5px; height:5px; }
@keyframes rsvp-spark { from { transform:translate(0,0) scale(1); opacity:1; } to { transform:translate(var(--dx),var(--dy)) scale(.3); opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  /* No movement: the check and the count fade in, and a failed save flashes red instead of shaking. */
  :is(#memberEventGoingButton,[data-copy-of="memberEventGoingButton"]):active:not(:disabled), :is(#memberEventNotGoingButton,[data-copy-of="memberEventNotGoingButton"]):active:not(:disabled) { transform:none; }
  .rsvp-pop { animation:none; }
  .rsvp-pop::before { animation:rsvp-fade-in .25s ease-out; }
  .rsvp-roll-up, .rsvp-roll-down { animation:rsvp-fade-in .25s ease-out; }
  .rsvp-shake { animation:rsvp-fail-flash .6s ease-out; }
  @keyframes rsvp-fade-in { from { opacity:0; } to { opacity:1; } }
  @keyframes rsvp-fail-flash { from { box-shadow:0 0 0 2px #f87171; } to { box-shadow:0 0 0 2px transparent; } }
}
/* ---------- Loading states ---------- */
/* Shared glowing grey placeholder. */
.ui-skeleton { display:block; border-radius:8px; background:linear-gradient(90deg,#1a2029 0%,#262e39 50%,#1a2029 100%); background-size:200% 100%; animation:ui-skeleton-glow 1.3s ease-in-out infinite; }
@keyframes ui-skeleton-glow { from { background-position:100% 0; } to { background-position:-100% 0; } }
/* Sign in: the button spins and reads "Signing in…" while it works. */
#signInButton.is-loading { display:inline-flex; align-items:center; justify-content:center; gap:10px; opacity:1; cursor:progress; }
#signInButton.is-loading::before { content:''; width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; animation:ui-spin .8s linear infinite; }
@keyframes ui-spin { to { transform:rotate(360deg); } }
/* The "You're InvitedIn" loading screen: a soft white glow comes on from above (with a little
   flicker, like a stage light), the wordmark slowly slides down into it in the middle of the
   screen, then the line under it fades in. The glow fades out well before the sides. */
#appScroll > .session-loading:not(.hidden) { position:relative; min-height:100%; overflow:hidden; isolation:isolate; }
.session-loading:not(.hidden) .session-loading-wordmark { animation:loading-slide 1.8s cubic-bezier(.16,.84,.3,1) both; }
.session-loading:not(.hidden) .session-loading-wordmark + p { animation:loading-fade .6s ease-out 1.3s both; }
.session-loading:not(.hidden)::before, .session-loading:not(.hidden)::after { content:''; position:absolute; z-index:-1; pointer-events:none; animation:loading-light 1.6s ease-out .2s both; }
.session-loading:not(.hidden)::before { left:50%; top:0; width:84%; height:64%; transform:translateX(-50%);
  background:radial-gradient(ellipse 46% 100% at 50% 0%, rgba(255,255,255,.17), rgba(255,255,255,.07) 55%, rgba(255,255,255,0) 100%); }
.session-loading:not(.hidden)::after { left:50%; top:48%; width:76%; height:20%; transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center, rgba(255,255,255,.09), rgba(255,255,255,0) 70%); }
@keyframes loading-slide { from { opacity:0; transform:translateY(-38vh); } 35% { opacity:1; } to { opacity:1; transform:none; } }
@keyframes loading-light { 0% { opacity:0; } 40% { opacity:.55; } 50% { opacity:.35; } 100% { opacity:1; } }
@keyframes loading-fade { from { opacity:0; } to { opacity:1; } }
/* Chat, first load: rows in the shape of the chat list. */
/* Each placeholder is the size and place of what replaces it (Jay, October 21, 2026: smaller placeholders made the list
   jump when it arrived): a section header's 50px, the row's 66px photo, a 20px name line and two message lines. */
.chat-loading-list { padding:0; }
.chat-item-skeleton { pointer-events:none; }
.chat-skeleton-label { width:150px; height:10px; margin:25px 14px 14.5px; }
.chat-item-skeleton .chat-skeleton-avatar { flex:0 0 66px; width:66px; height:66px; border-radius:20%; }
.chat-skeleton-line { height:14px; margin:3px 0; }
.chat-skeleton-short { width:88% !important; height:12px; margin:6px 0 0; opacity:.7; }
.chat-skeleton-short + .chat-skeleton-short { width:60% !important; margin-top:5px; }
/* Account settings, loading: the photo tiles and rows as glowing boxes. */
.member-portal .member-account-skeleton .member-account-photo.ui-skeleton { border:0; background:linear-gradient(90deg,#1a2029 0%,#262e39 50%,#1a2029 100%); background-size:200% 100%; }
/* The page as it will be (Jay, October 21, 2026: the rows moved down when it arrived): Profile (one row), Contact (two
   rows and its note), Privacy (a switch row); each header's bar sits in its 22px line. */
.member-account-skeleton .skeleton-section { width:90px; height:10px; margin:24px 2px 14px; }
.member-account-skeleton .skeleton-note { width:80%; height:12px; margin:14px 4px 33px; }
.member-account-skeleton .member-account-row.is-switch { min-height:62px; }
.member-account-skeleton .skeleton-key { flex:0 0 70px; height:12px; }
.member-account-skeleton .skeleton-value { flex:1; height:12px; max-width:55%; }
/* Event image: a glowing box holds its place, then the photo fades in (the box's height animates in member.js). */
:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]) { overflow:hidden; }
:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]).is-loading { aspect-ratio:16/9; background:linear-gradient(90deg,#1a2029 0%,#262e39 50%,#1a2029 100%); background-size:200% 100%; animation:ui-skeleton-glow 1.3s ease-in-out infinite; }
:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]).is-loading .member-event-image { visibility:hidden; }
:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]) .member-event-image { opacity:0; transition:opacity .4s ease; }
:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]) .member-event-image.is-shown { opacity:1; }
/* While the box grows to the photo's size, the glow stays behind it as the photo fades in. */
:is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]).is-revealing { background:linear-gradient(90deg,#1a2029 0%,#262e39 50%,#1a2029 100%); background-size:200% 100%; animation:ui-skeleton-glow 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ui-skeleton, :is(#memberEventImageSection,[data-copy-of="memberEventImageSection"]).is-loading, .grid-tile.ui-skeleton, .member-profile-hero.ui-skeleton { animation:none; background:#1f2630; }
  .session-loading:not(.hidden) .session-loading-wordmark { animation:loading-drop-small .4s ease-out both; }
  .session-loading:not(.hidden) .session-loading-wordmark + p { animation-delay:.2s; }
  .session-loading:not(.hidden)::before, .session-loading:not(.hidden)::after { animation:loading-fade .4s ease-out both; }
  @keyframes loading-drop-small { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }
  #signInButton.is-loading::before { animation-duration:1.6s; }
}

/* ---------- A member's profile (js/member-profile.js) ---------- */
/* Covers the whole area between the header and the bottom of the frame; the tabs hide. */
body.member-profile-open .app-tabs { display:none; }
/* No ☰ menu on a profile: Back (or a swipe) leaves it. */
body.member-profile-open .portal-menu-toggle { visibility:hidden; }
/* An open chat, an event page and the Bids screens (a vote, Respond, Confirm) have ‹ Back, so no ☰ either. */
body.chat-conversation-open .portal-menu-toggle, body:has(#memberEventView:not(.hidden)) .portal-menu-toggle, body:has(#portalGroupsPanel .bids-screen) .portal-menu-toggle { visibility:hidden; }
body.member-profile-open .app-scroll { overflow:hidden; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]):not(.hidden) { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; background:#0d1014; }
.member-profile-body { position:relative; flex:1; min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; }
/* 3:4, a phone photo's own shape, so a portrait photo shows whole (a member's feedback, October 18, 2026: the bottom was cut off). */
.member-profile-hero { position:relative; aspect-ratio:3/4; max-height:72vh; width:100%; background:#161c24; overflow:hidden; }
.member-profile-hero.is-empty { display:grid; place-items:center; }
/* Covers the photo's last row of pixels, which peeked out as a thin bright line under the caption's fade
   when the hero's height wasn't a whole number of pixels. */
.member-profile-hero::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:#0d1014; pointer-events:none; }
/* Empty room under a short profile (member-profile.js fitPullRoom), so a swipe up scrolls first. */
.member-profile-pull-room { display:block; height:0; pointer-events:none; }
.member-profile-photo { display:block; width:100%; height:100%; object-fit:cover; -webkit-user-select:none; user-select:none; }
/* The next photo while it slides or fades in over the current one (member-profile.js photoSlider). */
/* The photos side by side on one strip that moves with the finger (photoSlider in member-profile.js). */
/* No will-change or backface-visibility here (Jay, October 17, 2026): kept on a strip several screens wide, the iPhone
   held it as one huge layer and sometimes left a photo half drawn, only its top strip showing. The glide's translate3d
   lifts it to a layer only while it moves. */
.member-profile-track { position:absolute; inset:0; display:flex; }
.member-profile-track > .member-profile-photo { flex:0 0 100%; min-width:0; }
.member-profile-bars { position:absolute; top:10px; left:12px; right:12px; display:flex; gap:6px; }
.member-profile-bar { flex:1; height:24px; margin:0; padding:10px 0; border:0; background:transparent; cursor:pointer; }
.member-profile-bar::before { content:''; display:block; height:4px; border-radius:2px; background:rgba(255,255,255,.38); }
.member-profile-bar.is-current::before { background:#fff; }
.member-profile-more { position:absolute; top:6px; right:10px; width:44px; height:44px; margin:0; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.4); color:#fff; font-size:24.5px; line-height:1; cursor:pointer; }
.member-profile-caption { position:absolute; left:0; right:0; bottom:0; padding:56px 18px 14px; background:linear-gradient(to top,#0d1014 8%,rgba(13,16,20,0)); pointer-events:none; }
/* The shown photo's reactions, a row of chips just above the name (Jay, October 21, 2026: never in the photo's corner,
   where they covered long names); a tap opens the photo viewer. The caption lets taps through, the chips take them.
   They sit in the caption's top padding, 10px above the name, and grow upward (Jay, October 21, 2026): in the flow they
   pushed the name up when the profile finished loading and each time a swipe reached a photo with or without them. */
.member-profile-reactions { position:absolute; left:18px; right:18px; bottom:calc(100% - 46px); display:flex; flex-wrap:wrap; gap:6px; margin:0; pointer-events:auto; cursor:pointer; animation:member-profile-reactions-in .2s ease-out; }
.member-profile-reactions.hidden { display:none; }
.member-profile-reaction { display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 10px; box-sizing:border-box; border:1px solid #262c35; border-radius:16px; background:#141920; color:#f1f3f5; font-size:15px; font-weight:700; line-height:1; }
.member-profile-reaction.is-mine { border-color:#d97757; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-reaction.is-mine { border-color:var(--grid-accent); }
@keyframes member-profile-reactions-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .member-profile-reactions { animation:none; } }
.member-profile-name { margin:0; font-size:29px; font-weight:800; line-height:1.15; overflow-wrap:anywhere; }
/* The name, then ✓ Verified (or ⚠️ Not verified) right after it, every time (Jay, October 21, 2026). */
.member-profile-name-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; }
.member-profile-name-row > .member-profile-name { min-width:0; }
.member-profile-name-row > .member-profile-pill { height:26px; padding:0 9px; border:0; border-radius:13px; font-size:13.5px; pointer-events:auto; }
.member-profile-name-row > .chat-you { flex:none; }
/* Age, distance and online: a lighter line of their own under the name. */
.member-profile-line { margin:4px 0 0; display:flex; align-items:center; flex-wrap:wrap; gap:0 6px; font-size:16px; color:#a7b2c1; }
.member-profile-online { position:relative; display:inline-block; width:11px; height:11px; }
.member-profile-content { padding:8px 0 18px; display:flex; flex-direction:column; gap:14px; }
.member-profile-pills { display:flex; gap:8px; padding:0 16px 2px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
/* The groups and badges under the photo wrap (Jay, October 21, 2026). */
.member-profile-pills.is-wrap.is-top { padding:0 16px; }
.member-profile-pills::-webkit-scrollbar { display:none; }
/* One muted style with the emoji (Jay, October 21, 2026); color only for meaning: verified green, not verified red,
   Founding Member gold, and a hand-given badge's own theme. */
.member-profile-pill { flex:none; display:inline-flex; align-items:center; gap:6px; height:32px; margin:0; padding:0 12px; border:1px solid transparent; border-radius:16px; background:#1d2530; font-size:15px; font-weight:600; color:#d7dee8; white-space:nowrap; }
.member-profile-pill.ui-skeleton { border:0; }
.member-profile-pill { position:relative; overflow:hidden; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
/* Pill effects (pillFx in member-profile.js): a tap bounces, a hold glows with a shine sweeping across, a
   double tap wobbles with a ring bursting out, each in the pill's own color. */
.member-profile-pill.pill-fx-tap { animation:pill-tap .38s cubic-bezier(.3,1.5,.5,1); }
.member-profile-pill.pill-fx-hold { animation:pill-hold .75s cubic-bezier(.3,1.4,.5,1); }
.member-profile-pill.pill-fx-hold::after { content:''; position:absolute; top:0; bottom:0; left:-60%; width:50%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent); transform:skewX(-18deg); animation:pill-shine .7s ease-out forwards; pointer-events:none; }
.member-profile-pill.pill-fx-double { animation:pill-wobble .6s ease-out, pill-ring .6s ease-out; }
@keyframes pill-tap { 0% { transform:scale(1); } 35% { transform:scale(.9); } 70% { transform:scale(1.06); } 100% { transform:scale(1); } }
@keyframes pill-hold { 0% { transform:scale(.96); box-shadow:0 0 0 0 transparent; } 35% { transform:scale(1.07); box-shadow:0 0 16px 2px color-mix(in srgb,currentColor 55%,transparent); } 100% { transform:scale(1); box-shadow:0 0 0 0 transparent; } }
@keyframes pill-shine { to { left:120%; } }
@keyframes pill-wobble { 0% { transform:scale(1,1); } 20% { transform:scale(1.14,.86); } 40% { transform:scale(.9,1.1); } 60% { transform:scale(1.06,.95); } 80% { transform:scale(.98,1.02); } 100% { transform:scale(1,1); } }
@keyframes pill-ring { 0% { box-shadow:0 0 0 0 color-mix(in srgb,currentColor 70%,transparent); } 100% { box-shadow:0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .member-profile-pill.pill-fx-tap, .member-profile-pill.pill-fx-hold, .member-profile-pill.pill-fx-double { animation:pill-glow .5s ease-out; }
  .member-profile-pill.pill-fx-hold::after { content:none; }
  @keyframes pill-glow { 0% { box-shadow:0 0 0 0 transparent; } 40% { box-shadow:0 0 12px 1px color-mix(in srgb,currentColor 50%,transparent); } 100% { box-shadow:0 0 0 0 transparent; } }
}
.member-profile-pill.is-event { cursor:pointer; }
/* Founding members (founding.ts): a gold-tinted pill with a gold border, gold text and a gold star,
   the same size as the other pills. */
/* ⚠️ Not verified (by the name): red. */
.member-profile-pill.is-not-vetted { flex:none; background:rgba(240,134,140,.14); color:#f0868c; font-weight:700; }
/* ⏳ Verification pending: waiting on an InvitedIn admin (vettingPending). */
.member-profile-pill.is-not-vetted.is-vetting-pending { background:rgba(243,194,122,.14); color:#f3c27a; }
/* Founding members (founding.ts): gold. */
.member-profile-pill.is-founding { gap:5px; background:rgba(230,195,106,.14); color:#ecd395; font-weight:700; }
.member-profile-founding-star { color:inherit; }
/* The earned badges (inviter, nominator, voted in, Good replier, Good chats) keep the muted style; the invite promo's
   pill is Plus, so its text is Plus blue (no glow). */
.member-profile-pill.is-promo { color:#a9c8ff; }
/* "✓ Verified" (an InvitedIn admin, a check-in or a selfie; verification.ts): the one done green. */
.member-profile-pill.is-verified { gap:4px; background:rgba(76,195,138,.16); color:#8fe0b6; font-weight:700; }
.member-profile-verified-check { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:50%; background:#4cc38a; color:#0d1014; font-size:10.5px; font-weight:900; }
/* Your own pill you hid from other members: grayed out, only you see it (hold or double tap › Show). */
.member-profile-pill.is-hidden-pill { border-color:#3a3f47 !important; background:#1a1d22 !important; color:#7d838c !important; opacity:.75; filter:grayscale(1); }
/* Badges given by hand (member_badges, migration 113), like "🛠️ Pro App Tester": teal unless the badge's theme (badge_themes,
   migration 115) sets its colors, which member-profile.js badgePill applies. */
.member-profile-pill.is-badge { border-color:#4fb8a8; background:#132a28; color:#a8e6dc; font-weight:700; }
.member-profile-pill.is-badge:not([style*="color"]) { border-color:transparent; background:#1d2530; color:#d7dee8; }
.member-profile-note { margin:0 16px; color:#a9b4c2; font-size:16.5px; line-height:1.45; }
.member-profile-pills.is-wrap { flex-wrap:wrap; overflow:visible; padding:0; }
.member-profile-editor { display:flex; flex-direction:column; min-width:0; max-width:100%; padding:12px 16px 24px; box-sizing:border-box; }
/* iOS gives date fields a fixed width of their own; keep it inside the screen. */
.member-profile-input[type=date] { -webkit-appearance:none; appearance:none; text-align:left; }
.member-profile-input[type=date]::-webkit-date-and-time-value { text-align:left; }
.member-profile-editor-note { margin:0 2px 12px; color:#a7b2c1; font-size:15px; line-height:1.4; }
/* The editor's fields are rows in one card, like Settings (Jay, October 21, 2026): a one-line control (a dropdown, a name
   or date box) sits at the row's right as its value; chips, text boxes and photos under the field's name. */
.member-profile-field { display:flex; flex-direction:column; gap:8px; min-width:0; min-height:52px; box-sizing:border-box; padding:12px 14px; border:1px solid #262c35; border-width:0 1px 1px; background:#0f1318; }
.member-profile-editor > section.member-profile-field:first-of-type { border-top-width:1px; border-radius:14px 14px 0 0; }
.member-profile-editor > section.member-profile-field:last-of-type { border-radius:0 0 14px 14px; }
.member-profile-field-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.member-profile-field-name { font-size:17px; font-weight:600; color:#f1f3f5; }
.member-profile-field-count { font-size:15px; font-weight:700; color:#d97757; }
.member-profile-field-hint { margin:0; color:#a7b2c1; font-size:14px; line-height:1.35; }
.member-profile-field.is-inline { flex-direction:row; flex-wrap:wrap; align-items:center; gap:2px 12px; padding-top:4px; padding-bottom:4px; }
.member-profile-field.is-inline > .member-profile-field-head { flex:none; }
.member-profile-field.is-inline > .member-profile-input { flex:1 1 120px; width:auto; height:44px; padding:0 24px 0 0; border:0; background-color:transparent; color:#a7b2c1; font-size:16px; text-align:right; text-align-last:right; }
.member-profile-field.is-inline > .member-profile-input:focus { outline:none; color:#f1f3f5; }
.member-profile-field.is-inline > .member-profile-field-hint { flex-basis:100%; margin-bottom:8px; }
.member-profile-field.is-switch { padding-top:4px; padding-bottom:4px; gap:0; }
.member-profile-field.is-switch > .member-profile-field-hint { margin-bottom:8px; }
.member-profile-editor .member-profile-about-input { width:100%; box-sizing:border-box; }
.member-profile-editor .member-profile-about-count { align-self:flex-end; color:#9aa6b6; font-size:14.5px; }
.member-profile-input { display:block; width:100%; max-width:100%; min-width:0; height:44px; box-sizing:border-box; padding:0 12px; border:1px solid #343b46; border-radius:14px; background:#0d1014; color:#f5f5f5; font:inherit; font-size:17px; }
.member-profile-switch { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; font-size:17px; color:#f1f3f5; }
/* The one switch (51×31, knob 27): blue on, clay on the Hush side. */
.member-profile-switch input { flex:none; position:relative; width:51px; height:31px; margin:0; border-radius:16px; background:#3a424e; -webkit-appearance:none; appearance:none; cursor:pointer; transition:background-color .2s ease; }
.member-profile-switch input::after { content:''; position:absolute; top:2px; left:2px; width:27px; height:27px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.35); transition:transform .2s ease; }
.member-profile-switch input:checked { background:#d97757; }
.member-profile-switch input:checked::after { transform:translateX(20px); }
.member-profile-switch input:disabled { opacity:.5; cursor:default; }
@media (prefers-reduced-motion: reduce) { .member-profile-switch input, .member-profile-switch input::after { transition:none; } }
.member-profile-chips { display:flex; flex-wrap:wrap; gap:8px; }
.member-profile-chip-group { margin:6px 0 0; font-size:13px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:#8f9bab; }
.member-profile-chip { min-height:36px; margin:0; padding:0 14px; border:1px solid #343b46; border-radius:18px; background:transparent; color:#c7d0dc; font-size:16px; font-weight:700; cursor:pointer; transition:background .15s,border-color .15s,opacity .15s; }
.member-profile-chip[aria-pressed=true] { border-color:#d97757; background:#1b2532; color:#e6eefa; }
.member-profile-chip.is-dim { opacity:.4; }
/* Editing (Jay, October 21, 2026): the editor is a sheet over the dimmed profile, rising from the bottom, with a sticky
   top bar (Cancel, the title, Save) over its scrolling fields. The bottom row hides while it's open. */
.member-profile-body.is-editing { overflow:hidden; }
.member-profile-body.is-editing ~ .member-profile-nav { display:none; }
.member-profile-edit-dim { position:absolute; inset:0; z-index:3; background:rgba(5,6,8,.6); animation:profile-edit-fade .28s ease-out both; }
.member-profile-edit-sheet { position:absolute; left:0; right:0; top:44px; bottom:0; z-index:4; display:flex; flex-direction:column; min-height:0; border-top:1px solid #2a313b; border-radius:22px 22px 0 0; background:#141920; box-shadow:0 -8px 30px rgba(0,0,0,.45); }
.member-profile-edit-sheet.is-rising { animation:profile-edit-rise .28s cubic-bezier(.2,.8,.2,1) both; }
.member-profile-edit-top { flex:none; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; padding:6px 8px; border-bottom:1px solid #1f252d; }
.member-profile-edit-title { font-size:17px; font-weight:700; color:#f1f3f5; text-align:center; white-space:nowrap; }
.member-profile-edit-top .member-profile-about-cancel, .member-profile-edit-top .member-profile-about-save { height:44px; padding:0 12px; border:0; border-radius:22px; background:none; font-size:17px; }
.member-profile-edit-top .member-profile-about-cancel { justify-self:start; color:#a7b2c1; font-weight:500; }
.member-profile-edit-top .member-profile-about-save { justify-self:end; color:#d97757; font-weight:700; }
/* Save sits at the top bar's right end (Jay, October 24, 2026), and Saving… or an error right under that row. */
.member-profile-edit-top .member-profile-edit-status { grid-column:1/-1; margin:0 8px 6px; }
/* The Hush editor's preferences (Jay, October 24, 2026): a thick divider, then "My preferences in the other person". */
.member-profile-pref-divider { height:6px; margin:28px -16px 6px; border:0; background:#05070a; }
.member-profile-pref-head { position:sticky; top:0; z-index:2; margin:12px 0 10px; padding:18px 16px 16px; border:1px solid #2a3240; border-radius:16px; background:#1a2029; }
/* After its 3 new days: the same sticky card, quiet (no glow, no sheen, plain title). */
.member-profile-pref-head:not(.is-new) .member-profile-pref-title { color:#e4e8ee; }
.member-profile-editor > .member-profile-field:has(+ .member-profile-pref-divider) { border-radius:0 0 14px 14px; }
.member-profile-pref-head + .member-profile-field { border-top-width:1px; border-radius:14px 14px 0 0; }
.member-profile-pref-title { margin:0 0 6px; font-size:20px; font-weight:800; color:#f1f3f5; }
.member-profile-pref-range { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; }
.member-profile-pref-to { color:#8f9bab; font-size:15px; text-align:center; }
.member-profile-edit-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:env(safe-area-inset-bottom); }
.member-profile-edit-status { margin:0 2px 10px; }
.member-profile-edit-status:empty { display:none; }
@keyframes profile-edit-rise { from { transform:translateY(100%); } to { transform:none; } }
@keyframes profile-edit-fade { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .member-profile-edit-sheet.is-rising, .member-profile-edit-dim { animation:profile-edit-fade .2s ease-out both; } }
.member-profile-option { display:block; width:100%; min-height:48px; margin:0 0 8px; padding:0 14px; border:1px solid #343b46; border-radius:12px; background:transparent; color:#e6ebf2; font-size:18px; font-weight:700; text-align:left; cursor:pointer; }
.member-profile-option.is-danger { color:#ff7b7b; }
/* A sheet's main action (Share my social profile on a Hush profile): solid clay. */
.member-profile-option.is-primary { border-color:var(--grid-accent); background:var(--grid-accent); color:#fff; text-align:center; }
/* The bottom row (Jay, October 21, 2026): three equal 48px buttons, Back, Nominate and Message (your own profile's switch
   in Message's place); when one isn't offered, the others share the row. It floats over a fade, and the body leaves room
   at the end so the last of it can scroll clear. */
.member-profile-body { padding-bottom:88px; }
.member-profile-nav { position:absolute; left:0; right:0; bottom:0; z-index:2; display:flex; gap:8px; justify-content:stretch; padding:24px 12px 16px; border-top:0; background:linear-gradient(rgba(13,16,20,0),#0d1014 40%); pointer-events:none; }
.member-profile-nav > * { pointer-events:auto; }
.member-profile-nav > :not(.hidden) { flex:1 1 0; min-width:0; box-sizing:border-box; display:flex; align-items:center; justify-content:center; height:48px; margin:0; padding:0 10px; border-radius:24px; box-shadow:none; font-size:16.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-backdrop-filter:none; backdrop-filter:none; }
.member-profile-nav .chat-nav-back { flex:none; display:flex; align-items:center; gap:2px; height:40px; margin:0; padding:0 16px 0 10px; border:0; border-radius:20px; background:rgba(30,37,47,.86); box-sizing:border-box; outline:1px solid rgba(255,255,255,.08); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 4px 14px rgba(0,0,0,.45); font-size:17px; font-weight:600; color:#d97757; }
/* Nominate: secondary, outlined in the profile's color (blue on a Social profile, clay on a Hush profile). */
.member-profile-nominate { border:1px solid #d97757; background:#1a120f; color:#f3d5c8; cursor:pointer; }
.member-profile-nominate.hidden { display:none; }
.member-profile-nominate-more { display:none; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-nominate { border-color:var(--grid-accent); background:#1a120f; color:#f3c4b2; }
/* Your own profile's switch to your other profile, in Message's place: outlined toward the Hush profile in clay, toward
   the Social one in blue. */
.member-profile-swap { gap:0; border:1px solid var(--grid-accent); background:#1a120f; color:#f3c4b2; cursor:pointer; }
.member-profile-swap.is-to-social { border-color:#d97757; background:#1a120f; color:#f3d5c8; }
.member-profile-swap.hidden { display:none; }
.member-profile-swap-label { overflow:hidden; text-overflow:ellipsis; }
/* Message: filled in the side's color with dark text. */
.member-profile-message { border:1px solid #d97757; background:#d97757; color:#1a0f0b; cursor:pointer; }
/* While the profile loads, Message (or your own profile's switch) holds its place, dimmed and not tappable yet. */
.member-profile-message.is-waiting, .member-profile-swap.is-waiting { opacity:.45; pointer-events:none; }
.member-profile-message, .member-profile-swap { transition:opacity .2s ease; }
/* Block and Report sheets */
.member-profile-sheet-backdrop { position:absolute; inset:0; z-index:2; display:flex; align-items:flex-end; background:rgba(0,0,0,.55); }
.member-profile-sheet { width:100%; max-height:85%; overflow-y:auto; box-sizing:border-box; padding:18px 16px 16px; border-top:1px solid #2c3440; border-radius:18px 18px 0 0; background:#141920; }
.member-profile-sheet h4 { margin:0 0 6px; font-size:20.5px; }
.member-profile-sheet-text { margin:0 0 12px; color:#b6c0cc; font-size:16px; line-height:1.45; }
.member-profile-sheet-status { min-height:1em; margin:6px 0; color:#ffb4b4; font-size:15.5px; }
.member-profile-sheet .chat-secondary { display:block; width:100%; margin:8px 0 0; padding:11px 0; border:1px solid #343b46; border-radius:12px; background:transparent; color:#e6ebf2; font-weight:700; }
.member-profile-danger { display:block; width:100%; margin:0; padding:12px 0; border:0; border-radius:12px; background:#d64545; color:#fff; font-size:17px; font-weight:800; }
.member-profile-danger:disabled { opacity:.6; }
.member-profile-reasons { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.member-profile-reason { min-height:44px; margin:0; padding:0 14px; border:1px solid #343b46; border-radius:12px; background:transparent; color:#e6ebf2; font-size:17px; text-align:left; }
.member-profile-reason[aria-pressed=true] { border-color:#d97757; background:#1b2532; }
.member-profile-details { display:block; width:100%; box-sizing:border-box; margin:0; padding:10px 12px; border:1px solid #343b46; border-radius:12px; background:#0d1014; color:#f5f5f5; font:inherit; resize:vertical; }
/* Tappable member photos open the profile */
.member-photo-link { cursor:pointer; }
.app-framed .member-response-photo { width:44px; height:44px; flex-basis:44px; }
.app-framed :is(.member-event-responses,.member-poll-result-option) .member-response-photo { width:36px; height:36px; flex-basis:36px; }
.member-response-photo.member-photo-link:active, .chat-avatar.member-photo-link:active { transform:scale(.94); }
.member-profile-toast { position:fixed; left:50%; bottom:84px; z-index:30; transform:translateX(-50%); max-width:calc(100% - 48px); padding:10px 16px; border-radius:12px; background:#232b36; color:#f5f5f5; font-size:16px; box-shadow:0 6px 24px rgba(0,0,0,.4); }

/* ---------- The Grid tab (js/member-grid.js) ---------- */
/* The greeting above the tabs (collapsed on this tab) already takes up the scroll area's top padding. */
:is(#portalGridPanel,[data-copy-of="portalGridPanel"]).grid-panel { position:relative; margin:0 -12px -12px; padding:0 0 12px; }
/* No scroll bar on the Grid, the chat list, open chats (group, DM, Hush) or a group's member list; they still scroll. */
.app-scroll:has(#portalGridPanel:not(.hidden)), .app-scroll:has(#portalChatPanel:not(.hidden)), .app-framed .chat-messages, .app-framed .chat-members-scroll { scrollbar-width:none; }
.app-scroll:has(#portalGridPanel:not(.hidden))::-webkit-scrollbar, .app-scroll:has(#portalChatPanel:not(.hidden))::-webkit-scrollbar, .app-framed .chat-messages::-webkit-scrollbar, .app-framed .chat-members-scroll::-webkit-scrollbar { display:none; }
.grid-head { position:sticky; top:-12px; z-index:3; padding:10px 12px 10px; background:#0d1014; border-bottom:1px solid #262c35; }
.grid-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.grid-title { display:flex; flex-direction:column; }
.grid-title-main { font-size:20.5px; font-weight:800; }
.grid-title-sub { font-size:14.5px; color:#9aa6b6; }
/* "Show Grid" switch at the top of the Grid (off: you see no one and no one sees you). */
.grid-show { display:flex; align-items:center; gap:8px; margin-left:auto; }
.grid-show-label { font-size:15px; font-weight:700; color:#c9d2de; }
.grid-show .grid-switch.is-on { background:var(--grid-accent); }
/* The filter pills, and "Show the Lobby" (Lobby members only) at the right of the same row. */
.grid-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:10px; }
.grid-controls > .grid-pills { flex:0 1 auto; min-width:0; margin-top:0; }
.grid-lobby { flex:none; display:flex; align-items:center; gap:8px; margin-left:auto; }
.grid-lobby-label { font-size:15px; font-weight:700; color:#c9d2de; white-space:nowrap; }
.grid-pills { display:flex; gap:8px; margin-top:10px; overflow-x:auto; scrollbar-width:none; }
.grid-pills::-webkit-scrollbar { display:none; }
.grid-pill { flex:none; height:32px; margin:0; padding:0 13px; border:1px solid #363e4a; border-radius:16px; background:transparent; color:#d7dee8; font-size:15px; font-weight:600; white-space:nowrap; cursor:pointer; }
.grid-pill.is-on { border-color:#d97757; background:#1b2532; color:#cfe0f5; }
/* "💬 Hush Chats": filled solid in the Hush clay with white text, fully round, a little lift, so it never reads as a filter pill. */
.grid-chat-pill { margin-left:auto; display:flex; align-items:center; gap:6px; min-height:34px; padding:0 16px; line-height:1; border:0; border-radius:999px; background:var(--grid-accent); color:#fff; font-size:17px; font-weight:700; white-space:nowrap; box-shadow:0 4px 14px rgba(217,119,87,.35); cursor:pointer; }
.grid-chat-pill:active { transform:scale(.96); }
/* While the chats load: the button breathes so the tap shows it's working. */
.grid-chat-pill.is-loading { animation:grid-chat-pill-wait .6s ease-in-out infinite alternate; }
@keyframes grid-chat-pill-wait { to { opacity:.6; } }
@media (prefers-reduced-motion:reduce) { .grid-chat-pill.is-loading { animation:none; opacity:.75; } .grid-chat-pill:active { transform:none; } }
/* Grid Chat: your Hush chats over the Grid, the list scrolling between the title and Back (member-grid.js). */
body.grid-chat-open .app-tabs { display:none; }
body.grid-chat-open .portal-menu-toggle { visibility:hidden; }
body.grid-chat-open .app-scroll { overflow:hidden; }
#memberGridChatView:not(.hidden) { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; background:#0d1014; }
.grid-chat-head { flex:none; display:flex; align-items:center; gap:10px; padding:10px 16px; border-bottom:1px solid #1a1f27; }
.grid-chat-titles { display:flex; flex-direction:column; }
.grid-hush-new { margin-left:auto; flex:none; min-height:34px; padding:0 14px; border:1px solid var(--grid-accent); border-radius:999px; background:transparent; color:var(--grid-accent); font:inherit; font-size:15px; font-weight:700; line-height:1; white-space:nowrap; cursor:pointer; }
.grid-hush-new:active { transform:scale(.96); }
.grid-chat-section { margin:14px 16px 4px; font-size:13.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#d9a28e; }
/* The Hush chats list's folding sections (member-grid.js's section) keep the Hush clay. */
.grid-chat-list .chat-section-toggle.grid-chat-section, .grid-chat-list .grid-chat-section .chat-section-chevron { color:#d9a28e; }
.grid-hush-join { cursor:default; }
.grid-hush-join-button { flex:none; align-self:center; min-height:32px; padding:0 14px; border:0; border-radius:999px; background:var(--grid-accent); color:#fff; font:inherit; font-size:15px; font-weight:700; cursor:pointer; }
.grid-hush-join-button:disabled { opacity:.6; }
/* On the Hush chats screen `.chat-panel button` took its fill away, so Join read as plain text: a filled clay pill with
   a soft glow, so it stands out (Jay, October 19, 2026). */
.chat-panel button.grid-hush-join-button { min-height:36px; padding:0 18px; border-radius:999px; background:var(--grid-accent); color:#fff; font-size:15px; font-weight:700; text-align:center; box-shadow:0 0 12px rgba(217,119,87,.45); }
.chat-panel button.grid-hush-join-button:active { transform:scale(.96); }
@media (prefers-reduced-motion:reduce) { .grid-hush-new:active { transform:none; } }
.grid-chat-list { flex:1; min-height:0; overflow-y:auto; display:block; padding:4px 0 12px; -webkit-overflow-scrolling:touch; }
.grid-chat-list .chat-empty { padding:24px 20px; color:#9aa6b6; text-align:center; }
.grid-chat-title { font-size:17px; font-weight:800; color:#e6ebf2; }
.grid-chat-sub { font-size:13px; color:#9aa6b6; }
.grid-chat-body { position:relative; flex:1; min-height:0; overflow:hidden; }
.grid-chat-backdrop { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; gap:12px; padding:14px 12px; overflow:hidden; filter:blur(3.5px); opacity:.6; pointer-events:none; }
.grid-chat-row { display:flex; gap:8px; align-items:flex-end; }
.grid-chat-row.is-mine { justify-content:flex-end; }
.grid-chat-photo { flex:none; width:32px; height:32px; border-radius:9px; object-fit:cover; }
.grid-chat-words { display:flex; flex-direction:column; gap:3px; max-width:72%; }
.grid-chat-name { font-size:13px; font-weight:700; color:#d7a08b; }
.grid-chat-bubble { padding:8px 12px; border-radius:16px; background:#1d2530; color:#e6ebf2; font-size:16px; line-height:1.4; }
.grid-chat-row.is-mine .grid-chat-bubble { max-width:72%; background:var(--grid-accent); color:#fff; }
.grid-chat-card { position:absolute; inset:0; margin:auto; height:fit-content; width:min(300px,calc(100% - 48px)); box-sizing:border-box; padding:24px 22px; border-radius:20px; background:rgba(20,24,31,.94); border:1px solid #4a3a33; box-shadow:0 18px 50px rgba(0,0,0,.55); display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.grid-chat-card { cursor:pointer; -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; touch-action:manipulation; }
.grid-chat-card.is-tapped { animation:grid-chat-bounce .45s cubic-bezier(.34,1.56,.64,1); }
.grid-chat-card.is-shaken { animation:grid-chat-shake .6s ease-in-out; }
.grid-chat-card.is-shaken .grid-chat-devil { animation:grid-chat-spin .6s ease-in-out; }
.grid-chat-devil { display:inline-block; }
@keyframes grid-chat-bounce { 0% { transform:scale(1); } 35% { transform:scale(.94); } 70% { transform:scale(1.04); } 100% { transform:scale(1); } }
@keyframes grid-chat-shake { 0%,100% { transform:rotate(0); } 20% { transform:rotate(-3deg); } 40% { transform:rotate(3deg); } 60% { transform:rotate(-2deg); } 80% { transform:rotate(2deg); } }
@keyframes grid-chat-spin { 0% { transform:rotate(0) scale(1); } 50% { transform:rotate(180deg) scale(1.3); } 100% { transform:rotate(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .grid-chat-card.is-tapped, .grid-chat-card.is-shaken { animation:grid-chat-dim .25s ease-out; }
  .grid-chat-card.is-shaken .grid-chat-devil { animation:none; }
  @keyframes grid-chat-dim { 0%,100% { opacity:1; } 50% { opacity:.75; } }
}
.grid-chat-card h3 { margin:0; font-size:22.5px; font-weight:800; line-height:1.25; color:#e6ebf2; }
.grid-chat-card p { margin:0; font-size:15px; line-height:1.5; color:#b9c2ce; }
.grid-chat-soon { padding:4px 10px; border-radius:999px; background:#2c201b; color:#f2c4b2; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.grid-chat-composer { flex:none; display:flex; align-items:flex-end; gap:8px; padding:8px 10px; }
.grid-chat-attach { flex:none; width:38px; height:38px; margin:0; padding:0; border-radius:50%; border:1px solid #4a3a33; background:#1d1816; color:var(--grid-accent); font-size:20.5px; font-weight:700; }
.grid-chat-input { flex:1; min-width:0; display:flex; align-items:center; gap:4px; padding:3px 3px 3px 14px; border-radius:20px; border:1px solid #4a3a33; background:#1d1816; }
.grid-chat-input input { flex:1; min-width:0; height:32px; padding:0; border:0; outline:none; background:transparent; color:#e6ebf2; font-size:17px; }
.grid-chat-input input::placeholder { color:#b3a69e; }
.grid-chat-send { flex:none; width:32px; height:32px; margin:0; padding:0; border:0; border-radius:50%; background:var(--grid-accent); color:#fff; font-size:18px; font-weight:800; }
.grid-chat-attach:disabled, .grid-chat-send:disabled { opacity:1; cursor:default; }
/* Grid Chat itself (member-grid-rooms.js): Newest · Closest │ the rooms (scrolling sideways), the messages, the box. */
.grid-room-bar { flex:none; display:flex; align-items:center; gap:8px; padding:8px 0 8px 12px; border-bottom:1px solid #1a1f27; }
.grid-room-sorts { flex:none; display:flex; gap:6px; }
.grid-room-pills.grid-room-main { flex:none; margin:0; padding:4px 12px 8px; border-bottom:1px solid #1a1f27; }
.grid-room-bar:has(+ .grid-room-main:not(.hidden)) { border-bottom:0; }
.grid-room-main.hidden, .grid-room-line.hidden { display:none; }
.grid-room-line { flex:none; width:1px; height:22px; background:#3a3f48; }
/* A sideways-scrolling row also clips up and down, so it keeps a few pixels above and below its pills (their borders,
   the long-press shrink and the Plus glow) and lines them up with Newest · Closest (Jay, October 16, 2026). */
.grid-room-pills { flex:1; min-width:0; display:flex; align-items:center; gap:6px; overflow-x:auto; padding:4px 12px 4px 0; margin:-4px 0; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.grid-room-pills::-webkit-scrollbar { display:none; }
.grid-room-sort, .grid-room-pill { flex:none; margin:0; padding:6px 12px; border-radius:999px; border:1px solid #3a3f48; background:#161b22; color:#c9d1db; font-size:14.5px; font-weight:700; white-space:nowrap; }
/* Held to pin: no text selection or callout (iOS cancelled the hold to highlight the words), so the long-press cue plays. */
.grid-room-sort, .grid-room-pill { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.grid-room-sort.is-on, .grid-room-pill.is-on { border-color:var(--grid-accent); background:#2c201b; color:#f6e3da; }
.grid-room-list { flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:14px; padding:14px 12px; -webkit-overflow-scrolling:touch; }
.grid-room-note { margin:auto 0; text-align:center; color:#9aa6b6; font-size:15px; line-height:1.5; padding:0 20px; }
.grid-room-message { display:flex; gap:10px; align-items:flex-start; }
.grid-room-photo { flex:none; width:38px; height:38px; border-radius:10px; object-fit:cover; background:#232a33; display:flex; align-items:center; justify-content:center; color:#9aa6b6; font-weight:800; }
.grid-room-photo.is-tappable, .grid-room-name { cursor:pointer; }
/* Grid Chat without Plus: the senders' photos are blurred (a tap asks for Plus). */
.grid-room-photo.is-blurred { filter:blur(6px) saturate(.85); clip-path:inset(0 round 10px); }
.grid-room-words { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.grid-room-meta { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; row-gap:2px; font-size:13px; color:#8c97a6; }
.grid-room-name { font-weight:800; font-size:14.5px; color:#d7a08b; overflow-wrap:anywhere; }
.grid-room-message.is-mine .grid-room-name { color:#e6ebf2; cursor:default; }
.grid-room-text { margin:0; font-size:16px; line-height:1.45; color:#e6ebf2; white-space:pre-wrap; overflow-wrap:anywhere; }
.grid-room-image { display:block; max-width:min(260px,100%); max-height:320px; border-radius:12px; object-fit:cover; }
.grid-room-image.adult-cover { width:200px; height:140px; display:flex; align-items:center; justify-content:center; }
.grid-room-locked { flex:1; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; padding:6px 4px; color:#c9b8b0; font-size:15px; }
.grid-room-locked .grid-primary { width:auto; margin:0; padding:8px 14px; }
.grid-room-pill.is-locked { opacity:.8; }
/* The All room without Plus (Jay, October 15, 2026): made-up rows blurred under a card in their middle. */
.grid-room-teaser { position:relative; flex:1; min-height:320px; overflow:hidden; }
.grid-room-teaser-rows { display:flex; flex-direction:column; gap:14px; filter:blur(7px); opacity:.7; pointer-events:none; user-select:none; -webkit-user-select:none;
  -webkit-mask-image:linear-gradient(#000 55%,transparent); mask-image:linear-gradient(#000 55%,transparent); }
.grid-room-teaser-card { position:absolute; left:50%; top:42%; transform:translate(-50%,-50%); width:min(300px,calc(100% - 32px)); box-sizing:border-box;
  padding:18px 18px 16px; border-radius:18px; text-align:center; background:rgba(20,16,15,.88); border:1px solid rgba(217,119,87,.45);
  box-shadow:0 12px 32px rgba(0,0,0,.5),0 0 24px rgba(217,119,87,.18); }
.grid-room-teaser-card h4 { margin:0 0 6px; font-size:18px; color:#fff; }
.grid-room-teaser-card p { margin:0 0 12px; font-size:15px; line-height:1.45; color:#c9b8b0; }
.grid-room-teaser-card .grid-primary { margin:0; }
.grid-room-reason { width:100%; box-sizing:border-box; border-radius:12px; border:1px solid #3a3f48; background:#161b22; color:#e6ebf2; padding:10px; font:inherit; font-size:16px; }
.grid-room-action { text-align:left; }
/* Hush groups (migration 205, member-grid-rooms.js): their room pills, the "＋ Hush group" pill and their sheets, in clay. */
.grid-room-pill.is-hush { border-color:rgba(217,119,87,.55); color:#f0d2c6; }
.grid-room-pill.grid-room-new { border-style:dashed; border-color:var(--grid-accent); background:transparent; color:var(--grid-accent); }
.hush-group-sheet h4 { color:#fff; }
.hush-group-field { display:block; margin:0 0 10px; }
.hush-group-label { display:block; margin:0 0 4px; font-size:13.5px; font-weight:700; letter-spacing:.02em; color:#d9a28e; }
.hush-group-field input, .hush-group-field textarea { width:100%; box-sizing:border-box; border-radius:12px; border:1px solid #4a3a33; background:#161b22; color:#e6ebf2; padding:10px; font:inherit; font-size:16px; }
.hush-group-field input:focus, .hush-group-field textarea:focus { outline:none; border-color:var(--grid-accent); }
.hush-group-field .hush-group-emoji { width:72px; text-align:center; font-size:24px; }
.hush-group-status:empty { display:none; }
.hush-group-heading { margin:14px 0 6px; font-size:14.5px; color:#d9a28e; }
.hush-manage-actions { display:flex; gap:10px; align-items:stretch; }
.hush-manage-actions > * { flex:1 1 0; margin:0; }
.hush-group-members { display:flex; flex-direction:column; gap:8px; margin:0 0 10px; }
.hush-group-member { display:flex; align-items:center; gap:10px; }
.hush-group-member-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e6ebf2; font-weight:600; }
.hush-group-member-tag { font-size:13px; color:#d9a28e; }
.hush-group-sheet .hush-group-remove { width:auto; margin:0; padding:6px 12px; font-size:14px; }
.grid-room-toast { position:absolute; left:50%; bottom:130px; transform:translateX(-50%); margin:0; padding:8px 14px; border-radius:999px; background:rgba(20,24,31,.95); border:1px solid #4a3a33; color:#e6ebf2; font-size:14.5px; white-space:nowrap; z-index:5; }
.grid-chat-nav .chat-nav-back { flex:none; display:flex; align-items:center; gap:2px; height:34px; margin:0; padding:0 6px 0 4px; border:0; background:none; font-size:17px; font-weight:600; color:var(--grid-accent); }
/* No Instagram yet (an invitee, member-grid.js): blurred squares under a lock pill; a tap asks for it. */
.grid-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; }
.grid-tile { position:relative; display:block; aspect-ratio:1/1; margin:0; padding:0; border:0; border-radius:2px; overflow:hidden; background:#161c24; color:#fff; text-align:left; cursor:pointer; }
.grid-tile:active { filter:brightness(.85); }
.grid-tile.ui-skeleton { border-radius:2px; }
/* When the Grid opens, each square turns over like a card (dark back first), one after another, left to right and top
   to bottom, as it comes on screen, squares loaded while scrolling too (member-grid.js watchFlips): it waits face down
   (is-face-down) until then, then flips (is-flipping-in). Back for good (Jay, October 21, 2026; a fade for a day). */
:is(.grid-tile,.grid-blur-tile.is-beyond).is-flipping-in { animation:grid-flip .7s cubic-bezier(.3,.7,.4,1) both; }
:is(.grid-tile,.grid-blur-tile.is-beyond).is-face-down { transform:perspective(700px) rotateY(-180deg); }
/* The card's back is the loading squares' grey, a layer over the square until it turns past halfway (Jay, October 21,
   2026: a black back made the whole Grid go dark for a moment between the loading squares and the flip). */
:is(.grid-tile,.grid-blur-tile.is-beyond).is-face-down::after, :is(.grid-tile,.grid-blur-tile.is-beyond).is-flipping-in::after { content:''; position:absolute; inset:0; z-index:5; background:#1f2630; pointer-events:none; }
:is(.grid-tile,.grid-blur-tile.is-beyond).is-flipping-in::after { animation:grid-flip-back .7s both; animation-delay:inherit; }
@keyframes grid-flip-back { 0%, 49.9% { opacity:1; } 50%, 100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  :is(.grid-tile,.grid-blur-tile.is-beyond).is-flipping-in { animation:grid-flip-fade .25s ease-out both; }
  :is(.grid-tile,.grid-blur-tile.is-beyond).is-face-down { transform:none; opacity:0; }
  :is(.grid-tile,.grid-blur-tile.is-beyond).is-face-down::after, :is(.grid-tile,.grid-blur-tile.is-beyond).is-flipping-in::after { content:none; }
}
@keyframes grid-flip {
  0% { transform:perspective(700px) rotateY(-180deg); }
  50% { transform:perspective(700px) rotateY(-90deg); }
  100% { transform:perspective(700px) rotateY(0); }
}
@keyframes grid-flip-fade { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
/* The trust note: floats over the Grid once each time the app starts (member-grid.js showTrustNote), drifting
   gently for a few seconds, then slowly fades away. The note moves and fades; its card catches taps (so a curious
   tap never opens the square behind it) and answers a tap with a bounce and a glow, a hold with a shake. Once it
   starts fading (is-leaving) taps go through to the squares again. */
.grid-trust-note { position:fixed; left:50%; top:46%; z-index:30; width:max-content; max-width:min(320px,calc(100vw - 48px)); pointer-events:none; opacity:0; animation:grid-trust-in .9s ease-out forwards, grid-trust-float 3.2s ease-in-out .9s infinite alternate, grid-trust-out 1.6s ease-in 4.4s forwards; }
.grid-trust-card { box-sizing:border-box; padding:18px 22px; border-radius:20px; border:1px solid rgba(217,119,87,.45); background:rgba(14,17,22,.82); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 18px 50px rgba(0,0,0,.55), 0 0 32px rgba(217,119,87,.18); display:flex; flex-direction:column; gap:6px; text-align:center; pointer-events:auto; cursor:default; -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; }
.grid-trust-note.is-leaving .grid-trust-card { pointer-events:none; }
.grid-trust-card.is-tapped { animation:grid-chat-bounce .45s cubic-bezier(.34,1.56,.64,1), grid-trust-glow .7s ease-out; }
.grid-trust-card.is-shaken { animation:grid-chat-shake .6s ease-in-out, grid-trust-glow .7s ease-out; }
@keyframes grid-trust-glow { 0% { box-shadow:0 18px 50px rgba(0,0,0,.55), 0 0 32px rgba(217,119,87,.18); border-color:rgba(217,119,87,.45); } 35% { box-shadow:0 18px 50px rgba(0,0,0,.55), 0 0 46px rgba(217,119,87,.55); border-color:rgba(217,119,87,.95); } 100% { box-shadow:0 18px 50px rgba(0,0,0,.55), 0 0 32px rgba(217,119,87,.18); border-color:rgba(217,119,87,.45); } }
.grid-trust-line { font-size:15.5px; line-height:1.4; color:#c9d1dc; }
.grid-trust-strong { font-size:18px; font-weight:800; line-height:1.3; color:#f6e3da; }
@keyframes grid-trust-in { from { opacity:0; transform:translate(-50%,-50%) translateY(14px) scale(.96); } to { opacity:1; transform:translate(-50%,-50%); } }
@keyframes grid-trust-float { from { transform:translate(-50%,-50%); } to { transform:translate(-50%,-50%) translateY(-10px); } }
@keyframes grid-trust-out { from { opacity:1; } to { opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  .grid-trust-note { transform:translate(-50%,-50%); animation:grid-trust-fade-in .4s ease-out forwards, grid-trust-out 1.6s ease-in 4.4s forwards; }
  .grid-trust-card.is-tapped, .grid-trust-card.is-shaken { animation:grid-trust-glow .7s ease-out; }
}
@keyframes grid-trust-fade-in { from { opacity:0; } to { opacity:1; } }
.grid-tile-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.grid-tile.is-hidden { background:#12161c; }
/* A badged square's gold rim (style A, Jay's pick): a gold line at the edge and a glow fading in a circle toward the center, on all four sides; over the name's dark fade (so the bottom edge glows too), under the badges. */
.grid-tile-glow { position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 50% 50%,rgba(255,196,64,0) 52%,rgba(255,196,64,.22) 72%,rgba(255,200,70,.62) 100%); box-shadow:inset 0 0 0 2px rgba(255,210,90,.95),inset 0 0 14px rgba(255,190,50,.6); }
/* The Top Inviter 🏆 (style B, Jay's pick): no badge, a soft round black shadow fading out behind it, and
   the cup itself glowing gold, so it reads on light and dark photos alike and looks like part of the app. */
.grid-tile-trophy { position:absolute; top:4px; left:4px; z-index:1; display:grid; place-items:center; width:40px; height:40px; font-size:21.5px; line-height:1;
  background:radial-gradient(circle,rgba(0,0,0,.6) 0%,rgba(0,0,0,.3) 45%,rgba(0,0,0,0) 72%); pointer-events:none; }
.grid-tile-trophy-cup { filter:drop-shadow(0 0 4px rgba(255,205,90,.9)); }
/* The cup sways a little and two small sparkles twinkle by turns at its corners. */
.grid-tile-trophy-cup { display:block; transform-origin:50% 85%; animation:grid-trophy-sway 3.2s ease-in-out infinite; }
@keyframes grid-trophy-sway { 0%,100% { transform:rotate(0) translateY(0); } 20% { transform:rotate(-9deg) translateY(-1px); } 40% { transform:rotate(7deg) translateY(-1.5px); } 60% { transform:rotate(-4deg) translateY(0); } 80% { transform:rotate(0) scale(1.06); } }
.grid-tile-trophy::before,.grid-tile-trophy::after { content:'✦'; position:absolute; color:#fff4cc; text-shadow:0 0 4px rgba(255,214,102,.95); line-height:1; opacity:0; animation:grid-trophy-sparkle 2.4s ease-in-out infinite; }
.grid-tile-trophy::before { top:3px; right:2px; font-size:10.5px; }
.grid-tile-trophy::after { bottom:5px; left:2px; font-size:8.5px; animation-delay:1.2s; }
@keyframes grid-trophy-sparkle { 0%,60%,100% { opacity:0; transform:scale(.3) rotate(0); } 75% { opacity:1; transform:scale(1.15) rotate(45deg); } 88% { opacity:.6; transform:scale(.8) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .grid-tile-trophy,.grid-tile-trophy-cup { animation:none; } .grid-tile-trophy::before,.grid-tile-trophy::after { animation:none; opacity:.8; } }
/* On Grid squares the 🏆 and 🤝 hold still, sparkles steady (Jay, October 21, 2026: nothing moves forever). */
.grid-tile > .grid-tile-trophy .grid-tile-trophy-cup { animation:none; }
.grid-tile > .grid-tile-trophy::before, .grid-tile > .grid-tile-trophy::after { animation:none; opacity:.8; }
/* The same 🏆 on a Top Inviter's Hush profile, a little larger, under the photo bars. */
.grid-tile-trophy.member-profile-trophy { top:40px; left:10px; z-index:2; width:52px; height:52px; font-size:26px; }
/* With one photo there are no photo bars, so the badges move up into their room (Jay, October 16, 2026). */
.member-profile-hero:not(.is-swipeable) > .grid-tile-trophy.member-profile-trophy { top:12px; }
/* The zodiac sign in its season, top right: a text character glowing blue (never the emoji), placed by its drawn
   edges (InvitedInZodiacMark in member-profile.js) so the room above it matches the room to its right. */
.grid-tile-zodiac { position:absolute; top:6px; right:8px; z-index:1; display:block; padding:0; font-size:32px; line-height:1; color:#bfe0ff;
  text-shadow:0 0 4px #6fb6ff, 0 0 10px rgba(80,160,255,.9), 0 0 18px rgba(80,160,255,.6); pointer-events:none; }
/* It slowly brightens, holds at its brightest, then slowly dims, over and over (5s, a breathing glow), with two
   tiny white sparkles rising from below it like fireflies (Jay, October 13, 2026); still, with Reduce Motion. */
.grid-tile-zodiac { animation:grid-zodiac-glow 5s ease-in-out infinite; }
@keyframes grid-zodiac-glow {
  0%,100% { color:#9cc4ee; text-shadow:0 0 3px rgba(111,182,255,.7), 0 0 8px rgba(80,160,255,.45), 0 0 14px rgba(80,160,255,.25); }
  40%,60% { color:#e6f3ff; text-shadow:0 0 5px #8cc6ff, 0 0 14px rgba(80,160,255,1), 0 0 26px rgba(80,160,255,.8); }
}
.grid-tile-zodiac::before,.grid-tile-zodiac::after { content:'✦'; position:absolute; bottom:-.05em; color:#fff; text-shadow:0 0 4px rgba(255,255,255,.95), 0 0 8px rgba(140,200,255,.8);
  line-height:1; opacity:0; pointer-events:none; }
/* Like fireflies: each starts low beside the sign and drifts slowly up, swaying a little, glowing on and fading out
   as it goes; the two run on different clocks so they never move together. */
.grid-tile-zodiac::before { right:-.12em; font-size:.26em; animation:grid-zodiac-firefly-a 6.5s ease-in-out infinite; }
.grid-tile-zodiac::after { left:-.18em; font-size:.2em; animation:grid-zodiac-firefly-b 8s ease-in-out 2.6s infinite; }
@keyframes grid-zodiac-firefly-a {
  0% { opacity:0; transform:translate(0,0) scale(.6); }
  20% { opacity:.9; transform:translate(-.25em,-1em) scale(1); }
  45% { opacity:.4; transform:translate(.35em,-2.4em) scale(.9) rotate(30deg); }
  65% { opacity:1; transform:translate(-.1em,-3.6em) scale(1.05) rotate(60deg); }
  85%,100% { opacity:0; transform:translate(.3em,-4.8em) scale(.6) rotate(90deg); }
}
@keyframes grid-zodiac-firefly-b {
  0% { opacity:0; transform:translate(0,0) scale(.6); }
  25% { opacity:.8; transform:translate(.3em,-1.3em) scale(1); }
  50% { opacity:.3; transform:translate(-.3em,-2.8em) scale(.85) rotate(-30deg); }
  70% { opacity:.95; transform:translate(.2em,-4em) scale(1) rotate(-60deg); }
  90%,100% { opacity:0; transform:translate(-.2em,-5.2em) scale(.6) rotate(-90deg); }
}
@media (prefers-reduced-motion: reduce) { .grid-tile-zodiac { animation:none; } .grid-tile-zodiac::before,.grid-tile-zodiac::after { animation:none; opacity:.8; } }
/* The Inviter 🤝 until the launch: the trophy's look and motion with a purple glow (the Inviter pill's color),
   beside the 🏆 when they have both. */
.grid-tile-trophy.is-handshake .grid-tile-trophy-cup { filter:drop-shadow(0 0 4px rgba(190,150,255,.95)); animation-delay:.8s; }
.grid-tile-trophy.is-handshake::before,.grid-tile-trophy.is-handshake::after { color:#f1e6ff; text-shadow:0 0 4px rgba(190,150,255,.95); }
.grid-tile-trophy.is-handshake::before { animation-delay:.6s; } .grid-tile-trophy.is-handshake::after { animation-delay:1.8s; }
.grid-tile-trophy.is-handshake.is-second { left:36px; }
.grid-tile-trophy.member-profile-trophy.is-handshake.is-second { left:58px; }
/* Online now: a shiny green dot (a light glint at its upper left, a soft green glow and a ring that pulses out every
   few seconds), always the leftmost thing at the square's top left; the 🏆 and 🤝 move over to make room for it
   (Jay, October 16, 2026). The same look on Hush chats (member-chat.css) and Hush profiles (.member-profile-online). */
.grid-tile-online,.member-profile-online,.grid-online-dot { border-radius:50%;
  background:radial-gradient(circle at 32% 28%,#f2fff6 0 12%,#8ff5b3 30%,#34c96b 66%,#1d9449 100%);
  box-shadow:0 0 0 2px rgba(0,0,0,.5),0 0 8px 1px rgba(76,224,128,.75); }
.grid-tile-online { position:absolute; top:8px; left:8px; z-index:2; width:14px; height:14px; }
.grid-tile-online::after,.member-profile-online::after,.grid-online-dot::after { content:''; position:absolute; inset:0; border-radius:50%; box-shadow:0 0 0 2px rgba(110,240,155,.85);
  animation:online-pulse 2.6s ease-out infinite; pointer-events:none; }
@keyframes online-pulse { 0% { transform:scale(1); opacity:.9; } 70%,100% { transform:scale(2.1); opacity:0; } }
.grid-tile:has(> .grid-tile-online) > .grid-tile-trophy { left:26px; }
.grid-tile:has(> .grid-tile-online) > .grid-tile-trophy.is-handshake.is-second { left:58px; }
/* The Filters sheet's Online row: the same dot, small, right after the word. */
.grid-online-dot { position:relative; display:inline-block; width:11px; height:11px; margin-left:9px; vertical-align:middle; flex:none; }
@media (prefers-reduced-motion: reduce) { .grid-tile-online::after,.member-profile-online::after,.grid-online-dot::after { animation:none; opacity:0; } }
/* On Grid squares and the Hush pills, the online dot is a plain green dot (Jay, October 21, 2026): no glint, glow or ring. */
.grid-tile-online, .grid-online-dot { background:#4cc38a; box-shadow:0 0 0 2px rgba(0,0,0,.45); }
.grid-tile-online { width:10px; height:10px; }
.grid-tile-online::after, .grid-online-dot::after { content:none; }
.grid-online-dot { width:8px; height:8px; margin-left:0; box-shadow:none; }
.grid-tile-caption { position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; gap:1px; padding:18px 7px 6px; background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,0)); }
.grid-tile-name { font-size:15px; font-weight:700; line-height:1.15; overflow-wrap:anywhere; }
.grid-tile.is-hidden .grid-tile-name { font-size:14px; font-style:italic; }
.grid-tile-distance { font-size:13px; color:#dfe6e1; }
.grid-empty, .grid-message { display:flex; flex-direction:column; align-items:center; gap:10px; padding:28px 20px; text-align:center; color:#bdc5d0; }
.grid-empty p, .grid-message p { margin:0; }
.grid-primary { display:block; width:100%; max-width:340px; height:50px; margin:0; border:0; border-radius:25px; background:#d97757; color:#1a0f0b; font-size:18px; font-weight:800; cursor:pointer; }
.grid-primary:disabled { opacity:.6; }
.grid-secondary { height:40px; margin:0; padding:0 18px; border:1px solid #d97757; border-radius:20px; background:transparent; color:#cfe0f5; font-size:16px; font-weight:700; cursor:pointer; }
.grid-more { min-height:20px; margin:14px 0 0; text-align:center; color:var(--muted, #8a8f98); font-size:15px; }
.grid-sheet-soon { margin:14px 0 2px; color:#9aa6b6; font-size:15px; text-align:center; }
.grid-limit-note { margin:16px 22px 4px; color:#9aa6b6; font-size:15px; line-height:1.45; text-align:center; }
.grid-welcome, .grid-off { display:flex; flex-direction:column; align-items:center; gap:14px; padding:40px 22px 24px; text-align:center; }
.grid-welcome h2, .grid-off h2 { margin:0; font-size:27px; }
.grid-lead { margin:0; color:#c7d0dc; line-height:1.5; }
.grid-welcome-art, .grid-off-art { width:120px; height:120px; border-radius:18px; background:
  linear-gradient(#0d1014,#0d1014) 33.3% 0/2px 100% no-repeat, linear-gradient(#0d1014,#0d1014) 66.6% 0/2px 100% no-repeat,
  linear-gradient(#0d1014,#0d1014) 0 33.3%/100% 2px no-repeat, linear-gradient(#0d1014,#0d1014) 0 66.6%/100% 2px no-repeat, #232b36; }
.grid-off-art { opacity:.5; }
.grid-points { margin:4px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; text-align:left; color:#e1e7ef; font-size:16.5px; line-height:1.4; }
.grid-points li { position:relative; padding-left:22px; }
.grid-points li::before { content:''; position:absolute; left:4px; top:7px; width:8px; height:8px; border-radius:50%; background:#d97757; }
.grid-status { min-height:1em; margin:0; color:#ffb4b4; font-size:15.5px; }
.grid-off-rows { align-self:stretch; padding:2px 14px; border:1px solid #2c3440; border-radius:14px; background:#141920; text-align:left; }
.grid-off-row, .grid-sheet-row { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.grid-off-row + .grid-off-row { border-top:1px solid #262c35; }
.grid-off-label { display:flex; flex-direction:column; gap:2px; }
.grid-off-detail { font-size:15px; color:#9aa6b6; }
.grid-off-detail.is-off { color:#f0b36a; }
.grid-check { color:#4cd17a; font-weight:800; }
.grid-switch { position:relative; flex:none; width:51px; height:31px; margin:0; padding:0; border:0; border-radius:16px; background:#3a434d; cursor:pointer; }
.grid-switch.is-on { background:#d97757; }
.grid-switch-knob { position:absolute; top:2px; left:2px; width:27px; height:27px; border-radius:50%; background:#fff; transition:transform .2s ease; }
.grid-switch.is-on .grid-switch-knob { transform:translateX(20px); }
body.grid-sheet-open .app-tabs { display:none; }
/* Over the app frame itself (Jay, October 21, 2026): the screen's edges and the phone's home bar are outside it (body's
   padding, top to bottom as body.app-framed is), so the sheet's bottom sits flush with the frame's. */
.grid-sheet-backdrop { position:fixed; inset:0; z-index:20; display:flex; align-items:flex-end; background:rgba(0,0,0,.55); }
body.app-framed .grid-sheet-backdrop { top:calc(var(--app-top,0px) + 4px + env(safe-area-inset-top,0px)); bottom:auto; left:0; right:0;
  width:min(440px, calc(100% - 8px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))); margin:0 auto;
  height:calc(var(--app-height,100dvh) - 8px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); border-radius:14px; overflow:hidden; }
body.app-framed.keyboard-open .grid-sheet-backdrop { height:calc(var(--app-height,100dvh) - 8px - env(safe-area-inset-top,0px)); }
.grid-sheet { width:100%; max-height:88%; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; box-sizing:border-box; padding:10px 18px 18px; border-top:1px solid #2c3440; border-radius:20px 20px 0 0; background:#141920; }
.grid-sheet-handle { display:block; width:40px; height:5px; margin:0 auto 10px; border-radius:3px; background:#3a434d; }
.grid-sheet h4 { margin:0 0 4px; font-size:21.5px; }
.grid-sheet h5 { margin:16px 0 0; font-size:14px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#9aa6b6; }
.grid-sheet-row { border-bottom:1px solid #262c35; }
.grid-sheet-label { margin:14px 0 8px; }
.grid-sheet-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.grid-sheet-clear { margin:0; padding:6px 0; border:0; background:none; color:#d97757; font-size:16px; font-weight:700; cursor:pointer; }
.grid-heights { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.grid-height { display:flex; flex-direction:column; gap:4px; color:#9aa6b6; font-size:14px; font-weight:600; }
.grid-height select { height:40px; padding:0 10px; border:1px solid #363e4a; border-radius:12px; background:#141920; color:#e6ebf2; font-size:16px; font-weight:700; }
.grid-single-wrap { margin-bottom:4px; }
/* "Include people who didn't specify" under each filter that's set (member-grid.js includeBox). */
.grid-include { display:flex; align-items:center; gap:10px; width:100%; margin:10px 0 2px; padding:4px 0; border:0; background:none; color:#c9d1db; font-size:15.5px; text-align:left; cursor:pointer; }
.grid-include-box { display:inline-flex; align-items:center; justify-content:center; flex:none; width:22px; height:22px; border:2px solid #4a5563; border-radius:6px; color:#0d1117; font-size:14px; font-weight:800; }
.grid-include.is-on .grid-include-box { border-color:var(--grid-accent); background:var(--grid-accent); color:#1a0f0b; }
.grid-single-wrap select { width:100%; height:46px; }
/* A locked Plus filter's dropdown (member-grid.js): looks like the select, a tap opens the Plus sheet. */
.grid-locked-select { width:100%; height:46px; padding:0 10px; border:1px solid #363e4a; border-radius:12px; background:#141920; color:#e6ebf2; font-size:16px; font-weight:700; text-align:left; cursor:pointer; }
.grid-choices { display:flex; flex-wrap:wrap; gap:6px; }
.grid-choice { height:36px; margin:0; padding:0 12px; border:1px solid #363e4a; border-radius:12px; background:transparent; color:#d7dee8; font-size:15px; font-weight:600; cursor:pointer; }
.grid-choice.is-on { border-color:#d97757; background:#d97757; color:#0b0d12; }
/* A long choice list (Into) folds into a dropdown: a row with the count picked and a chevron. */
.grid-fold { margin-top:0; }
.grid-fold-summary, .member-profile-fold-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:40px; padding:0 12px; border:1px solid #363e4a; border-radius:12px; background:#141920; color:#e6ebf2; font-size:16px; font-weight:700; list-style:none; cursor:pointer; }
.grid-fold-summary::-webkit-details-marker, .member-profile-fold-summary::-webkit-details-marker { display:none; }
/* The same chevron as the dropdowns (app.css), drawn with two borders; it flips when open. */
.grid-fold-summary::after, .member-profile-fold-summary::after { content:''; flex:none; width:8px; height:8px; margin:0 3px 4px 0; border-right:2px solid #9aa6b6; border-bottom:2px solid #9aa6b6; border-radius:1px; transform:rotate(45deg); transition:transform .2s ease, margin .2s ease; }
.grid-fold[open] > .grid-fold-summary::after, .member-profile-fold[open] > .member-profile-fold-summary::after { margin:4px 3px 0 0; transform:rotate(225deg); }
@media (prefers-reduced-motion: reduce) { .grid-fold-summary::after, .member-profile-fold-summary::after { transition:none; } }
.grid-fold > .grid-choices, .member-profile-fold > .member-profile-chips { margin-top:10px; }
.grid-sheet > .grid-secondary:last-child { margin-top:18px; }
.grid-sheet-note { margin:8px 0 14px; color:#9aa6b6; font-size:15px; line-height:1.45; }
.grid-sheet > .grid-secondary { display:block; width:100%; }
.grid-sheet > .grid-primary { max-width:none; margin-bottom:10px; }
/* The Lobby only connects members on the Grid, so its switch and its sheet wear the Grid's clay. */
.grid-lobby .grid-switch.is-on { background:var(--grid-accent); }
.grid-lobby-sheet .grid-primary { background:var(--grid-accent); color:#1a0f0b; }
.grid-lobby-sheet .grid-secondary { border-color:var(--grid-accent); color:#f2c4b2; }
@media (prefers-reduced-motion: reduce) { .grid-switch-knob { transition:none; } }

/* Sign in: the card sits in the middle of the screen (it moves up, and scrolls, when the keyboard is open). */
.app-framed .app-scroll:has(> #signInView:not(.hidden)) { display:flex; flex-direction:column; }
.app-framed #signInView:not(.hidden) { margin:auto 0; }

/* The profile's button in the header bar, across from "You're InvitedIn" where the ☰ is (hidden while a profile is open;
   member-profile.js toHeader), so it stays in reach however far the profile scrolls: the gear on your own profile, ⋯ on
   anyone else's. Plain on the black bar, no circle behind it. Where there's no header, it sits in the photo's corner. */
.portal-header > .member-profile-more { top:6px; right:8px; z-index:7; width:36px; height:36px; background:none; box-shadow:none; }
.member-profile-gear { display:flex; align-items:center; justify-content:center; font-size:23.5px; }
.member-profile-gear-icon { line-height:1; }
/* ⋯: three dots that hop one after another when tapped (is-hopping). */
.member-profile-dots { display:flex; align-items:center; justify-content:center; gap:4px; }
.member-profile-dot { width:5px; height:5px; border-radius:50%; background:currentColor; }
.member-profile-dots.is-hopping .member-profile-dot { animation:profile-dot-hop .5s cubic-bezier(.3,1.5,.5,1) both; }
.member-profile-dots.is-hopping .member-profile-dot:nth-child(2) { animation-delay:.07s; }
.member-profile-dots.is-hopping .member-profile-dot:nth-child(3) { animation-delay:.14s; }
@keyframes profile-dot-hop { 0% { transform:none; } 35% { transform:translateY(-7px) scale(1.3); } 65% { transform:translateY(1px) scale(.95); } 100% { transform:none; } }
@keyframes profile-dot-fade { from { opacity:.35; } }
/* ⋯ (or the gear, where there's no header) sits in the photo's top corner, so the photo bars stop short of it. */
.member-profile-hero:has(.member-profile-gear) .member-profile-bars { right:68px; }
.member-profile-hero:has(.member-profile-more:not(.member-profile-gear)) .member-profile-bars { right:62px; }
/* While editing, a bar in the profile's color (blue, or clay on the Hush profile) shows under the gear. */
.member-profile-gear::after { content:""; position:absolute; left:50%; bottom:-5px; width:22px; height:3px; margin-left:-11px; border-radius:2px; background:#d97757; transform:scaleX(0); transition:transform .2s ease; }
.member-profile-gear.is-grid::after { background:var(--grid-accent); }
.member-profile-gear[aria-pressed=true]::after { transform:scaleX(1); }
/* A tap on the gear pops it and spins it half a turn (member-profile.js adds is-spinning when the editor opens or closes). */
.member-profile-gear.is-spinning { animation:profile-gear-pop .45s cubic-bezier(.3,1.6,.5,1); }
.member-profile-gear.is-spinning .member-profile-gear-icon { display:inline-block; animation:profile-gear-spin .55s cubic-bezier(.2,.8,.2,1); }
@keyframes profile-gear-pop { 0% { transform:scale(.8); } 60% { transform:scale(1.12); } 100% { transform:scale(1); } }
@keyframes profile-gear-spin { from { transform:rotate(-180deg); } to { transform:rotate(0); } }
/* Editing your profile is a sheet over it now (.member-profile-edit-sheet; Jay, October 21, 2026). */
@media (prefers-reduced-motion: reduce) {
  .member-profile-gear::after { transform:none; opacity:0; transition:opacity .25s ease; }
  .member-profile-gear[aria-pressed=true]::after { opacity:1; }
  .member-profile-gear.is-spinning, .member-profile-gear.is-spinning .member-profile-gear-icon { animation:none; }
  .member-profile-dots.is-hopping .member-profile-dot { animation:profile-dot-fade .25s ease both; }
}

.member-profile-about { margin:0 16px; padding:14px 16px; border:1px solid #2c3440; border-radius:14px; background:#141920; }
.member-profile-about-title { margin:0 0 6px; font-family:inherit; font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:#8f9bab; }
/* A Hush profile's section headers (Headline, Intent, Details, ...) wear the Grid's clay. */
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-about-title { color:#e99b80; }
.member-profile-about-text { margin:0; color:#e6ebf2; font-size:17px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.member-profile-about-empty { margin:0; color:#8d98a7; font-size:16px; }
.member-profile-about-input { display:block; width:100%; box-sizing:border-box; margin:0; padding:10px 12px; border:1px solid #343b46; border-radius:12px; background:#0d1014; color:#f5f5f5; font:inherit; font-size:17px; line-height:1.45; resize:vertical; }
.member-profile-about-actions { display:flex; align-items:center; gap:8px; margin-top:10px; }
.member-profile-about-count { margin-right:auto; color:#8d98a7; font-size:14.5px; }
.member-profile-about-cancel, .member-profile-about-save { height:38px; margin:0; padding:0 16px; border-radius:19px; font-size:16px; font-weight:700; cursor:pointer; }
.member-profile-about-cancel { border:1px solid #343b46; background:transparent; color:#e6ebf2; }
.member-profile-about-save { border:0; background:#d97757; color:#1a0f0b; }
.member-profile-about-save:disabled { opacity:.6; }

/* Your Hush photos in the gear's editor. */
.member-profile-grid-photos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.member-profile-grid-photo { position:relative; aspect-ratio:3/4; border-radius:12px; overflow:hidden; background:#161c24; }
.member-profile-grid-photo-main { display:block; width:100%; height:100%; margin:0; padding:0; border:0; background:transparent; }
/* Change on the main photo (Jay, November 1, 2026): the first photo is always main, and this replaces it. */
.member-profile-grid-photo-change { position:absolute; right:6px; bottom:6px; min-height:32px; padding:0 12px; border:0; border-radius:16px; background:rgba(13,16,20,.85); color:#f5f5f5; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.member-profile-grid-photo-main img { display:block; width:100%; height:100%; object-fit:cover; }
.member-profile-grid-photo.is-pending img { opacity:.55; }
.member-profile-grid-photo-tag { position:absolute; left:6px; bottom:6px; max-width:calc(100% - 12px); padding:3px 8px; border-radius:10px; background:rgba(13,16,20,.8); color:#e6eefa; font-size:13px; font-weight:700; pointer-events:none; }
.member-profile-grid-photo-tag.is-review { top:6px; bottom:auto; color:#f3d48a; }
.member-profile-grid-photo-remove { position:absolute; top:4px; right:4px; width:32px; height:32px; margin:0; padding:0; border:0; border-radius:50%; background:rgba(13,16,20,.75); color:#fff; font-size:16px; cursor:pointer; }
.member-profile-grid-photo-tag.is-review ~ .member-profile-grid-photo-remove { top:auto; bottom:4px; }
.member-profile-grid-photo-add { aspect-ratio:3/4; margin:0; padding:0; border:1px dashed #4a5564; border-radius:12px; background:transparent; color:#d97757; font-size:30px; cursor:pointer; }
.member-profile-grid-photo-add:disabled { opacity:.6; cursor:default; }
.member-profile-editor .hidden { display:none; }
/* The Grid before you have a Grid photo. */
.grid-needs-photo-art { width:120px; height:160px; margin:0; padding:0; border:2px dashed #4a5564; border-radius:16px; background:transparent; color:#d97757; font-size:40px; cursor:pointer; }
.member-profile-sheet-status.is-info { color:#9aa6b6; }
/* Grid settings (a page in the ☰ menu), and the link to it from the Grid's Filters. */
.grid-settings .grid-sheet-row { min-height:52px; box-sizing:border-box; padding:10px 14px; border-bottom:1px solid #1f252d; }
/* Grid settings while it loads (openSettingsIn): rows about as tall as the real ones, a name, a note and a switch. */
.grid-settings-section .grid-settings-skeleton-row { min-height:102px; }
.grid-settings-skeleton-text { flex:1; display:flex; flex-direction:column; gap:10px; }
.grid-settings-skeleton-line { width:62%; height:15px; border-radius:7px; }
.grid-settings-skeleton-line.is-note { width:88%; height:12px; opacity:.7; }
.grid-settings-skeleton-switch { flex:none; width:51px; height:31px; border-radius:16px; }
.grid-settings .chat-settings-card > :last-child { border-bottom:0; }
.grid-settings-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.grid-settings-name { font-size:17px; font-weight:400; color:#f1f3f5; }
.grid-settings-text > .grid-sheet-note { margin:0; font-size:14px; line-height:1.35; color:#a7b2c1; }
.grid-settings .grid-incognito-plus { box-sizing:border-box; min-height:52px; padding:10px 14px; background:none; color:#f1f3f5; }
.grid-settings > .chat-settings-section > .grid-sheet-note { margin:10px 2px 0; font-size:14px; color:#a7b2c1; }
.grid-settings-notes { margin-top:6px; }
.grid-settings-status { margin:6px 0 0; color:#f2a7a7; font-size:15px; }
.grid-settings-status:empty { display:none; }
.grid-sheet-link { display:block; width:100%; min-height:48px; margin:4px 0 0; padding:0 4px; border:0; border-bottom:1px solid #262c35; background:transparent; color:#d97757; font:inherit; font-size:17px; font-weight:700; text-align:left; cursor:pointer; }
/* Loading placeholders that have their own background (Grid squares, a profile's photo area) still glow. */
.grid-tile.ui-skeleton, .member-profile-hero.ui-skeleton { background:linear-gradient(90deg,#1a2029 0%,#262e39 50%,#1a2029 100%); background-size:200% 100%; animation:ui-skeleton-glow 1.3s ease-in-out infinite; }
/* The name row (35px) and its line (28px), so the caption keeps its height when the profile arrives. */
.member-profile-name-skeleton { width:58%; height:30px; margin:2px 0 3px; border-radius:8px; }
.member-profile-line-skeleton { width:34%; height:16px; margin:6px 0; border-radius:6px; }
.member-profile-about-skeleton { display:grid; gap:9px; margin:0 16px; padding:16px; border:1px solid #232a33; border-radius:14px; }
.member-profile-about-skeleton .ui-skeleton { height:14px; border-radius:6px; }
@media (prefers-reduced-motion: reduce) { .grid-tile.ui-skeleton, .member-profile-hero.ui-skeleton { animation:none; background:#1f2630; } }

/* ---------- The Grid's color: clay ----------
   Grid profiles and Grid chats wear it, so members can tell them from real profiles and chats at
   a glance (real ones keep the blue). */
:root { --grid-accent:#d97757; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-message { border-color:var(--grid-accent); background:var(--grid-accent); color:#1a0f0b; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-nav .chat-nav-back { color:var(--grid-accent); }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-bar.is-current::before { background:var(--grid-accent); }
/* The Hush and Social markers everywhere else: a glowing clay rounded square (it replaced 🔸, then a round dot that
   read like "new message" or "online now"; Jay, October 12, 2026) and a glowing blue one. */
.hush-dot, .social-dot { display:inline-block; flex:none; width:9px; height:9px; margin-right:6px; border-radius:2.5px; vertical-align:middle; position:relative; top:-1px; }
.hush-dot { background:#e8875f; box-shadow:0 0 6px rgba(217,119,87,.75); }
.social-dot { background:#e59a7d; box-shadow:0 0 6px rgba(217,119,87,.75); }
/* Your own Hush profile's YOU tag wears the Grid's clay (the Social profile's stays blue). */
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .chat-you { background:var(--grid-accent); color:#1a0f0b; }
/* Your Hush profile's editor wears the Grid's clay instead of the blue (Save, chosen chips, counts, ＋, fields). */
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-about-save { color:var(--grid-accent); }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-chip[aria-pressed=true] { border-color:var(--grid-accent); background:#2c201b; color:#f6e3da; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-field-count { color:#ee9f84; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-grid-photo-add { color:var(--grid-accent); border-color:#5c463d; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-input, :is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-about-input { border-color:#7a5a4a; background:#141110; }
/* Display Name: the rule sits in the box as placeholder text, light enough to read (Jay, November 1, 2026). */
.member-profile-name-input::placeholder { color:#9a8f86; opacity:1; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-input:focus, :is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-about-input:focus { border-color:var(--grid-accent); outline:none; }
/* Length and Girth while a Size is picked (drawDetailFields' `clears`): grayed out and empty. */
.member-profile-field.is-off { opacity:.4; }
.member-profile-input:disabled { cursor:not-allowed; }
:is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-switch input:checked { background:var(--grid-accent); }
.chat-panel .chat-conversation.is-grid .chat-send { background:var(--grid-accent); color:#fff; }
.chat-panel .chat-conversation.is-grid .chat-attach { color:var(--grid-accent); background:#1d1816; border-color:#4a3a33; }
.chat-panel .chat-conversation.is-grid .chat-nav-back { color:var(--grid-accent); }
.chat-panel .chat-conversation.is-grid .chat-row-mine .chat-bubble { background:#4a332d; }
.chat-panel .chat-conversation.is-grid .chat-input-box { background:#1d1816; border-color:#4a3a33; }
.chat-panel .chat-conversation.is-grid .chat-input-box:focus-within { border-color:var(--grid-accent); }
.chat-panel .chat-conversation.is-grid .chat-pill { background:#1f1916; border-color:#4a3a33; color:#ecdcd3; }
.chat-panel .chat-conversation.is-grid .chat-pill:active { background:#2c221d; }

/* Invite friends (menu page): invitations left, the create button and your links. */
.invites-intro { margin:0; font-size:16px; line-height:1.5; color:#c4ccd6; }
.invites-count { display:grid; gap:2px; padding:14px 16px; border:1px solid #262c35; border-radius:12px; }
.invites-count strong { font-size:25.5px; color:#f0eee9; }
.invites-count small { font-size:14.5px; color:#9aa6b6; }
.invites-status { margin:0; min-height:1px; font-size:15px; color:#d97757; overflow-wrap:anywhere; }
.invites-status:empty { display:none; }
.invites-row { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid #262c35; }
.invites-row:last-child { border-bottom:0; }
.invites-row-text { flex:1; min-width:0; display:grid; gap:2px; }
.invites-row-text strong { font-size:16.5px; color:#f0eee9; }
.invites-row-text small { font-size:14px; color:#9aa6b6; }
/* An open link's 24-hour countdown (member-invites.js), ticking every second; digits keep their width so it doesn't jiggle. */
.invites-row-text .invites-expires { font-weight:700; color:#f3c3b0; font-variant-numeric:tabular-nums; }
.invites-row-text .invites-expires.is-expired { color:#e58a8a; }
.invites-row.is-expired .invites-row-text strong { color:#9aa6b6; }
/* A joined friend's stage (Jay, October 16, 2026): verified in green, a step they still have to take in amber. */
.invites-row.is-verified .invites-row-text small { color:#7fd49a; }
.invites-row.is-setup .invites-row-text small, .invites-row.is-unverified .invites-row-text small { color:#f0c27a; }
.invites-row.is-gone .invites-row-text strong { color:#9aa6b6; }
.member-portal.app-framed .invites-row .invites-share { flex:none; width:auto; min-height:0; height:34px; margin:0; padding:0 14px; font-size:15px; }
.member-portal.app-framed .invites-row .invites-back { flex:none; width:auto; margin:0; padding:0 4px; font-size:14.5px; color:#9aa6b6; }
/* The sign-in page's trademark and copyright line (member.js shows it from October 26, 2026). */
.sign-in-legal { margin:18px 0 6px; text-align:center; font-size:13px; letter-spacing:.2px; color:#7d8794; }
.sign-in-legal a { color:inherit; text-decoration:underline; text-underline-offset:2px; }


/* Grid settings › What is the Grid? */
.grid-settings-about { margin:14px 0 6px; }
.chat-settings-home { margin:14px 0 6px; }
.chat-home-screen-page .chat-home-screen-text { margin:14px 0; color:#c9d1db; font-size:17px; line-height:1.5; }
.grid-about-text { margin:14px 0 0; color:#c9d1db; font-size:17px; line-height:1.5; }
.grid-about-text strong { color:#f0eee9; }

/* The Grid header's Invite a Friend button (solid clay, the Grid's color). */
.invites-limited { align-self:flex-start; display:inline-block; margin:8px 0 2px; padding:5px 11px; border:1px solid rgba(217,119,87,.6); border-radius:999px; background:rgba(217,119,87,.14); color:#f3c3b0; font-size:14px; font-weight:700; letter-spacing:.02em; }
/* Adult Hush photos for members who haven't turned on "Show adult content" (Account settings): black,
   with "Hidden by your settings" over it (18+ on small photos). The server sends no link for these. */
.adult-cover { display:grid; place-items:center; box-sizing:border-box; padding:6px; background:#000; color:#c9d1dc; font-size:14px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; text-align:center; }
.grid-tile > .adult-cover { position:absolute; inset:0; }
.adult-cover.is-small { width:100%; height:100%; padding:0; font-size:13px; letter-spacing:.02em; }
.chat-avatar.chat-avatar-adult { background:#000; }
.adult-cover.is-hero { position:absolute; inset:0; display:none; background:none; font-size:17px; pointer-events:none; }
.member-profile-hero.is-adult > .adult-cover.is-hero { display:grid; }
.member-profile-photo.is-adult { filter:brightness(0); }
/* The end of the Grid: very blurred made-up squares (member-grid.js) under a floating "Come back later for more". */
.grid-blur-tile { position:relative; display:block; aspect-ratio:1/1; overflow:hidden; background:#161c24; pointer-events:none; }
.grid-blur-tile img { position:absolute; inset:-12%; width:124%; height:124%; object-fit:cover; filter:blur(11px) saturate(1.1) brightness(1.35); }
.grid-blur-tile:nth-child(3n+2) img { filter:blur(11px) saturate(1) brightness(1.15) hue-rotate(-12deg); }
.grid-blur-tile:nth-child(4n+3) img { filter:blur(11px) saturate(1.2) brightness(1.25) hue-rotate(10deg); }
/* Real people past the limit: only lightly blurred, name and distance too, so they read as real profiles, but nothing to tap (pointer-events:none). */
.grid-blur-tile.is-real .grid-tile-caption { filter:blur(3px); }
.grid-blur-tile.is-hidden .grid-tile-name { font-size:14px; font-style:italic; }
.grid-blur-tile.is-real img { inset:-4%; width:108%; height:108%; filter:blur(3px) saturate(1.05) brightness(1.05); }
.grid-end-card.is-limit { width:min(320px, calc(100% - 48px)); font-size:17px; line-height:1.4; text-wrap:balance; }
.grid-end { position:relative; margin-top:2px; overflow:hidden; }
/* The end of the Grid without the limit: "Turn on the Lobby" with a Turn on button (Lobby off), or "ask a member to nominate you". */
.grid-end-card:is(.is-lobby,.is-nominate) { width:min(320px, calc(100% - 48px)); font-size:17px; line-height:1.4; text-wrap:balance; }
.grid-end-card.is-lobby strong { display:block; margin-bottom:14px; }
.grid-end-lobby.grid-primary { height:46px; margin:0 auto; background:#D97757; color:#1a0f0b; font-size:17px; }
:is(#portalGridPanel,[data-copy-of="portalGridPanel"]).grid-panel:has(.grid-end) { padding-bottom:0; }
/* The blurred squares fade to black toward the bottom. */
.grid-end::after { content:''; position:absolute; left:0; right:0; bottom:0; height:70%; background:linear-gradient(to bottom, rgba(0,0,0,0), #000 92%); pointer-events:none; }
.grid-end-card { z-index:2; }
.grid-end-card { position:absolute; left:50%; top:50%; z-index:1; box-sizing:border-box; width:max-content; max-width:calc(100% - 48px); padding:18px 26px; border-radius:20px; border:1px solid rgba(217,119,87,.45); background:rgba(14,17,22,.78); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); box-shadow:0 18px 50px rgba(0,0,0,.55), 0 0 32px rgba(217,119,87,.16); color:#f2f4f7; font-size:18px; text-align:center; transform:translate(-50%,-50%); animation:grid-end-float 3.2s ease-in-out infinite alternate; }
@keyframes grid-end-float { from { transform:translate(-50%,-50%); } to { transform:translate(-50%,calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .grid-end-card { animation:none; } }
/* Block's optional reason (js/block-reasons.js), in the profile's and the chat's Block sheets. */
.block-reasons { display:flex; flex-direction:column; gap:8px; margin:4px 0 12px; }
.block-reasons-label { margin:0; font-size:14px; color:#8b97a7; }
.block-reasons-row { display:flex; flex-wrap:wrap; gap:8px; }
.block-reason { height:36px; margin:0; padding:0 14px; border:1px solid #343b46; border-radius:18px; background:transparent; color:#e6ebf2; font:inherit; font-size:16px; font-weight:600; cursor:pointer; }
.block-reason[aria-pressed=true] { border-color:#e5484d; background:rgba(229,72,77,.16); color:#fff; }

/* At the bottom of both profiles: "What's the difference between the Social profile and the Hush profile?" */
/* Like the chats' "What's the difference" link (.chat-two-profiles-link; Jay, October 19, 2026): small, gray, no underline. */
.member-profile-two-link { display:block; max-width:100%; margin:22px auto 4px; padding:2px 4px; background:none; border:0; color:#8d97a5; font-size:14px; line-height:1.3; white-space:normal; text-decoration:none; text-align:center; cursor:pointer; }
.member-profile-two-link:hover, .member-profile-two-link:focus-visible { color:#c9d1dc; text-decoration:underline; }

/* Social vs. Hush (member-portal.js): the 🎭 as a big hero on top, softly glowing in both profiles' colors. */
.two-profiles-hero { font-size:96px; line-height:1; text-align:center; margin:8px 0 6px;
  filter:drop-shadow(-10px 0 18px rgba(217,119,87,.45)) drop-shadow(10px 0 18px rgba(217,119,87,.45)); }
.two-profiles-title { text-align:center; }
/* What is the Grid?: the same hero with a 🌐, tinted the Grid's orange (clay) and glowing in it. */
/* About InvitedIn: the 🔑 glowing blue and orange like the 🎭, and a heading for each part. */
.about-hero { filter:drop-shadow(0 0 18px rgba(217,119,87,.45)) drop-shadow(0 0 26px rgba(217,119,87,.3)); }
/* Health & Safety (health-safety.js): the "Need help now?" box (also on Help), links and the small print. */
.health-hero { filter:drop-shadow(0 0 18px rgba(240,128,128,.4)); }
.health-crisis { margin:18px 0 6px; padding:14px 14px 10px; border:1px solid rgba(240,128,128,.45); border-radius:16px; background:linear-gradient(180deg,rgba(240,128,128,.12),rgba(240,128,128,.04)); text-align:left; }
.health-crisis-title { margin:0 0 8px; font-size:18px; font-weight:700; color:#ffd6d6; }
.health-crisis-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px solid rgba(255,255,255,.08); }
.health-crisis-row:first-of-type { border-top:0; }
.health-crisis-text { display:flex; flex-direction:column; min-width:0; }
.health-crisis-text strong { color:#f2f4f7; font-size:16px; }
.health-crisis-text small { color:#aab4c0; font-size:14px; }
.health-crisis-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; flex:0 1 auto; }
.health-call { padding:7px 12px; border-radius:999px; background:#f08080; color:#1b0f0f; font-size:14.5px; font-weight:700; text-decoration:none; white-space:nowrap; }
.health-crisis-note { margin:8px 0 0; color:#aab4c0; font-size:14px; }
.health-links { display:flex; flex-direction:column; gap:8px; margin:12px 0 0; }
.health-link { display:block; padding:11px 14px; border:1px solid rgba(217,119,87,.35); border-radius:12px; background:rgba(217,119,87,.08); color:#cfe0f5; font-size:16px; text-decoration:none; text-align:left; }
.health-disclaimer { margin:24px 0 8px; color:#8d97a3; font-size:14px; line-height:1.45; }
#portalHelpCrisis .health-crisis { margin-top:12px; }
.about-heading { margin:22px 0 6px; font-size:18px; font-weight:700; color:#f2f4f7; }
/* What is the Grid?: the two stacked grids (images/two-grids.svg), glowing blue and clay. */
.grid-about-hero { filter:none; }
.grid-about-art { display:block; width:min(220px,70%); height:auto; margin:0 auto; filter:drop-shadow(0 0 14px rgba(217,119,87,.35)) drop-shadow(0 0 20px rgba(217,119,87,.3)); }

/* Every "‹ Back" in the member app (menu pages, events, poll results, Bids, chats, the Grid Chat teaser) is the same
   floating pill as the profiles' (Jay, October 20, 2026): black, with an edge in its text color, so each screen's color
   (blue, or the Grid's clay on Hush screens) draws both. */
.member-portal.app-framed :is(.portal-menu-nav,.chat-nav-bar,.member-event-nav,.member-profile-nav,.grid-chat-nav) .chat-nav-back {
  display:flex; align-items:center; gap:2px; width:auto; min-height:0; height:48px; margin:0; padding:0 16px 0 12px; border:1px solid currentColor; border-radius:24px;
  background:#0d1014; box-sizing:border-box; outline:0;
  -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:0 6px 20px rgba(0,0,0,.6);
  font-size:17px; font-weight:700; line-height:1; letter-spacing:0;
}
/* A profile's Back is one of the bottom row's three equal buttons (Jay, October 21, 2026): secondary, outlined in the
   side's color (clay on a Hush profile, blue on a Social one). */
.member-portal.app-framed :is(#memberProfileView,[data-copy-of="memberProfileView"]).is-grid .member-profile-nav .chat-nav-back {
  flex:1 1 0; justify-content:center; height:48px; padding:0 10px; border:1px solid #D97757; outline:0; border-radius:24px; background:#1a120f; color:#f3c4b2; font-weight:700;
  -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none;
}
.member-portal.app-framed :is(#memberProfileView,[data-copy-of="memberProfileView"]):not(.is-grid) .member-profile-nav .chat-nav-back {
  flex:1 1 0; justify-content:center; height:48px; padding:0 10px; border:1px solid #d97757; outline:0; border-radius:24px; background:#1a120f; color:#f3d5c8; font-weight:700;
  -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none;
}
/* A menu page opened from a profile (Social vs. Hush, openTwoProfiles in member-portal.js) goes over the
   profile, whose header button hides meanwhile so it can't open the profile's options behind the page. */
.member-portal.app-framed .portal-navigation.is-over-profile:not(.hidden) { z-index:9; }
/* Your profile opened from the menu covers it (the menu sits at 9 over the floating tabs since October 21, 2026, which
   put it over a profile at 5, so a tap on your photo there seemed to do nothing); Social vs. The Room opened from a
   profile (is-over-profile) still covers the profile. */
.app-frame:has(#portalNavigation:not(.hidden):not(.is-over-profile)) :is(#memberProfileView,[data-copy-of="memberProfileView"]):not(.hidden) { z-index:10; }
.member-portal:has(.portal-navigation.is-over-profile:not(.hidden)) .portal-header > .member-profile-more { visibility:hidden; }
/* Staff and InvitedIn admins: a Staff portal button in the header, at the right next to the ☰ (member-portal.js).
   It steps aside wherever the ☰ does (profiles, open chats, events, menu pages). */
.portal-staff-button { margin:0 8px 0 auto; padding:5px 11px; border:1px solid #343b46; border-radius:999px; color:#d7dbe1; font-size:14px; font-weight:600; line-height:1.2; text-decoration:none; white-space:nowrap; }
.portal-staff-button.hidden { display:none; }
.app-framed .portal-header > .portal-staff-button { position:relative; z-index:7; }
body.member-profile-open .portal-staff-button, body.chat-conversation-open .portal-staff-button, body:has(#memberEventView:not(.hidden)) .portal-staff-button,
body:has(#portalGroupsPanel .bids-screen) .portal-staff-button, body.grid-chat-open .portal-staff-button,
.portal-header:has(.portal-menu-toggle-off) .portal-staff-button, .portal-header:has(.portal-menu-toggle[aria-expanded=true]) .portal-staff-button { visibility:hidden; }
/* The Plus countdown (temporary, Jay, October 18, 2026): in the wordmark's and Staff portal's place, glowing Plus blue. */
.portal-plus-countdown { flex:1 1 auto; min-width:0; margin:0 8px 0 0; padding:6px 12px; border:1px solid rgba(110,168,255,.7); border-radius:14px; background:#28170f; box-shadow:0 0 14px rgba(110,168,255,.35); color:#dce9ff; font:inherit; font-size:14.5px; font-weight:650; line-height:1.25; text-align:center; white-space:pre-line; font-variant-numeric:tabular-nums; cursor:pointer; position:relative; z-index:7; }
.portal-plus-countdown.hidden { display:none; }
/* The time blinks to bright red every second (Jay, October 18, 2026; it was white); still with Reduce Motion. */
.portal-plus-countdown-time { animation:plus-countdown-blink 1s steps(1,end) infinite; }
@keyframes plus-countdown-blink { 0% { color:#dce9ff; text-shadow:none; } 50% { color:#ff4d4d; text-shadow:0 0 8px rgba(255,77,77,.85); } }
@media (prefers-reduced-motion: reduce) { .portal-plus-countdown-time { animation:none; color:#ff4d4d; } }
.portal-header.has-plus-countdown > .portal-wordmark, .portal-header.has-plus-countdown > .portal-staff-button { display:none; }
@media (max-width:359px) { .portal-staff-button { margin-right:6px; padding:4px 8px; font-size:13px; } }
/* Invite share popup (member-invites.js shareSheet): opens right after a link is made, over the whole app frame. */
.invite-layer { position:absolute; inset:0; z-index:70; display:flex; align-items:flex-end; background:rgba(0,0,0,.62); }
.invite-layer .invite-sheet { width:100%; max-height:calc(100% - 20px); overflow-y:auto; display:flex; flex-direction:column; gap:12px; padding:12px 20px max(22px, env(safe-area-inset-bottom)); border-top:1px solid #2b323d; border-radius:22px 22px 0 0; background:#151a21; box-shadow:0 -20px 50px rgba(0,0,0,.5); color:#f0eee9; }
.invite-layer .invite-sheet-grab { width:40px; height:5px; margin:0 auto 2px; border-radius:3px; background:#3a4250; }
.invite-layer .invite-sheet-icon { font-size:40px; line-height:1; text-align:center; }
.invite-layer .invite-sheet-title { margin:0; font-size:23.5px; text-align:center; color:#f0eee9; }
.invite-layer .invite-sheet-lead { margin:-4px 0 2px; font-size:16px; line-height:1.45; text-align:center; color:#c4ccd6; }
.invite-layer .invite-sheet-message { display:grid; gap:6px; padding:12px 14px; border:1px solid #2f3742; border-radius:14px; background:#0d1014; }
.invite-layer .invite-sheet-message:focus-within { border-color:#d97757; }
.invite-layer .invite-sheet-text { width:100%; min-height:44px; overflow:hidden; margin:0; padding:0; border:0; outline:none; resize:none; background:transparent; color:#e8e6e1; font:inherit; font-size:16.5px; line-height:1.45; }
.invite-layer .invite-sheet-link { font-size:16px; line-height:1.4; color:#d97757; word-break:break-all; user-select:all; -webkit-user-select:all; }
.invite-layer .invite-sheet-copy { width:100%; min-height:50px; margin:0; border:0; border-radius:14px; background:#3d7be0; color:#fff; font:inherit; font-size:17.5px; font-weight:800; cursor:pointer; transition:background .2s ease; }
.invite-layer .invite-sheet-copy.is-copied { background:#1f7a4a; }
.invite-layer .invite-sheet-note { margin:-4px 0 0; min-height:1px; font-size:15px; font-weight:600; text-align:center; color:#7fd3a3; }
.invite-layer .invite-sheet-note:empty { display:none; }
.invite-layer .invite-sheet-more { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 22px; }
.invite-layer .invite-sheet-alt { width:auto; min-height:0; margin:0; padding:4px 2px; border:0; background:none; color:#d97757; font:inherit; font-size:16px; font-weight:700; cursor:pointer; }
.invite-layer .invite-sheet-tip { margin:2px 0 0; padding:11px 13px; border:1px solid rgba(217,119,87,.18); border-radius:12px; background:rgba(217,119,87,.08); font-size:14.5px; line-height:1.45; color:#aebfd6; }
.invite-layer .invite-sheet-close { width:100%; min-height:40px; margin:0; border:0; background:none; color:#9aa6b6; font:inherit; font-size:16.5px; cursor:pointer; }
.invite-copy-fallback { position:fixed; top:0; left:-9999px; opacity:0; }
/* Your groups › Groups you can join (member-portal.js confirmJoin): a small heading over each list, a blue Join
   pill where the chevron would be, and the group's logo at the top of the confirm sheet. */
.portal-menu-subtitle { margin:18px 4px 8px; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#9aa4a0; }
.portal-join-pill { margin-left:auto; padding:6px 14px; border:1px solid #d97757; border-radius:999px; color:#d97757; font-size:14px; font-weight:700; white-space:nowrap; }
.portal-menu-joinable .portal-menu-item:active .portal-join-pill { background:rgba(217,119,87,.15); }
.join-group-logo { display:grid; place-items:center; width:64px; height:64px; margin:4px auto 10px; border-radius:50%; overflow:hidden; background:#1f2630; color:#f0eee9; font-weight:700; font-size:21.5px; }
.join-group-logo img { width:100%; height:100%; object-fit:cover; }
.join-group-sheet h4 { text-align:center; }
.join-group-status:empty { display:none; }

/* Hush photo viewer (photoViewer in member-profile.js): a Hush profile's photo full screen, pinch to zoom, with its
   reactions (counts only, never who) and a row of six to react with. */
.member-profile-hero.is-viewable .member-profile-photo { cursor:zoom-in; }
.photo-viewer { --viewer-accent:#d97757; --viewer-on:#0d1014; position:fixed; inset:0; z-index:400; background:#000; color:#fff; overflow:hidden; touch-action:none; animation:photo-viewer-in .2s ease-out; }
/* The side's color (Jay, October 21, 2026): blue on a Social profile, clay on a Hush one. */
.photo-viewer.is-hush { --viewer-accent:#d97757; --viewer-on:#1a0f0b; }
.photo-viewer.is-leaving { opacity:0; transition:opacity .18s ease-in; }
@keyframes photo-viewer-in { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:none; } }
.photo-viewer-stage { position:absolute; inset:0; display:grid; place-items:center; transition:transform .2s ease-out; }
.photo-viewer-image { max-width:100%; max-height:100%; object-fit:contain; transform-origin:center; transition:transform .12s ease-out; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.photo-viewer > .adult-cover.is-hero { display:grid; }
.photo-viewer > .adult-cover.is-hero.hidden, .photo-viewer .hidden { display:none !important; }
.photo-viewer-top { position:absolute; left:0; right:0; top:0; display:flex; align-items:center; gap:12px; padding:calc(env(safe-area-inset-top) + 10px) 16px 18px; background:linear-gradient(#000a, #0000); }
.photo-viewer-close { flex:none; width:38px; height:38px; border:0; border-radius:50%; background:#ffffff26; color:#fff; font-size:19.5px; font-weight:700; cursor:pointer; }
.photo-viewer-bars { flex:1; display:flex; gap:4px; }
.photo-viewer-bar { flex:1; height:4px; padding:0; border:0; border-radius:2px; background:#ffffff59; cursor:pointer; }
.photo-viewer-bar.is-current { background:var(--viewer-accent); }
.photo-viewer-bottom { position:absolute; left:0; right:0; bottom:0; display:grid; justify-items:center; gap:8px; padding:28px 16px calc(env(safe-area-inset-bottom) + 18px); background:linear-gradient(#0000, #000c 40%); transition:opacity .2s; }
.photo-viewer.is-zoomed .photo-viewer-top, .photo-viewer.is-zoomed .photo-viewer-bottom { opacity:0; pointer-events:none; }
.photo-viewer-counts { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.photo-viewer-count { padding:4px 10px; border-radius:999px; background:#ffffff1f; font-size:15px; font-weight:700; }
.photo-viewer-count.is-mine { box-shadow:inset 0 0 0 1.5px var(--viewer-accent); }
.photo-viewer-hint { margin:0; color:#c9d1dc; font-size:14px; }
.photo-viewer-reactions { display:flex; justify-content:center; gap:8px; }
.photo-viewer-reaction { width:48px; height:48px; border:0; border-radius:50%; background:#ffffff1f; font-size:26px; line-height:1; cursor:pointer; transition:transform .15s, background .15s; }
.photo-viewer-reaction.is-on { background:#ffffff2e; box-shadow:0 0 0 2px var(--viewer-accent); transform:scale(1.08); }
.photo-viewer-reaction.is-pop { animation:photo-viewer-pop .35s ease-out; }
@keyframes photo-viewer-pop { 40% { transform:scale(1.35); } 100% { transform:scale(1.08); } }
.photo-viewer-status { margin:0; min-height:1em; color:#ffb4a0; font-size:14px; text-align:center; }
.photo-viewer-ask { position:absolute; inset:0; display:grid; place-items:center; padding:16px; background:#0009; animation:photo-viewer-in .2s ease-out; }
.photo-viewer-ask-card { width:min(340px, 100%); box-sizing:border-box; display:grid; gap:10px; padding:22px 20px 18px; border-radius:20px; background:#1b1b1d; text-align:center; box-shadow:0 12px 40px #000a; }
.photo-viewer-ask-card h4 { margin:0; font-size:20.5px; }
.photo-viewer-ask-card p { margin:0; color:#c9d1dc; font-size:16px; line-height:1.4; }
.photo-viewer-ask-emoji { font-size:44px; line-height:1; }
.photo-viewer-yes, .photo-viewer-no { min-height:46px; border-radius:999px; font-size:17px; font-weight:700; cursor:pointer; }
.photo-viewer-yes { border:0; background:var(--viewer-accent); color:var(--viewer-on); }
.photo-viewer-no { border:1.5px solid #ffffff40; background:none; color:#fff; }
.photo-viewer-yes:disabled, .photo-viewer-no:disabled { opacity:.6; }
@media (prefers-reduced-motion: reduce) {
  .photo-viewer, .photo-viewer-ask { animation:photo-viewer-fade .25s ease-out; }
  .photo-viewer-reaction.is-pop { animation:none; }
  .photo-viewer-image, .photo-viewer-stage { transition:none; }
}
@keyframes photo-viewer-fade { from { opacity:0; } to { opacity:1; } }

/* The copy of the screen kept underneath while a screen slides over it (swipe-back.js capture()) is a still
   picture: nothing inside it plays its entrance again (a chat list's pop-in, the Grid's card flip, a chat's
   bubble pop). Only its inside: the copy's own slide and dimming are inline transitions on .screen-under. */
.screen-under * { animation:none !important; transition:none !important; }
/* The copy of the bottom tabs kept under a screen that hides the real ones (swipe-back.js capture). */
.screen-under > .app-tabs { display:grid !important; }
/* Native popups (the RSVP, delete account, plus-one, feedback, app popups and terms <dialog>s) rise in like the
   sheets instead of appearing at once, over a backdrop that fades in (Jay, October 14, 2026): 240ms in, and a 160ms
   fade out when app-popups.js closes one (.is-closing; Jay, October 21, 2026). */
body.app-framed dialog[open] { animation:app-dialog-in .24s cubic-bezier(.2,.8,.2,1); }
body.app-framed dialog[open]::backdrop { animation:app-dialog-fade .24s ease-out; }
body.app-framed dialog[open].is-closing { animation:app-dialog-out .16s ease-in forwards; pointer-events:none; }
body.app-framed dialog[open].is-closing::backdrop { animation:app-dialog-out .16s ease-in forwards; }
@keyframes app-dialog-in { from { opacity:0; transform:translateY(24px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes app-dialog-fade { from { opacity:0; } to { opacity:1; } }
@keyframes app-dialog-out { from { opacity:1; } to { opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  body.app-framed dialog[open] { animation:app-dialog-micro .2s ease-out; }
  body.app-framed dialog[open].is-closing { animation:app-dialog-out .16s ease-in forwards; }
}
@keyframes app-dialog-micro { from { opacity:0; } to { opacity:1; } }

/* Sheets (js/sheet.js, InvitedInSheet): the dim layer fades in while the box slides up from the bottom (280ms, the
   screens' fast-out curve); closing, the script plays them back down (200ms; Jay, October 21, 2026). With Reduce Motion,
   a 200ms fade moving 8px. */
.app-sheet { animation:app-sheet-fade .28s ease-out; }
.app-sheet > .app-sheet-box { animation:app-sheet-up .28s cubic-bezier(.2,.8,.2,1); }
.app-sheet.is-still, .app-sheet.is-still > .app-sheet-box { animation:none; }
.app-sheet.is-replacing { animation:none; }
.app-sheet.is-sheet-leaving { pointer-events:none; }
@keyframes app-sheet-fade { from { opacity:0; } }
@keyframes app-sheet-up { from { transform:translateY(100%); } }
@keyframes app-sheet-drift { from { transform:translateY(8px); opacity:0; } }
@media (prefers-reduced-motion: reduce) {
  .app-sheet { animation-duration:.2s; }
  .app-sheet > .app-sheet-box { animation:app-sheet-drift .2s ease-out; }
}

/* A menu page opened from outside the menu (Social vs. Hush from a chat, Invite a Friend from the Grid;
   member-portal.js openDirect) slides in over the screen the member is on, which shows through around it
   while it slides, so the page brings its own background. */
.member-portal.app-framed .portal-navigation.is-direct:not(.hidden) { background:transparent; }
.member-portal.app-framed .portal-navigation.is-direct :is(#portalMenuPage,[data-copy-of="portalMenuPage"]) { background:#0d1014; }

/* Build a group (member-portal.js, built-groups.ts): the three build steps, Manage group and the group sheets. */
.portal-menu-group-about { margin:-4px 0 14px; color:#b9c3d0; font-size:16px; line-height:1.45; white-space:pre-line; }
.build-group-steps { display:flex; gap:6px; margin:4px 0 14px; }
.build-group-steps i { flex:1; height:4px; border-radius:2px; background:#2b333f; }
.build-group-steps i.is-on { background:#d97757; }
/* Which kind of group a step builds, and a Hush group's steps in the clay (Jay, October 18, 2026). */
.build-group-kind { display:flex; align-items:center; gap:8px; margin:0 0 4px; color:#cfe0f5; font-size:14px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.build-group-flow.is-hush .build-group-kind { color:#f2c4b2; }
.build-group-flow.is-hush .build-group-steps i.is-on { background:var(--grid-accent); }
.build-group-flow.is-hush .build-group-input:focus { border-color:var(--grid-accent); }
.build-group-flow.is-hush .build-group-emoji.is-on { border-color:var(--grid-accent); box-shadow:0 0 0 2px rgba(217,119,87,.35); }
.build-group-flow.is-hush .build-group-choice.is-on { border-color:var(--grid-accent); background:rgba(217,119,87,.08); }
.build-group-flow.is-hush .build-group-choice.is-on .build-group-radio { border-color:var(--grid-accent); background:radial-gradient(var(--grid-accent) 42%,transparent 47%); }
.build-group-flow.is-hush .build-group-switch input { accent-color:var(--grid-accent); }
.build-group-flow.is-hush .grid-primary { background:var(--grid-accent); color:#fff; }
.build-group-flow.is-hush .grid-secondary { border-color:var(--grid-accent); color:#f2c4b2; }
.build-group-field { display:grid; gap:6px; margin:0 0 16px; }
.build-group-label { display:block; font-size:12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#8f9bab; margin:0 0 6px; }
.build-group-field .build-group-label { margin:0; }
.build-group-input { width:100%; box-sizing:border-box; padding:11px 13px; border-radius:12px; border:1px solid #343b46; background:#151b23; color:#f1f3f5; font:inherit; font-size:17px; }
.build-group-input:focus { outline:none; border-color:#d97757; }
.build-group-text { min-height:84px; resize:vertical; line-height:1.4; }
.build-group-note { display:block; color:#8f9bab; font-size:14px; line-height:1.4; margin:0 0 12px; }
.build-group-field .build-group-note { margin:0; }
.build-group-status { min-height:1.2em; margin:4px 0 10px; color:#cfd8e3; font-size:15px; }
.build-group-picker { display:grid; gap:8px; }
.build-group-emojis { display:flex; flex-wrap:wrap; gap:8px; }
/* A photo as the group's logo (migration 239): the button under the emojis and a round preview. */
.build-group-logo-field { display:block; }
.build-group-photo-button { margin-top:10px; width:100%; }
.build-group-photo-preview { display:block; width:72px; height:72px; margin-top:10px; border-radius:50%; overflow:hidden; box-shadow:0 0 0 2px rgba(255,255,255,.18); }
.build-group-photo-preview.hidden { display:none; }
.build-group-photo-preview img { width:100%; height:100%; object-fit:cover; display:block; }
.build-group-emoji { width:44px; height:44px; border-radius:50%; border:1px solid #2f3846; background:#151b23; font-size:22px; line-height:1; cursor:pointer; }
.build-group-emoji.is-on { border-color:#d97757; box-shadow:0 0 0 2px rgba(217,119,87,.35); }
.build-group-choices { display:grid; gap:10px; margin:0 0 14px; }
.build-group-choice { display:flex; gap:12px; align-items:flex-start; width:100%; padding:13px; border-radius:14px; border:1px solid #2b3038; background:#141a22; color:#f1f3f5; font:inherit; text-align:left; cursor:pointer; }
.build-group-choice.is-on { border-color:#d97757; background:rgba(217,119,87,.08); }
.build-group-radio { flex:none; width:20px; height:20px; margin-top:2px; border-radius:50%; border:2px solid #4a5566; box-sizing:border-box; }
.build-group-choice.is-on .build-group-radio { border-color:#d97757; background:radial-gradient(#d97757 42%,transparent 47%); }
.build-group-choice-text { display:grid; gap:2px; }
.build-group-choice-text small { color:#8f9bab; font-size:14px; line-height:1.4; }
.build-group-switch { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 8px; font-size:16.5px; }
.build-group-switch input { width:22px; height:22px; accent-color:#d97757; }
.build-group-next { width:100%; margin:6px 0 14px; }
.build-group-hero { display:grid; justify-items:center; gap:6px; margin:4px 0 16px; text-align:center; }
.build-group-hero .portal-menu-title { margin:0; }
.build-group-hero small { color:#8f9bab; font-size:14px; }
.build-group-logo { width:76px; height:76px; border-radius:50%; display:grid; place-items:center; font-size:40px; background:#0d1014; box-shadow:0 0 0 1.5px rgba(255,255,255,.35),0 4px 12px rgba(0,0,0,.45); }
.build-group-card { padding:13px 14px; margin:0 0 12px; border-radius:14px; border:1px solid #2b3038; background:#141a22; }
.build-group-card p { margin:4px 0 0; color:#b9c3d0; font-size:15px; line-height:1.45; }
.build-group-member { display:flex; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid #1f252d; }
.build-group-member:last-child { border-bottom:0; }
.build-group-avatar { flex:none; width:40px; height:40px; border-radius:10px; overflow:hidden; background:linear-gradient(140deg,#5d6f88,#24303f); box-shadow:0 0 0 1.5px rgba(255,255,255,.3); }
.build-group-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.build-group-member-text { flex:1; min-width:0; display:grid; }
.build-group-member-text strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.build-group-member-text small { color:#8f9bab; font-size:13.5px; }
.build-group-remove { flex:none; padding:6px 12px; border-radius:16px; border:1px solid #6b3a3f; background:rgba(224,103,110,.1); color:#ffb3b8; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.grid-primary.is-danger { background:#e0676e; color:#fff; }
.group-invite-sheet .build-group-input { margin:0 0 8px; }
.group-invite-link { margin:0 0 12px; color:#d97757; font-size:14px; word-break:break-all; }
.group-join-about { white-space:pre-line; max-height:min(40vh,320px); overflow-y:auto; overflow-wrap:anywhere; color:#d7dde5; }
@media (prefers-reduced-motion:reduce){ .build-group-choice,.build-group-emoji { transition:none; } }
/* A Social face photo held back as not clothed (migration 224): black with "Photo pending", or for its owner, asking
   for a clothed photo, on profiles, grid squares and chat photos. */
.pending-cover { display:grid; place-items:center; box-sizing:border-box; padding:10px; background:#000; color:#c9d1dc; font-size:14px; font-weight:700; text-align:center; line-height:1.3; }
.pending-cover.is-hero { position:absolute; inset:0; display:none; font-size:17px; padding:24px; pointer-events:none; }
.member-profile-hero.is-pending > .pending-cover.is-hero { display:grid; }
.member-profile-photo.is-pending { filter:brightness(0); }
.chat-grid-square > .pending-cover { position:absolute; inset:0; font-size:12.5px; padding:6px 6px 22px; }
.chat-avatar.chat-avatar-pending { background:#000; }
.chat-avatar.chat-avatar-pending > .pending-cover { width:100%; height:100%; padding:0; font-size:9px; letter-spacing:.02em; }

/* The Hush tab laid out like the Social tab (Jay, October 17, 2026; member-grid.js's pillsRow, hushStrip and fillChats):
   the pill row, The Hush Grid scrolling sideways (three tall, or one row folded), then the Hush chats' sections.
   It borrows the Social tab's pill, toggle and chat row styles (.chat-panel), in the Hush clay. */
.chat-panel.hush-home { display:block; gap:0; padding:0; }
.hush-home .chat-list-pill.is-on { border-color:#D97757; background:#2a1c17; color:#f3c4b2; }
.hush-home .chat-list-pill.chat-create-pill { border-color:rgba(217,119,87,.55); color:#eaa98f; }
.hush-grid { margin-bottom:6px; }
.hush-grid .grid-chat-section, .hush-grid .grid-chat-section .chat-section-chevron { color:#d9a28e; }
/* The loading screen's header (not a button yet) sits exactly where the real one will, chevron at the right. */
div.hush-grid-head { display:flex; align-items:center; gap:6px; padding:4px 0; }
div.hush-grid-head.is-collapsed .chat-section-chevron { transform:rotate(0deg); }
/* Four across, the Social grid's size (member-chat.css .chat-member-grid: (100% - 9px) / 4, 3px apart). */
.grid-tiles.hush-grid-strip { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:calc((100% - 9px) / 4); grid-template-rows:repeat(3,auto);
  gap:3px; padding:0 12px 12px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.grid-tiles.hush-grid-strip::-webkit-scrollbar { display:none; }
.grid-tiles.hush-grid-strip.is-folded { grid-template-rows:auto; }
/* At the Social grid's size, the square's text and badges match its scale: names on up to two lines ending in "…",
   like .chat-grid-name, and a smaller 🏆/🤝, online dot and zodiac (24px, member-grid.js). */
.hush-grid-strip .grid-tile-caption { padding:16px 6px 5px; gap:0; }
/* A word too long for the square is simply cut at its edge, with no "…" (nameWords in member-grid.js and
 * member-chat.js; Jay, October 18, 2026). */
.grid-name-word { display:inline-block; max-width:100%; overflow:hidden; white-space:nowrap; vertical-align:bottom; }
/* An italic word (an anonymous name) leans past its own box: a little room on the right, given back by the margin so
 * the spacing stays, so its last letter isn't cut (Jay, October 17, 2026). */
.grid-name-word { box-sizing:border-box; padding-right:.15em; margin-right:-.15em; }
/* Up to two lines; anything past them is cut off, with no "…" (Jay, October 18, 2026). */
.hush-grid-strip .grid-tile-name { display:block; font-size:12.5px; font-weight:600; line-height:1.2; max-height:2.4em; overflow:hidden; }
.hush-grid-strip .grid-tile-distance { font-size:11.5px; }
.hush-grid-strip .grid-tile-favorite { right:5px; bottom:5px; font-size:13px; }
.hush-grid-strip .grid-tile:has(> .grid-tile-favorite) .grid-tile-caption { padding-right:18px; }
.hush-grid-strip .grid-tile-trophy { top:2px; left:2px; width:30px; height:30px; font-size:16px; }
.hush-grid-strip .grid-tile-trophy.is-handshake.is-second { left:27px; }
.hush-grid-strip .grid-tile-online { top:9px; left:7px; width:11px; height:11px; }
.hush-grid-strip .grid-tile:has(> .grid-tile-online) > .grid-tile-trophy { left:19px; }
.hush-grid-strip .grid-tile:has(> .grid-tile-online) > .grid-tile-trophy.is-handshake.is-second { left:44px; }
.hush-grid .grid-empty { margin:0 16px 12px; }
.grid-end-card.hush-grid-end { position:static; transform:none; animation:none; width:auto; max-width:none; margin:0 16px 12px; padding:14px 16px; font-size:16px; text-align:left; }
.grid-end-card.hush-grid-end strong { display:block; }
.grid-end-card.hush-grid-end .grid-primary { margin:12px 0 0; }
.grid-end-card.hush-grid-end.is-verify { margin:12px 16px 16px; padding:18px; border-color:rgba(110,200,140,.45); text-align:center; box-shadow:0 0 28px rgba(110,200,140,.14); }
.grid-end-card.hush-grid-end.is-verify p { margin:6px 0 0; color:#c4ccd7; font-size:15.5px; line-height:1.45; }
.grid-end-card.hush-grid-end.is-verify .grid-primary { width:100%; }
.hush-chats { padding-bottom:12px; }
.hush-chats .chat-section-toggle.grid-chat-section, .hush-chats .grid-chat-section .chat-section-chevron { color:#d9a28e; }
.hush-chats > .chat-empty { padding:24px 20px; color:#9aa6b6; text-align:center; }

/* "My groups" at a grid's heading (Jay, October 17, 2026): the heading, the switch right after it, then the chevron at the
   far right in the rest of the row, which folds the grid like the heading (member-chat.js, member-grid.js). */
.grid-head-bar { display:flex; align-items:center; gap:10px; margin:14px 14px 4px; }
.hush-grid .grid-head-bar { margin:14px 16px 4px; }
.chat-panel .grid-head-bar > .chat-section-toggle, .grid-head-bar > .chat-section-label, .grid-head-bar > .grid-chat-section { flex:none; width:auto; margin:0; }
.grid-head-rest { flex:1; align-self:stretch; display:flex; align-items:center; justify-content:flex-end; min-height:32px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.grid-head-rest .chat-section-chevron { margin-left:0; color:#8f9bab; }
.hush-grid .grid-head-rest .chat-section-chevron { color:#d9a28e; }
.grid-head-bar.is-collapsed .chat-section-chevron { transform:rotate(0deg); }
.chat-panel .grid-mine, .grid-mine { flex:none; display:inline-flex; align-items:center; gap:7px; min-height:0; height:auto; margin:0; padding:4px 6px 4px 11px; border:1px solid rgba(217,119,87,.55); border-radius:999px;
  background:none; box-shadow:none; color:#eaa98f; font-family:inherit; font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; white-space:nowrap; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.chat-panel .grid-mine.is-social, .grid-mine.is-social { border-color:rgba(217,119,87,.5); color:#c9d8ec; }
.grid-mine-switch { position:relative; width:28px; height:17px; border-radius:9px; background:#3a424e; transition:background .2s ease; }
.grid-mine-switch::after { content:''; position:absolute; top:2px; left:2px; width:13px; height:13px; border-radius:50%; background:#fff; transition:transform .2s ease; }
.grid-mine.is-on .grid-mine-switch { background:var(--grid-accent,#D97757); }
.grid-mine.is-social.is-on .grid-mine-switch { background:#d97757; }
.grid-mine.is-on .grid-mine-switch::after { transform:translateX(11px); }
.chat-social-grid-empty { margin:4px 14px 12px; color:#8f9bab; font-size:14.5px; }
@media (prefers-reduced-motion: reduce) { .grid-mine-switch, .grid-mine-switch::after { transition:none; } }

/* Hush chat rows like the Social tab's (Jay, October 17, 2026): a Hush group's member count in a clay pill, and two lines
   of the last message. */
.hush-chats .chat-item-last { white-space:normal; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; }
.hush-chats .chat-member-count { background:rgba(217,119,87,.14); box-shadow:inset 0 0 0 1px rgba(217,119,87,.24); color:#e2a58e; }
/* While the ☰ menu or a page from it covers the app, what's under it stops animating (Jay, October 17, 2026: typing
 * in Build a group lagged while the grids' glows, sparkles and online pulses kept repainting underneath). */
/* A profile opened from the menu sits over it, so it keeps animating (Jay, October 21, 2026: its editor sheet stayed
 * frozen below the screen); only a menu page opened over a profile (is-over-profile) pauses the profile. */
.app-frame:has(#portalNavigation:not(.hidden)) :is(#memberHome,#portalTabBar) *,
.app-frame:has(#portalNavigation:not(.hidden)) :is(#memberHome,#portalTabBar) *::before,
.app-frame:has(#portalNavigation:not(.hidden)) :is(#memberHome,#portalTabBar) *::after,
.app-frame:has(#portalNavigation.is-over-profile:not(.hidden)) #memberProfileView *,
.app-frame:has(#portalNavigation.is-over-profile:not(.hidden)) #memberProfileView *::before,
.app-frame:has(#portalNavigation.is-over-profile:not(.hidden)) #memberProfileView *::after { animation-play-state:paused !important; }

/* Private marks on the Hush Grid (member-grid.js markSheet; grid-marks.ts): only the member who made them sees them. */
.grid-mark-rows { display:flex; flex-direction:column; gap:10px; margin:14px 0 6px; }
.grid-mark-choice { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px;
  border:1px solid #3a2a24; border-radius:14px; background:#1a1513; color:#f1ece8; font:inherit; font-size:17px; text-align:left; cursor:pointer; }
.grid-mark-choice.is-on { border-color:var(--grid-accent,#D97757); background:rgba(217,119,87,.16); }
.grid-mark-check { color:var(--grid-accent,#D97757); font-weight:700; min-width:1em; text-align:right; }
.grid-mark-rows .grid-plus-more { margin:0; }
.grid-tile-marks { position:absolute; top:6px; right:6px; z-index:3; font-size:16px; line-height:1; letter-spacing:1px; pointer-events:none;
  filter:drop-shadow(0 0 3px rgba(0,0,0,.85)); }
.hush-grid-strip .grid-tile-marks { top:4px; right:4px; font-size:12px; }
/* "Just for you": ★ Favorite, 🫂 Met up and 🤩 Contender on someone's Hush profile (marksRow in member-profile.js), three
   equal 48px buttons. */
.member-profile-marks { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:8px; }
.member-profile-mark { min-width:0; height:48px; padding:0 6px; border:1px solid rgba(217,119,87,.5); border-radius:24px; background:#1a120f;
  color:#f3c4b2; font:inherit; font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.member-profile-mark.is-on { border-color:var(--grid-accent,#D97757); background:#2a1c17; color:#fff; }
.member-profile-mark:disabled { opacity:.6; }
.member-profile-mark:has(> .member-profile-mark-new) { position:relative; overflow:visible; }
/* Met up's pearl "New" pill on its lower right corner, flashing slowly (Jay, October 28, 2026). */
.member-profile-mark-new { position:absolute; right:-6px; bottom:-8px; z-index:1; padding:2px 7px; border-radius:999px; pointer-events:none;
  background:linear-gradient(135deg,#f8f5ef 0%,#e9e3d8 55%,#d9d2c6 100%); color:#2a251f; font-size:10.5px; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; line-height:1.2; box-shadow:0 1px 4px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.7); animation:mark-new-flash 2.4s ease-in-out infinite; }
@keyframes mark-new-flash { 0%,100% { opacity:1; } 50% { opacity:.35; } }
@media (prefers-reduced-motion: reduce) { .member-profile-mark-new { animation:none; } }
/* A Hush partner (migration 270): a clay card under the name naming the partner by their Hush name; on your own profile
   with Unlink, or Cancel while your request waits. */
.member-profile-partner { display:flex; align-items:center; gap:10px; margin:0 16px; padding:8px 10px 8px 8px; border:1px solid var(--grid-accent,#D97757); border-radius:16px; background:#1a120f; }
.member-profile-partner.is-pending { border-style:dashed; border-color:rgba(217,119,87,.6); }
.member-profile-partner.is-tip { padding:12px 14px; border-style:dashed; border-color:rgba(217,119,87,.6); }
.member-profile-partner-tip { color:#d6dae0; font-size:15px; line-height:1.4; }
.member-profile-partner-main { display:flex; align-items:center; gap:12px; flex:1 1 auto; min-width:0; padding:0; border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
div.member-profile-partner-main { cursor:default; }
.member-profile-partner-photo { flex:none; width:46px; height:46px; border-radius:11px; object-fit:cover; background:#2a1d19; box-shadow:0 0 0 2px #1a120f,0 0 0 3.5px rgba(217,119,87,.7); }
.member-profile-partner-photo.is-empty { display:block; }
.member-profile-partner-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.member-profile-partner-label { display:flex; align-items:center; gap:5px; color:var(--grid-accent,#D97757); font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.member-profile-partner-icon { width:13px; height:13px; flex:none; }
.member-profile-partner-name { color:#eef1f5; font-size:17px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-profile-partner-chevron { margin-left:auto; color:#c9b2a6; font-size:22px; }
.member-profile-partner-unlink { flex:none; height:36px; padding:0 14px; border:1px solid rgba(217,119,87,.55); border-radius:18px; background:none; color:#f3a58d; font:700 14.5px -apple-system,sans-serif; cursor:pointer; }
.member-profile-partner-points { display:flex; flex-direction:column; gap:6px; margin:4px 0 10px; padding:12px 14px; border:1px solid #262b35; border-radius:14px; background:#1c2029; }
.member-profile-partner-point { margin:0; color:#d6dbe3; font-size:15px; line-height:1.4; }
.member-profile-partner-point strong { color:#f3c4b2; }
/* Nominate to a group sits in the marks card, under the three (Jay, October 19, 2026). */
/* Styled like the three above it (.member-profile-mark), full width (Jay, October 19, 2026). */
/* A thin line (not a border) sets it apart from the three (Jay, October 19, 2026). */
.member-profile-mark.member-profile-mark-nominate { position:relative; display:block; width:100%; margin-top:25px; }
.member-profile-mark.member-profile-mark-nominate::before { content:''; position:absolute; left:0; right:0; top:-14px; height:1px; background:rgba(255,255,255,.12); pointer-events:none; }
/* With Met up on: "Rate him from your meet ups" and five gold stars, private to the rater (migration 251). */
.member-profile-rating { margin-top:12px; }
.member-profile-rating[hidden] { display:none; }
.member-profile-rating-label { margin:0 0 4px; color:#d8d1cc; font-size:15px; }
.member-profile-stars { display:flex; gap:2px; }
.member-profile-star { padding:2px 4px; border:0; background:transparent; color:rgba(255,255,255,.22); font:inherit; font-size:32px; line-height:1;
  cursor:pointer; transition:color .15s ease, transform .15s ease; }
.member-profile-star.is-on { color:#f5c24a; text-shadow:0 0 10px rgba(245,194,74,.45); }
.member-profile-star:active { transform:scale(.88); }
.member-profile-star:disabled { opacity:.7; }
@media (prefers-reduced-motion: reduce) { .member-profile-star { transition:none; } .member-profile-star:active { transform:none; } }
/* ✓ Verified / ⚠️ Not verified next to their name at the top of the ☰ menu (renderMenuVerify in member-portal.js). */
.portal-menu-name-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.portal-menu-name-row strong { min-width:0; }
.member-profile-pill.portal-menu-verify { height:26px; padding:0 10px; font-size:13.5px; border-radius:13px; }
.member-profile-pill.portal-menu-verify .member-profile-verified-check { width:15px; height:15px; font-size:10.5px; }
/* The quick Hush setup (member-grid.js renderNeedsPhoto; Jay, October 18, 2026): name, photo, Save. */
.grid-quick-setup { text-align:left; max-width:420px; margin:0 auto; }
.grid-quick-setup h2 { text-align:center; }
.grid-quick-label { display:block; color:#c9d1dc; font-weight:700; font-size:15px; }
.grid-quick-input { display:block; width:100%; box-sizing:border-box; margin-top:6px; padding:12px 14px; border:1px solid #3a4452; border-radius:12px; background:#121821; color:#f4f6fa; font-size:18px; }
.grid-quick-input:focus { outline:none; border-color:#D97757; }
.grid-quick-note { margin:6px 0 18px; color:#9aa6b6; font-size:14.5px; }
.grid-quick-photo { width:150px; height:200px; margin:0 auto; border-radius:16px; overflow:hidden; border:2px solid #D97757; background:#121821; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.grid-quick-photo img { width:100%; height:100%; object-fit:cover; }
.grid-quick-photo-empty { color:#D97757; font-size:40px; }
.grid-quick-photo.is-held { background:repeating-linear-gradient(135deg,#1c1310 0 12px,#211613 12px 24px); border:1.5px dashed #D97757; }
.grid-quick-photo-held { padding:16px; color:#f2d3c6; font-size:16px; line-height:1.35; text-align:center; font-weight:600; }
.grid-quick-change { display:block; margin:10px auto 18px; padding:8px 14px; border:1px solid #D97757; border-radius:999px; background:transparent; color:#f0b49d; font-size:15px; font-weight:600; }
.grid-quick-setup .grid-primary { display:block; width:100%; }
.grid-quick-setup .grid-lead { text-align:center; margin-top:14px; }
/* The Hush tab is the Grid, full screen (member-grid.js gridHead, quickPills, hushGrid, renderChats; Jay, October 19, 2026):
   the header with Filters and the chats button (Hush unread count), the Favorites / Online / Met up pills, then the squares
   three across scrolling down. The chats button opens the Hush Chats screen, whose ‹ Grid floats at the bottom left. */
.hush-full-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:26px 14px 8px 16px; }
.hush-full-title { display:flex; align-items:center; gap:8px; min-width:0; }
.hush-full-label { font-size:21px; font-weight:700; color:#f4f1ec; white-space:nowrap; }
.hush-full-title .chat-section-info { color:#d9a28e; }
.hush-full-actions { display:flex; align-items:center; gap:8px; flex:none; }
.chat-panel .hush-full-filters { flex:none; width:auto; height:36px; min-height:0; margin:0; padding:0 14px; border:1px solid #3a3f4b; border-radius:18px; background:#12151c; box-shadow:none; color:#ECE8DF; font-size:15px; font-weight:600; letter-spacing:0; cursor:pointer; }
.chat-panel .hush-full-filters.is-on { border-color:#D97757; background:#2a1c17; color:#f3c4b2; }
.chat-panel .hush-chats-button { position:relative; flex:none; width:44px; height:44px; min-height:0; margin:0; padding:0; border:1px solid #D97757; border-radius:22px; background:#1a120f; box-shadow:none; color:#D97757; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.hush-chats-icon { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
span.hush-chats-icon { font-size:20px; line-height:1; }
.hush-chats-badge { position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 5px; box-sizing:border-box; border-radius:10px; background:#D97757; color:#000; font-size:12px; font-weight:700; line-height:1; display:flex; align-items:center; justify-content:center; }
.hush-chats-badge[hidden] { display:none; }
.hush-full .chat-list-pills.hush-pills { padding:4px 16px 10px; border-bottom:0; }
.hush-quick-pill { display:inline-flex; align-items:center; gap:6px; }
/* Favorites, Online and Met up as 36px chips packed left with an 8px gap (Jay, October 21, 2026; they were spread
   across the row). The row keeps its height while it loads (grey chips) and when it has no pills, so the squares under it
   never move. */
.chat-list-pills.hush-quick-pills { justify-content:flex-start; align-items:center; gap:8px; }
.chat-panel .hush-quick-pills .chat-list-pill { height:36px; padding:0 14px; border-radius:18px; font-size:15px; font-weight:600; }
.hush-skeleton-pill { display:inline-block; flex:none; height:36px; border-radius:18px; }
/* The Social tab's row (Join, + Create, Read Receipts, New Meets) and Hush Chats' (Join, + Create, Read Receipts) sit
   left to right and scroll sideways when they don't fit (Jay, October 19, 2026). */
.chat-list-pills.chat-list-pills-scroll { justify-content:flex-start; align-items:center; overflow-x:auto; scrollbar-width:none; }
.chat-list-pills.chat-list-pills-scroll::-webkit-scrollbar { display:none; }
.chat-list-pills.chat-list-pills-scroll > * { flex:none; }
.chat-list-pills.chat-list-pills-scroll .meet-pill { margin-left:0; }
.meet-pill.receipts-pill.is-hush.is-on .meet-switch, .meet-pill.switch-pill.is-hush.is-on .meet-switch { background:#D97757; }
.chat-list-pill.receipts-pill.is-locked { white-space:nowrap; }
.chat-panel .chat-list-pill.chat-join-pill { border-color:rgba(217,119,87,.55); color:#e59a7d; }
.chat-panel .chat-list-pill.chat-join-pill.is-on { background:#1e1512; border-color:#d97757; color:#d7e5f7; }
.hush-home .chat-list-pill.hush-join-pill { border-color:rgba(217,119,87,.55); color:#eaa98f; }
.hush-home .chat-list-pill.hush-join-pill.is-on { background:#2a1c17; border-color:#D97757; color:#f3c4b2; }
.grid-tiles.hush-full-grid { gap:2px; }
/* Portrait 3:4 squares (Jay, October 21, 2026, from The Room mockups): photos fill them, cropped (object-fit:cover). */
.hush-full-grid :is(.grid-tile,.grid-blur-tile) { aspect-ratio:3/4; }
.hush-full-grid .plus-end-tile { grid-row:auto; grid-column:1 / -1; aspect-ratio:auto; min-height:150px; }
.hush-chats-page .chat-list-pills.hush-pills { padding:22px 16px 10px; }
.chat-panel .chat-nav-bar.hush-chats-nav { position:sticky; bottom:calc(12px + var(--tabs-h,0px)); padding:0 0 0 12px; pointer-events:none; }
.chat-panel .hush-chats-nav .chat-nav-back { pointer-events:auto; color:var(--grid-accent); }
/* The pills' Plus sparkles stay at the top and bottom: the one on the right edge read as a ✕ next to each pill. */
.hush-quick-pill .plus-spark-c { display:none; }
/* The Filters sheet's Done stays at the bottom while the sheet scrolls (member-grid.js doneBar; Jay, October 19, 2026):
   the bar reaches over the sheet's side and bottom padding so nothing shows past it. */
.grid-sheet-done { position:sticky; bottom:-18px; z-index:2; margin:14px -18px -18px;
  padding:12px 18px 18px; border-top:1px solid #262c35; background:#141920; }
.grid-sheet-done { display:flex; align-items:center; gap:12px; }
/* One footer (Jay, October 21, 2026): Clear all as a text button on the left (a 44px tap area), Show results filling the rest. */
.grid-sheet-done .grid-sheet-clear-all { flex:none; min-height:44px; margin:0; padding:0 6px; border:0; background:none; color:#e99b80; font:inherit; font-size:17px; font-weight:700; cursor:pointer; }
.grid-sheet .grid-sheet-done .grid-primary.is-save { flex:1; min-width:0; max-width:none; height:48px; margin:0; border-radius:24px; font-size:17px; }
/* Cancel between them (Jay, October 21, 2026), an outlined pill like the kit's secondary buttons. */
.grid-sheet .grid-sheet-done .grid-secondary.grid-sheet-cancel { flex:none; width:auto; height:48px; min-height:0; margin:0; padding:0 18px; border-radius:24px; font-size:17px; }
/* The Hush tab without its title row (Jay, October 19, 2026): Filters leads the pill row, and the chats button floats at
   the bottom right of the Grid as a clay "Chats" pill with the unread count (mockup B; member-grid.js chatsFab). It sits in
   a zero-height sticky holder after the squares, so it stays at the bottom of the screen while the Grid scrolls. */
/* 24px on top like the Social tab's row: the panel's -16px margin and the folded greeting bar pull it up, so 12px
   left the pills' tops cut off under the header (Jay, October 21, 2026). */
.hush-full .chat-list-pills.hush-pills { box-sizing:border-box; min-height:70px; padding:24px 12px 10px; }
/* As far above the tab labels as it sits from the screen's right edge, 20px (Jay, October 25, 2026): the labels' tops are
   about 38px off the bottom, so the bar's bottom is 58px up, day and night, or 6px off the bottom with no tabs. A sticky
   bottom counts from inside the scroll area's bottom padding (12px + --tabs-h), hence taking that back off. */
.hush-chats-fab { position:sticky; bottom:calc(max(var(--tabs-h,0px) - 6px, 16px) - 10px - 12px - var(--tabs-h,0px)); z-index:6; height:0; pointer-events:none; }
/* It sits over the tabs' fade (z-index 6), so it would float over a profile opened from the Grid (z-index 5): it steps aside then. */
body.member-profile-open .hush-chats-fab { visibility:hidden; }
/* Filter | Chats: one floating bar centered over the tabs (member-grid.js chatsFab; Jay, October 21, 2026), dark with a
   clay edge and a line between its halves; each half has its count in a clay badge with dark text. Filter's text turns
   clay-bright while a filter is set. */
.hush-fab-bar { position:absolute; right:20px; bottom:0; display:flex; height:48px; border:1px solid #D97757; border-radius:24px;
  background:rgba(26,18,15,.94); box-shadow:0 8px 24px rgba(0,0,0,.5); overflow:hidden; pointer-events:auto; }
.chat-panel .hush-fab-bar .hush-chats-button, .chat-panel .hush-fab-bar .hush-filter-fab { position:static; display:flex; align-items:center; gap:8px; width:auto; height:100%; min-height:0; margin:0;
  padding:0 18px; border:0; border-radius:0; background:none; box-shadow:none; color:#f3c4b2; font-size:16px; font-weight:700; white-space:nowrap; cursor:pointer; }
.chat-panel .hush-fab-bar .hush-chats-button { border-left:1px solid rgba(217,119,87,.45); }
.chat-panel .hush-fab-bar .hush-filter-fab.is-on { background:rgba(217,119,87,.16); color:#ffd9cb; }
.hush-chats-fab .hush-chats-icon { width:19px; height:19px; }
.hush-chats-fab .hush-chats-badge { position:static; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#D97757; color:#1a0f0b; font-size:12.5px; font-weight:800; }
/* Join a Group's "‹ Back to Chats" on Hush Chats, at the bottom left across from the Grid button (Jay, October 21, 2026). */
.chat-panel .hush-chats-fab .hush-join-back { position:absolute; left:16px; bottom:0; display:flex; align-items:center; width:auto; height:48px; min-height:0; margin:0;
  padding:0 18px; border:1px solid #D97757; border-radius:24px; background:rgba(26,18,15,.94); color:#f3c4b2; font-size:16px; font-weight:700; white-space:nowrap;
  pointer-events:auto; box-shadow:0 8px 24px rgba(0,0,0,.5); cursor:pointer; }
/* Hush Chats' one way back: the Grid button at the bottom right (member-grid.js renderChats). */
.chat-panel .hush-chats-fab .hush-grid-back { position:absolute; right:16px; bottom:0; display:flex; align-items:center; gap:8px; width:auto; height:48px; min-height:0; margin:0;
  padding:0 18px; border:1px solid #D97757; border-radius:24px; background:rgba(26,18,15,.94); color:#f3c4b2; font-size:16px; font-weight:700; pointer-events:auto;
  box-shadow:0 8px 24px rgba(0,0,0,.5); cursor:pointer; }
.hush-full > .hush-grid { padding-bottom:72px; }
.chat-panel.hush-home.hush-chats-page { display:flex; flex-direction:column; box-sizing:border-box; padding-bottom:0; }
.hush-chats-page > .hush-chats { flex:1 0 auto; padding-bottom:72px; }
/* "‹ Back to Chats" floats at the bottom left of the Social tab's Join a Group screen (Jay, October 19, 2026). */
.chat-list-view.is-joining { display:flex; flex-direction:column; }
.chat-list-view.is-joining > .join-back-fab { margin-top:auto; }
.join-back-fab { position:sticky; bottom:4px; z-index:4; height:0; pointer-events:none; }
.join-back-fab .join-back-button { position:absolute; left:16px; bottom:0; display:flex; align-items:center; width:auto; height:48px; min-height:0; margin:0;
  padding:0 18px; border:1px solid #d97757; border-radius:24px; background:#0f1722; color:#cfe0f5; font-size:17px; font-weight:700; cursor:pointer; pointer-events:auto;
  box-shadow:0 6px 20px rgba(0,0,0,.6); }
/* Every button on the Hush side is clay with dark text (Jay, October 21, 2026: Save, Try again, Verify my account, Done
   and the rest were blue; white on clay fails contrast): the Hush tab's own screens, and the sheets it opens (hush-side). */
:is(#portalGridPanel,[data-copy-of="portalGridPanel"],.hush-side) .grid-primary { background:#D97757; color:#1a0f0b; }
:is(#portalGridPanel,[data-copy-of="portalGridPanel"],.hush-side) .grid-secondary { border-color:#D97757; color:#f3c4b2; }
:is(#portalGridPanel,[data-copy-of="portalGridPanel"],.hush-side) .grid-switch.is-on { background:#D97757; }
.hush-side .grid-choice.is-on { border-color:#D97757; background:#D97757; color:#1a0f0b; }
/* The Filters sheet's distance slider (member-grid.js distanceSlider): the value above it, the five steps under it. */
.grid-distance { padding:14px 14px 12px; border:1px solid #262c35; border-radius:14px; background:#0f1318; }
.grid-distance-value { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; font-size:15px; color:#a7b2c1; }
.grid-distance-current { color:#f3c4b2; font-weight:700; }
.grid-distance-slider { --fill:0%; display:block; width:100%; height:28px; margin:0; background:transparent; -webkit-appearance:none; appearance:none; cursor:pointer; }
.grid-distance-slider::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:linear-gradient(90deg,#D97757 var(--fill),#2a313b var(--fill)); }
.grid-distance-slider::-moz-range-track { height:4px; border-radius:2px; background:#2a313b; }
.grid-distance-slider::-moz-range-progress { height:4px; border-radius:2px; background:#D97757; }
.grid-distance-slider::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:26px; height:26px; margin-top:-11px; border:0; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.4); }
.grid-distance-slider::-moz-range-thumb { width:26px; height:26px; border:0; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.4); }
.grid-distance-slider:focus-visible { outline:2px solid #D97757; outline-offset:4px; border-radius:8px; }
.grid-distance-ticks { display:flex; justify-content:space-between; margin-top:8px; font-size:12.5px; color:#8f9bab; }
/* Hush profiles are no longer anonymous (migration 283): the Hush tab's note for someone who had them hidden. */
.grid-show-hush :is(.grid-primary,.grid-secondary) { width:100%; max-width:420px; }
.grid-show-hush .grid-lead { max-width:440px; }
.grid-show-hush-status { min-height:1.3em; margin:0; color:#cfd6df; font-size:15px; }

/* A glowing "New" pill (Jay, October 24, 2026): Curated Picks, the Hush editor's preferences heading and the Hush
   profile's gear. A pale blue-to-lilac opal, like a shiny gemstone: a soft sheen across the top and a breathing glow;
   still with Reduce Motion. */
.new-pill { position:relative; overflow:hidden; flex:none; display:inline-flex; align-items:center; height:18px; padding:0 7px; margin-left:6px; border-radius:9px;
  background:linear-gradient(135deg,#dff0ff 0%,#b9d4ff 35%,#d4c2ff 70%,#f3e8ff 100%); color:#2a2350; border:1px solid rgba(255,255,255,.7);
  font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; line-height:1; vertical-align:middle; white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 6px rgba(190,200,255,.85),0 0 14px rgba(170,160,255,.5); animation:new-pill-glow 2s ease-in-out infinite; }
.new-pill::before { content:""; position:absolute; inset:0 0 50% 0; border-radius:9px 9px 4px 4px; background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,255,255,0)); pointer-events:none; }
@keyframes new-pill-glow { 0%,100% { box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 5px rgba(190,200,255,.7),0 0 10px rgba(170,160,255,.35); } 50% { box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 0 9px rgba(215,225,255,1),0 0 20px rgba(185,165,255,.75); } }
/* Curated Picks: the pill sits outside the button, over its bottom right corner (Jay, October 24, 2026). */
.hush-quick-pill.has-new-pill { position:relative; overflow:visible; }
.hush-quick-pill .new-pill { position:absolute; right:-8px; bottom:-8px; margin:0; height:16px; padding:0 6px; font-size:10px; z-index:1; pointer-events:none; }
/* The gear: at its bottom left, inside the header so it's never cut off. */
.member-profile-gear .new-pill.is-on-gear { position:absolute; bottom:-4px; right:24px; margin:0; height:15px; padding:0 5px; font-size:9.5px; pointer-events:none; }
/* Before "My preferences in the other person". */
/* The preferences heading while it's new: an opal card that breathes, its title in the opal gradient. */
.member-profile-pref-head.is-new { overflow:hidden; margin:12px 0 10px; padding:18px 16px 16px; border-radius:16px;
  border:1px solid rgba(205,210,255,.6); background:linear-gradient(135deg,rgba(185,212,255,.16),rgba(212,194,255,.14) 55%,rgba(243,232,255,.1)),#141920;
  animation:pref-head-glow 2.4s ease-in-out infinite; }
.member-profile-pref-head.is-new::after { content:""; position:absolute; top:0; bottom:0; left:-60%; width:45%; pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.18),transparent); animation:pref-head-sheen 3.2s ease-in-out infinite; }
.member-profile-pref-head.is-new .member-profile-pref-title { font-size:22px; background:linear-gradient(90deg,#dff0ff,#b9d4ff 35%,#d4c2ff 70%,#f3e8ff);
  -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 0 8px rgba(190,200,255,.7)); }
.member-profile-pref-head.is-new .member-profile-field-hint { color:#d9d2ff; text-shadow:0 0 10px rgba(185,165,255,.55); }
@keyframes pref-head-glow { 0%,100% { box-shadow:0 0 8px rgba(190,200,255,.35),0 0 18px rgba(170,160,255,.2); } 50% { box-shadow:0 0 16px rgba(215,225,255,.7),0 0 34px rgba(185,165,255,.45); } }
@keyframes pref-head-sheen { 0% { left:-60%; } 60%,100% { left:120%; } }
@media (prefers-reduced-motion: reduce) { .member-profile-pref-head.is-new,.member-profile-pref-head.is-new::after { animation:none; } .member-profile-pref-head.is-new::after { display:none; } }
@media (prefers-reduced-motion: reduce) { .new-pill { animation:none; } }

/* Your groups: Social groups, then Hush groups, each set off by a clear divider (Jay, October 24, 2026). */
.member-portal.app-framed .portal-menu-divider { height:0; margin:26px 16px 18px; border:0; border-top:2px solid #2c3440; }
.member-portal.app-framed .portal-menu-side-title { display:flex; align-items:center; gap:10px; margin:0 20px 10px; font-size:13px; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; }
.member-portal.app-framed .portal-menu-side.is-social .portal-menu-side-title { color:#e0957a; }
.member-portal.app-framed .portal-menu-side.is-hush .portal-menu-side-title { color:#d97757; }
/* The member's own invite link (Jay, October 27, 2026). */
.invites-link-card { display:flex; flex-direction:column; gap:12px; margin:6px 0 4px; padding:18px 16px; border:1px solid rgba(217,119,87,.55); border-radius:18px; background:rgba(217,119,87,.08); }
.invites-link-title { margin:0; color:#f2ede6; font-family:var(--room-serif,Georgia,serif); font-size:28px; font-weight:600; line-height:1.1; }
.invites-link-lead { margin:0; color:#e3d9cd; font-size:16px; line-height:1.45; }
.invites-link-row { display:flex; align-items:center; gap:10px; padding:8px 8px 8px 14px; border:1px dashed rgba(217,119,87,.6); border-radius:14px; background:rgba(0,0,0,.35); }
.invites-link-url { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f2ede6; font-size:15.5px; user-select:all; -webkit-user-select:all; }
.invites-link-copy { flex:none; min-height:44px; padding:0 16px; border:1px solid rgba(217,119,87,.7); border-radius:999px; background:none; color:#f3c3b0; font:inherit; font-size:15px; font-weight:600; cursor:pointer; }
body.app-framed .invites-link-share { width:100%; }
.invites-link-note { margin:0; color:#9aa6b6; font-size:14px; line-height:1.4; }
.invites-link-renew { align-self:center; min-height:44px; padding:0 12px; border:0; background:none; color:#c8b8ac; font:inherit; font-size:15px; text-decoration:underline; cursor:pointer; }
.invites-renew-title { margin:4px 0 6px; color:#f2ede6; font-size:21px; }

/* The header and the Filter button fade out over 1s while the Grid scrolls and back in over .5s once it stops
   (member-grid.js `gridScrolling`; Jay, October 28, 2026). */
#memberPortalHeader,.hush-chats-fab .hush-fab-bar { transition:opacity .5s ease; }
body.is-grid-scrolling #memberPortalHeader,body.is-grid-scrolling .hush-chats-fab .hush-fab-bar { opacity:0; transition:opacity 1s ease; pointer-events:none; }
/* On The Room's Grid the header lies over the scroll area instead of above it, with a spacer of its height at the top of
   the scroll, so nothing moves: the squares scroll on under it, show through while it fades out, and are hidden by its
   solid ground once it's back (Jay, October 28, 2026; `--grid-header-h` is measured by `gridScrolling`). Not while the ☰ menu
   is open: it hangs inside the header, which would then be its containing block and leave it 7px tall (a member's report). */
body:not(:is(.chat-conversation-open,.member-profile-open,.grid-chat-open)) main.app-frame:has(#portalGridPanel:not(.hidden) .room-grid):not(:has(#portalNavigation:not(.hidden))) > #memberPortalHeader { position:relative; z-index:8; margin-bottom:calc(-1 * var(--grid-header-h,0px)); background:#0d1014; }
body:not(:is(.chat-conversation-open,.member-profile-open,.grid-chat-open)) main.app-frame:has(#portalGridPanel:not(.hidden) .room-grid):not(:has(#portalNavigation:not(.hidden))) > #appScroll { padding-top:calc(12px + var(--grid-header-h,0px)); }
