/* Community uses the same dark surfaces and lime accent as the game library. */
.chat-toggle { cursor: pointer; }
.chat-launcher {
  position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 12px 20px;
  border: 1px solid #d3ff84; border-radius: 999px; background: #c5ff52; color: #0d1623;
  font: 750 14px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; box-shadow: 0 7px 28px #0006;
}
.chat-launcher:hover { background: #d7ff87; }
.community-open .chat-launcher { visibility: hidden; }
#community-dialog {
  --community-bg: #0d1623; --community-surface: #131e2e; --community-line: #29394f; --community-muted: #a2b3cc; --community-lime: #c5ff52;
  position: fixed; inset: 0; margin: auto; width: min(960px, calc(100vw - 48px)); max-width: calc(100vw - 48px);
  height: min(710px, calc(100vh - 48px)); height: min(710px, calc(100svh - 48px)); max-height: calc(100svh - 48px);
  padding: 0; overflow: hidden; border: 1px solid #3b4d68; border-radius: 22px; background: var(--community-surface); color: #edf3fc;
  box-shadow: 0 28px 110px #000a; color-scheme: dark; text-align: left;
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#community-dialog::backdrop { background: #020711cc; backdrop-filter: blur(5px); }
#community-dialog *, #community-dialog *::before, #community-dialog *::after { box-sizing: border-box; }
#community-dialog [hidden] { display: none !important; }
#community-dialog .community-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#community-dialog button, #community-dialog input, #community-dialog textarea { font: inherit; }
#community-dialog button { cursor: pointer; }
#community-dialog button:disabled { cursor: default; }
#community-dialog :is(button, input, textarea):focus-visible, .chat-toggle:focus-visible { outline: 3px solid #c5ff52; outline-offset: 3px; }
#community-dialog .community-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
#community-dialog .community-icon svg { display: block; width: 20px; height: 20px; pointer-events: none; }
#community-dialog .community-header {
  display: flex; flex: 0 0 auto; align-items: center; gap: 13px; min-height: 89px; padding: 17px 22px;
  border-bottom: 1px solid var(--community-line); background: #152133;
}
#community-dialog .community-brand { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; background: #c5ff52; color: #0d1623; font-size: 30px; font-weight: 900; line-height: 1; }
#community-dialog .community-heading { min-width: 0; }
#community-dialog .community-heading h2 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.7px; font-weight: 800; }
#community-dialog .community-heading p { margin: 3px 0 0; color: var(--community-muted); font-size: 12px; }
#community-dialog .community-connection { margin: 0 4px 0 auto; font-size: 11px; color: var(--community-muted); white-space: nowrap; }
#community-dialog .community-connection::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #8ba0bc; vertical-align: 1px; }
#community-dialog .community-connection[data-state="connected"]::before { background: #c5ff52; }
#community-dialog .community-connection[data-state="error"]::before { background: #ffb099; }
#community-dialog .community-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #384b66; border-radius: 10px; background: #1d2c40; color: #dfeaf9; }
#community-dialog .community-close:hover { background: #2a3d56; }
/* The server grants short-lived room admission before any Community content loads. */
#community-dialog .community-school-gate { display: grid; place-items: center; flex: 1 1 auto; min-height: 0; padding: 28px 24px; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(ellipse at top, #1a2f37, #111c2b 75%); }
#community-dialog .community-school-card { width: min(420px, 100%); min-width: 0; }
#community-dialog .community-school-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border: 1px solid #648842; border-radius: 15px; color: #c5ff52; background: #293b29; font-size: 32px; font-weight: 900; }
#community-dialog #community-school-title { margin: 0; color: #f0f6ff; font-size: 27px; line-height: 1.2; letter-spacing: -.6px; }
#community-dialog #community-school-help { margin: 12px 0 22px; color: #bacce2; font-size: 14px; line-height: 1.6; }
#community-dialog #community-school-form { display: flex; flex-direction: column; gap: 9px; margin: 0; }
#community-dialog #community-school-form label { color: #dce7f6; font-size: 14px; font-weight: 650; }
#community-dialog #community-school-name { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #506680; border-radius: 11px; background: #0d1827; color: #eff6ff; font-size: 16px; line-height: 1.5; }
#community-dialog #community-school-name:focus { border-color: #b2df78; }
#community-dialog #community-school-name[aria-invalid=true] { border-color: #ce947f; }
#community-dialog #community-school-name:disabled { opacity: .7; }
#community-dialog #community-school-submit { align-self: stretch; min-height: 48px; margin-top: 7px; font-size: 14px; }
#community-dialog .community-school-status { margin: 15px 0 0; padding: 10px 12px; border: 1px solid #415a49; border-radius: 9px; background: #1d3026; color: #cde7bb; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#community-dialog .community-school-status:empty { display: none; }
#community-dialog .community-school-status.is-error { border-color: #765344; background: #32251f; color: #ffd0bd; }
#community-dialog .community-school-note { margin: 19px 0 0; color: #aebfd5; font-size: 12px; line-height: 1.6; }
#community-dialog .community-layout { display: flex; flex: 1 1 auto; min-height: 0; }
#community-dialog .community-rail { display: flex; flex-direction: column; flex: 0 0 215px; min-width: 0; padding: 20px 12px 12px; border-right: 1px solid var(--community-line); background: #101a29; }
#community-dialog .community-nav-label { margin: 0 12px 8px; color: #899ebd; font-size: 10px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; }
#community-dialog .community-apps-label { margin-top: 27px; }
#community-dialog .community-nav-group { display: flex; flex-direction: column; gap: 5px; }
#community-dialog .community-nav-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: #a9bbd5; background: transparent; text-align: left; font-size: 13px; font-weight: 600; white-space: nowrap; }
#community-dialog .community-nav-button .community-icon svg { width: 18px; height: 18px; color: #829aba; }
#community-dialog .community-nav-button:hover { background: #1b2b41; color: #edf3fc; }
#community-dialog .community-nav-button.active { border-color: #385046; color: #dcf6b9; background: #23352f; }
#community-dialog .community-nav-button.active .community-icon svg { color: #c5ff52; }
#community-dialog .community-identity { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; margin-top: auto; padding: 12px 9px; border: 0; border-top: 1px solid var(--community-line); border-radius: 0; color: #dbe5f5; background: transparent; text-align: left; }
#community-dialog .community-identity:hover { background: #18263a; }
#community-dialog .community-self-avatar { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border: 1px solid #3c506c; border-radius: 11px; background: #213149; font-size: 20px; }
#community-dialog .community-identity.is-owner .community-self-avatar { color: #0d1623; background: #c5ff52; border-color: #c5ff52; font-size: 24px; font-weight: 900; }
#community-dialog .community-identity-copy { min-width: 0; }
#community-dialog .community-identity-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
#community-dialog .community-identity-copy > span { display: block; margin-top: 2px; color: #91a6c3; font-size: 10px; }
#community-dialog .community-room { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; background: var(--community-surface); }
#community-dialog .community-room-header { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-height: 84px; padding: 19px 25px 16px; border-bottom: 1px solid var(--community-line); }
#community-dialog #community-room-icon { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border: 1px solid #354963; border-radius: 11px; background: #1d2d43; color: #c5ff52; }
#community-dialog .community-room-header > div { min-width: 0; }
#community-dialog .community-room-header h3 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.25px; font-weight: 750; }
#community-dialog .community-room-header p { margin: 4px 0 0; font-size: 11px; line-height: 1.4; color: var(--community-muted); }
#community-dialog .community-stream { flex: 1 1 auto; min-height: 85px; padding: 10px 24px 17px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #425b79 transparent; }
#community-dialog .community-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 30px 12px; text-align: center; }
#community-dialog .community-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 15px; border: 1px solid #34475f; border-radius: 18px; color: #c5ff52; background: #1b2a3e; }
#community-dialog .community-empty-icon svg { width: 26px; height: 26px; }
#community-dialog .community-empty h4 { margin: 0 0 7px; font-size: 18px; line-height: 1.4; letter-spacing: -.3px; font-weight: 750; }
#community-dialog .community-empty p { max-width: 310px; margin: 0; color: #9db1ce; font-size: 13px; line-height: 1.6; }
#community-dialog .community-message { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 12px 0 7px; }
#community-dialog .community-message + .community-message { border-top: 1px solid #27374c70; }
#community-dialog .community-message-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-top: 1px; border-radius: 11px; background: #2b405c; color: #d4e7ff; font-size: 14px; font-weight: 750; }
#community-dialog .community-owner-message .community-message-avatar { background: #2d3e26; color: #c5ff52; }
#community-dialog .community-message-avatar svg { width: 17px; height: 17px; }
#community-dialog .community-message-content { flex: 1 1 auto; min-width: 0; }
#community-dialog .community-message-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 12px; row-gap: 2px; }
#community-dialog .community-author { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; font-size: 12px; color: #e1eaf7; }
#community-dialog .community-author strong { font-weight: 750; overflow-wrap: anywhere; }
#community-dialog .community-owner-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border: 1px solid #638344; border-radius: 5px; color: #d5f6a6; background: #2a3d26; font-size: 9px; line-height: 1.25; font-weight: 750; }
#community-dialog .community-owner-badge .community-icon svg { width: 10px; height: 10px; }
#community-dialog .community-time { flex: 0 0 auto; color: #899ebc; font-size: 10px; }
#community-dialog .community-message-text { margin: 6px 0 4px; color: #dce6f5; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
#community-dialog .community-report { display: block; margin-left: auto; min-height: 24px; padding: 2px 0 2px 12px; border: 0; color: #8fa7c5; background: transparent; font-size: 10px; }
#community-dialog .community-report:hover:not(:disabled) { color: #e6f0ff; text-decoration: underline; }
#community-dialog .community-report:disabled { color: #657a97; }
#community-dialog .community-request-row { display: flex; align-items: center; gap: 16px; padding: 19px 0; }
#community-dialog .community-request-row + .community-request-row { border-top: 1px solid var(--community-line); }
#community-dialog .community-vote { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 49px; min-height: 59px; gap: 2px; padding: 7px; border: 1px solid #3a506d; border-radius: 11px; color: #c8d9ef; background: #1b2c42; font-size: 13px; font-weight: 750; }
#community-dialog .community-vote .community-icon svg { width: 17px; height: 17px; }
#community-dialog .community-vote.is-voted { border-color: #73954d; color: #c5ff52; background: #273b2b; }
#community-dialog .community-vote:hover:not(:disabled) { border-color: #c5ff52; }
#community-dialog .community-vote:disabled:not(.is-voted) { color: #8ca1bd; opacity: .7; }
#community-dialog .community-request-content { min-width: 0; }
#community-dialog .community-request-content h4 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 750; overflow-wrap: anywhere; }
#community-dialog .community-request-meta { margin: 6px 0 0; color: #8fa5c2; font-size: 11px; }
#community-dialog .community-request-meta .community-author { font-size: 11px; }
#community-dialog .community-feedback-row { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 24px; }
#community-dialog .community-feedback-row:has(.community-error:not([hidden])), #community-dialog .community-feedback-row:has(.community-retry:not([hidden])) { padding-top: 9px; padding-bottom: 11px; border-top: 1px solid #293b53; }
#community-dialog .community-error { flex: 1 1 auto; margin: 0; color: #ffc4b2; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#community-dialog .community-error.community-success { color: #c5ed9a; }
#community-dialog .community-retry { flex: 0 0 auto; padding: 6px 10px; min-height: 33px; border: 1px solid #536987; border-radius: 8px; color: #dfeafb; background: #21324a; font-size: 11px; font-weight: 650; }
#community-dialog .community-auth-gate { display: flex; align-items: center; flex: 0 0 auto; gap: 18px; padding: 17px 24px; border-top: 1px solid var(--community-line); background: #172637; }
#community-dialog .community-auth-gate > div { flex: 1 1 auto; min-width: 0; }
#community-dialog .community-auth-gate strong { display: block; font-size: 13px; font-weight: 750; }
#community-dialog .community-auth-gate p { margin: 4px 0 0; color: #a3b8d4; font-size: 12px; line-height: 1.5; }
#community-dialog .community-secondary { flex: 0 0 auto; min-height: 40px; padding: 9px 14px; border: 1px solid #527042; border-radius: 10px; color: #d7f5b2; background: #263a29; font-size: 12px; font-weight: 750; }
#community-dialog .community-secondary:hover { border-color: #c5ff52; }
#community-dialog .community-readonly { flex: 0 0 auto; margin: 0; padding: 17px 24px; border-top: 1px solid var(--community-line); color: #9cafca; background: #111e2e; font-size: 12px; }
#community-dialog .community-compose { flex: 0 0 auto; padding: 14px 24px 17px; border-top: 1px solid var(--community-line); background: #111c2b; }
#community-dialog .community-compose > label { display: block; margin: 0 0 8px; color: #a9bbd5; font-size: 11px; font-weight: 650; }
#community-dialog .community-compose-row { display: flex; align-items: stretch; gap: 9px; }
#community-dialog #community-text { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 48px; max-height: 108px; resize: vertical; padding: 12px 13px; border: 1px solid #3c526f; border-radius: 11px; color: #edf4ff; background: #192a3e; font-size: 13px; line-height: 1.5; }
#community-dialog #community-text::placeholder { color: #8fa5c2; opacity: 1; }
#community-dialog #community-text:focus { border-color: #8bc24f; }
#community-dialog .community-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; align-self: flex-end; min-height: 46px; padding: 11px 15px; border: 1px solid #c5ff52; border-radius: 10px; color: #102014; background: #c5ff52; font-size: 12px; font-weight: 800; white-space: nowrap; }
#community-dialog .community-primary .community-icon svg { width: 16px; height: 16px; }
#community-dialog .community-primary:hover:not(:disabled) { background: #d9ff91; }
#community-dialog .community-primary:disabled { border-color: #40536e; color: #8fa5c1; background: #26364c; }
#community-dialog .community-compose-detail { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 9px; color: #879dbb; font-size: 10px; }
#community-dialog .community-compose-detail p { margin: 0; }
#community-dialog #community-counter { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  #community-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); height: min(760px, calc(100vh - 24px)); height: min(760px, calc(100svh - 24px)); max-height: calc(100svh - 24px); border-radius: 18px; }
  #community-dialog .community-header { min-height: 76px; padding: 13px 16px; gap: 10px; }
  #community-dialog .community-brand { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; font-size: 27px; }
  #community-dialog .community-heading h2 { font-size: 21px; }
  #community-dialog .community-connection { font-size: 10px; }
  #community-dialog .community-layout { flex-direction: column; }
  #community-dialog .community-rail { flex: 0 0 auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--community-line); }
  #community-dialog #community-navigation { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: none; }
  #community-dialog #community-navigation::-webkit-scrollbar { display: none; }
  #community-dialog .community-nav-label, #community-dialog .community-identity { display: none; }
  #community-dialog .community-nav-group { flex: 0 0 auto; flex-direction: row; gap: 6px; }
  #community-dialog .community-nav-button { width: auto; min-height: 38px; padding: 9px 11px; border-color: #304159; border-radius: 9px; font-size: 12px; }
  #community-dialog .community-nav-button .community-icon svg { width: 16px; height: 16px; }
  #community-dialog .community-room-header { min-height: 76px; padding: 15px 19px; }
  #community-dialog .community-stream { padding-right: 19px; padding-left: 19px; }
  #community-dialog .community-compose, #community-dialog .community-auth-gate { padding-right: 19px; padding-left: 19px; }
  #community-dialog .community-feedback-row { padding-right: 19px; padding-left: 19px; }
  #community-dialog .community-room-header p { font-size: 11px; }
  #community-dialog #community-text { font-size: 16px; }
  #community-dialog .community-report { min-height: 31px; }
}
@media (max-width: 480px) {
  #community-dialog .community-school-gate { padding: 24px 18px; }
  #community-dialog #community-school-title { font-size: 24px; }
  #community-dialog .community-school-mark { margin-bottom: 16px; }

  #community-dialog .community-header { flex-wrap: wrap; column-gap: 10px; row-gap: 3px; padding: 12px 14px; }
  #community-dialog .community-heading { flex: 1 1 auto; }
  #community-dialog .community-heading p { font-size: 11px; }
  #community-dialog .community-close { order: 2; flex-basis: 44px; width: 44px; height: 44px; }
  #community-dialog .community-connection { order: 3; flex: 1 1 100%; margin: 2px 0 0 48px; font-size: 10px; }
  #community-dialog .community-room-header { padding: 13px 15px; gap: 9px; }
  #community-dialog .community-room-header h3 { font-size: 16px; }
  #community-dialog #community-room-icon { flex-basis: 33px; height: 33px; }
  #community-dialog .community-stream { padding-right: 15px; padding-left: 15px; }
  #community-dialog .community-message { gap: 9px; }
  #community-dialog .community-message-avatar { flex-basis: 30px; width: 30px; height: 30px; }
  #community-dialog .community-message-text { font-size: 13px; }
  #community-dialog .community-auth-gate { align-items: flex-start; padding: 14px 15px; gap: 10px; }
  #community-dialog .community-auth-gate p { font-size: 11px; }
  #community-dialog .community-secondary { padding: 9px 11px; font-size: 11px; }
  #community-dialog .community-compose { padding: 12px 15px 14px; }
  #community-dialog .community-compose-row { gap: 7px; }
  #community-dialog .community-primary { padding: 11px; min-width: 65px; }
  #community-dialog #community-send-icon { display: none; }
  #community-dialog .community-feedback-row { align-items: flex-start; padding-right: 15px; padding-left: 15px; }
  #community-dialog .community-compose-detail { font-size: 9px; }
  #community-dialog .community-request-row { gap: 12px; }
  .chat-launcher { right: max(15px, env(safe-area-inset-right)); bottom: max(15px, env(safe-area-inset-bottom)); padding: 11px 17px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  #community-dialog .community-header { min-height: 68px; padding-top: 11px; padding-bottom: 11px; }
  #community-dialog .community-room-header { min-height: 65px; padding-top: 11px; padding-bottom: 11px; }
  #community-dialog .community-compose { padding-top: 9px; padding-bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) { #community-dialog, #community-dialog * { scroll-behavior: auto !important; transition: none !important; } }

#community-dialog .community-suggestion-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #c5ff52; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
#community-dialog .community-suggestion-link:focus-visible { outline: 3px solid #c5ff52; outline-offset: 3px; }

/* Polls share the Community room without adding height to the game library. */
#community-dialog #community-new-poll { margin-left: auto; min-height: 44px; }
#community-dialog .community-poll-card { margin: 8px 0 16px; padding: 18px; border: 1px solid #354b62; border-radius: 15px; background: #152639; }
#community-dialog .community-poll-card h4 { margin: 13px 0 14px; color: #f0f6ff; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
#community-dialog .community-poll-choices { display: grid; gap: 9px; }
#community-dialog .community-poll-choice { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; isolation: isolate; width: 100%; min-height: 48px; padding: 11px 13px; overflow: hidden; border: 1px solid #4a617e; border-radius: 9px; background: #112033; color: #dfebfa; font-size: 13px; text-align: left; }
#community-dialog .community-poll-choice:hover:not(:disabled) { border-color: #c5ff52; }
#community-dialog .community-poll-choice.is-chosen { border-color: #95c957; color: #e6ffc9; }
#community-dialog .community-poll-bar { position: absolute; inset: 0 auto 0 0; z-index: -1; background: #294664; transition: width 220ms ease; }
#community-dialog .community-poll-choice.is-chosen .community-poll-bar { background: #365033; }
#community-dialog .community-poll-choice-text { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
#community-dialog .community-poll-choice-text .community-icon { flex: 0 0 auto; color: #c5ff52; }
#community-dialog .community-poll-percent { flex: 0 0 auto; font-size: 12px; font-variant-numeric: tabular-nums; color: #c2d2e6; }
#community-dialog .community-poll-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: #b5c7de; font-size: 12px; }
#community-dialog .community-poll-close { min-height: 38px; padding: 8px 11px; border: 1px solid #4a617e; border-radius: 8px; background: transparent; color: #c8d9ef; font-size: 12px; }
#community-dialog .community-poll-close:hover:not(:disabled) { border-color: #b6cae5; }
#community-dialog .community-poll-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
#community-dialog .community-poll-options label { display: flex; flex-wrap: wrap; gap: 4px; color: #c2d1e5; font-size: 12px; }
#community-dialog .community-poll-options label > span { color: #9eb4cf; }
#community-dialog .community-poll-options input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #4a617e; border-radius: 9px; background: #192a3e; color: #edf4ff; font-size: 14px; }
#community-dialog .community-compose.is-poll { max-height: 47%; overflow-y: auto; }
#community-dialog button:focus-visible, #community-dialog input:focus-visible { outline: 3px solid #c5ff52; outline-offset: 3px; }
@media (max-width: 760px) {
  #community-dialog .community-nav-button { min-height: 44px; }
  #community-dialog .community-poll-options input { font-size: 16px; }
}
@media (max-width: 480px) {
  #community-dialog .community-room-header:has(#community-new-poll:not([hidden])) { flex-wrap: wrap; }
  #community-dialog .community-room-header:has(#community-new-poll:not([hidden])) > div { flex: 1 1 calc(100% - 45px); }
  #community-dialog #community-new-poll { margin-left: 42px; }
  #community-dialog .community-poll-card { padding: 13px; }
  #community-dialog .community-poll-card h4 { font-size: 16px; }
  #community-dialog .community-poll-choice { gap: 9px; padding: 11px; }
  #community-dialog .community-compose.is-poll { max-height: 48%; }
}

#community-dialog .community-poll-choice[aria-disabled="true"], #community-dialog .community-poll-close[aria-disabled="true"] { cursor: wait; }
#community-dialog .community-poll-close:disabled { opacity: .65; }
@media (min-width: 761px) {
  #community-dialog .community-rail { min-height: 0; }
  #community-dialog #community-navigation { min-height: 0; overflow-y: auto; padding: 3px; margin: -3px -3px 10px; scrollbar-width: thin; }
  #community-dialog .community-identity { flex-shrink: 0; }
}
