.community-body {--ink:#1b1c1a;--bone:#f3f2ed;--muted:#c0c1b9;--line:#41433d;--brand-bg:#242622;--mast-bg:#1b1c1af5;--dialog-bg:#242622;background:var(--ink);color:var(--bone)}
[data-theme="light"] .community-body {--ink:#f4f2e9;--bone:#20231e;--muted:#595e54;--line:#d3d5c9;--brand-bg:#eceee4;--mast-bg:#f4f2e9f5;--dialog-bg:#f4f2e9}
.community-page {padding-top:40px;padding-bottom:64px}
.community-heading {display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:32px}
.community-heading h1 {font:600 clamp(28px,3.4vw,46px)/1.15 Inter,Arial,sans-serif;letter-spacing:-.04em}
.community-heading .stream-description {max-width:75ch;margin-top:16px}.community-introduction {min-width:0;flex:1}.community-introduction .stream-channel {margin-top:0;align-items:flex-start}.community-introduction .stream-channel>img {margin-top:5px}.community-introduction .stream-channel h1 {font-size:clamp(28px,3.4vw,46px)}.video-intro {margin-top:20px}.video-intro h2 {font-size:23px;font-weight:500;line-height:1.3}.video-intro p {margin-top:12px;color:var(--muted);font-size:15px;max-width:75ch}
.session-clock {text-align:right;flex:none}
.session-clock #countdown-label {margin-top:0;font-size:13px}
.countdown {font:500 clamp(32px,4vw,52px)/1.3 Inter,Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.015em;margin-top:4px}
.countdown.is-session {font-size:30px;letter-spacing:-.025em}
.session-clock #countdown-schedule {font-size:12px;margin-top:4px}
.stream-layout {display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:stretch}
.stream-main {min-width:0}
.community-player {position:relative;aspect-ratio:16/9;overflow:hidden;background:#080808;color:#fff;border-radius:12px}
.stream-cover {width:100%;height:100%;object-fit:cover;object-position:center}
.stream-offline {position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(22px,4vw,56px);background:linear-gradient(90deg,#000a 0%,#0004 45%,transparent 80%)}
.stream-offline h2 {font:600 clamp(36px,4.2vw,60px)/1.1 "Caveat Notes",cursive;color:var(--red);letter-spacing:normal;margin:16px 0 10px}
.stream-offline p {font-size:15px;color:#eee;max-width:30ch}
.community-button {display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;background:var(--red);color:white;border:1px solid var(--red);border-radius:7px;font:600 15px/1.4 Inter,Arial,sans-serif;cursor:pointer;text-decoration:none}
.community-button:hover {background:#921210;border-color:#921210}
.community-button:disabled {opacity:.65;cursor:wait}
.stream-offline .community-button {margin-top:22px}
.community-player iframe {width:100%;height:100%;border:0;display:block}
.stream-channel {display:flex;align-items:center;gap:12px;margin-top:20px}
.stream-channel>img {width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.stream-channel>div {min-width:0;flex:1}
.stream-channel h2 {font-size:18px;line-height:1.3;font-weight:500}
.stream-channel p {font-size:13px;color:var(--muted);margin-top:5px}
.community-follow {padding:9px 12px;font-size:13px;font-weight:500;border:1px solid var(--line);border-radius:7px;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.community-follow:hover {border-color:var(--bone)}
.stream-description {font-size:14px;color:var(--muted);max-width:75ch;margin-top:16px}
#stream-actions {display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:14px;font-size:14px}
.community-questions {align-self:start;display:flex;flex-direction:column;background:var(--brand-bg);border-radius:12px;scroll-margin-top:95px;min-width:0;overflow:hidden}
.community-questions>header {padding:22px 22px 0}
.community-questions h2 {font-size:18px;line-height:1.3;font-weight:500}
.question-welcome {padding:22px 22px 20px}
.question-welcome h3 {font-size:16px;font-weight:500;margin-bottom:6px}
.question-welcome p {font-size:14px;color:var(--muted)}
#community-question-form {padding:0 22px 22px}
#community-question-form>label {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
#community-question-form textarea,.community-name-dialog input[type=text] {display:block;width:100%;border:1px solid var(--line);border-radius:7px;background:var(--ink);color:var(--bone);font:16px/1.4 Inter,Arial,sans-serif;padding:12px;margin-bottom:16px}
#community-question-form textarea {resize:vertical;min-height:130px}
#community-question-form textarea::placeholder {color:var(--muted)}
#community-question-form textarea:disabled {background:var(--brand-bg);color:var(--muted);opacity:.65;cursor:not-allowed}
#community-question-form .community-button:disabled {background:var(--line);border-color:var(--line);color:var(--muted);opacity:1;cursor:not-allowed}
.question-identity {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:13px;color:var(--muted)}
.question-identity span {overflow-wrap:anywhere}
.question-identity button {background:none;color:var(--bone);font:inherit;text-decoration:underline;border:0;min-height:44px;cursor:pointer}
#community-question-form .community-button {width:100%}
#question-feedback {font-size:14px;margin-top:10px}
#question-feedback:empty {display:none}
#question-feedback[data-error] {color:var(--bone);border-left:2px solid var(--red);padding-left:10px}
.question-note {font-size:12px;line-height:1.5;color:var(--muted);margin-top:12px}
.community-muted {color:var(--muted);font-size:14px}
.community-library {display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:48px;padding-top:32px;border-top:1px solid var(--line)}
.community-replays {min-width:0;scroll-margin-top:95px}
.community-replays>h2 {font-size:23px;font-weight:500;line-height:1.3;margin-bottom:14px}
.community-empty {font-size:14px;color:var(--muted);padding-bottom:30px}
.community-replay-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.community-replay {display:block;text-align:left;border:0;background:none;padding:0;color:var(--bone);cursor:pointer}
.community-replay img {width:100%;aspect-ratio:16/9;object-fit:cover;background:#080808;border-radius:8px}
.community-replay h3 {font-size:16px;font-weight:500;margin-top:10px}
.community-replay p {font-size:13px;color:var(--muted);margin-top:5px}
.community-name-dialog {margin:auto;width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:30px;border:1px solid var(--line);border-radius:14px;color:var(--bone);background:var(--dialog-bg)}
.community-name-dialog::backdrop {background:#0009}
.community-name-dialog h2 {font-size:24px;font-weight:500;line-height:1.25;padding-right:20px;margin-bottom:10px}
.community-name-dialog p {font-size:14px;color:var(--muted);margin-bottom:24px}
.community-name-dialog label[for] {display:block;font-size:14px;margin-bottom:8px}
.name-dialog-close {position:absolute;right:10px;top:10px;background:none;border:0;font:28px/1 Inter,Arial,sans-serif;color:var(--muted);width:40px;height:40px;cursor:pointer}
.question-consent {display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5;margin-bottom:22px;cursor:pointer;color:var(--muted)}
.question-consent input {width:18px;height:18px;flex:none;accent-color:var(--red);margin:1px 0 0}
.community-name-dialog .community-button {width:100%}
.community-thanks {padding-block:100px;min-height:65vh}
.community-thanks p {margin:24px 0;max-width:50ch}
@media(max-width:1150px){.stream-layout {grid-template-columns:minmax(0,1fr) 280px;gap:18px}.stream-channel {flex-wrap:wrap}.community-follow {margin-left:56px}.community-introduction {max-width:62%}}
@media(max-width:900px){.community-heading {display:block}.community-introduction {max-width:none}.session-clock {text-align:left;margin-top:24px}.stream-layout {grid-template-columns:minmax(0,1fr)}.community-questions {display:grid;grid-template-columns:1fr 1fr}.community-questions>header {grid-column:1/-1;padding-bottom:18px}.question-welcome {align-self:center;padding-top:0}.community-follow {margin-left:0}}
@media(max-width:600px){.community-page {padding-top:28px}.community-heading {display:block}.community-introduction {max-width:none}.community-heading .stream-description {font-size:14px}.session-clock {text-align:left;margin-top:24px}.session-clock #countdown-schedule {font-size:12px}.countdown {font-size:42px}.community-questions {display:flex}.question-welcome {padding:0 22px 20px;align-self:stretch}.stream-offline {padding:20px}.stream-offline h2 {font-size:36px;margin:10px 0 6px}.stream-offline .community-button {margin-top:14px;min-height:42px;padding:8px 14px}.stream-offline p {font-size:13px}.stream-channel>div {flex-basis:calc(100% - 56px)}.stream-channel h2 {font-size:17px}.community-library {grid-template-columns:1fr;gap:18px;margin-top:32px}.community-replay-grid {grid-template-columns:1fr}.community-name-dialog {padding:26px}}

.community-body:has(.community-name-dialog[open]) {overflow:hidden}

/* Keep the little detour directly below the YouTube link. */
.stream-channel>.community-links {flex:none;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.community-links .community-follow {margin-left:0;justify-content:center}
@media(max-width:1150px){.stream-channel>.community-links {margin-left:56px}}
@media(max-width:900px){.stream-channel>.community-links {margin-left:0}}

