/* The Community app (/chat/, src/CommunityPages.php; community/community.js): the game's Social drawer
   (groddle-afternoon js/ui/social-drawer.js, its rules in public/style.css "SOCIAL") laid out as a full
   screen chat app (Austin 2026-11-04). Inside .cx the site's tokens (--bg --surface --fg --muted --border
   --accent --track --row-line --chip-solid --play-*) are set to the drawer's Warm paper palette, copied
   from the game's design tokens (--surface-bright, --surface-card, --surface-parchment, --border,
   --border-strong, --text, --text-muted, --accent, --accent-soft and the avatar hues), with a dark twin
   for data-theme="dark". Keep the two in step when the drawer's look changes. The type is the game's own
   Nunito (SIL OFL 1.1, assets/fonts/nunito/, the same files the game serves). */

@font-face { font-family: Nunito; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito/nunito-roman-latin.woff2") format("woff2"); }

/* The drawer's palette for the whole page: the app and its header share it, so they read as one. The
   administrators' console (/console/, console/console.css) wears the same palette and header (Austin 2026-11-09). */
.community-page, .console-page, .cx {
  --bg: #fffdf8; --surface: #fbf5ea; --fg: #33241a; --muted: #6a5442; --lead: #4a3a2c; --border: #e2d2b4; --accent: #6b4c9e;
  --track: #f4e9d6; --row-line: #efe4cf; --chip-solid: #fffdf8; --play-bg: #6b4c9e; --play-fg: #fffdf8; --play-hover: #5b3f8a; --sun: #d39a26; --moss: #276b2c;
  --cx-parchment: #f4e9d6; --cx-strong: #cdb792; --cx-soft: #eee6f8; --cx-good: #276b2c; --cx-danger: #bf3127; --cx-inverse: #fffdf8;
  --cx-hue-0: #5b4f6b; --cx-hue-1: #2e5a20; --cx-hue-2: #9b1c1f; --cx-hue-3: #175070; --cx-hue-4: #674879; --cx-hue-5: #664d37; --cx-hue-6: #19587e; --cx-hue-7: #6a4f17;
}
:root[data-theme="dark"] .community-page, :root[data-theme="dark"] .console-page, :root[data-theme="dark"] .cx {
  --bg: #1d1813; --surface: #231d17; --fg: #f1e7d8; --muted: #b8a48c; --lead: #d9ccb8; --border: #3e3328; --accent: #b49ae0;
  --track: #2e261e; --row-line: #2a231c; --chip-solid: #2a231c; --play-bg: #b49ae0; --play-fg: #1b1426; --play-hover: #c6b0ec; --sun: #e3b04a; --moss: #6cc070;
  --cx-parchment: #2e261e; --cx-strong: #5a4a38; --cx-soft: #352b45; --cx-good: #6cc070; --cx-danger: #e8776c; --cx-inverse: #fffdf8;
}

/* A full-window app (Austin 2026-11-04 "minimal and integrated"): the page never scrolls or grows. The
   body is a column of the header and the app; the app takes what is left of the window, and its rail,
   conversation, thread panel and Who's around each scroll inside themselves. Phones: the parts keep
   inside the safe area (the page asks for viewport-fit=cover). */
html:has(> body.community-page) { height: 100%; overflow: hidden; overscroll-behavior: none; scroll-padding-top: 0; }
body.community-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--bg); }
.community-page > .site-nav { flex: none; }
.cx {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: var(--cx-rail-w) minmax(0, 1fr) var(--cx-side-w);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  margin: 0;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  overflow: hidden;
  color: var(--fg);
  background: var(--bg);
  font-family: Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.cx[data-cx-around="off"]:not([data-cx-threaded]) { grid-template-columns: var(--cx-rail-w) minmax(0, 1fr); }
/* Closed, Who's around is gone, never placed in a new grid row under the rail (it grew the page, 2026-11-04). */
.cx[data-cx-around="off"] .cx-around { display: none; }
.cx[data-signed="0"] { grid-template-columns: var(--cx-rail-w) minmax(0, 1fr); }
.cx [hidden] { display: none !important; }
.cx button { font: inherit; color: inherit; }
.cx :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The chat app's header (SiteNav::nav with the app layout, /chat/ only; Austin 2026-11-04 "a chat UI
   designed header just for this page"): the site's header and menu, full width and compact, over the
   app's columns: the wordmark over the left rail at its width, its mark centred over the rail's
   avatars and its words over their names; the menu's links, the bell and the theme button at the
   right; one hairline under it to the app. site/site-nav.css names the same parts for the View
   Transition, so the centred header stretches into this one.
   Minimal and integrated (Austin 2026-11-04): it wears the app's palette (the page's tokens above) and
   the rail's surface, with no backdrop blur, a compact 48 px row, the app's type for the links, and the
   page being read as a quiet soft pill (the rail's selected row) rather than the site's underline. */
.community-page { --site-nav-h: 48px; --cx-rail-w: 300px; --cx-side-w: 300px; }
.console-page .site-nav.site-nav-app, .community-page .site-nav.site-nav-app { position: relative; z-index: 30; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--border); }
.site-nav-app .site-nav-row { gap: 12px; min-height: var(--site-nav-h); padding: 0 12px 0 0; }
.site-nav-app .wordmark { box-sizing: border-box; align-self: stretch; width: var(--cx-rail-w); gap: 10px; padding: 0 16px 0 20px; font-size: 18px; }
.site-nav-app .wordmark img { width: 26px; height: 26px; margin: 0 1px; }
.site-nav-app .site-nav-links { gap: 2px; font-family: Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif; }
.site-nav-app .site-nav-links a:not(.site-nav-play) { padding: 5px 10px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-nav-app .site-nav-links a:not(.site-nav-play):hover { background: color-mix(in srgb, var(--cx-soft) 60%, transparent); }
.site-nav-app .site-nav-links a[aria-current="page"] { color: var(--fg); background: var(--cx-soft); }
.site-nav-app .site-nav-sub { gap: 0; }
.site-nav-app .site-nav-sub > a:not(.site-nav-play) { padding-right: 4px; }
.site-nav-app .site-nav-play { min-height: 30px; margin-left: 8px; padding: 0 14px; background: var(--play-bg); color: var(--play-fg); font-size: 14px; }
.site-nav-app .site-nav-play:hover { filter: none; background: var(--play-hover); }
:root[data-theme-mode] .site-nav-app .site-nav-theme, .site-nav-app .site-nav-bell-btn { width: 32px; height: 32px; }
.site-nav-app .site-nav-badge, .site-nav-app .site-nav-bell-n { background: var(--play-bg); color: var(--play-fg); }
.site-nav-menu { display: none; }

/* The bell (community/notifications.js) and its count: the theme button's size and line, the Community count's colours. */
.site-nav-bell { position: relative; flex-shrink: 0; view-transition-name: site-nav-bell; }
/* Arriving from another page, the bell comes in once the theme button has slid past it. */
::view-transition-new(site-nav-bell) { animation: 280ms cubic-bezier(0.2, 0, 0, 1) both cx-bell-in; }
@keyframes cx-bell-in { 0%, 60% { opacity: 0; } to { opacity: 1; } }
.site-nav-bell-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.site-nav-bell-btn::before, .site-nav-menu::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--nav-icon) center / contain no-repeat; mask: var(--nav-icon) center / contain no-repeat; }
.site-nav-bell-btn { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5a6 6 0 0 1 12 0c0 4.5 1.6 6.3 2.4 7H3.6c.8-.7 2.4-2.5 2.4-7z'/%3E%3Cpath d='M10 20a2.2 2.2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.site-nav-bell-btn:hover, .site-nav-bell-btn[aria-expanded="true"] { color: var(--fg); border-color: var(--muted); }
.site-nav-bell-btn:focus-visible, .site-nav-menu:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-nav-bell-n { position: absolute; top: -5px; right: -6px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #1f1407; box-shadow: 0 0 0 2px var(--surface); font-size: 11px; font-weight: 800; line-height: 1; }
.site-nav-bell-n[hidden] { display: none; }

/* Its panel: under the bell, the header's dropdown look (the submenus' .site-nav-panel). */
.notif-panel { position: absolute; z-index: 40; top: calc(100% + 8px); right: -52px; display: flex; flex-direction: column; width: min(380px, calc(100vw - 16px)); max-height: min(560px, calc(100dvh - var(--site-nav-h) - 24px)); box-sizing: border-box; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); font-family: var(--font-body); }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; flex: none; align-items: center; gap: 8px; padding: 10px 10px 8px 16px; border-bottom: 1px solid var(--border); }
.notif-title { flex: 1 1 auto; margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg); }
.notif-sample { padding: 1px 8px; border: 1px dashed var(--muted); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.notif-all { min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.notif-all:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.notif-all:disabled { color: var(--muted); cursor: default; background: transparent; }
.notif-list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
.notif-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
/* A buddy add's quiet actions under its row: View profile, Send IM. */
.notif-acts { display: flex; gap: 12px; margin: -4px 0 6px 52px; }
.notif-act { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 40%, transparent); text-underline-offset: 2px; cursor: pointer; }
.notif-act:hover, .notif-act:focus-visible { color: var(--fg); text-decoration-color: var(--accent); }
.notif-row:hover, .notif-row:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
.notif-row:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.notif-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--track); color: var(--fg); }
.notif-icon svg { width: 18px; height: 18px; }
.notif-icon[data-kind="im"] { background: color-mix(in srgb, var(--sky) 22%, var(--surface)); }
.notif-icon[data-kind="thread"] { background: color-mix(in srgb, var(--plum) 20%, var(--surface)); }
.notif-icon[data-kind="buddy"] { background: color-mix(in srgb, var(--moss) 22%, var(--surface)); }
.notif-icon[data-kind="ticket"] { background: color-mix(in srgb, var(--sun) 26%, var(--surface)); }
.notif-icon[data-kind="announce"] { background: color-mix(in srgb, var(--accent) 34%, var(--surface)); }
.notif-icon[data-kind="reply"], .notif-icon[data-kind="quote"] { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.notif-txt { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.notif-line { font-size: 14px; line-height: 1.35; color: var(--lead); overflow-wrap: anywhere; }
.notif-line b { color: var(--fg); font-weight: 800; }
.notif-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.notif-txt time { font-size: 12px; font-weight: 700; color: var(--muted); }
.notif-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; }
.notif-item[data-unread] .notif-dot { background: var(--accent); }
.notif-item[data-unread] .notif-line { color: var(--fg); font-weight: 700; }
.notif-more { margin: 0 10px 8px 52px; padding: 8px 10px; border-radius: 10px; background: var(--track); font-size: 14px; }
.notif-answer { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--lead); }
.notif-go { font-weight: 700; color: var(--fg); }
.notif-empty { margin: 0; padding: 18px 16px; color: var(--muted); font-size: 14px; }
.notif-said { margin: 0; padding: 0 16px 10px; font-size: 13px; color: var(--muted); }
.notif-said:empty { display: none; }

/* The rail: the drawer's Chats list, four sections, scrolling on its own; under it, pinned, the site
   footer's credit row (CommunityPages::RAIL_FOOT) in small muted type. */
.cx-rail { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-right: 1px solid var(--border); background: var(--surface); }
.cx-rail-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 16px; scrollbar-width: thin; }
.cx-rail-foot { flex: none; margin: 0; padding: 8px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--row-line); color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.cx-rail-foot a { color: inherit; text-decoration: none; }
.cx-rail-foot a:hover { color: var(--fg); text-decoration: underline; }
.cx-sec { display: grid; gap: 2px; }
.cx-sec-title { margin: 14px 8px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cx-list { display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cx-row { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--fg); text-align: left; text-decoration: none; cursor: pointer; }
.cx-row:hover, .cx-row:focus-visible { background: var(--cx-soft); }
.cx-row[aria-current] { background: var(--cx-soft); box-shadow: inset 3px 0 0 var(--accent); }
.cx-row.is-unread .cx-last { color: var(--fg); font-weight: 700; }
.cx-txt { display: grid; flex: 1 1 auto; min-width: 0; gap: 1px; }
.cx-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 15px; font-weight: 800; }
.cx-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-note { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.cx-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.cx-meta { display: grid; flex: none; justify-items: end; gap: 2px; font-size: 12px; color: var(--muted); }
.cx-meta time { font-size: 12px; }
.cx-empty { margin: 4px 8px; font-size: 13px; color: var(--muted); }
.cx-badge { display: inline-grid; flex: none; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; color: var(--cx-inverse); background: var(--cx-danger); }
.cx-rail-signin { margin: 16px 8px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.cx-rail-signin p { margin: 0 0 8px; color: var(--lead); }

/* Avatars: the drawer's round letters in eight colours, with the online dot */
.cx-av { position: relative; display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 800; color: var(--cx-inverse); background: var(--cx-hue-0); }
.cx-av-md { width: 28px; height: 28px; font-size: 13px; }
.cx-av-lg { width: 36px; height: 36px; font-size: 15px; }
.cx-av[data-hue="1"] { background: var(--cx-hue-1); } .cx-av[data-hue="2"] { background: var(--cx-hue-2); } .cx-av[data-hue="3"] { background: var(--cx-hue-3); }
.cx-av[data-hue="4"] { background: var(--cx-hue-4); } .cx-av[data-hue="5"] { background: var(--cx-hue-5); } .cx-av[data-hue="6"] { background: var(--cx-hue-6); } .cx-av[data-hue="7"] { background: var(--cx-hue-7); }
.cx-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: var(--cx-parchment); }
.cx-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--cx-good); box-shadow: 0 0 0 2px var(--surface); }
.cx-dot[data-status="idle"] { background: var(--sun); }
.cx-dot[data-status="web"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--cx-good), 0 0 0 2px var(--surface); }
.cx-people li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; }
.cx-people li[data-online="false"] .cx-av { opacity: 0.55; }
.cx-people .cx-who { display: grid; flex: 1 1 auto; min-width: 0; color: var(--fg); text-decoration: none; font-weight: 800; }
.cx-people .cx-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); }
a.cx-who:hover .cx-label { text-decoration: underline; }
.cx-chip, .cx .cbutton { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--cx-strong); border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.cx-chip:hover, .cx .cbutton:hover { background: var(--cx-parchment); border-color: var(--cx-strong); }
.cx .cbutton-quiet { background: transparent; }

/* The conversation */
.cx-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
/* A board or a topic on its way in (community/chat-nav.js): dimmed only when it takes a moment. */
.cx-pane[aria-busy="true"] { opacity: .6; transition: opacity .15s ease .2s; }
.cx-conv { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.cx-head { display: flex; flex: none; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--cx-parchment); }
.cx-head-txt { display: grid; flex: 1 1 auto; min-width: 0; }
.cx-head-name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 17px; font-weight: 800; color: var(--fg); }
.cx-about, .cx-head .cmeta { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cx-head-acts { display: flex; flex: none; flex-wrap: wrap; gap: 6px; }
.cx-back { display: none; flex: none; align-items: center; gap: 2px; min-height: 28px; padding: 0 10px 0 6px; border: 1px solid var(--cx-strong); border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 700; text-decoration: none; }
.cx-back svg, .cx-x svg { width: 12px; height: 12px; }
.cx-log { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-height: 0; padding: 12px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cx-list-log { padding: 8px 10px; }
.cx-time { align-self: center; padding: 4px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.cx-day { display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; font-size: 13px; font-weight: 800; color: var(--fg); }
.cx-day::before, .cx-day::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.cx-compose { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); }
.cx-compose-bar { display: flex; justify-content: center; }
.cx-say { display: flex; align-items: flex-end; gap: 4px; }
.cx-field, .cx .cx-field { flex: 1 1 auto; box-sizing: border-box; min-width: 0; min-height: 36px; margin: 0; padding: 8px 14px; border: 1px solid var(--cx-strong); border-radius: 18px; background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; line-height: 18px; resize: none; }
/* The box grows with its words (community.js grow) to about half the screen, then scrolls (Friendly's Bugs thread 6). */
textarea.cx-field { display: block; height: 36px; max-height: 50vh; max-height: 50dvh; overflow-y: hidden; }
.cx-title-field { margin-bottom: 6px; border-radius: 18px; border-color: var(--cx-strong); background: var(--bg); font-weight: 700; }
.cx-send { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; }
.cx-send:hover { background: var(--cx-parchment); }
.cx-send svg { width: 20px; height: 20px; }
.cx-compose .chint { margin: 4px 6px 0; font-size: 12px; }
.cx-compose .csaid { margin: 4px 6px 0; }
.cx-compose .creply, .cx-compose .cform, .cx-compose .cpanel { padding: 0; border: 0; background: none; }
.cx-signin { margin: 16px 18px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cx-signin h2 { margin: 0 0 4px; font-size: 18px; }
.cx-signin p { margin: 0 0 10px; color: var(--lead); }

/* Lines: "name words", the drawer's .social-msg */
.cchan-lines { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* The right of a line keeps room for its hover time and the two action buttons, so the words wrap before them and nothing moves on hover. */
.cchan-line { position: relative; margin: 0; padding: 2px 136px 2px 0; overflow-wrap: anywhere; border-radius: 6px; }
.cchan-line:hover, .cchan-line:focus-within { background: color-mix(in srgb, var(--cx-parchment) 55%, transparent); }
.cchan-line > time { display: none; }
.cchan-line:hover > time { display: inline; position: absolute; right: 64px; top: 7px; width: 64px; text-align: right; font-size: 11px; line-height: 1; white-space: nowrap; color: var(--muted); }
.cchan-name { font-weight: 800; color: var(--fg); }
.cchan-line.is-mine .cchan-name { color: var(--accent); }
.cchan-name a { color: inherit; text-decoration: none; }
.cchan-name a:hover { text-decoration: underline; }
.cchan-web { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.cchan-text a { color: var(--fg); text-decoration-color: var(--accent); }
.cchan-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.cx-acts { position: absolute; top: 0; right: 0; display: flex; gap: 2px; opacity: 0; }
.cchan-line:hover .cx-acts, .cchan-line:focus-within .cx-acts { opacity: 1; }
.cx-act { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cx-act:hover { background: var(--cx-parchment); color: var(--fg); }
.cx-act svg { width: 18px; height: 18px; }
/* "3 replies · Ada": a button of its own under the line, with room before the next line (the drawer's .thread-open). */
.cx-replies { display: flex; align-items: center; gap: 5px; width: fit-content; min-height: 26px; margin: 5px 0 6px; padding: 0 10px 0 8px; border: 1px solid var(--cx-strong); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 800; line-height: 1; color: var(--accent); text-decoration: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.cx-replies svg { width: 15px; height: 15px; flex: none; }
.cx-replies:hover { border-color: var(--accent); background: var(--cx-soft); }
.cchan-more { align-self: center; }
.cchan-empty { margin: 0; color: var(--muted); }

/* Who's around and a line's thread: the right column */
.cx-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.cx-side-head { display: flex; flex: none; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--cx-parchment); }
.cx-side-title { flex: 1 1 auto; margin: 0; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--fg); }
.cx-x { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transform: scaleX(-1); }
.cx-x:hover { background: var(--bg); color: var(--fg); }
.cx-around .cx-people { flex: 1 1 auto; min-height: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cx-switch { display: flex; align-items: center; gap: 8px; margin: 10px 14px 0; font-weight: 700; cursor: pointer; }
.cx-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.cx-switch-hint { margin: 2px 14px 6px 40px; }
.cx-thread { grid-column: 3; grid-row: 1; }
.cx[data-cx-threaded] .cx-around { display: none; }
.cx-thread .cx-log { padding: 10px 14px; }
.cx-thread-parent { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.cx-thread-parent .cchan-line { padding-right: 0; }
.cx-thread-count { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
/* The panel is narrow: a hovered line's time sits on its own at the right, never over the name. */
.cx-thread .cchan-line { padding-right: 64px; }
.cx-thread .cchan-line:hover > time { position: static; float: right; width: auto; margin: 0 0 0 6px; line-height: inherit; }

/* Board topics in the Chats list's rows */
.cthread-list { gap: 2px; }
.cthread[data-pinned] .cx-row { background: color-mix(in srgb, var(--sun) 9%, transparent); }
.cthread-title { font-weight: 800; }
.cthread-by { color: var(--muted); }
.cthread-count { font-weight: 700; }
.cx .ctag { margin-left: 0; padding: 0 7px; border-color: var(--cx-strong); background: var(--bg); font-size: 11px; }
.cx .cpager { display: flex; justify-content: space-between; align-items: center; margin: 8px 6px; font-size: 13px; color: var(--muted); }
.cx .cpager a { color: var(--accent); font-weight: 800; text-decoration: none; }

/* A topic's posts as chat lines */
.cx .cposts { display: flex; flex-direction: column; gap: 10px; border: 0; background: none; }
.cx .cpost { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 4px 6px; border: 0; border-radius: 8px; }
.cx .cpost:hover, .cx .cpost:focus-within { background: color-mix(in srgb, var(--cx-parchment) 55%, transparent); }
.cx .cpost:target, .cx .cpost[data-fresh] { background: var(--cx-soft); }
.cx .cpost-face { width: 28px; height: 28px; background: var(--cx-hue-0); }
.cx .cpost-tile { width: 28px; height: 40px; }
.cx .cpost-initial { color: var(--cx-inverse); font-size: 13px; }
.cx .cpost-name { font-weight: 800; }
.cx .cpost-time, .cx .cpost-edited { font-size: 12px; }
.cx .cpost-body { margin-top: 0; line-height: 1.45; }
.cx .cpost-actions { margin-top: 2px; }
.cx .cact { min-height: 26px; padding: 0 6px; font-size: 12px; }
.cx .cpost:not(:hover):not(:focus-within) .cpost-actions { opacity: 0; }
.cx .cquote { background: var(--cx-parchment); }
.cx .cnew { padding: 6px; }

/* Buttons and tags */
.cbutton { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; border: 1px solid var(--play-bg); border-radius: 999px; background: var(--play-bg); color: var(--play-fg); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cbutton:hover { background: var(--play-hover); border-color: var(--play-hover); }
.cbutton:disabled { opacity: 0.6; cursor: progress; }
.cbutton-quiet { background: var(--surface); border-color: var(--border); color: var(--fg); }
.cbutton-quiet:hover { background: var(--surface); border-color: var(--fg); }
.cbutton:focus-visible, .cact:focus-visible, .cchip:focus-visible, .cpicker button:focus-visible, .community a:focus-visible, .cinput:focus-visible, .ctext:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ctag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--track); color: var(--fg); font-size: 12px; font-weight: 700; vertical-align: 2px; letter-spacing: 0.02em; }
.ctag-pin { border-color: var(--sun); }
.ctag-staff { border-color: var(--moss); color: var(--fg); }
.ctag-bad { border-color: var(--accent); }

/* A thread: a compact run of posts, chat-like */
.cposts { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cpost { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--row-line); scroll-margin-top: calc(var(--site-nav-h, 60px) + 12px); }
.cpost:first-child { border-top: 0; }
.cpost:target, .cpost[data-fresh] { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cpost-face { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; background: var(--track); display: grid; place-items: center; }
.cpost-tile { width: 40px; height: 58px; object-fit: cover; object-position: 50% 8%; align-self: start; }
.cpost-initial { font-weight: 800; color: var(--muted); font-size: 17px; }
.cpost-main { min-width: 0; }
.cpost-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cpost-name { font-weight: 800; color: var(--fg); text-decoration: none; }
a.cpost-name:hover { text-decoration: underline; }
.cpost-head .ctag { margin-left: 0; }
.cpost-time, .cpost-edited { color: var(--muted); font-size: 13px; text-decoration: none; }
.cpost-time:hover { text-decoration: underline; }
.cpost-edited { font-style: italic; }
.cpost-body { margin-top: 2px; overflow-wrap: anywhere; line-height: 1.5; }
.cpost-body p { margin: 0 0 8px; white-space: pre-wrap; }
.cpost-body p:last-child { margin-bottom: 0; }
.cpost-body a, .cquote a { color: var(--fg); text-decoration-color: var(--accent); }
/* Basic Markdown in posts (CommunityText::bodyHtml, 2026-11-11): lists, quotes, code. */
.cpost-body ul, .cpost-body ol { margin: 0 0 8px; padding-left: 1.4em; }
.cpost-body li { margin: 2px 0; }
.cpost-body blockquote { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--border); color: var(--lead); }
.cpost-body blockquote p { margin: 0; }
.cpost-body code { padding: 1px 5px; border-radius: 5px; background: var(--track); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.cpost-body pre { margin: 0 0 8px; padding: 10px 12px; overflow-x: auto; border: 1px solid var(--row-line); border-radius: 8px; background: var(--track); }
.cpost-body pre code { padding: 0; border: 0; background: none; font-size: 0.9em; white-space: pre; }
.cpost-body del { color: var(--muted); }
.cpost-body > :last-child { margin-bottom: 0; }
.cpost-gone { margin: 2px 0 0; color: var(--muted); font-style: italic; }
.cquote { margin: 6px 0 8px; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--track); border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px; }
.cquote > a { font-weight: 700; text-decoration: none; }
.cquote p { margin: 2px 0 0; color: var(--lead); overflow-wrap: anywhere; }
.cpost-blocked > summary { cursor: pointer; color: var(--muted); font-style: italic; }
.cpost-blocked[open] > summary { margin-bottom: 6px; }

/* Reactions: chips under the words */
.cpost-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cpost-reactions[data-empty] { display: none; }
.cchip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--chip-solid); color: var(--fg); font: inherit; font-size: 14px; font-weight: 700; line-height: 1; }
button.cchip { cursor: pointer; }
button.cchip:hover { border-color: var(--muted); }
.cchip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--chip-solid)); }
.cchip-glyph { font-size: 16px; }
/* Tiny Speck's "Hi" sign (CC0), its letters cut from the frame as the game's .react-glyph-hi: the art is
   444 x 348 at 3x, the letters at 197,171 and 74 x 60. */
.cchip-hi { display: inline-block; width: 1.5em; height: calc(1.5em * 60 / 74); background: url("/assets/sprites/hi-signs/hi_hi_1@3x.webp") no-repeat; background-size: calc(1.5em * 444 / 74) calc(1.5em * 348 / 74); background-position: calc(1.5em * -197 / 74) calc(1.5em * -171 / 74); }
.cpicker .cchip-hi { font-size: 16px; }

/* A post's actions: quiet text buttons */
.cpost-actions { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 6px; }
.cact { display: inline-flex; align-items: center; min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cact:hover, .cact[aria-expanded="true"] { background: var(--track); color: var(--fg); }
.cpost:not(:hover):not(:focus-within) .cpost-actions .cact { color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* The reaction picker community.js places under React */
.cpicker { position: absolute; z-index: 30; display: flex; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.cpicker[hidden] { display: none; }
.cpicker button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; font-size: 20px; cursor: pointer; }
.cpicker button:hover, .cpicker button[aria-pressed="true"] { background: var(--track); }
/* Eight in a row are 330 px with the 8 px community.js keeps to each side of the window: a narrower phone gets closer, smaller buttons (280 px). */
@media (max-width: 345px) {
  .cpicker { gap: 2px; padding: 4px; }
  .cpicker button { width: 32px; height: 32px; }
}

/* Editing in place */
.cedit { display: grid; gap: 8px; margin-top: 4px; }
.cedit-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* The reply box and the new thread form */
.creply, .cform, .cpanel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; }
.cpanel p { margin: 0 0 10px; color: var(--lead); }
.cpanel p:last-child { margin-bottom: 0; }
.cform { display: grid; gap: 6px; }
.clabel { font-weight: 700; margin-top: 6px; }
.cinput, .ctext { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; line-height: 1.4; }
.ctext { display: block; resize: vertical; min-height: 46px; max-height: 50vh; }
.ctext-tall { min-height: 180px; }
.cinput::placeholder, .ctext::placeholder { color: var(--muted); opacity: 1; }
.cform-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 8px; }
.chint { margin: 0; color: var(--muted); font-size: 13px; }
.csaid { margin: 6px 0 0; min-height: 1em; color: var(--muted); font-size: 14px; }
.csaid:empty { display: none; }
.csaid[data-tone="bad"] { color: var(--fg); font-weight: 700; }
.cquoting { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--track); border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; color: var(--lead); }
.cquoting[hidden] { display: none; }
.cquoting-off { color: var(--muted); font-size: 13px; }
.cnew { margin: 0; text-align: center; }
.cnew a { font-weight: 700; color: var(--fg); }

/* The sign-in form community.js shows in a sign-in panel */
.csignin-form { display: grid; gap: 8px; max-width: 28em; margin-top: 10px; }
.csignin-form[hidden] { display: none; }
/* Continue with Google above the email (the game's .acct-google and .acct-or). */
.csignin-google { display: grid; gap: 8px; justify-items: start; min-height: 44px; }
.csignin-google[hidden] { display: none; }
.csignin-or { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--muted); font-size: 14px; }
.csignin-or::before, .csignin-or::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
button.cquoting-off { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* A link to another site asks first (the game's js/chat-links.js openLinkConfirm). */
.chat-link-confirm { position: fixed; z-index: 40; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2); font-size: 14px; }
.chat-link-confirm-text { margin: 0 0 8px; overflow-wrap: anywhere; }
.chat-link-confirm-row { display: flex; gap: 8px; }
.chat-link-confirm-open, .chat-link-confirm-cancel { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.chat-link-confirm-open { background: var(--play-bg); color: var(--play-fg); border: 1px solid var(--play-bg); }
.chat-link-confirm-cancel { background: transparent; color: var(--fg); border: 1px solid var(--border); }

/* Right-click menus (community/chat-menus.js): the game's context menu (public/js/ui/context-menu.js and
   its Modern card in public/style.css, RIGHTCLICK), in the drawer's palette: a raised card, 32 px rows
   with key caps, the footer line saying what a row does or why it can't be done now. */
.cx-ctx { display: none; }
.cx-ctx:not([hidden]) { position: fixed; z-index: 45; display: block; box-sizing: border-box; width: 236px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--fg); box-shadow: 0 6px 12px rgba(40, 24, 8, 0.2), 0 20px 48px rgba(40, 24, 8, 0.34); font-size: 14px; line-height: 1.15; transform-origin: 0 0; animation: cx-ctx-in 140ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes cx-ctx-in { from { opacity: 0; transform: translateY(-3px); } }
.cx-ctx .ctx-head { padding: 2px 6px 4px; }
.cx-ctx .ctx-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; font-weight: 800; }
.cx-ctx .ctx-title:empty { display: none; }
.cx-ctx .vm-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; margin: 0; padding: 0 8px 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--fg); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.cx-ctx .vm-row:hover, .cx-ctx .vm-row.cur { background: var(--cx-soft); }
.cx-ctx .vm-row:focus { outline: none; }
.cx-ctx .vm-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cx-ctx .vm-row[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.cx-ctx .vm-key { display: inline-grid; flex: none; place-items: center; box-sizing: border-box; min-width: 16px; height: 16px; padding: 0 3px; border: 1px solid var(--cx-strong); border-radius: 4px; background: var(--cx-parchment); color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1; }
.cx-ctx .vm-key-none { visibility: hidden; }
.cx-ctx .vm-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-ctx .vm-lock, .cx-ctx .vm-check { flex: none; color: var(--muted); }
.cx-ctx .vm-detail { margin: 4px 2px 0; padding: 6px 8px; min-height: 32px; box-sizing: border-box; border-radius: 6px; background: var(--cx-parchment); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.35; }
.cx-ctx .vm-detail[hidden] { display: none; }
.cx-ctx .vm-detail.bad { color: var(--cx-danger); }
/* A name with no page of its own opens its menu (it reads as the name, as the game's chat names do). */
.cchan-who { margin: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.cchan-who:hover { text-decoration: underline; }
.cchan-line, .cx-people li, .cx-rail .cx-row, .cpost { -webkit-touch-callout: none; }
/* A line a link opened at (#l<id>). */
.cchan-line[data-cx-hit] { background: var(--cx-soft); box-shadow: inset 3px 0 0 var(--accent); }
.cx-row.is-muted .cx-label::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; background: var(--muted); -webkit-mask: var(--cx-mute) center / contain no-repeat; mask: var(--cx-mute) center / contain no-repeat; }
.cx { --cx-mute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5a6 6 0 0 1 9.6-4.8M18 9.5c0 4.5 1.6 6.3 2.4 7H7.5M10 20a2.2 2.2 0 0 0 4 0M3 3l18 18'/%3E%3C/svg%3E"); }
/* Report (a player or a line): a small box over the app; then a ticket for the team. */
.cx-report { position: fixed; z-index: 46; left: 50%; top: 18vh; display: grid; gap: 6px; width: min(420px, calc(100vw - 24px)); box-sizing: border-box; padding: 16px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 14px; background: var(--bg); box-shadow: 0 6px 12px rgba(40, 24, 8, 0.2), 0 20px 48px rgba(40, 24, 8, 0.34); }
.cx-report-title { margin: 0; font-family: inherit; font-size: 17px; font-weight: 800; color: var(--fg); }
.cx-report-line { margin: 0; padding: 6px 10px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--cx-parchment); color: var(--lead); overflow-wrap: anywhere; }
.cx-toast { position: fixed; z-index: 46; left: 50%; bottom: 18px; margin: 0; padding: 8px 14px; transform: translateX(-50%); border: 1px solid var(--border); border-radius: 999px; background: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
@media (prefers-reduced-motion: reduce) { .cx-ctx:not([hidden]) { animation: none; } }

/* Narrower: Who's around and a thread slide in over the conversation */
@media (max-width: 1180px) {
  .cx, .cx[data-cx-around="off"]:not([data-cx-threaded]) { grid-template-columns: var(--cx-rail-w) minmax(0, 1fr); }
  .cx-side { position: absolute; z-index: 25; grid-column: auto; grid-row: auto; top: 0; right: 0; bottom: 0; width: min(var(--cx-side-w), 100%); box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16); }
  .cx-around { display: none; }
  .cx[data-cx-around="on"] .cx-around { display: flex; }
  .cx[data-cx-threaded] .cx-around { display: none; }
}
@media (min-width: 1181px) {
  .cx [data-cx-around-open][aria-expanded="true"] { background: var(--cx-soft); }
}
/* Between a phone and a wide window the menu keeps one row: the mark alone over the rail. */
@media (min-width: 721px) and (max-width: 960px) {
  .site-nav-app .wordmark { width: auto; padding-right: 4px; }
  .site-nav-app .wordmark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-nav-app .site-nav-links { margin-left: auto; }
}
/* Phones: the list is one screen, a conversation another (the drawer's "‹ Chats") */
@media (max-width: 720px) {
  .cx, .cx[data-signed="0"], .cx[data-cx-around="off"]:not([data-cx-threaded]) { grid-template-columns: minmax(0, 1fr); }
  .cx[data-cx-view="list"] .cx-pane { display: none; }
  .cx[data-cx-view="main"] .cx-rail { display: none; }
  .cx-rail { border-right: 0; }
  .cx-back { display: inline-flex; }
  .cx-side { width: 100%; }
  .cx-head { padding: 8px 10px; }
  .cx-log { padding: 10px 12px; }
  .cchan-line { padding-right: 0; }
  .cx-acts { position: static; display: inline-flex; opacity: 1; vertical-align: middle; }
  .cchan-line:hover > time { display: none; }
}

/* The chat app's header on a phone: one compact bar, the mark, the bell, the theme button and a menu
   button (community.js; data-menu once it runs) that drops the menu's links down under the bar. */
@media (max-width: 720px) {
  .community-page { --site-nav-h: 46px; }
  .site-nav-app .site-nav-row { gap: 8px; padding: 0 10px 0 0; }
  .site-nav-app .wordmark { width: auto; padding: 0 4px 0 12px; border-right: 0; font-size: 17px; }
  .site-nav-app[data-menu] .wordmark { margin-right: auto; }
  .site-nav-app[data-menu] .site-nav-bell { order: 1; }
  .site-nav-app[data-menu] .site-nav-theme { order: 2; }
  .site-nav-app[data-menu] .site-nav-menu { order: 3; display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
  .site-nav-app[data-menu="open"] .site-nav-menu { color: var(--fg); border-color: var(--muted); --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
  .site-nav-app[data-menu] .site-nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 16px 14px; overflow: visible; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 16px 28px -20px rgba(0, 0, 0, 0.5); }
  .site-nav-app[data-menu="open"] .site-nav-links { display: flex; }
  .site-nav-app[data-menu] .site-nav-links a:not(.site-nav-play) { padding: 11px 2px; font-size: 16px; border-bottom: 1px solid var(--row-line); white-space: normal; }
  .site-nav-app[data-menu] .site-nav-links a:not(.site-nav-play) { border-radius: 0; background: none; }
  .site-nav-app[data-menu] .site-nav-links a[aria-current="page"] { border-bottom-color: var(--row-line); box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-nav-app[data-menu] .site-nav-links .site-nav-play { position: static; align-self: flex-start; margin-top: 12px; box-shadow: none; padding: 0 18px; font-size: 15px; min-height: 36px; }
  .site-nav-app[data-menu] .site-nav-sub { display: block; }
  .site-nav-app[data-menu] .site-nav-toggle { display: none; }
  .site-nav-app[data-menu] .site-nav-panel, .site-nav-app[data-menu] .site-nav-panel[hidden] { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; min-width: 0; margin: 0 0 4px; padding: 2px 0 6px 14px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .site-nav-app[data-menu] .site-nav-panel::before { display: none; }
  .site-nav-app[data-menu] .site-nav-links .site-nav-panel a { padding: 8px 4px; font-size: 14px; color: var(--muted); border-bottom: 0; }
  /* A panel with groups (site/site-nav.css): each group under its heading, two links to a row, then its footer links. */
  .site-nav-app[data-menu] .site-nav-panel-groups, .site-nav-app[data-menu] .site-nav-panel-groups[hidden] { display: block; max-height: none; overflow: visible; padding: 0 0 6px 14px; }
  .site-nav-app[data-menu] .site-nav-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .site-nav-app[data-menu] .site-nav-head { grid-column: 1 / -1; padding: 8px 4px 0; }
  .site-nav-app[data-menu] .site-nav-panel-foot { justify-content: flex-start; margin-top: 4px; padding-top: 2px; }
  /* A third level (site/site-nav.css): one column, the nested links indented along their guide. */
  .site-nav-app[data-menu] .site-nav-panel-nest, .site-nav-app[data-menu] .site-nav-panel-nest[hidden] { display: block; }
  .site-nav-app[data-menu] .site-nav-nest { margin-left: 8px; }
  .notif-panel { position: fixed; top: calc(var(--site-nav-h) + env(safe-area-inset-top) + 6px); left: 8px; right: 8px; width: auto; max-height: calc(100dvh - var(--site-nav-h) - env(safe-area-inset-top) - 16px); }
}
@media (max-width: 440px) {
  .site-nav-app .site-nav-bell-btn, .site-nav-app[data-menu] .site-nav-menu { width: 32px; height: 32px; }
}
