/* Chat rooms (docs/65 §3): a room laid out like a Facebook group — banner, name, tabs, an About card — with MSN Chat's
   people in the member list, in Nuxtre's colours. Calm dark panels; the neon is in the banner, the tiles and the edges.
   No inline styles (CSP): every colour and size is a class. */
.nx-main:has(> .cr) { max-width: 1260px; padding-top: 14px; }
.cr { --cr-panel: #0e1438; --cr-row: #121a46; --cr-row-hi: #17205a; --cr-line: rgba(95, 223, 246, .16); --cr-dim: #9aa3d6;
  color: var(--nx-text); font: 15px/1.5 var(--nx-font-body); }
.cr a { color: var(--nx-link); }
.cr .dim { color: var(--cr-dim); }
.cr .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr h1, .cr h2, .cr h3 { color: var(--nx-text); }
.cr h2 { font: 22px/1.15 var(--nx-font-display); letter-spacing: .03em; margin: 0 0 12px; }
.cr h2 small { font: 600 13px var(--nx-font-body); color: var(--cr-dim); margin-left: 6px; }
.cr h3 { font: 700 14px var(--nx-font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--nx-acid); margin: 18px 0 6px; }

/* tiles and colours (shared with the forum's) */
.fc-cyan { --fc: #0bdefb; --fc2: #0865ec; } .fc-magenta { --fc: #f209f3; --fc2: #8e10c8; } .fc-acid { --fc: #cef41b; --fc2: #5fae0f; } .fc-orange { --fc: #ff8a1c; --fc2: #e23a00; }
.fc-violet { --fc: #9b6bff; --fc2: #5122d6; } .fc-blue { --fc: #2f8bff; --fc2: #1640c8; } .fc-green { --fc: #39ff8a; --fc2: #0e9a55; } .fc-red { --fc: #ff4d6d; --fc2: #b5123a; }
.cr-tile { display: inline-grid; place-items: center; flex: none; border-radius: 14px; background: linear-gradient(145deg, var(--fc, #0bdefb), var(--fc2, #0865ec)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 0 18px color-mix(in srgb, var(--fc, #0bdefb) 45%, transparent); }
.cr-tile svg { fill: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.cr-sm { width: 38px; height: 38px; border-radius: 11px; } .cr-sm svg { width: 20px; height: 20px; }
.cr-md { width: 50px; height: 50px; } .cr-md svg { width: 26px; height: 26px; }
.cr-lg { width: 88px; height: 88px; border-radius: 22px; } .cr-lg svg { width: 46px; height: 46px; }
.cr-emo { font-size: 1.3em; line-height: 1; } .cr-lg .cr-emo { font-size: 44px; } .cr-sm .cr-emo { font-size: 20px; }

/* buttons, panels, notices */
.cr-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(95, 223, 246, .3); background: var(--cr-row); color: var(--nx-text) !important; font: 600 14px var(--nx-font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.cr-btn:hover { border-color: var(--nx-cyan); box-shadow: 0 0 12px rgba(11, 222, 251, .3); }
.cr-btn.go { background: linear-gradient(180deg, #e8ff4d, #a7d600); border-color: #d6ff1f; color: #0a0b2e !important; box-shadow: 0 0 14px rgba(214, 255, 31, .35); }
.cr-btn.bad { border-color: rgba(255, 77, 109, .6); color: #ffc2cd !important; }
.cr-btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 9px; }
.cr-btn.big { padding: 12px 22px; font-size: 16px; }
.cr-btn[disabled] { opacity: .6; cursor: default; }
.cr-inline { display: inline-flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 0; }
.cr-panel { background: var(--cr-panel); border: 1px solid var(--cr-line); border-radius: 20px; padding: 20px 22px; margin: 0 0 18px; box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.cr-flash { background: rgba(57, 255, 138, .1); border: 1px solid rgba(57, 255, 138, .4); color: #c8ffe0; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.cr-flash.bad { background: rgba(255, 77, 109, .1); border-color: rgba(255, 77, 109, .5); color: #ffd0d8; }
.cr-notice { margin: 0; padding: 8px 14px; background: rgba(255, 210, 61, .1); border-top: 1px solid rgba(255, 210, 61, .35); color: #ffe39a; font-size: 13px; }
.cr-crumbs { font-size: 13px; color: var(--cr-dim); margin: 0 0 12px; } .cr-crumbs a { color: var(--cr-dim); }
.cr-foot { font-size: 13px; }
.cr-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ---------------------------------------------------------------- the directory */
.cr-dirhead { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; }
.cr-dirhead h1 { font: 44px/1 var(--nx-font-display); letter-spacing: .03em; margin: 0 0 6px; text-shadow: 0 0 18px rgba(11, 222, 251, .35); }
.cr-dirhead p { margin: 0; max-width: 64ch; }
.cr-kicker { font: 700 12px var(--nx-font-console); letter-spacing: .14em; text-transform: uppercase; color: var(--nx-acid); margin: 0 0 6px !important; }
.cr-kinds { display: flex; gap: 6px; background: var(--cr-panel); border: 1px solid var(--cr-line); border-radius: 16px; padding: 5px; }
.cr-kinds a { padding: 9px 16px; border-radius: 12px; color: var(--cr-dim) !important; text-decoration: none; font-weight: 700; }
.cr-kinds a[aria-current] { background: linear-gradient(90deg, var(--nx-blue), var(--nx-violet)); color: #fff !important; box-shadow: 0 0 14px rgba(96, 34, 233, .45); }
.cr-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 6px 0 8px; scrollbar-width: thin; }
.cr-cats a { flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--cr-line); background: var(--cr-panel); color: var(--cr-dim) !important; text-decoration: none; font-size: 13px; font-weight: 600; }
.cr-cats a[aria-current] { border-color: var(--nx-cyan); color: var(--nx-text) !important; box-shadow: 0 0 10px rgba(11, 222, 251, .3); }
.cr-sec { margin: 0 0 22px; }
.cr-sec > h2 { font-size: 20px; }
.cr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cr-card { background: var(--cr-panel); border: 1px solid var(--cr-line); border-radius: 18px; overflow: hidden; transition: transform .12s, border-color .12s, box-shadow .12s; }
.cr-card:hover { transform: translateY(-2px); border-color: rgba(11, 222, 251, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 16px rgba(11, 222, 251, .18); }
.cr-card.frozen { opacity: .75; }
.cr-cardlink { display: block; text-decoration: none; color: inherit !important; }
.cr-cardban { display: block; aspect-ratio: 4 / 1; overflow: hidden; background: #070b24; }
.cr-cardban img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-cardbody { display: flex; gap: 12px; padding: 0 14px 14px; }
.cr-cardbody .cr-tile { margin-top: -14px; border: 3px solid var(--cr-panel); box-sizing: content-box; }
.cr-cardtxt { display: flex; flex-direction: column; min-width: 0; padding-top: 8px; }
.cr-cardtxt b { color: var(--nx-acid-text, #d6ff1f); font-family: var(--nx-font-console); font-size: 14px; }
.cr-cardname { font-weight: 700; }
.cr-cardtxt small { color: var(--cr-dim); font-size: 12px; }
.cr-cardtopic { font-size: 13px; color: #c7cdf5; margin: 4px 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cr-cardcounts { font-family: var(--nx-font-console); }
.cr-empty { padding: 8px 2px; }
.cr-create { margin: 8px 0 0; } .cr-create small { margin-left: 8px; }
.cr-soon p { max-width: 70ch; }

/* ---------------------------------------------------------------- a room's header (Facebook group) */
.cr-head { background: var(--cr-panel); border: 1px solid var(--cr-line); border-radius: 22px; overflow: hidden; margin: 0 0 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.cr-banner { aspect-ratio: 4 / 1; background: #070b24; overflow: hidden; }
.cr-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-headrow { display: flex; align-items: flex-end; gap: 18px; padding: 0 22px 12px; flex-wrap: wrap; }
.cr-headrow > .cr-tile, .cr-headrow > [data-pv="tile"] > .cr-tile { margin-top: -38px; border: 4px solid var(--cr-panel); box-sizing: content-box; }
.cr-headmain { flex: 1; min-width: 220px; padding-top: 10px; }
.cr-headmain h1, .cr-headmain h2 { font: 38px/1.05 var(--nx-font-display); letter-spacing: .02em; margin: 0 0 4px; overflow-wrap: anywhere; text-shadow: 0 0 16px rgba(11, 222, 251, .3); }
.cr-meta { margin: 0; color: var(--cr-dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.cr-meta b { color: var(--nx-text); }
.cr-closed { color: #ffb4c2; font-weight: 700; }
.cr-headacts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.cr-tabs { display: flex; gap: 4px; border-top: 1px solid var(--cr-line); padding: 0 14px; overflow-x: auto; }
.cr-tabs a { padding: 12px 16px; color: var(--cr-dim) !important; text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.cr-tabs a:hover { color: var(--nx-text) !important; }
.cr-tabs a[aria-current] { color: var(--nx-text) !important; border-bottom-color: var(--nx-acid); }
.cr-tabs small { background: var(--nx-blue); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; }

/* ---------------------------------------------------------------- the chat (MSN Chat's people on the right) */
.cr-chat { border-radius: 18px; }
.cr-chat > header { gap: 12px; }
.cr-topic { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cr-welcome { margin: 0; padding: 8px 14px; background: rgba(11, 222, 251, .08); border-bottom: 1px solid rgba(11, 222, 251, .25); color: #bdf3ff; font-size: 14px; }
.cr-grid2 .nx-chat-log { font-size: 14px; }
.cr-side { width: 220px; }
.cr-side h2 { display: flex; justify-content: space-between; }
.cr-side h2 b { color: var(--nx-text); }
.cr-people { list-style: none; margin: 0; padding: 0; }
.cr-p { margin: 0 0 2px; }
.cr-pbtn { display: flex; align-items: center; gap: 7px; width: 100%; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--nx-text); font: 13px var(--nx-font-console); text-align: left; cursor: pointer; }
.cr-pbtn:hover, .cr-pbtn[aria-expanded="true"] { background: rgba(95, 223, 246, .1); }
.cr-pbtn img { border-radius: 6px; flex: none; }
.cr-pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-p.is-sysop .cr-pname { color: #ffd23d; } .cr-p.is-owner .cr-pname { color: #ffb2ff; } .cr-p.is-host .cr-pname { color: #8ff3ff; } .cr-p.is-spectator .cr-pname { color: var(--cr-dim); font-style: italic; }
.cr-p.ignored .cr-pname { text-decoration: line-through; opacity: .6; }
.cr-mark { font-style: normal; font-size: 14px; }
.cr-legend { font-size: 11px; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.nx-msg.broadcast { color: #ffe39a; background: rgba(255, 210, 61, .08); border-left: 3px solid #ffd23d; padding: 4px 8px; border-radius: 0 6px 6px 0; margin: 4px 0; }
.nx-msg.sticker { display: flex; align-items: center; gap: 6px; }
.cr-sticker { width: 96px; height: 96px; object-fit: contain; }
.nx-msg.ignored { display: none; }
.cr-x { margin-left: 6px; border: 0; background: none; color: var(--cr-dim); font-size: 11px; cursor: pointer; opacity: 0; padding: 0 4px; border-radius: 4px; }
.nx-msg:hover .cr-x, .cr-x:focus-visible { opacity: 1; } .cr-x:hover { color: #ff4d6d; background: rgba(255, 77, 109, .12); }
@media (hover: none) { .cr-x { opacity: .6; } }
.nx-msg .tx { white-space: pre-wrap; }
.cr-form { display: flex; gap: 8px; align-items: center; }
.cr-form input#chat-input { flex: 1; min-width: 0; }
.cr-tool { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cr-line); background: var(--cr-row); font-size: 18px; cursor: pointer; }
.cr-tool:hover { border-color: var(--nx-cyan); }
.cr-pop { position: absolute; z-index: 30; background: #0b1030; border: 1px solid rgba(95, 223, 246, .35); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 18px rgba(11, 222, 251, .2); max-width: min(360px, 92vw); }
.cr-pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; max-height: 220px; overflow: auto; }
.cr-pop-grid button { border: 0; background: none; font-size: 22px; padding: 4px; border-radius: 8px; cursor: pointer; color: var(--nx-text); }
.cr-pop-grid button:hover { background: rgba(95, 223, 246, .14); }
.cr-pop-grid.stickers { grid-template-columns: repeat(4, 72px); }
.cr-pop-grid.stickers img { width: 64px; height: 64px; object-fit: contain; }
.cr-pop-grid small { display: block; font-size: 9px; color: var(--cr-dim); }
.cr-menu { min-width: 220px; padding: 6px; }
.cr-menu header { padding: 6px 8px 8px; border-bottom: 1px solid var(--cr-line); margin-bottom: 4px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cr-menu header small { color: var(--cr-dim); font-weight: 400; }
.cr-menu button, .cr-menu a { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--nx-text) !important; font: 14px var(--nx-font-body); text-decoration: none; cursor: pointer; }
.cr-menu button:hover, .cr-menu a:hover { background: rgba(95, 223, 246, .12); }
.cr-menu .bad { color: #ffb4c2 !important; }
.cr-menu hr { border: 0; border-top: 1px solid var(--cr-line); margin: 4px 0; }
.cr-kicked { margin: 0; padding: 14px; background: rgba(255, 77, 109, .12); border-top: 1px solid rgba(255, 77, 109, .45); color: #ffd0d8; font-weight: 600; }
.cr-kicked b { font-family: var(--nx-font-display); letter-spacing: .04em; font-size: 20px; color: #ff4d6d; }

/* ---------------------------------------------------------------- About, Members, Events */
.cr-rules p { margin: 0 0 4px; padding-left: 14px; border-left: 2px solid var(--nx-magenta); }
.cr-facts ul { list-style: none; margin: 0; padding: 0; } .cr-facts li { padding: 7px 0; border-bottom: 1px solid var(--cr-line); }
.cr-members, .cr-events, .cr-list, .cr-log { list-style: none; margin: 0; padding: 0; }
.cr-member { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--cr-line); }
.cr-member img { border-radius: 10px; }
.cr-member > span { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cr-member small { width: 100%; }
.cr-invite { margin: 0 0 14px; padding: 12px; background: var(--cr-row); border-radius: 14px; }
.cr-invite label, .cr-banform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--cr-dim); }
.cr-invite input, .cr-banform input, .cr-eventform input, .cr-inline input { background: #0a0f2e; border: 1px solid var(--cr-line); border-radius: 10px; color: var(--nx-text); padding: 8px 10px; font: 14px var(--nx-font-body); min-width: 0; }
.cr-invite input { width: min(420px, 70vw); }
.cr-event { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--cr-line); }
.cr-event > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.cr-evdate { display: grid; place-items: center; width: 56px; height: 60px; border-radius: 14px; background: linear-gradient(160deg, var(--nx-magenta), var(--nx-violet)); color: #fff; flex: none; }
.cr-evdate b { font: 26px/1 var(--nx-font-display); } .cr-evdate small { font: 700 11px var(--nx-font-console); letter-spacing: .08em; }
.cr-eventform { display: grid; gap: 10px; margin: 18px 0 0; padding: 14px; background: var(--cr-row); border-radius: 14px; }
.cr-eventform h3 { margin: 0; }
.cr-eventform label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--cr-dim); }
.cr-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--cr-line); }
.cr-list li b { margin-right: auto; }
.cr-log li { font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--cr-line); }
.cr-log time { color: var(--cr-dim); font: 12px var(--nx-font-console); margin-right: 6px; }
.cr-danger { border-color: rgba(255, 77, 109, .35); }
.cr-danger form { margin: 0 0 10px; }
.cr-locked h2 { font-size: 26px; }

/* ---------------------------------------------------------------- creating a room, settings */
.cr-create2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.cr-create-form { background: var(--cr-panel); border: 1px solid var(--cr-line); border-radius: 22px; padding: 22px; }
.cr-create-form h1 { font: 34px/1.05 var(--nx-font-display); letter-spacing: .02em; margin: 0 0 6px; }
.cr-who { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; } .cr-who img { border-radius: 12px; }
.cr-form2 { display: flex; flex-direction: column; gap: 14px; }
.cr-form2 > label, .cr-form2 fieldset > label:not(.cr-radio):not(.cr-check):not(.cr-glyph):not(.cr-ban):not(.cr-swatch) { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.cr-form2 input[type="text"], .cr-form2 input:not([type]), .cr-form2 textarea, .cr-form2 select { background: #0a0f2e; border: 1px solid var(--cr-line); border-radius: 12px; color: var(--nx-text); padding: 10px 12px; font: 15px var(--nx-font-body); }
.cr-form2 input:focus, .cr-form2 textarea:focus, .cr-form2 select:focus { outline: none; border-color: var(--nx-cyan); box-shadow: 0 0 0 3px rgba(11, 222, 251, .2); }
.cr-form2 input[readonly] { opacity: .7; }
.cr-form2 fieldset { border: 1px solid var(--cr-line); border-radius: 16px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cr-form2 legend { padding: 0 6px; font: 700 12px var(--nx-font-console); letter-spacing: .12em; text-transform: uppercase; color: var(--nx-acid); }
.cr-form2 small { font-weight: 400; }
.cr-radio, .cr-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.cr-radio:hover, .cr-check:hover { background: rgba(95, 223, 246, .06); }
.cr-radio span, .cr-check span { display: flex; flex-direction: column; }
.cr-radio small, .cr-check small { color: var(--cr-dim); }
.cr-radio input, .cr-check input { margin-top: 4px; accent-color: #d6ff1f; }
.cr-bans { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cr-ban { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; aspect-ratio: 4 / 1; }
.cr-ban img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-ban input { position: absolute; opacity: 0; }
.cr-ban:has(input:checked) { border-color: #d6ff1f; box-shadow: 0 0 12px rgba(214, 255, 31, .45); }
.cr-ban:has(input:focus-visible) { outline: 2px solid var(--nx-cyan); }
.cr-upload { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cr-glyphs { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-glyph { position: relative; cursor: pointer; border-radius: 13px; border: 2px solid transparent; padding: 1px; }
.cr-glyph input[type="radio"] { position: absolute; opacity: 0; }
.cr-glyph:has(input[type="radio"]:checked) { border-color: #d6ff1f; }
.cr-emoji { display: inline-flex; align-items: center; }
.cr-emoji input[name="emoji"] { width: 64px; background: #0a0f2e; border: 1px solid var(--cr-line); border-radius: 10px; color: var(--nx-text); padding: 6px; font-size: 18px; text-align: center; }
.cr-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-swatch { position: relative; cursor: pointer; }
.cr-swatch input { position: absolute; opacity: 0; }
.cr-swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, var(--fc), var(--fc2)); border: 3px solid transparent; }
.cr-swatch:has(input:checked) span { border-color: #fff; box-shadow: 0 0 12px var(--fc); }
.cr-preview { position: sticky; top: 14px; background: var(--cr-panel); border: 1px solid var(--cr-line); border-radius: 22px; padding: 14px; }
.cr-pvbar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.cr-top-sp { flex: 1; }
.cr-pvbar button { width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--cr-line); background: var(--cr-row); cursor: pointer; font-size: 16px; }
.cr-pvbar button[aria-pressed="true"] { border-color: var(--nx-cyan); box-shadow: 0 0 10px rgba(11, 222, 251, .3); }
.cr-screen { display: flex; justify-content: center; }
.cr-pvpage { width: 100%; background: #0a0f2e; border: 1px solid var(--cr-line); border-radius: 16px; overflow: hidden; transition: width .2s; }
.cr-screen[data-cr-screen="phone"] .cr-pvpage { width: 300px; }
.cr-screen[data-cr-screen="phone"] .cr-banner { aspect-ratio: 3 / 1; }
.cr-screen[data-cr-screen="phone"] .cr-headmain h2 { font-size: 26px; }
.cr-pvpage .cr-headrow { padding: 0 14px 10px; }
.cr-pvpage .cr-headmain h2 { font-size: 30px; }
.cr-pvpage .cr-tabs a { padding: 10px 12px; cursor: default; }
.cr-pvabout { padding: 12px 16px 16px; border-top: 1px solid var(--cr-line); }
.cr-pvabout p { margin: 4px 0 0; color: #c7cdf5; white-space: pre-wrap; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 980px) { .cr-create2, .cr-cols { grid-template-columns: 1fr; } .cr-preview { position: static; } }
@media (max-width: 760px) {
  .cr-banner { aspect-ratio: 3 / 1; }
  .cr-headrow { padding: 0 14px 10px; gap: 12px; }
  .cr-headrow > .cr-tile { width: 64px; height: 64px; margin-top: -26px; } .cr-headrow > .cr-tile svg { width: 34px; height: 34px; }
  .cr-headmain h1 { font-size: 28px; }
  .cr-dirhead h1 { font-size: 34px; }
  .cr-grid2 { flex-direction: column; }
  .cr-side { width: auto; border-left: 0 !important; border-top: 1px solid rgba(11, 222, 251, .3); max-height: 180px; overflow: auto; }
  .cr-people { display: flex; flex-wrap: wrap; gap: 2px 6px; }
  .cr-p { margin: 0; } .cr-pbtn { width: auto; }
  .cr-legend { display: none; }
  .cr-panel { padding: 16px; border-radius: 16px; }
  .cr-tool { width: 36px; height: 36px; }
}

/* ---------------------------------------------------------------- Leet in rooms (docs/65 §4) */
.fd-neon, .fd-acid, .fd-fire, .fd-ice, .fd-royal, .fd-toxic { -webkit-background-clip: text; background-clip: text; color: transparent; }
.fd-neon { background-image: linear-gradient(90deg, #0bdefb, #f209f3); } .fd-acid { background-image: linear-gradient(90deg, #d6ff1f, #39ff8a); }
.fd-fire { background-image: linear-gradient(90deg, #ffd23d, #ff4d6d); } .fd-ice { background-image: linear-gradient(90deg, #ffffff, #0bdefb); }
.fd-royal { background-image: linear-gradient(90deg, #9b6bff, #ff9ad5); } .fd-toxic { background-image: linear-gradient(90deg, #39ff8a, #2f8bff); }
.lt-al { color: #ff9ad5; } .lt-alias { font-style: normal; color: #ff9ad5; margin-left: 2px; }
.nx-msg.scroller pre { margin: 2px 0 2px 46px; font: 13px/1.1 "Courier New", monospace; color: #d6ff1f; white-space: pre; overflow-x: auto; }
.nx-msg.whisper { color: #ffe39a; font-style: italic; border-left: 3px solid #ffd23d; padding-left: 8px; margin: 4px 0; }
.nx-msg.whisper small { color: var(--cr-dim); }
.cr-p.is-ghost .cr-pname { opacity: .55; font-style: italic; }
.cr-pname small { color: var(--cr-dim); }


/* ---------------------------------------------------------------- video rooms: the stage (docs/65 §3b, D42) */
.cr-cardban { position: relative; }
.cr-live { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 9px; background: #ff2d55; color: #fff; font: 700 11px var(--nx-font-body); letter-spacing: .04em; box-shadow: 0 0 12px rgba(255, 45, 85, .7); }
.cr-live.off { background: rgba(7, 11, 36, .85); box-shadow: 0 0 0 1px rgba(95, 223, 246, .45); }
.cr-btn.live { background: linear-gradient(180deg, #ff5a78, #c4123c); border-color: #ff8aa0; color: #fff !important; box-shadow: 0 0 14px rgba(255, 45, 85, .4); }
.cr-stage { margin: 0 10px 10px; border: 1px solid var(--cr-line); border-radius: 14px; background: #04061a; overflow: hidden; }
.cr-stage.is-live { border-color: rgba(255, 45, 85, .55); box-shadow: 0 0 18px rgba(255, 45, 85, .18); }
.cr-stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; background: linear-gradient(90deg, rgba(96, 34, 233, .35), rgba(196, 15, 208, .2)); border-bottom: 1px solid var(--cr-line); }
.cr-stage-live { color: var(--cr-dim); font-size: 13px; } .cr-stage.is-live .cr-stage-live { color: #ff8aa0; font-weight: 700; }
.cr-stage-sp { flex: 1; } .cr-stage-acts { display: flex; flex-wrap: wrap; gap: 6px; } .cr-stage-acts .cr-btn { padding: 6px 12px; font-size: 13px; }
/* Small enough that the chat stays in view: up to four side by side, one a little bigger. */
.cr-stage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 290px)); justify-content: center; gap: 8px; padding: 8px; }
.cr-stage-tiles[data-n="1"] { grid-template-columns: minmax(220px, 420px); }
.cr-stage-empty { margin: 0; padding: 22px 10px; text-align: center; color: var(--cr-dim); grid-column: 1 / -1; }
.cr-stage-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 38%, #17205a, #070b24 72%); }
.cr-stage-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-stage-tile.mine video { transform: scaleX(-1); }
.cr-stage-tile img { position: absolute; left: 50%; top: 44%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 45, 85, .6), 0 0 24px rgba(242, 9, 243, .4); display: none; }
.cr-stage-tile.no-video img { display: block; } .cr-stage-tile.no-video video { opacity: 0; }
.cr-stage-tile figcaption { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; background: rgba(2, 3, 15, .72); font-size: 13px; }
.cr-stage-tile figcaption small { color: var(--cr-dim); }
.cr-stage-x { margin-left: auto; border: 0; border-radius: 6px; background: rgba(255, 77, 109, .25); color: #ffc2cd; cursor: pointer; padding: 0 6px; }
.cr-stage-hands { padding: 0 10px 10px; } .cr-stage-hands p { margin: 6px 0 0; }
.cr-stage-handlist span { display: inline-flex; align-items: center; gap: 6px; margin: 0 10px 4px 0; } .cr-stage-handlist .cr-btn { padding: 3px 9px; font-size: 12px; }
.cr-stage-invite { padding: 8px 10px; border-radius: 10px; background: rgba(255, 45, 85, .14); border: 1px solid rgba(255, 45, 85, .4); }
.cr-stage-note { color: #ffd23d; }
@media (max-width: 760px) { .cr-stage { margin: 0 4px 8px; } .cr-stage-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cr-stage-tiles[data-n="1"] { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- GIFs from the Vault in rooms (D43) */
.cr-gif { display: inline-block; vertical-align: middle; max-width: 200px; max-height: 150px; image-rendering: pixelated; border-radius: 6px; }
.cr-pop-tabs { display: flex; gap: 4px; padding: 6px 6px 0; } .cr-pop-tabs button { flex: 1; padding: 5px 8px; border-radius: 9px; border: 1px solid rgba(95, 223, 246, .25); background: #121a46; color: inherit; cursor: pointer; font: 600 12px var(--nx-font-body); }
.cr-pop-tabs button[aria-current] { background: linear-gradient(180deg, #e8ff4d, #a7d600); color: #0a0b2e; border-color: #d6ff1f; }
.cr-pop-grid.gifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; max-height: 300px; overflow: auto; }
.cr-pop-grid.gifs button { height: 64px; padding: 3px; border: 0; border-radius: 8px; background: none; cursor: pointer; } .cr-pop-grid.gifs button:hover { background: #17205a; }
.cr-pop-grid.gifs button img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.cr-pop-grid.gifs .po-gifhead { grid-column: 1 / -1; margin: 6px 2px 0; font: 700 11px var(--nx-font-body); color: #9aa3d6; text-transform: uppercase; letter-spacing: .08em; }
.cr-pop-grid.gifs .po-vault { grid-column: 1 / -1; display: block; margin: 8px 2px 2px; padding: 9px 10px; border-radius: 12px; background: linear-gradient(135deg, #3a4266, #59628e 45%, #2a3050); color: #fff; font: 700 12px var(--nx-font-body); text-align: center; text-decoration: none; }
