/* Community chat (Discord-style, Street Gonzo neon). Behaviour and permissions are unchanged; this is look and layout. */
.community-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 14px;font-size:.82rem}.community-links a{color:#bdbdbd;text-decoration:none}.community-links a:hover{color:#fff}.community-links a.is-mod{color:#ff8a7a}
.community{--cm-line:#262626;--cm-muted:#9a9a9a;--cm-panel:#121212}
.community-layout{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);border:1px solid var(--cm-line);border-radius:8px;overflow:hidden;background:#0b0b0b;margin:0 0 24px}
.community:is(:not([data-broadcast-id]),[data-broadcast-id=""]) .community-layout{height:calc(100dvh - var(--header-h,72px) - 110px);min-height:520px}
.community-channels{background:var(--cm-panel);border-right:1px solid var(--cm-line);padding:16px 10px;overflow:auto;display:flex;flex-direction:column}
.community-channels h2{font-family:Anton,Impact,sans-serif;font-size:1.6rem;color:#ff4433;text-shadow:var(--neon-glow);margin:0 0 6px 8px}
.community-channels h3{margin:16px 8px 4px;font:700 .68rem Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--cm-muted)}
.community-channels button{position:relative;display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:transparent;color:#cfcfcf;border:0;border-radius:6px;min-height:40px;padding:8px 10px;font-size:.9rem;overflow-wrap:anywhere;cursor:pointer}
.community-channels button::before{content:"#";color:#666}
.community-channels button:hover{background:#1c1c1c}
.community-channels button[aria-current=true]{background:rgba(255,42,31,.12);color:#fff;box-shadow:inset 3px 0 0 var(--neon,#ff2a1f)}
.community-channels button.is-unread{color:#fff;font-weight:700}
.cm-unread{margin-left:auto;flex:0 0 8px;height:8px;border-radius:50%;background:var(--neon,#ff2a1f);box-shadow:0 0 6px var(--neon,#ff2a1f)}
.cm-create{margin-top:auto;padding-top:12px;border:0}.cm-create summary{color:#ff6a5a;font-size:.85rem;padding:8px 10px;cursor:pointer}
.community-messages{display:flex;flex-direction:column;min-width:0;min-height:0}
.cm-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid var(--cm-line)}
.cm-head h2{margin:0;font-family:Anton,Impact,sans-serif;font-size:1.6rem;color:#fff}.cm-head h2::before{content:"# ";color:#ff4433}.cm-head h2.is-plain::before{content:none}
.cm-head #community-topic{margin:2px 0 0;color:var(--cm-muted);font-size:.82rem}
.cm-head-button{background:transparent;color:#ddd;border:1px solid #333;border-radius:4px;padding:5px 10px;font-size:.8rem;cursor:pointer}.cm-head-button:hover{border-color:#ff4433}
#community-presence{margin:0 0 0 auto;font-size:.78rem;color:#7bd88f}#community-presence:not(:empty)::before{content:"● "}
#community-pins{flex-shrink:0;margin:8px 20px;padding:10px;border:1px solid #333;border-radius:6px;max-height:40vh;overflow:auto;background:#101010}
#community-older{display:none!important} /* Gary, Nov 22: no Earlier messages button; they load as you scroll up (community.js) */
#community-history{flex:1;min-height:220px;overflow:auto;overscroll-behavior:contain;padding:8px 0}
.community[data-broadcast-id] #community-history{max-height:60vh}
.cm-day{display:flex;align-items:center;gap:12px;margin:12px 20px;color:var(--cm-muted);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase}.cm-day::before,.cm-day::after{content:"";flex:1;height:1px;background:var(--cm-line)}
.community-message{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:8px 20px;overflow-wrap:anywhere}
.community-message:hover,.community-message:focus-within,.community-message.is-active{background:#151515}
.cm-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#2a2a2a;border:1px solid #3a3a3a;color:#ff6a5a;font:700 .9rem Arial,sans-serif}
.cm-avatar.is-staff{background:#200;border-color:var(--neon,#ff2a1f);color:#fff}
.cm-meta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.cm-name{font-weight:700;color:#fff!important;text-decoration:none!important}.cm-name:hover{text-decoration:underline!important}
.community-author-badge{font:700 .6rem Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#000;background:var(--neon,#ff2a1f);border-radius:3px;padding:1px 5px}
.cm-meta time,.cm-meta .edited,.cm-flag{font-size:.72rem;color:#777}
.cm-replying{display:block;font-size:.76rem;color:var(--cm-muted)!important;text-decoration:none!important;margin-bottom:2px}
.cm-main>p{margin:3px 0;line-height:1.45;color:#e6e6e6}.cm-deleted{font-style:italic;color:#777!important}
.cm-main pre{white-space:pre-wrap;background:#1c1c1c;color:#eee;padding:10px;border-radius:4px}.cm-main blockquote{border-left:3px solid #555;padding-left:10px;margin:4px 0;color:#ccc}
.community-message a{color:#ff8a7a}
.community-reactions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.cm-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #333;background:#1a1a1a;color:#ddd;border-radius:999px;padding:2px 10px;font-size:.82rem;min-height:28px;cursor:pointer}
.cm-chip[aria-pressed=true]{border-color:#333;background:#2e2e2e;color:#fff}.cm-chip:disabled{cursor:default}
.cm-chip-add{color:#888}
.cm-picker{display:flex;gap:4px;margin:4px 0;padding:4px;width:max-content;background:#1b1b1b;border:1px solid #333;border-radius:8px}
.cm-pick{background:none;border:0;border-radius:6px;font-size:1.2rem;padding:4px 6px;cursor:pointer}.cm-pick:hover,.cm-pick[aria-pressed=true]{background:#2a2a2a}
.cm-thread{background:none;border:0;padding:0;margin-top:4px;color:#ff6a5a;font-size:.8rem;cursor:pointer}.cm-thread:hover{text-decoration:underline}
.cm-tools{position:absolute;right:20px;top:-14px;display:none;gap:2px;padding:2px;background:#1b1b1b;border:1px solid #333;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.6);z-index:2}
.community-message:hover .cm-tools,.community-message:focus-within .cm-tools,.community-message.is-active .cm-tools{display:flex}
.cm-tool{background:none;border:0;color:#ddd;padding:5px 9px;border-radius:4px;font-size:.85rem;cursor:pointer;list-style:none;min-height:32px;display:flex;align-items:center}.cm-tool:hover{background:#2a2a2a}
.cm-more{position:relative;display:flex;border:0;margin:0;padding:0}.cm-more>summary::-webkit-details-marker{display:none}
.cm-menu{position:absolute;right:0;top:calc(100% + 4px);width:210px;padding:6px;background:#161616;border:1px solid #333;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.7);display:grid;z-index:3}
.cm-menu-item{display:block;width:100%;text-align:left;background:none;border:0;color:#ddd!important;padding:8px 10px;font:400 .85rem/1.3 Arial,Helvetica,sans-serif;margin:0;border-radius:4px;text-decoration:none!important;cursor:pointer}.cm-menu-item:hover{background:#242424}
.cm-menu-item.is-mod{color:#ff8a7a!important}.cm-menu-label{display:block;border-top:1px solid #2a2a2a;margin-top:4px;padding:8px 10px 2px;color:#777;font-size:.64rem;letter-spacing:.1em;text-transform:uppercase}
.cm-empty{padding:24px 20px;color:var(--cm-muted)}
.cm-compose{border-top:1px solid var(--cm-line);padding:10px 20px 12px}
#community-typing{min-height:1.2em;margin:0;font-size:.78rem;color:var(--cm-muted)}#community-reply{margin:0 0 4px;font-size:.8rem;color:#ff8a7a}#community-reply:empty{display:none}
.cm-box{display:flex;align-items:flex-end;gap:10px;background:#161616;border:1px solid #333;border-radius:8px;padding:6px 6px 6px 12px}
.cm-box:focus-within{border-color:#444;box-shadow:none}
.community .cm-box textarea{flex:1;border:0;background:none;color:#fff;padding:8px 0;resize:none;min-height:40px;max-height:200px;font:inherit}
.community .cm-box textarea:focus-visible{outline:none}
.cm-send{border:2px solid var(--neon,#ff2a1f);background:rgba(20,0,0,.55);color:#fff;font-weight:700;border-radius:6px;padding:8px 18px;min-height:40px;box-shadow:0 0 8px rgba(255,42,31,.6);cursor:pointer}.cm-send:hover{background:var(--neon,#ff2a1f);color:#000}
.cm-compose-extras{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:6px}
#community-format{margin:0;font-size:.72rem;color:#666}
.cm-cancel{background:none;border:0;color:#ff8a7a;font-size:.78rem;padding:0;cursor:pointer}
.cm-attach{border:0;margin:0;padding:0}.cm-attach summary{font-size:.75rem;color:#888;cursor:pointer}.cm-attach[open]{flex-basis:100%}
.cm-status{margin:4px 0 0;font-size:.72rem;color:#777;min-height:1em}
#community-readonly{margin:8px 20px;color:var(--cm-muted)}
.community label{display:block;margin:10px 0 4px;font-size:.85rem}.community .community-channels textarea,.community .community-channels input:not([type=checkbox]),.cm-attach input{display:block;width:100%;border:1px solid #444;background:#151515;color:#eee;padding:8px;border-radius:4px}
.community button:focus-visible,.community a:focus-visible,.community textarea:focus-visible,.community input:focus-visible,.community summary:focus-visible{outline:2px solid #fff;outline-offset:2px}
.community [hidden]{display:none!important}
@media(max-width:767px){
 .community:is(:not([data-broadcast-id]),[data-broadcast-id=""]) .community-layout{height:auto;min-height:0}
 .community-layout{grid-template-columns:minmax(0,1fr);border-radius:0;margin:0 0 16px}
 .community-channels{min-width:0}
 .community-channels{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;border-right:0;border-bottom:1px solid var(--cm-line);padding:8px 10px;gap:6px}
 .community-channels h2,.community-channels h3{display:none}
 .community-channels #community-channels{display:flex;gap:6px}.community-channels button{width:auto;white-space:nowrap;min-height:36px}
 .cm-create{margin:0;padding:0}.cm-create summary{white-space:nowrap}
 #community-history{max-height:62vh}.community-message{padding:8px 14px}.cm-head,.cm-compose{padding-left:14px;padding-right:14px}.cm-tools{right:12px}
}
@media(prefers-reduced-motion:reduce){.community *{scroll-behavior:auto!important;transition:none!important}}

.community[data-broadcast-id]:not([data-broadcast-id=""]) .community-layout { display: block; }
.community[data-broadcast-id]:not([data-broadcast-id=""]) { min-width: 0; }

.community-moderation { max-width: 56rem; margin: auto; padding: 1rem; }
.community-mod-form { display: grid; gap: .65rem; margin-block: 1rem; }
.community-mod-form button, .community-mod-form select, .community-mod-form input { min-height: 44px; }
.community-mod-panel { padding: 1rem; margin-block: 1rem; border: 1px solid currentColor; overflow-wrap: anywhere; }
.community-mod-panel summary { min-height: 44px; cursor: pointer; }


.community-profile-bio { white-space:pre-wrap; overflow-wrap:anywhere; }

.community-link-preview { border-left:3px solid var(--sg-red,#d8232a); padding:.5rem .75rem; overflow-wrap:anywhere; }

.dm-layout{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:2rem;margin-block:2rem}.dm-layout aside{border-right:1px solid var(--line);padding-right:1rem}.dm-help{color:var(--muted);font-size:.9rem}.dm-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-block:.75rem}.dm-thread{min-width:0}.dm-inbox-item,.dm-contact{border-bottom:1px solid var(--line);padding-block:1rem;overflow-wrap:anywhere}.dm-inbox-item[aria-current=true]{border-left:3px solid var(--red);padding-left:.75rem}.dm-inbox-item h3{font-size:1.4rem}.dm input[type=checkbox]{width:1.2rem;height:1.2rem;margin-right:.5rem}.dm-contact-choice{display:flex!important;align-items:center;gap:.5rem}.dm fieldset{margin-block:1rem}.dm #dm-history{max-height:60vh;min-height:200px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}.dm #dm-safety{padding:1rem;border:1px solid var(--line);margin-block:1rem}.dm #dm-safety h2{margin-top:1.5rem}.dm #dm-compose{border-top:1px solid var(--line);padding-top:1rem}@media(max-width:767px){.dm-layout{grid-template-columns:1fr;gap:1rem}.dm-layout aside{border-right:0;border-bottom:1px solid var(--line);padding:0 0 1rem}.dm #dm-history{max-height:55vh}}

.community-search-match{outline:2px solid var(--focus-ring);outline-offset:4px}

#community-files,#dm-files{width:100%;max-width:100%}#community-file-list,#dm-file-list{overflow-wrap:anywhere}#community-file-list p,#dm-file-list p{margin-block:.75rem}#community-file-help{font-size:.9rem;color:var(--muted)}
.cm-create summary,.cm-attach summary{list-style:none}.cm-create summary::-webkit-details-marker,.cm-attach summary::-webkit-details-marker{display:none}

/* /Community fits one screen: no footer, wider box, chat scrolls inside instead of the page (desktop and tablets). */
@media (min-width:768px){
 body.community-fit .page-main{max-width:min(1640px,100%);min-height:0;padding-top:14px;padding-bottom:0}
 body.community-fit .community-links{margin:0 0 10px}
 body.community-fit .community:is(:not([data-broadcast-id]),[data-broadcast-id=""]) .community-layout{height:calc(100svh - var(--header-h,96px) - 62px);min-height:360px;margin:0}
}
.community-profile-avatar{width:128px;height:128px;border-radius:50%;object-fit:cover;display:block;margin:12px 0}
/* /Community, second pass: the page is exactly one screen under the header and the box takes whatever space is left,
   so it never pushes the page into scrolling, whatever the header or menu measure. */
@media (min-width:768px){
 body.community-fit .page-main{display:flex;flex-direction:column;height:calc(100svh - var(--header-h,96px));box-sizing:border-box;padding-top:14px;padding-bottom:14px;overflow:hidden}
 body.community-fit .page-main>.community{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
 body.community-fit .community:is(:not([data-broadcast-id]),[data-broadcast-id=""]) .community-layout{flex:1 1 auto;height:auto;min-height:0}
}

/* ---- One Community menu: tabs above one box. Every Community page renders inside .cm-shell > .cm-frame. ---- */
/* No page-to-page fade: it showed a snapshot of the previous page for a moment (Gary, Nov 5). */
.cm-shell { display:flex; flex-direction:column; width:100%; }
.cm-tabs { flex-shrink:0; display:flex; gap:4px; align-items:flex-end; overflow-x:auto; overflow-y:hidden; overscroll-behavior:contain; scrollbar-width:none; margin:0; padding:0 2px; } /* sideways only (Gary, Nov 6) */
.cm-tabs::-webkit-scrollbar { display:none; }
.cm-tab { position:relative; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding:10px 16px; font:700 .78rem Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:#bbb; text-decoration:none; border:1px solid transparent; border-bottom:0; border-radius:8px 8px 0 0; margin-bottom:-1px; }
.cm-tab:hover { color:#fff; }
.cm-tab[aria-current=page] { color:#fff; background:rgba(10,10,10,.94); border-color:rgba(255,42,31,.55); text-shadow:0 0 6px rgba(255,42,31,.9); z-index:1; }
.cm-tab-mod { color:#ff8a7a; margin-left:auto; }
.cm-tab-count { display:inline-block; min-width:18px; padding:1px 5px; border-radius:9px; background:#ff2a1f; color:#000; font:700 .68rem Arial,sans-serif; letter-spacing:0; text-align:center; text-shadow:none; }
.cm-tab-count[hidden] { display:none; }
.cm-frame { position:relative; display:flex; flex-direction:column; min-height:0; background:rgba(10,10,10,.94); border:1px solid rgba(255,42,31,.55); border-radius:0 8px 8px 8px; box-shadow:0 0 26px rgba(255,42,31,.18); overflow:hidden; }
.cm-frame > .community { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.cm-frame .community-layout { border:0; border-radius:0; margin:0; background:transparent; }
.cm-fill { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.cm-split { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:240px minmax(0,1fr); }
.cm-side { min-height:0; overflow:auto; padding:14px 10px; background:rgba(18,18,18,.9); border-right:1px solid #262626; }
.cm-side h3 { margin:14px 8px 6px; font:700 .68rem Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:#8a8a8a; }
.cm-side h3:first-child { margin-top:2px; }
.cm-side > a, .cm-side nav a, .cm-side #forum-boards a, .cm-side #forum-boards button { display:flex; align-items:center; gap:8px; width:100%; padding:8px 10px; border-radius:6px; color:#cfcfcf; text-decoration:none; font-size:.9rem; background:transparent; border:0; text-align:left; }
.cm-side > a:hover, .cm-side #forum-boards a:hover { background:#1c1c1c; color:#fff; }
.cm-side a[aria-current=page], .cm-side a[aria-current=true], .cm-side #forum-boards [aria-current] { background:rgba(255,42,31,.14); color:#fff; box-shadow:inset 3px 0 0 #ff2a1f; }
.cm-side .cm-tab-count { margin-left:auto; }
.cm-side label { display:block; margin:10px 8px 4px; font-size:.75rem; color:#9a9a9a; font-weight:400; }
.cm-side :is(.form-select,.form-control) { width:calc(100% - 16px); margin:0 8px; min-height:40px !important; font-size:.88rem; }
.cm-side .search-help, .cm-side p { margin:10px 8px; font-size:.78rem; color:#8a8a8a; }
.cm-side .btn { margin:8px; }
.cm-pane { min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; padding:16px 24px 28px; }
.cm-solo { flex:1 1 auto; max-width:none; margin:0; }
.cm-pane-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 -24px 16px; padding:0 24px 14px; border-bottom:1px solid #262626; text-align:left; }
body.brand-page .cm-frame .cm-pane-head h1, body.brand-page .cm-frame .cm-profile-head h1 { margin:0; font:400 1.7rem Anton,Impact,sans-serif; text-transform:uppercase; letter-spacing:.02em; color:#fff; text-shadow:0 0 6px rgba(255,42,31,.5); max-width:none; }
.cm-pane-head p { margin:2px 0 0; color:#9a9a9a; font-size:.88rem; }
body.brand-page .cm-frame h2 { font:400 1.25rem Anton,Impact,sans-serif; text-transform:uppercase; letter-spacing:.02em; color:#ff4433; text-shadow:0 0 4px rgba(255,42,31,.6); }
.cm-muted { color:#8a8a8a; }
.cm-statusbar { display:flex; align-items:center; gap:12px; padding:6px 16px; border-bottom:1px solid #262626; }
.cm-statusbar p { margin:0; flex:1; font-size:.82rem; color:#9a9a9a; }
.cm-statusbar #dm-status:empty::before { content:"Private conversations with other members."; }
.cm-statusbar .btn { padding:4px 10px; font-size:.78rem; }
.cm-side-toggle { display:none; }
/* Old page-by-page layouts give way to the box. */
.cm-frame :is(#community-search,#community-notifications,#forum,.community-moderation,#direct-messages) { max-width:none; margin:0; padding:0; }
.cm-frame .search-filters { display:block; }
.cm-searchbar { display:flex; gap:10px; }
.cm-searchbar .form-control { flex:1; }
.cm-frame .forum-toolbar { margin-bottom:12px; }
.cm-frame .forum-toolbar label { margin:0; font-size:.8rem; color:#9a9a9a; }
.cm-frame .forum-toolbar #forum-new { margin-left:auto; }
.cm-frame .dm #dm-history { max-height:none; min-height:200px; }
.cm-frame #dm-thread-panel { display:flex; flex-direction:column; min-height:100%; }
.cm-frame #dm-thread-panel[hidden] { display:none; }
.cm-frame #dm-thread-panel #dm-history { flex:1 1 auto; }
.cm-frame .dm-inbox-item { padding:10px 8px; border-bottom:1px solid #222; }
.cm-frame .dm-inbox-item h3 { font-size:.95rem; margin:0 0 4px; color:#fff; letter-spacing:0; text-transform:none; }
.cm-frame .dm-inbox-item .btn, .cm-frame .dm-inbox-item button { padding:3px 8px; font-size:.75rem; }
.cm-scope { display:grid; gap:8px; }
.cm-scope .btn { margin:0 8px; }
/* Profile overview. */
.cm-profile-head { display:flex; gap:22px; align-items:center; padding:6px 0 18px; margin-bottom:12px; border-bottom:1px solid #262626; }
.cm-profile-head .community-profile-avatar { width:112px; height:112px; flex:none; margin:0; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px #ff2a1f,0 0 18px rgba(255,42,31,.4); }
.cm-profile-initials { display:grid; place-items:center; background:#2a2a2a; color:#ff6a5a; font:700 2.4rem Arial,sans-serif; }
.cm-profile-head p { margin:4px 0; color:#bdb8ad; }
.cm-profile-head .badge { margin-left:4px; font-size:.7rem; }
.cm-profile-stats { display:flex; flex-wrap:wrap; gap:8px 28px; margin:10px 0 0; }
.cm-profile-stats div { display:flex; flex-direction:column-reverse; }
.cm-profile-stats dt { font-size:.75rem; color:#8a8a8a; font-weight:400; }
.cm-profile-stats dd { margin:0; font-size:1.1rem; font-weight:700; color:#fff; }
.cm-activity { padding:12px 0; border-bottom:1px solid #1f1f1f; overflow-wrap:anywhere; }
.cm-activity h3 { margin:2px 0 4px; font-size:1rem; letter-spacing:0; text-transform:none; }
.cm-activity h3 a { color:#fff; }
.cm-activity p { margin:4px 0; font-size:.88rem; color:#bbb; }
.cm-activity time { font-size:.75rem; color:#8a8a8a; }
.cm-kind { font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:#ff6a5a; }
.cm-frame .community-mod-panel, .cm-frame .community-mod-form, .cm-frame .community-moderation details { backdrop-filter:none; }

/* Desktop and tablets: the page is exactly one screen; tabs on top, the box takes the rest and scrolls inside. */
@media (min-width:768px){
 body.community-fit .page-main{display:flex;flex-direction:column;max-width:min(1640px,100%);height:calc(100svh - var(--header-h,96px));min-height:0;box-sizing:border-box;padding-top:14px;padding-bottom:14px;overflow:hidden}
 body.community-fit .page-main>.cm-shell{flex:1 1 auto;min-height:0}
 body.community-fit .cm-frame{flex:1 1 auto}
 body.community-fit .cm-frame .community:is(:not([data-broadcast-id]),[data-broadcast-id=""]) .community-layout{flex:1 1 auto;height:auto;min-height:0}
}
/* Phones: tabs scroll sideways, the page scrolls normally, and the sidebar folds behind a menu button. */
@media (max-width:767px){
 .cm-tab{padding:9px 12px;font-size:.72rem}
 .cm-tab-mod{margin-left:0}
 .cm-frame{border-radius:0 0 8px 8px}
 .cm-split{display:block}
 .cm-side{display:none;border-right:0;border-bottom:1px solid #262626}
 .cm-split.side-open>.cm-side{display:block}
 .cm-side-toggle{display:block;width:100%;padding:10px 16px;background:#121212;color:#ddd;border:0;border-bottom:1px solid #262626;text-align:left;font:700 .75rem Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}
 .cm-side-toggle::after{content:" ▾"}
 .cm-split.side-open>.cm-side-toggle::after{content:" ▴"}
 .cm-pane{overflow:visible;padding:14px 14px 22px}
 .cm-pane-head{margin:0 -14px 14px;padding:0 14px 12px}
 .cm-profile-head{flex-direction:column;align-items:flex-start}
 .cm-frame .community:is(:not([data-broadcast-id]),[data-broadcast-id=""]) .community-layout{height:calc(100svh - var(--header-h,72px) - 70px);min-height:420px}
}

/* Chat bubbles, phone-chat style (Gary, Nov 2): everyone's text sits in a rounded bubble; your own messages sit on the
   right in Street Gonzo red with no avatar, other people's on the left in dark grey with their picture. */
.community .cm-bubble { display:inline-block; max-width:min(68ch, 88%); padding:8px 14px; border-radius:18px 18px 18px 6px; background:#262626; color:#eee; overflow-wrap:anywhere; }
.community .cm-bubble > p { margin:2px 0; line-height:1.45; color:inherit; }
.community .cm-bubble .community-link-preview { margin-top:6px; border-left-color:rgba(255,255,255,.5); }
.community .cm-main { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.community .cm-main > .cm-meta { align-self:stretch; }
/* Your own messages: bubble on the right with your profile picture beside it (Gary, Nov 4). */
.community .community-message.is-mine { grid-template-columns:minmax(0,1fr) 40px; }
.community .community-message.is-mine > .cm-avatar { grid-column:2; grid-row:1; }
.community .community-message.is-mine > .cm-main { grid-column:1; grid-row:1; }
.community .community-message.is-mine .cm-main { align-items:flex-end; }
.community .community-message.is-mine .cm-meta { justify-content:flex-end; text-align:right; }
.community .community-message.is-mine .cm-meta .cm-name { display:none; }
.community .community-message.is-mine .cm-bubble { background:linear-gradient(135deg, #ff4a2b, #d81f12); color:#fff; border-radius:18px 18px 6px 18px; }
.community .community-message.is-mine .cm-bubble a { color:#fff; text-decoration:underline; }
.community .community-message.is-mine .cm-bubble code, .community .community-message.is-mine .cm-bubble pre { background:rgba(0,0,0,.25); color:#fff; }
.community .community-message.is-mine .cm-replying { align-self:flex-end; }
.community .cm-deleted { margin:0; }
.community .community-message .cm-bubble:has(> .cm-deleted) { background:transparent; border:1px dashed #444; }
/* One chat channel (Gary, Nov 2): the channel list folds away and the conversation fills the box.
   Admins get a Channels button in the chat header to open the list (and add a channel). */
.community-layout.is-single-channel:not(.show-channels) { grid-template-columns:minmax(0,1fr); }
.community-layout.is-single-channel:not(.show-channels) > .community-channels { display:none; }

/* Chat polls (Gary, Nov 2): poll button beside the message box; answers as tappable bars inside the bubble. */
.community .cm-icon { flex:none; display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:50%; background:transparent; color:#cfcfcf; cursor:pointer; }
.community .cm-icon:hover, .community .cm-icon[aria-pressed=true] { color:#fff; background:#2a2a2a; }
.community .cm-icon[aria-pressed=true] { box-shadow:inset 0 0 0 2px var(--neon,#ff2a1f); }
.community .cm-poll-builder { display:grid; gap:6px; margin-top:8px; }
.community .cm-poll-hint { margin:0; font-size:.75rem; color:#888; }
.community .cm-poll-answer { width:100%; border:1px solid #444; background:#151515; color:#eee; padding:8px 10px; border-radius:8px; }
.community .cm-poll-answer:focus-visible { outline:2px solid #fff; outline-offset:1px; }
.community .cm-poll { display:grid; gap:6px; margin-top:8px; min-width:min(260px, 70vw); }
.community .cm-poll-option { position:relative; display:flex; align-items:center; gap:10px; width:100%; padding:9px 12px; border:1px solid rgba(255,255,255,.25); border-radius:10px; background:rgba(0,0,0,.25); color:inherit; text-align:left; cursor:pointer; overflow:hidden; }
.community .cm-poll-option:hover:not(:disabled) { border-color:#fff; }
.community .cm-poll-option.is-mine { border-color:#fff; box-shadow:inset 0 0 0 1px #fff; }
.community .cm-poll-fill { position:absolute; inset:0 auto 0 0; width:0; background:rgba(255,255,255,.14); transition:width .3s ease; }
.community .cm-poll-label, .community .cm-poll-share { position:relative; }
.community .cm-poll-label { flex:1; }
.community .cm-poll-share { font-variant-numeric:tabular-nums; font-weight:700; font-size:.85rem; }
.community .cm-poll-total { margin:2px 0 0; font-size:.72rem; opacity:.75; }
@media (prefers-reduced-motion:reduce) { .community .cm-poll-fill { transition:none; } }
/* GIFs (Nov 2): picker under the composer, GIF messages shown as pictures. */
.community .cm-gif-icon { font:800 .72rem/1 system-ui, sans-serif; letter-spacing:.04em; }
.community .cm-gif-icon span:not(.visually-hidden) { display:none; }
.community .cm-gif-icon[aria-expanded=true] { color:#fff; background:#2a2a2a; box-shadow:inset 0 0 0 2px var(--neon,#ff2a1f); }
.community .cm-gif-picker { display:grid; gap:8px; margin-top:8px; padding:8px; border:1px solid #2c2c2c; border-radius:14px; background:#111; }
.community .cm-gif-picker[hidden] { display:none; }
.community .cm-gif-picker input[type=search] { width:100%; border:1px solid #333; border-radius:999px; background:#1a1a1a; color:#fff; padding:8px 14px; }
.community .cm-gif-results { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:6px; max-height:260px; overflow-y:auto; overscroll-behavior:contain; }
.community .cm-gif-pick { display:block; padding:0; border:0; border-radius:8px; overflow:hidden; background:#1d1d1d; cursor:pointer; aspect-ratio:1; }
.community .cm-gif-pick img { width:100%; height:100%; object-fit:cover; display:block; }
.community .cm-gif-pick:hover, .community .cm-gif-pick:focus-visible { box-shadow:0 0 0 2px var(--neon,#ff2a1f); }
.community .cm-gif-note { grid-column:1 / -1; margin:6px 0; color:#9a9a9a; font-size:.9rem; }
.community .cm-gif-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.community .cm-gif-credit { margin-left:auto; color:#8a8a8a; font-size:.75rem; letter-spacing:.03em; }
.community .cm-bubble.is-gif { padding:0; background:transparent; box-shadow:none; }
.community .cm-gif { display:block; max-width:min(280px, 100%); max-height:280px; border-radius:14px; }
/* A GIF you sent: just the picture, no red bubble behind it (Nov 2). */
.community .community-message .cm-bubble.is-gif, .community .community-message.is-mine .cm-bubble.is-gif { background:none; padding:0; box-shadow:none; border-radius:14px; width:fit-content; max-width:100%; overflow:hidden; }
/* Message tools (react, reply, ⋯) appear right below the message, lined up with the bubble: left for others, right for your own. */
.community .cm-main { position:relative; }
.community .cm-main > .cm-tools { top:calc(100% + 2px); left:0; right:auto; width:max-content; white-space:nowrap; z-index:4; }
.community .community-message.is-mine .cm-main > .cm-tools { left:auto; right:0; }
/* Room under the last message for its hover buttons (react / Reply / …), which sit below the bubble.
   Without it, hovering the last message grew the scroll area, the chat jumped, the buttons hid, and it bounced (Gary, Nov 4). */
.community #community-history { padding-bottom:40px; }

/* Until the first channel has loaded, the chat box stays empty instead of flashing its "Loading" layout (Gary, Nov 5).
   If the script never finishes, it shows anyway after 4 seconds. */
@keyframes cm-reveal { to { visibility:visible; } }
#community:not([data-broadcast-id]) .community-layout, #community[data-broadcast-id=""] .community-layout { visibility:hidden; animation:cm-reveal 0s 4s forwards; }
#community.is-ready .community-layout { visibility:visible; animation:none; }

/* Your own messages: the time sits to the left of your label (Gary, Nov 5). */
.community .community-message.is-mine .cm-meta time { order:-1; }

/* Phones: the typing box gets the full width; GIF and polls sit on the line under it (Gary approved, Nov 5). */
@media (max-width:767px){
 #community-composer .cm-box { display:grid; grid-template-columns:auto auto 1fr auto; column-gap:6px; row-gap:4px; align-items:end; }
 #community-composer .cm-box > textarea { grid-column:1 / 4; grid-row:1; width:100%; min-width:0; }
 #community-composer .cm-box > .cm-send { grid-column:4; grid-row:1; }
 #community-composer .cm-box > #community-gif-toggle { grid-column:1; grid-row:2; }
 #community-composer .cm-box > #community-poll-toggle { grid-column:2; grid-row:2; }
}

/* Message tools sit quietly under every message, always visible (Gary, Nov 5): + react, ↩ reply, ⋯ short menu. No hover bar. */
.community .cm-main > .cm-tools, .community .cm-tools { position:static; display:flex; align-items:center; gap:2px; margin-top:2px; padding:0; background:none; border:0; box-shadow:none; width:auto; }
.community .community-message.is-mine .cm-main > .cm-tools { align-self:flex-end; }
.community .cm-tools .cm-tool { min-height:28px; min-width:28px; padding:2px 7px; justify-content:center; color:#8a8a8a; font-size:.95rem; border-radius:999px; }
.community .cm-tools .cm-tool:hover, .community .cm-tools .cm-tool[aria-expanded=true] { color:#fff; background:#262626; }
.community .cm-tools .cm-tool-react { font-size:1.05rem; font-weight:700; }
.community .community-message.is-mine .cm-tools .cm-menu { right:0; left:auto; }
.community .cm-tools .cm-menu { left:0; right:auto; top:auto; bottom:calc(100% + 4px); width:170px; }
.community .community-message.is-mine .cm-picker { align-self:flex-end; }

/* Pinned messages box: plain rows (it was picking up the chat-message grid, squeezing names and the button). Nov 5. */
#community-pins h3 { margin:0 0 6px; font:700 .72rem Arial,Helvetica,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:#9a9a9a; }
#community-pins .community-message { display:block; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.08); }
#community-pins .community-message:last-child { border-bottom:0; }
#community-pins .community-message > strong { display:block; color:#fff; font-size:.9rem; }
#community-pins .community-message > p { margin:2px 0 6px; color:#ddd; white-space:pre-wrap; overflow-wrap:anywhere; }
#community-pins .community-message > button { display:inline; width:auto; min-height:0; padding:0; background:none; border:0; color:#ff6a5a; font-size:.85rem; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }

/* Drawn reply arrows (Gary, Nov 6: iPhone showed emoji arrows). */
.cm-glyph { width:1.05em; height:1.05em; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; vertical-align:-.15em; flex:none; }
.cm-replying .cm-glyph { width:.95em; height:.95em; margin-right:.35em; }
.cm-tool-reply { display:inline-flex; align-items:center; justify-content:center; }

/* Phones (Gary, Nov 6): the chat was too big at 100% on iPhone; about 20% smaller, with Pinned in the top right.
   The message box keeps 16px text so iPhones don't zoom in when typing. */
@media (max-width:767px){
.cm-frame .community .cm-head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:2px 10px; padding-bottom:8px; }
.cm-frame .community .cm-head > div { grid-column:1; grid-row:1 / span 2; min-width:0; }
.cm-frame .community .cm-head > .cm-head-button { grid-column:2; grid-row:1; justify-self:end; min-height:30px; padding:2px 10px; font-size:.72rem; }
.cm-frame .community .cm-head > #community-presence { grid-column:2; grid-row:2; justify-self:end; margin:0; font-size:.7rem; }
/* the pinned bar gets its own full-width row under the title on phones (it's a div too, so it must not take the title's cell) */
.cm-frame .community .cm-head > .cm-pinbar { grid-column:1 / -1; grid-row:3; max-width:none; margin-top:6px; }
.cm-frame .community #community-title { font-size:1.05rem; }
.cm-frame .community #community-topic { font-size:.72rem; line-height:1.3; }
.cm-frame .community .community-message { font-size:.82rem; }
.cm-frame .community .cm-bubble { font-size:.84rem; padding:7px 11px; }
.cm-frame .community .cm-name { font-size:.82rem; }
.cm-frame .community .cm-meta time { font-size:.66rem; }
.cm-frame .community .cm-replying { font-size:.66rem; }
.cm-frame .community .cm-avatar { width:30px; height:30px; flex-basis:30px; font-size:.7rem; }
.cm-frame .community .cm-tool { font-size:.8rem; min-width:28px; min-height:28px; }
.cm-frame .community .cm-day span { font-size:.65rem; }
.cm-frame .community .cm-compose { padding-top:8px; }
.cm-frame .community .cm-send { min-height:40px; padding:0 14px; font-size:.9rem; }
}

/* Composer clean-up (Gary, Nov 6): no "Cancel reply or edit" (tap the reply arrow again, or Esc) and no "+ Attach a text file". */
#community-cancel, .community .cm-attach { display:none !important; }

/* Reactions sit on the bubble's bottom edge with the tools beside them (Gary, Nov 7, from Instagram). */
.community .cm-foot { display:flex; align-items:flex-start; gap:6px; flex-wrap:wrap; }
.community .community-message.is-mine .cm-foot { align-self:flex-end; flex-direction:row-reverse; }
.community .cm-foot .community-reactions { margin:-12px 0 0 12px; position:relative; z-index:1; gap:4px; }
.community .community-message.is-mine .cm-foot .community-reactions { margin:-12px 12px 0 0; }
.community .cm-foot .cm-chip { min-height:26px; padding:1px 8px; border:2px solid #0b0b0b; background:#262626; box-shadow:0 1px 4px rgba(0,0,0,.5); }
.community .cm-foot .cm-chip[aria-pressed=true] { background:#3a3a3a; }
.community .cm-foot > .cm-tools, .community .community-message.is-mine .cm-foot > .cm-tools { margin-top:0; }

/* Emoji button on the chat bar (Gary, Nov 7). */
.community .cm-emoji-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(36px,1fr)); gap:2px; max-height:220px; overflow-y:auto; margin-top:8px; padding:8px; border:1px solid #333; border-radius:12px; background:#1c1c1c; }
.community .cm-emoji-picker[hidden] { display:none; }
.community .cm-emoji-pick { width:100%; aspect-ratio:1; min-height:34px; padding:0; border:0; border-radius:8px; background:none; font-size:1.3rem; line-height:1; cursor:pointer; }
.community .cm-emoji-pick:hover, .community .cm-emoji-pick:focus-visible { background:#333; }

/* Chat like Instagram (Gary, Nov 8) ------------------------------------------------------------------------------ */
/* Less dead space: messages in a run sit close; a new person (or a pause) gets a little more room. */
.community .community-message { padding-top:1px; padding-bottom:1px; row-gap:0; }
.community .community-message.run-start { padding-top:10px; }
.community .community-message.run-end { padding-bottom:4px; }
.community .cm-day + .community-message { padding-top:4px; }
/* The picture only beside the last message of a run, at its bottom edge. */
.community .community-message > .cm-avatar { align-self:end; }
.community .community-message:not(.run-end) > .cm-avatar { visibility:hidden; }
/* Bubble and tools share a line; no separate tools row when there are no reactions. */
.community .cm-line { display:flex; align-items:center; gap:4px; max-width:100%; }
.community .community-message.is-mine .cm-line { flex-direction:row-reverse; align-self:flex-end; }
.community .cm-line > .cm-bubble { min-width:0; }
.community .cm-line > .cm-tools { flex:none; margin:0; opacity:.55; }
.community .community-message:hover .cm-line > .cm-tools, .community .community-message:focus-within .cm-line > .cm-tools, .community .community-message.is-active .cm-line > .cm-tools { opacity:1; }
.community .cm-main { gap:0; }
.community .cm-meta { margin-bottom:2px; }
/* Up to five emoji on their own: big, no bubble. */
.community .community-message .cm-bubble.is-emoji, .community .community-message.is-mine .cm-bubble.is-emoji { background:none; padding:0 2px; box-shadow:none; border:0; font-size:2.6rem; line-height:1.15; letter-spacing:.04em; }
.cm-frame .community .community-message .cm-bubble.is-emoji { font-size:2.3rem; }
/* GIFs: just the picture. */
.community .community-message .cm-bubble.is-gif, .community .community-message.is-mine .cm-bubble.is-gif { background:none !important; padding:0; border:0; box-shadow:none; }
/* Replies show the message they answer. */
.community .cm-replying { display:flex; flex-direction:column; align-items:flex-start; gap:3px; margin:2px 0 3px; max-width:min(60ch, 80%); text-decoration:none !important; }
.community .community-message.is-mine .cm-replying { align-items:flex-end; align-self:flex-end; }
.community .cm-replying-label { display:inline-flex; align-items:center; font-size:.74rem; color:#bdbdbd; }
.community .cm-quote { display:block; max-width:100%; padding:6px 12px; border-radius:14px; background:#1b1b1b; border:1px solid #2c2c2c; color:#9a9a9a; font-size:.82rem; line-height:1.35; white-space:pre-wrap; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.community .cm-replying:hover .cm-quote { color:#ddd; border-color:#444; }
/* One reaction pill: the emoji used, then the total. */
.community .cm-chip.cm-chip-all { gap:1px; padding:1px 9px; }
.community .cm-chip-all .cm-chip-glyph { font-size:1rem; line-height:1; }
.community .cm-chip-all .cm-chip-count { margin-left:5px; font-weight:700; color:#fff; font-size:.82rem; }

/* Phones (Gary, Nov 8): tools only after holding a message down. The script marks touch screens with .cm-touch. */
.community.cm-touch .cm-line > .cm-tools, .community.cm-touch .cm-foot > .cm-tools { display:none; opacity:1; }
.community.cm-touch .community-message.is-active .cm-line > .cm-tools, .community.cm-touch .community-message.is-active .cm-foot > .cm-tools { display:flex; }
.community.cm-touch .community-message.is-active { background:#151515; }
.community.cm-touch .cm-bubble { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
/* Keep short bubbles and big emoji on one line (the bubble's row spans the message's width). */
.community .cm-line { width:100%; }
.community .cm-line > .cm-bubble { flex:0 1 auto; }
.community .cm-bubble.is-emoji { white-space:nowrap; }

/* The pinned bar (Gary, Nov 11): the newest pin, one line, a size or two smaller, next to the Pinned button.
   A warm red edge and a soft glow that breathes a few times when a new pin lands, then settles. */
.cm-pinbar{display:flex;align-items:stretch;min-width:0;flex:1 1 220px;max-width:min(560px,100%);border:1px solid rgba(255,68,51,.55);border-left:3px solid #ff4433;border-radius:4px;background:linear-gradient(90deg,rgba(255,68,51,.14),rgba(255,68,51,.04));box-shadow:0 0 10px rgba(255,68,51,.18)}
.cm-pinbar[hidden]{display:none}
.cm-pinbar-open{flex:1;min-width:0;display:block;padding:4px 8px;border:0;background:transparent;color:#eee;font-size:.74rem;line-height:1.35;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.cm-pinbar-open:hover .cm-pinbar-text{text-decoration:underline}
.cm-pinbar-who{color:#ff8a7a;font-weight:700}
.cm-pinbar-close{flex:none;width:26px;border:0;border-left:1px solid rgba(255,68,51,.3);background:transparent;color:#bbb;font-size:1rem;line-height:1;cursor:pointer}
.cm-pinbar-close:hover{color:#fff;background:rgba(255,68,51,.18)}
.cm-pinbar.is-new{animation:cm-pin-breathe 1.6s ease-in-out 3}
@keyframes cm-pin-breathe{50%{box-shadow:0 0 18px rgba(255,68,51,.55);border-color:rgba(255,110,90,.9)}}
@media (prefers-reduced-motion:reduce){.cm-pinbar.is-new{animation:none}}
@media (max-width:640px){.cm-pinbar{flex-basis:100%;order:5}}

/* ---- Profile, Notifications and Messages stand alone (Gary, Nov 11): no Community menu above, reached from the account menu. ---- */
.cm-standalone .cm-frame { border-radius:12px; }
.cm-standalone-profile, .cm-standalone-notifications { max-width:760px; margin-inline:auto; }
/* Notifications, after Instagram: one column, the menu becomes pills across the top, rows with a round badge and a short time. */
.cm-standalone-notifications .cm-split { display:block; }
.cm-standalone-notifications .cm-side-toggle { display:none; }
.cm-standalone-notifications .cm-side { display:flex; flex-wrap:wrap; gap:8px; padding:16px 18px 0; background:none; border:0; overflow:visible; }
.cm-standalone-notifications .cm-side h3 { display:none; }
.cm-standalone-notifications .cm-side > a { width:auto; min-height:38px; padding:8px 16px; border:1px solid #3a3a3a; border-radius:999px; color:#eee; font-weight:700; }
.cm-standalone-notifications .cm-side > a[aria-current=true] { background:#f2ebdb; color:#111; box-shadow:none; border-color:#f2ebdb; }
.cm-standalone-notifications .cm-pane-head h1 { font:400 clamp(1.8rem,4vw,2.4rem)/1 Anton,Impact,sans-serif; text-transform:uppercase; letter-spacing:.02em; }
.ntf-group { margin:18px 0 8px; font:700 1rem/1 Arial,Helvetica,sans-serif; color:#fff; }
.ntf-row a { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 6px; border-radius:10px; color:#e9e4da; text-decoration:none; }
.ntf-row a:hover, .ntf-row a:focus-visible { background:rgba(255,255,255,.06); }
.ntf-icon { flex:none; width:44px; height:44px; border-radius:50%; border:2px solid rgba(255,42,31,.7); background:#140808 url('/images/home/skull.svg') center/22px no-repeat; }
.ntf-text { flex:1; min-width:0; line-height:1.35; }
.ntf-row time { flex:none; color:#8f8a82; font-size:.85rem; }
.ntf-row.is-unread .ntf-text { color:#fff; font-weight:700; }
.ntf-dot { flex:none; width:9px; height:9px; border-radius:50%; background:#ff2a1f; box-shadow:0 0 8px rgba(255,42,31,.9); }
/* Messages: the inbox and the conversation side by side, as before, with a rounded frame and a bigger title. */
.cm-standalone-messages .cm-frame { min-height:min(78vh,760px); }

/* Gary, Nov 12: "Mark this page read" and "Older notifications" as quiet red pills under the list, not boxy buttons. */
.cm-standalone-notifications #notification-read, .cm-standalone-notifications #notification-more { display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin:18px 8px 0 0; padding:8px 22px; border:1px solid rgba(255,42,31,.55); border-radius:999px; background:rgba(255,42,31,.08); color:#ff8a7e; font:700 .9rem/1 Arial,Helvetica,sans-serif; box-shadow:none; }
.cm-standalone-notifications #notification-read:hover, .cm-standalone-notifications #notification-read:focus-visible, .cm-standalone-notifications #notification-more:hover, .cm-standalone-notifications #notification-more:focus-visible { background:#ff2a1f; border-color:#ff2a1f; color:#fff; box-shadow:0 0 14px rgba(255,42,31,.6); outline:none; }
.cm-standalone-notifications #notification-more[hidden] { display:none; }

/* Chat / Forum tabs (Gary, Nov 12): neon-sign tabs in the Fringe's style. The one you're on glows red and joins the panel. */
body.brand-page .cm-tabs { gap:8px; padding:0 4px; }
body.brand-page .cm-tab { min-height:48px; padding:8px 26px 6px; border:1px solid rgba(255,255,255,.14); border-bottom:0; border-radius:10px 10px 0 0; background:linear-gradient(rgba(30,30,32,.9), rgba(12,12,12,.9)); font:400 1.45rem/1 Anton,Impact,"Arial Narrow",sans-serif; letter-spacing:.04em; text-transform:uppercase; color:#8d8880; transition:color .15s ease, text-shadow .15s ease, border-color .15s ease; }
body.brand-page .cm-tab:hover, body.brand-page .cm-tab:focus-visible { color:#f2ebdb; border-color:rgba(54,198,214,.6); text-shadow:0 0 8px rgba(54,198,214,.8); outline:none; }
body.brand-page .cm-tab[aria-current=page] { color:#fff; border-color:#ff2a1f; background:linear-gradient(rgba(255,42,31,.22), rgba(10,10,10,.96) 75%); text-shadow:0 0 3px #fff, 0 0 10px #ff2a1f, 0 0 22px #ff2a1f; box-shadow:0 -4px 18px rgba(255,42,31,.35), inset 0 1px 0 rgba(255,140,130,.35); }
body.brand-page .cm-tab-mod { font-size:1rem; letter-spacing:.06em; color:#ff8a7a; }
body.brand-page .cm-tab-join { font-size:1rem; }
@media (max-width:575.98px) { body.brand-page .cm-tab { min-height:44px; padding:8px 18px 6px; font-size:1.2rem; } body.brand-page .cm-tab-mod, body.brand-page .cm-tab-join { font-size:.9rem; } }
/* Optional Gender and From on profiles (Gary, Nov 12). */
.cm-profile-lines { display:flex; flex-wrap:wrap; gap:6px 16px; margin:4px 0 0; color:#cfc8bd; font-size:.92rem; }
/* Messages page (Gary, Nov 12): private messages have no picture column, so the chat grid squeezed the name, time and buttons
   into a 40px strip with letters stacked down the screen. Messages here run full width: name and time on one line, then the
   message, then the buttons in a row. */
.dm-thread .community-message, .dm-thread .community-message.is-mine { display:block; padding:10px 20px; }
.dm-thread .community-message > header { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; }
.dm-thread .community-message > header time { color:#a39a91; font-size:.8rem; }
.dm-thread .community-message .community-message-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.dm-thread .community-message .community-message-actions .btn { min-height:32px; padding:4px 12px; font-size:.8rem; white-space:nowrap; writing-mode:horizontal-tb; }

/* Gary, Nov 12: Messages laid out like Instagram direct messages, with Street Gonzo red for your own messages. */
.cm-standalone-messages .cm-frame { background:#0c1014; border:1px solid #262626; border-radius:0; box-shadow:none; height:calc(100svh - var(--header-h,125px) - 24px); }
.cm-standalone-messages .cm-statusbar { display:none; }
.cm-standalone-messages .cm-statusbar:has(#dm-status:not(:empty)) { display:flex; }
.cm-standalone-messages .cm-split { grid-template-columns:minmax(300px,400px) minmax(0,1fr); height:100%; }
.cm-standalone-messages .cm-side { display:flex; flex-direction:column; padding:0; background:#0c1014; border-right:1px solid #262626; }
.dm-ig-top { display:flex; align-items:center; justify-content:space-between; padding:26px 24px 14px; }
.dm-ig-top strong { font:700 1.25rem Arial,Helvetica,sans-serif; color:#f5f5f5; }
.dm-ig-compose { display:grid; place-items:center; width:36px; height:36px; color:#f5f5f5 !important; border-radius:8px; }
.dm-ig-compose:hover { background:#1c1f24; }
.dm-ig-tabs { display:flex; border-bottom:1px solid #262626; }
.dm-ig-tabs a { flex:1; padding:12px 0 10px; text-align:center; font:600 .95rem Arial,Helvetica,sans-serif; color:#a8a8a8 !important; text-decoration:none; border-bottom:1px solid transparent; margin-bottom:-1px; }
.dm-ig-tabs a[aria-current=true] { color:#f5f5f5 !important; border-bottom-color:#f5f5f5; }
.dm-ig-search { position:relative; margin:12px 16px 10px; }
.dm-ig-search input { width:100%; height:40px; padding:0 14px 0 42px; border:0; border-radius:20px; background:#262a30; color:#f5f5f5; font:400 1rem Arial,Helvetica,sans-serif; }
.dm-ig-search input::placeholder { color:#a8a8a8; }
.dm-ig-search svg { position:absolute; left:15px; top:11px; color:#a8a8a8; }
.cm-standalone-messages #dm-inbox-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.cm-standalone-messages #dm-inbox { flex:1 1 auto; overflow:auto; }
.cm-standalone-messages .cm-frame .dm-inbox-item { position:relative; display:grid; grid-template-columns:56px minmax(0,1fr) 12px; align-items:center; column-gap:12px; padding:8px 24px; border:0; cursor:pointer; }
.cm-standalone-messages .cm-frame .dm-inbox-item:hover { background:#16191e; }
.cm-standalone-messages .cm-frame .dm-inbox-item[aria-current=true] { background:#25292e; }
.cm-standalone-messages .cm-frame .dm-inbox-item h3 { grid-column:2; margin:0; font:400 .95rem Arial,Helvetica,sans-serif; color:#f5f5f5; }
.dm-ig-avatar { display:grid; place-items:center; width:56px; height:56px; border-radius:50%; background:var(--av,#3a3f47); color:#fff; font:700 1.3rem Arial,Helvetica,sans-serif; grid-row:1 / span 2; }
.dm-ig-avatar.sm { width:28px; height:28px; font-size:.75rem; }
.dm-ig-avatar.md { width:44px; height:44px; font-size:1.05rem; }
.cm-standalone-messages .dm-inbox-item > button { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0 !important; opacity:0; cursor:pointer; }
.cm-standalone-messages .cm-side .dm-ig-sub { grid-column:2; margin:2px 0 0; font:400 .82rem Arial,Helvetica,sans-serif; color:#a8a8a8; }
.cm-standalone-messages .cm-frame .dm-inbox-item.is-unread h3, .cm-standalone-messages .cm-side .dm-inbox-item.is-unread .dm-ig-sub { font-weight:700; color:#f5f5f5; }
.dm-inbox-item.is-unread::after { content:""; grid-column:3; grid-row:1 / span 2; width:8px; height:8px; border-radius:50%; background:#e8261b; }
.dm-ig-more { display:flex; flex-wrap:wrap; gap:4px 14px; padding:10px 24px 14px; border-top:1px solid #262626; }
.dm-ig-more a { color:#a8a8a8 !important; font-size:.78rem; text-decoration:none; }
.dm-ig-more a:hover { color:#f5f5f5 !important; }
.cm-standalone-messages .cm-pane { padding:0; display:flex; flex-direction:column; }
.cm-standalone-messages #dm-thread-panel { flex:1 1 auto; min-height:0; }
.dm-ig-head { display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid #262626; }
.cm-standalone-messages #dm-thread-panel #dm-title { margin:0; font:700 1rem Arial,Helvetica,sans-serif; color:#f5f5f5; text-shadow:none; text-transform:none; letter-spacing:0; }
.cm-standalone-messages #dm-members { margin:2px 0 0; font-size:.78rem; color:#a8a8a8; }
.cm-standalone-messages .dm-ig-head .dm-ig-who { flex:1; min-width:0; }
.cm-standalone-messages #dm-actions { gap:4px; }
.cm-standalone-messages #dm-actions .btn { border:0; background:transparent; color:#a8a8a8; font-size:.8rem; padding:6px 8px; }
.cm-standalone-messages #dm-actions .btn:hover { color:#ff5a45; }
.cm-standalone-messages #dm-history { flex:1 1 auto; overflow:auto; display:flex; flex-direction:column; gap:6px; padding:20px 20px 12px; }
.cm-standalone-messages .dm-thread .community-message { position:relative; display:grid !important; grid-template-columns:28px auto; column-gap:8px; align-items:end; max-width:min(560px,70%); margin:0; padding:0; background:none; border:0; justify-self:start; align-self:flex-start; }
.cm-standalone-messages .dm-thread .community-message > header { display:none; }
.cm-standalone-messages .dm-thread .community-message > .dm-ig-avatar { grid-row:1; grid-column:1; }
.cm-standalone-messages .dm-message-body { grid-column:2; padding:8px 13px; border-radius:18px; background:#262a30; color:#f5f5f5; font:400 .95rem/1.35 Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.cm-standalone-messages .dm-message-body p { margin:0; }
.cm-standalone-messages .dm-message-body p + p { margin-top:6px; }
.cm-standalone-messages .dm-thread .community-message.is-mine { align-self:flex-end; grid-template-columns:auto; }
.cm-standalone-messages .is-mine .dm-message-body { grid-column:1; background:#e8261b; color:#fff; }
.cm-standalone-messages .is-mine .dm-message-body a { color:#fff; }
.cm-standalone-messages .community-message-actions { grid-column:2; display:flex; gap:2px; height:0; overflow:hidden; opacity:0; transition:opacity .15s; }
.cm-standalone-messages .is-mine .community-message-actions { grid-column:1; justify-content:flex-end; }
.cm-standalone-messages .community-message:hover .community-message-actions, .cm-standalone-messages .community-message:focus-within .community-message-actions { height:auto; opacity:1; }
.cm-standalone-messages .community-message-actions .btn { border:0; background:transparent; color:#a8a8a8; font-size:.72rem; padding:2px 6px; min-height:0; }
.cm-standalone-messages .community-message-actions .btn:hover { color:#f5f5f5; }
.dm-ig-time { align-self:center; margin:10px 0 4px; font:400 .75rem Arial,Helvetica,sans-serif; color:#a8a8a8; }
.cm-standalone-messages #dm-compose { position:relative; display:flex; align-items:center; gap:6px; margin:6px 16px 16px; padding:4px 6px 4px 18px; border:1px solid #363a40; border-radius:24px; }
.cm-standalone-messages #dm-compose[hidden] { display:none; }
.cm-standalone-messages #dm-compose > label:not(.dm-ig-attach), .cm-standalone-messages #dm-compose > .dm-help { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.cm-standalone-messages #dm-body { flex:1; min-height:40px; height:40px; max-height:140px; padding:10px 0; border:0; background:transparent; color:#f5f5f5; resize:none; box-shadow:none; font:400 .95rem Arial,Helvetica,sans-serif; }
.cm-standalone-messages #dm-body::placeholder { color:#a8a8a8; }
.cm-standalone-messages #dm-files { position:absolute; width:1px; height:1px; opacity:0; }
.dm-ig-attach { display:grid; place-items:center; width:36px; height:36px; margin:0 !important; color:#f5f5f5; cursor:pointer; border-radius:50%; }
.dm-ig-attach:hover { background:#1c1f24; }
.cm-standalone-messages #dm-compose .dm-actions { margin:0; }
.cm-standalone-messages #dm-send { border:0; background:transparent; color:#ff4433; font-weight:700; padding:6px 12px; }
.cm-standalone-messages #dm-send:hover { color:#fff; }
.cm-standalone-messages #dm-file-list:empty { display:none; }
.cm-standalone-messages #dm-thread-panel > :is(#dm-latest,#dm-older) { align-self:center; margin:8px; border:0; background:#262a30; color:#f5f5f5; border-radius:16px; padding:4px 12px; font-size:.78rem; }
.dm-ig-avatar { position:relative; overflow:hidden; }
.dm-ig-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cm-standalone-messages .cm-frame .dm-inbox-item > .dm-ig-avatar { grid-row:1 / span 2; grid-column:1; }
.cm-standalone-messages .cm-frame .dm-inbox-item > :is(p:not(.dm-ig-sub),button:not(.dm-ig-open)) { grid-column:2; justify-self:start; position:relative; z-index:1; margin:4px 6px 0 0; }
.cm-standalone-messages .cm-side .dm-ig-sub { display:flex; min-width:0; white-space:pre; }
.dm-ig-msg { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-ig-ago { flex:none; }
.cm-standalone-messages #dm-members { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cm-standalone-messages .dm-ig-tabs a { background:none !important; box-shadow:none !important; border-radius:0 !important; }
.cm-standalone-messages .dm-ig-search input { border:0 !important; outline:none !important; box-shadow:none !important; }
.cm-standalone-messages #dm-send, .cm-standalone-messages #dm-send:focus { box-shadow:none !important; border:0 !important; background:transparent !important; }
.cm-standalone-messages #dm-send:focus-visible { outline:2px solid #ff4433; }
.cm-standalone-messages #dm-compose > .dm-ig-attach { width:36px; height:36px; flex:0 0 36px; }
.cm-standalone-messages #dm-compose { padding-left:8px; }
.cm-standalone-messages #dm-body:focus { box-shadow:none !important; outline:none; background:transparent; }
.cm-standalone-messages .dm-ig-headav:empty { display:none; }
.cm-standalone-messages .dm-ig-head .dm-actions { margin:0; }
.cm-standalone-messages .cm-pane > section:not(#dm-thread-panel) { padding:20px 24px; }
@media (max-width:767.98px) {
  .cm-standalone-messages .cm-frame { height:auto; min-height:calc(100svh - var(--header-h,118px) - 16px); }
  .cm-standalone-messages .cm-split { display:flex; flex-direction:column; height:auto; }
  .cm-standalone-messages .cm-side-toggle { display:none; }
  .cm-standalone-messages .cm-side { display:flex; border-right:0; border-bottom:1px solid #262626; }
  .cm-standalone-messages .dm-ig-top { padding:16px 16px 10px; }
  .cm-standalone-messages .cm-frame .dm-inbox-item { padding:8px 16px; }
  .cm-standalone-messages #direct-messages[data-open] .cm-side { display:none; }
  .cm-standalone-messages #direct-messages:not([data-open]) .cm-pane { display:none; }
  .cm-standalone-messages #dm-history { min-height:55svh; }
  .cm-standalone-messages .dm-thread .community-message { max-width:82%; }
  .cm-standalone-messages .cm-pane { position:relative; }
  .cm-standalone-messages .dm-ig-head { padding-left:52px; }
  .cm-standalone-messages .cm-pane > section:not(#dm-thread-panel) { padding-top:56px; }
  .dm-ig-back { position:absolute; top:16px; left:12px; z-index:2; display:grid; place-items:center; width:32px; height:32px; margin-right:-4px; color:#f5f5f5; background:none; border:0; font-size:1.4rem; }
}
@media (min-width:768px) { .dm-ig-back { display:none; } }

/* Gary, Nov 13: Messages / Requests tabs, New message (like the Messages pop-up and Instagram), and the request view. */
.cm-standalone-messages .dm-ig-tabs button { flex:1; padding:12px 0 10px; border:0; border-bottom:1px solid transparent; margin-bottom:-1px; background:none; color:#a8a8a8; font:600 .95rem Arial,Helvetica,sans-serif; cursor:pointer; }
.cm-standalone-messages .dm-ig-tabs button[aria-selected=true] { color:#f5f5f5; border-bottom-color:#f5f5f5; }
.cm-standalone-messages .dm-ig-tabs button:focus-visible { outline:2px solid #ff4433; outline-offset:-2px; }
.dm-ig-reqcount { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:4px; padding:0 5px; border-radius:999px; background:#e8261b; color:#fff; font:700 .7rem/1 Arial,Helvetica,sans-serif; vertical-align:1px; }
.dm-ig-reqcount[hidden] { display:none; }
.cm-standalone-messages .dm-ig-hint { margin:0; color:#a8a8a8; font:400 .85rem/1.4 Arial,Helvetica,sans-serif; }
.cm-standalone-messages .dm-ig-empty { padding:24px; text-align:center; }
.cm-standalone-messages .dm-ig-head h2 { margin:0; font:700 1rem Arial,Helvetica,sans-serif; color:#f5f5f5; text-shadow:none; text-transform:none; letter-spacing:0; }
.cm-standalone-messages .cm-pane > section.dm-new, .cm-standalone-messages .cm-pane > section.dm-request { padding:0; flex:1 1 auto; min-height:0; flex-direction:column; }
.cm-standalone-messages .cm-pane > section.dm-new:not([hidden]), .cm-standalone-messages .cm-pane > section.dm-request:not([hidden]) { display:flex; }
.dm-to { display:flex; align-items:center; gap:14px; margin:0; padding:14px 20px; border-bottom:1px solid #262626; }
.dm-to b { color:#f5f5f5; font:700 1rem Arial,Helvetica,sans-serif; }
.dm-to input { flex:1; min-width:0; height:36px; border:0; background:transparent; color:#f5f5f5; font:400 1rem Arial,Helvetica,sans-serif; outline:none; box-shadow:none; }
.dm-to input::placeholder { color:#a8a8a8; }
.dm-to-results { flex:1 1 auto; overflow:auto; padding:8px 0; }
.dm-to-results > .dm-ig-hint { padding:22px 20px; text-align:center; }
.dm-person { position:relative; display:grid; grid-template-columns:44px minmax(0,1fr) 24px; align-items:center; gap:12px; margin:0; padding:8px 20px; cursor:pointer; }
.dm-person:hover { background:#16191e; }
.dm-person input { position:absolute; opacity:0; pointer-events:none; }
.dm-person-text { display:grid; min-width:0; }
.dm-person-text b { color:#f5f5f5; font:600 .95rem Arial,Helvetica,sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dm-person-text small { color:#a8a8a8; font-size:.8rem; }
.dm-ring { width:22px; height:22px; border:2px solid #6b6f76; border-radius:50%; }
.dm-person:has(input:checked) .dm-ring { border:6px solid #e8261b; }
.dm-person:has(input:focus-visible) { outline:2px solid #ff4433; outline-offset:-2px; }
.dm-new-bottom { padding:10px 16px 16px; border-top:1px solid #262626; }
.dm-new-bottom textarea { width:100%; min-height:44px; max-height:140px; padding:10px 16px; border:1px solid #363a40; border-radius:22px; background:transparent; color:#f5f5f5; resize:none; font:400 .95rem Arial,Helvetica,sans-serif; }
.dm-new-bottom textarea:focus { outline:none; border-color:#6b6f76; }
.dm-new-bottom #dm-new-status { min-height:1.2em; margin:6px 4px 0; }
.dm-new-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.dm-new-group { color:#a8a8a8 !important; font-size:.8rem; text-decoration:none; }
.dm-new-group:hover { color:#f5f5f5 !important; }
.dm-ig-chat { min-width:110px; height:40px; border:0; border-radius:10px; background:#e8261b; color:#fff; font:700 .95rem Arial,Helvetica,sans-serif; }
.dm-ig-chat:disabled { background:#3a1512; color:#8a6a66; }
.dm-req-body { flex:1 1 auto; overflow:auto; padding:20px; display:flex; flex-direction:column; justify-content:flex-end; }
.dm-req-note .community-message { display:grid; grid-template-columns:28px auto; column-gap:8px; align-items:end; max-width:min(560px,80%); }
.dm-req-note .dm-ig-avatar { grid-row:1; }
.dm-req-bar { padding:14px 16px 18px; border-top:1px solid #262626; text-align:center; }
.dm-req-bar .dm-ig-hint { margin-bottom:12px; }
.dm-req-actions { display:flex; gap:10px; }
.dm-req-actions button { flex:1; height:42px; border:0; border-radius:10px; background:#262a30; color:#f5f5f5; font:700 .95rem Arial,Helvetica,sans-serif; }
.dm-req-actions button:hover { background:#30353c; }
.dm-req-actions #dm-req-block, .dm-req-actions #dm-req-decline { color:#ff6a5c; }
.dm-req-actions #dm-req-accept { background:#e8261b; color:#fff; }
.dm-req-actions button[hidden] { display:none; }
@media (max-width:767.98px) {
  .cm-standalone-messages .cm-pane > section.dm-new, .cm-standalone-messages .cm-pane > section.dm-request { padding-top:0; }
  .cm-standalone-messages .cm-pane > section.dm-new .dm-ig-head, .cm-standalone-messages .cm-pane > section.dm-request .dm-ig-head { padding-left:52px; }
  .dm-req-body { min-height:45svh; }
  .dm-to-results { min-height:40svh; }
}
/* (the general Community heading/label styles are stronger than the rules above; these win) */
#dm-new-panel .dm-ig-head h2, #dm-request-panel .dm-ig-head h2 { margin:0; font:700 1rem Arial,Helvetica,sans-serif; color:#f5f5f5; text-shadow:none; text-transform:none; letter-spacing:0; }
#dm-new-panel .dm-ig-head, #dm-request-panel .dm-ig-head { min-height:64px; }
#dm-new-panel .dm-to { display:flex; align-items:center; gap:14px; margin:0; }
#dm-new-panel .dm-to input::-webkit-search-cancel-button { -webkit-appearance:none; }
#dm-to-results .dm-person { display:grid; grid-template-columns:44px minmax(0,1fr) 24px; align-items:center; gap:12px; margin:0; font-weight:400; }
#dm-to-results .dm-person > .dm-ig-avatar { grid-row:auto; }
#dm-to-results .dm-ring { display:block; width:22px; height:22px; box-sizing:border-box; }
#dm-request-panel .dm-req-note .community-message { display:grid; padding:0; border:0; background:none; }
#dm-new-panel .dm-to { flex-wrap:wrap; row-gap:8px; }
.dm-to-chips { display:contents; }
.dm-chip { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 10px 0 12px; border:0; border-radius:15px; background:#3a1512; color:#ffb3aa; font:600 .85rem Arial,Helvetica,sans-serif; }
.dm-chip:hover { background:#4a1a16; }
.dm-chip-x { font-size:1.05rem; line-height:1; }
#dm-to-results .dm-person input:checked ~ .dm-ring { border:6px solid #e8261b; }
/* Phone & computer alerts (Gary, Nov 13): plain-language tips, and "Alerts are on for: Mac (Chrome) turn off". */
#notification-devices .notif-tip { color:#b9b2a6; font-size:.95rem; }
#notification-devices .notif-on { font-size:.95rem; margin:0 0 6px; }
#notification-devices .notif-off { background:none; border:0; color:#ff6a5c; text-decoration:underline; padding:0 4px; min-height:0; }
#notification-devices .notif-off:hover { color:#fff; }
#notification-device-status:empty { display:none; }
/* Press and hold a message on a phone (Gary approved the mock-up, Nov 13): the chat blurs, the message lifts out,
   reactions above and actions below, like Instagram. hold-menu.js builds it. */
.hold-enabled .cm-tools, .hold-enabled .community-message-actions { display:none !important; }
.hold-enabled .community-message { -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
html.hold-open { overflow:hidden; }
/* iPhone keeps the press going after the menu opens; nothing in it may start a text selection (Gary, Nov 13). */
.hold-ov, .hold-ov * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.hold-ov { position:fixed; inset:0; z-index:5000; display:flex; align-items:center; justify-content:center; padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); background:rgba(0,0,0,.45); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); font-family:Arial,Helvetica,sans-serif; animation:hold-in .15s ease-out; }
@keyframes hold-in { from { opacity:0; } to { opacity:1; } }
.hold-stack { width:100%; max-width:440px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.hold-stack.is-mine { align-items:flex-end; }
.hold-rx { display:flex; gap:4px; padding:6px 8px; border-radius:999px; background:#1f1f22; box-shadow:0 8px 30px rgba(0,0,0,.6); max-width:100%; overflow-x:auto; }
.hold-rx button { border:0; background:none; font-size:24px; line-height:1; padding:5px; border-radius:50%; cursor:pointer; }
.hold-rx button[aria-pressed="true"] { background:rgba(255,59,43,.25); }
.hold-msg { display:flex; gap:8px; align-items:flex-end; max-width:88%; }
.hold-msg img { width:30px; height:30px; border-radius:50%; object-fit:cover; flex:none; }
.hold-bubble { background:#26262a; color:#f2f2f2; border-radius:18px; padding:10px 14px; font-size:15px; line-height:1.35; min-width:0; }
.is-mine .hold-bubble { background:linear-gradient(180deg,#e8463a,#c92f22); color:#fff; }
.hold-bubble b { display:block; font-size:12px; color:#ff6a5c; margin-bottom:3px; }
.hold-text { white-space:pre-wrap; overflow-wrap:anywhere; max-height:32vh; overflow:hidden; display:-webkit-box; -webkit-line-clamp:8; -webkit-box-orient:vertical; }
.hold-menu { width:230px; border-radius:14px; background:#1f1f22; box-shadow:0 8px 30px rgba(0,0,0,.6); overflow:hidden; }
.hold-time { margin:0; padding:10px 16px 6px; color:#9a9a9a; font-size:12px; }
.hold-item { display:flex; align-items:center; gap:14px; width:100%; padding:12px 16px; border:0; border-top:1px solid #2c2c30; background:none; color:#f2f2f2; font:400 15px Arial,Helvetica,sans-serif; text-align:left; cursor:pointer; }
.hold-item svg { width:20px; height:20px; flex:none; }
.hold-item:focus-visible { outline:2px solid #36c6d6; outline-offset:-2px; }
.hold-item.is-danger { color:#ff4f45; }
/* "I'm not getting notifications" (Gary approved the mock-up, Nov 13). */
#notification-devices .notif-trouble { display:block; width:100%; margin:14px 0 6px; }
#notification-devices .notif-check { margin-top:10px; border:1px solid #333; border-radius:10px; background:#0b0b0b; padding:14px 14px 10px; }
#notification-devices .notif-check h3 { margin:0 0 10px; font-size:1rem; }
#notification-devices .notif-row { display:flex; gap:10px; margin:0 0 10px; font-size:.95rem; line-height:1.35; }
#notification-devices .notif-row i { font-style:normal; flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.8rem; font-weight:700; }
#notification-devices .notif-row.ok i { background:#123d22; color:#5be38a; }
#notification-devices .notif-row.fix i { background:#3b2d08; color:#f0b429; }
#notification-devices .notif-row.bad i { background:#3d1212; color:#ff6a5c; }
#notification-devices .notif-help { color:#9a948a; font-size:.85rem; margin:6px 0 0; border-top:1px solid #222; padding-top:10px; }
/* Gary, Nov 13: no Chat / Forum tabs; a Back to the Fringe button instead. */
.cm-tabs.cm-back-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:4px 0 12px; padding:0; border:0; background:none; }
.fringe-back { display:inline-flex; align-items:center; gap:6px; padding:7px 14px 7px 10px; border:1px solid #444; border-radius:999px; color:#eee !important; font:700 .85rem Arial,Helvetica,sans-serif; text-decoration:none; background:#111; }
.fringe-back:hover { border-color:#ff3b2b; color:#fff !important; }
/* Pills are as wide as their words (Gary, Nov 16). */
.fringe-back { width:max-content; max-width:100%; align-self:flex-start; justify-self:start; }
.cm-back-row .cm-tab { min-height:0; padding:7px 14px; border-radius:999px; font-size:.85rem; }
/* Gary, Nov 13: a Founding Members chat for someone who isn't one: dimmed, with a lock line under the name. */
.community-channels button.cm-channel-locked{flex-wrap:wrap;row-gap:2px;opacity:.55;cursor:not-allowed}
.community-channels button.cm-channel-locked:hover{background:transparent}
.community-channels .cm-lock{flex-basis:100%;padding-left:16px;font-size:11px;color:#c9a227;white-space:nowrap}

/* Gary, Nov 14 (approved mock-up): Block / Leave live in a ⋯ menu in the conversation header. */
.cm-standalone-messages .dm-more { position:relative; flex:none; }
.cm-standalone-messages .dm-more:has(#dm-actions:empty) { display:none; }
.cm-standalone-messages .dm-more > summary { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; color:#f5f5f5; font-size:1.5rem; line-height:1; list-style:none; cursor:pointer; }
.cm-standalone-messages .dm-more > summary::-webkit-details-marker { display:none; }
.cm-standalone-messages .dm-more > summary:hover { background:#1c1f24; }
.cm-standalone-messages .dm-more > summary:focus-visible { outline:2px solid #ff4433; outline-offset:2px; }
.cm-standalone-messages .dm-more[open] > .dm-actions { position:absolute; right:0; top:calc(100% + 6px); z-index:5; display:grid; gap:2px; min-width:200px; margin:0; padding:6px; border:1px solid #333; border-radius:10px; background:#16191e; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.cm-standalone-messages .dm-more[open] > .dm-actions .btn { width:100%; text-align:left; border:0; background:none; color:#f5f5f5; padding:9px 10px; border-radius:6px; }
.cm-standalone-messages .dm-more[open] > .dm-actions .btn:hover { background:#262a30; }
.cm-standalone-messages .dm-ig-head h2 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cm-standalone-messages .dm-ig-head .dm-help { margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Phones: an open conversation fills the screen like Instagram. Only the messages scroll; the typing box stays at the bottom. */
@media (max-width:767.98px) {
  .cm-standalone-messages #direct-messages[data-open] .cm-pane { position:fixed; inset:0; z-index:1040; display:flex; flex-direction:column; background:#0b0b0c; padding-top:env(safe-area-inset-top,0px); }
  .cm-standalone-messages #direct-messages[data-open] .dm-ig-back { top:calc(14px + env(safe-area-inset-top,0px)); }
  .cm-standalone-messages #direct-messages[data-open] #dm-thread-panel:not([hidden]) { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; }
  .cm-standalone-messages #direct-messages[data-open] #dm-thread-panel .dm-ig-head { flex:none; padding-top:10px; padding-bottom:10px; }
  .cm-standalone-messages #direct-messages[data-open] #dm-history { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  .cm-standalone-messages #direct-messages[data-open] #dm-compose { flex:none; padding-bottom:calc(8px + env(safe-area-inset-bottom,0px)); }
  .cm-standalone-messages #direct-messages[data-open] .cm-pane > section.dm-new, .cm-standalone-messages #direct-messages[data-open] .cm-pane > section.dm-request { flex:1 1 auto; min-height:0; }
  body:has(#direct-messages[data-open]) .mx { display:none !important; }
}

/* Gary, Nov 15: no "Message sent / Refresh messages" bar on Messages (it refreshes by itself); a short note floats above the typing box instead. */
.cm-standalone-messages .cm-frame { position:relative; }
.cm-standalone-messages #dm-refresh { display:none; }
.cm-standalone-messages .cm-statusbar:has(#dm-status:not(:empty)) { position:absolute; left:50%; bottom:84px; z-index:6; transform:translateX(-50%); display:flex; max-width:min(90%,520px); padding:6px 14px; border:1px solid #333; border-radius:999px; background:#1d1d1d; box-shadow:0 6px 18px rgba(0,0,0,.5); pointer-events:none; }
.cm-standalone-messages .cm-statusbar p { color:#ddd; font-weight:600; text-align:center; }
.cm-standalone-messages .cm-statusbar #dm-status:empty::before { content:none; }

/* Gary, Nov 15: the phone Messages list fits the screen; only the list scrolls, not the page. */
@media (max-width:767.98px) {
  body.community-fit:has(.cm-standalone-messages) main.page-main { padding-top:10px; padding-bottom:10px; }
  .cm-standalone-messages .cm-frame { height:calc(100svh - var(--header-h,97px) - 20px); min-height:0; overflow:hidden; }
  .cm-standalone-messages .cm-split { height:100%; }
  .cm-standalone-messages #direct-messages:not([data-open]) .cm-side { height:100%; overflow-y:auto; overscroll-behavior:contain; }
}

/* Gary, Nov 15 (approved mock-up): Messages in the red Fringe look; emoji and GIF buttons in the typing bar. */
.cm-standalone-messages .cm-frame { border:1px solid rgba(255,42,31,.55); border-radius:12px; box-shadow:0 0 22px rgba(255,42,31,.18); background:#0b0b0b; overflow:hidden; }
.cm-standalone-messages .cm-side { background:#0f0f0f; border-right-color:#2a1414; }
.cm-standalone-messages .dm-ig-top strong { font:400 1.5rem/1 Anton,Impact,sans-serif; text-transform:uppercase; letter-spacing:.02em; color:#ff3b2b; text-shadow:0 0 10px rgba(255,42,31,.5); }
.cm-standalone-messages .dm-ig-tabs button[aria-selected=true] { border-bottom-color:#ff3b2b; color:#fff; }
.cm-standalone-messages .cm-frame .dm-inbox-item[aria-current=true] { background:rgba(255,42,31,.10); box-shadow:inset 3px 0 0 #ff3b2b; }
.cm-standalone-messages .dm-ig-search input { background:#161616; }
.cm-standalone-messages .dm-ig-head { background:#0e0e0e; border-bottom-color:#2a1414; }
.cm-standalone-messages #dm-compose { border-top-color:#2a1414; }
.cm-standalone-messages #dm-compose > .dm-ig-tool { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; margin:0; padding:0; border:0; border-radius:50%; background:none; color:#f5f5f5; cursor:pointer; }
.cm-standalone-messages #dm-compose > .dm-ig-tool:hover { background:#1c1f24; }
.cm-standalone-messages #dm-compose > .dm-ig-gif { flex:none; width:auto; height:24px; padding:0 7px; border:1.5px solid #f5f5f5; border-radius:6px; font:800 .7rem/1 Arial,Helvetica,sans-serif; letter-spacing:.04em; }
.cm-standalone-messages #dm-compose > .dm-ig-tool[aria-expanded=true] { color:#ff3b2b; border-color:#ff3b2b; }
.cm-standalone-messages .dm-picker { margin:0 16px 8px; }
.cm-standalone-messages .cm-gif-results { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:6px; max-height:260px; overflow-y:auto; }
.cm-standalone-messages .dm-message-body.is-gif { padding:0 !important; background:none !important; }
.dm-gif { display:block; max-width:min(260px,100%); max-height:260px; border-radius:14px; }
@media (max-width:767.98px) {
  .cm-standalone-messages #direct-messages[data-open] .dm-picker { flex:none; margin:0 10px 6px; }
  .cm-standalone-messages .cm-gif-results { max-height:200px; grid-template-columns:repeat(3,1fr); }
}

/* Gary, Nov 15 (approved mock-up): "Tuning in…" while chat or notifications load, instead of an empty box. */
.cm-tuning { display:none; padding:12px 14px; }
.cm-tuning:has(+ #community-history:empty), .cm-tuning:has(+ #notification-private[hidden]) { display:block; }
#notification-status:not(:empty) ~ .cm-tuning { display:none; }
.cm-tuning.is-done { display:none !important; }
#community-history:empty { display:none; }
.cm-tuning p { display:flex; align-items:center; justify-content:center; gap:8px; margin:4px 0 12px; font:700 .72rem/1 Arial,Helvetica,sans-serif; letter-spacing:.18em; text-transform:uppercase; color:#ff4a3a; }
.cm-tuning p span { width:8px; height:8px; border-radius:50%; background:#ff2a1f; box-shadow:0 0 10px #ff2a1f; animation:cm-tune-blink 1s ease-in-out infinite; }
.cm-tuning i { display:block; width:58%; height:38px; margin:0 0 14px 44px; border-radius:18px; position:relative; background:linear-gradient(90deg,#1a1a1a 0%,#2a2a2a 40%,#1a1a1a 80%); background-size:300% 100%; animation:cm-tune-shimmer 1.3s ease-in-out infinite; }
.cm-tuning i::before { content:""; position:absolute; left:-44px; top:2px; width:34px; height:34px; border-radius:50%; background:inherit; background-size:inherit; animation:inherit; }
.cm-tuning i:nth-of-type(3n) { width:44%; }
.cm-tuning i.me { width:48%; margin-left:auto; margin-right:0; background:linear-gradient(90deg,rgba(255,42,31,.22) 0%,rgba(255,42,31,.42) 40%,rgba(255,42,31,.22) 80%); background-size:300% 100%; }
.cm-tuning i.me::before { display:none; }
@keyframes cm-tune-shimmer { 0% { background-position:100% 0; } 100% { background-position:-100% 0; } }
@keyframes cm-tune-blink { 50% { opacity:.25; } }
@media (prefers-reduced-motion: reduce) { .cm-tuning i, .cm-tuning p span { animation:none; } }
/* Shared posts in Messages (Gary, Nov 16): the post as a card, then the note under it. */
.dm-message-body.has-post { display:flex; flex-direction:column; gap:8px; background:none; padding:0; }
.dm-post { display:flex; flex-direction:column; gap:6px; width:min(240px,100%); padding:10px; border:1px solid #333; border-radius:14px; background:#1c1c1c; color:#eee; text-decoration:none; }
@media (hover:hover) { .dm-post:hover { border-color:#ff3b2b; color:#fff; } } .dm-post:focus-visible { border-color:#ff3b2b; color:#fff; } .dm-post:focus:not(:focus-visible) { outline:none; }
.dm-post-head { display:flex; align-items:center; gap:8px; font-size:.85rem; }
.dm-post-icon { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; overflow:hidden; border:2px solid #ff3b2b; background:#2a2a2a; flex:none; }
.dm-post-icon img { width:100%; height:100%; object-fit:cover; }
.dm-post-pic { display:block; width:100%; max-height:300px; object-fit:cover; border-radius:6px; }
.dm-post-title { font-weight:700; font-size:.9rem; line-height:1.25; overflow-wrap:anywhere; }
.dm-post-by { font-size:.75rem; color:#a8a8a8; text-decoration:underline; text-underline-offset:2px; }
.dm-post-wait { font-size:.85rem; color:#a8a8a8; }
.dm-post-note { padding:8px 12px; border-radius:16px; background:#2a2a2a; width:max-content; max-width:100%; }
/* Shared post in your own message (Gary, Nov 16): no red bubble behind the card and the note; the note gets your red bubble. */
.cm-standalone-messages .dm-message-body.has-post, .cm-standalone-messages .is-mine .dm-message-body.has-post { padding:0 !important; background:none !important; box-shadow:none !important; border:0 !important; }
.cm-standalone-messages .is-mine .dm-message-body.has-post { align-items:flex-end; }
.cm-standalone-messages .is-mine .dm-post-note { background:#e8261b; color:#fff; }
.cm-standalone-messages .is-mine .dm-post-note a { color:#fff; }
.dm-post-note > :first-child { margin-top:0; } .dm-post-note > :last-child { margin-bottom:0; }
/* Messages on phones (Gary, Nov 16, after Instagram): GIF opens a sheet from the bottom with a search bar and two columns of
   KLIPY GIFs; the emoji button opens the phone's own keyboard; the picture and name at the top open their profile. */
@media (pointer:coarse) {
  .cm-standalone-messages #dm-gif:not([hidden]) { position:fixed; left:0; right:0; bottom:0; z-index:1100; display:flex; flex-direction:column; gap:10px; max-height:64vh; margin:0; padding:22px 14px calc(10px + env(safe-area-inset-bottom,0px)); border:0; border-top:1px solid #2c2c2c; border-radius:18px 18px 0 0; background:#16181c; box-shadow:0 -12px 34px rgba(0,0,0,.65); animation:dm-sheet-up .22s ease-out; }
  .cm-standalone-messages #dm-gif:not([hidden])::before { content:""; position:absolute; top:8px; left:50%; width:40px; height:4px; margin-left:-20px; border-radius:2px; background:#555; }
  .cm-standalone-messages #dm-gif input[type=search] { flex:none; min-height:42px; border:0; border-radius:12px; background:#2a2d33; font-size:16px; }
  .cm-standalone-messages #dm-gif .cm-gif-results { flex:1 1 auto; max-height:none; min-height:0; grid-template-columns:repeat(2,1fr); gap:8px; overflow-y:auto; overscroll-behavior:contain; }
  .cm-standalone-messages #dm-gif .cm-gif-pick { aspect-ratio:auto; min-height:120px; border-radius:10px; }
}
@keyframes dm-sheet-up { from { transform:translateY(100%); } }
.cm-standalone-messages .is-link { cursor:pointer; }
.cm-standalone-profile > .profile-back { margin:0 0 12px; }
/* Gary, Nov 16: a back arrow at the top of the conversation list (phones). */
.dm-inbox-back { display:none; }
@media (max-width:767.98px) { .cm-standalone-messages .dm-inbox-back { display:grid; place-items:center; width:36px; height:40px; margin-right:4px; color:#f2f2f2 !important; flex:none; } }
@media (max-width:767.98px) { .cm-standalone-messages .dm-ig-top > strong { flex:1; min-width:0; } }

/* Gary, Nov 20: no red box around a message you jump to; it glows for a moment instead (community.js flash) */
.community-message[tabindex="-1"]:focus, .community-message[tabindex="-1"]:focus-visible { outline:none !important; }
.community-message.cm-flash { animation:cm-flash 2.4s ease-out; }
@keyframes cm-flash { 0%, 25% { background:rgba(255,59,43,.2); } 100% { background:transparent; } }
@media (prefers-reduced-motion: reduce) { .community-message.cm-flash { animation:none; background:rgba(255,59,43,.12); } }
/* Gary, Nov 22: no Earlier messages button in private messages either; they load as you scroll up (direct-messages.js) */
#dm-older, .cm-standalone-messages #dm-thread-panel > #dm-older { display:none !important; }
