.community-main { width: min(100% - 64px, 1380px); margin: 0 auto; padding: 52px 0 92px; }
.community-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding: 10px 0 36px; }
.community-intro h1, .account-heading h1 { margin: 0 0 16px; font: 600 clamp(44px, 6vw, 76px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.075em; }
.community-intro h1 em, .account-heading h1 em, .community-guide h2 em { color: #a6ffdf; font-style: normal; }
.community-intro > div:first-child > p:last-child, .account-heading > div:first-child > p:last-child { max-width: 620px; margin: 0; color: #a5b2af; font-size: 14px; line-height: 1.7; }
.community-intro__note { display: flex; align-items: flex-start; gap: 13px; max-width: 330px; padding: 16px 18px; background: linear-gradient(125deg,rgba(166,255,223,.09),rgba(255,255,255,.02)); border: 1px solid rgba(166,255,223,.16); border-radius: 14px; }
.community-intro__note > span { color: #a6ffdf; font-size: 20px; }
.community-intro__note p { margin: 0; }
.community-intro__note strong, .community-intro__note small { display: block; }
.community-intro__note strong { margin-bottom: 5px; font: 600 13px "Space Grotesk",sans-serif; }
.community-intro__note small { color: #a5b2af; font-size: 10px; line-height: 1.55; }
.community-workspace { min-height: 640px; display: grid; grid-template-columns: 226px minmax(0,1fr) 236px; overflow: hidden; background: #0d1519; border: 1px solid rgba(228,245,242,.13); border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.community-sidebar { min-width: 0; display: flex; flex-direction: column; padding: 15px 11px 11px; background: #101a1f; border-right: 1px solid rgba(228,245,242,.1); }
.community-server { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 8px 13px; border-bottom: 1px solid rgba(228,245,242,.1); }
.community-server__mark { width: 34px; height: 34px; display: grid; place-items: center; color: #08211b; background: #a6ffdf; border-radius: 11px 5px 11px 5px; font: 700 16px "Space Grotesk",sans-serif; }
.community-server b, .community-server small { display: block; }
.community-server b { font: 700 13px "Space Grotesk",sans-serif; }
.community-server small { margin-top: 4px; color: #71817d; font: 500 8px "DM Mono",monospace; letter-spacing: .1em; }
.community-server__chevron { margin-left: auto; color: #71817d; }
.channel-list { flex: 1; overflow: auto; padding: 6px 0 14px; }
.channel-loading { padding: 12px 8px; color: #71817d; font-size: 11px; }
.channel-group { margin-top: 14px; }
.channel-group h3 { margin: 0 8px 6px; color: #71817d; font: 500 8px "DM Mono",monospace; letter-spacing: .11em; text-transform: uppercase; }
.channel-group__items { display: grid; gap: 2px; }
.community-channel-link { min-width: 0; min-height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 9px; overflow: hidden; border: 0; border-radius: 8px; color: #94a29e; background: transparent; text-align: left; font: 600 10px "DM Mono",monospace; cursor: pointer; }
.community-channel-link > span:first-child { color: #71817d; font-size: 15px; }
.community-channel-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-channel-link:hover { color: #e9f0ed; background: rgba(255,255,255,.035); }
.community-channel-link[aria-current="true"] { color: #a6ffdf; background: rgba(166,255,223,.1); }
.community-channel-link[aria-current="true"] > span:first-child { color: #a6ffdf; }
.community-profile-link { min-height: 56px; display: flex; align-items: center; gap: 9px; padding: 9px 7px 0; border-top: 1px solid rgba(228,245,242,.1); color: #e9f0ed; }
.community-profile-link__avatar { width: 31px; height: 31px; display: grid; place-items: center; color: #08211b; background: #a6ffdf; border-radius: 50%; font: 700 9px "DM Mono",monospace; }
.community-profile-link > span:nth-child(2) { flex: 1; }
.community-profile-link b, .community-profile-link small { display: block; }
.community-profile-link b { font-size: 10px; }
.community-profile-link small { margin-top: 3px; color: #71817d; font-size: 9px; }
.community-profile-link > span:last-child { color: #a6ffdf; }
.community-chat { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 20% 0,rgba(53,214,174,.055),transparent 43%),#0d1519; }
.community-chat__header { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 22px; border-bottom: 1px solid rgba(228,245,242,.1); }
.community-chat__eyebrow { margin: 0 0 4px; color: #71817d; font: 500 8px "DM Mono",monospace; letter-spacing: .12em; }
.community-chat__header h2 { margin: 0 0 5px; font: 600 19px "Space Grotesk",sans-serif; letter-spacing: -.045em; }
.community-chat__header h2 span:first-child { margin-right: 5px; color: #35d6ae; }
.community-chat__header > div:first-child > p:last-child { margin: 0; color: #8b9b96; font-size: 10px; }
.community-live { display: flex; align-items: center; gap: 7px; color: #8b9b96; font: 500 8px "DM Mono",monospace; white-space: nowrap; }
.community-live > span:first-child { width: 6px; height: 6px; background: #35d6ae; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53,214,174,.09); }
.community-messages { min-height: 320px; flex: 1; max-height: 560px; overflow: auto; padding: 22px clamp(16px,2vw,30px); scroll-behavior: smooth; }
.community-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.community-empty > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid rgba(166,255,223,.22); border-radius: 13px; color: #a6ffdf; font-size: 20px; }
.community-empty strong { font: 600 14px "Space Grotesk",sans-serif; }
.community-empty p { max-width: 250px; margin: 7px 0 0; color: #71817d; font-size: 10px; line-height: 1.55; }
.community-message { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; animation: community-arrive .18s ease both; }
.community-message__avatar { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; color: #a6ffdf; background: #1b2a2e; border: 1px solid rgba(166,255,223,.15); border-radius: 50%; font: 600 8px "DM Mono",monospace; }
.community-message__body { min-width: 0; flex: 1; }
.community-message__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin: 1px 0 4px; }
.community-message__meta strong { color: #e9f0ed; font: 700 10px "Manrope",sans-serif; }
.community-message__meta time { color: #71817d; font: 400 8px "DM Mono",monospace; }
.community-message__text { margin: 0; color: #c4ceca; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.community-message__report { margin-top: 5px; padding: 2px 0; border: 0; color: #71817d; background: transparent; font: 500 8px "DM Mono",monospace; cursor: pointer; }
.community-message__report:hover { color: #ff9c79; }
.community-composer-wrap { padding: 0 19px 17px; }
.community-signin-prompt { margin: 0 0 9px; padding: 9px 12px; border: 1px solid rgba(166,255,223,.16); border-radius: 9px; color: #a5b2af; background: rgba(166,255,223,.04); font-size: 10px; }
.community-signin-prompt a { color: #a6ffdf; font-weight: 700; }
.community-composer { padding: 10px 11px 8px; border: 1px solid rgba(228,245,242,.15); border-radius: 12px; background: #121d22; transition: border-color .18s ease; }
.community-composer:focus-within { border-color: rgba(166,255,223,.45); }
.community-composer textarea { width: 100%; max-height: 120px; resize: none; padding: 2px 1px 8px; border: 0; outline: 0; color: #e9f0ed; background: transparent; font: 500 11px/1.5 Manrope,sans-serif; }
.community-composer textarea::placeholder { color: #71817d; }
.community-composer__bottom { display: flex; align-items: center; justify-content: space-between; color: #71817d; font: 500 8px "DM Mono",monospace; }
.community-send { min-height: 31px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 7px; color: #08211b; background: #a6ffdf; font: 700 9px "DM Mono",monospace; cursor: pointer; }
.community-send:disabled { opacity: .45; cursor: not-allowed; }
.community-footnote { margin: 8px 0 0; color: #71817d; font-size: 8px; line-height: 1.45; }
.community-feedback { min-height: 14px; margin: 5px 0 0; color: #9ab0a9; font-size: 9px; }
.community-feedback.is-error { color: #ff9c79; }
.community-guide { position: relative; overflow: hidden; padding: 24px 17px; border-left: 1px solid rgba(228,245,242,.1); background: linear-gradient(180deg,rgba(166,255,223,.045),transparent 55%),#10191e; }
.community-guide__accent { position: absolute; top: 0; right: 0; width: 72px; height: 72px; border: 1px solid rgba(166,255,223,.17); border-radius: 0 0 0 72px; }
.community-guide .eyebrow { margin-bottom: 18px; font-size: 8px; }
.community-guide h2 { position: relative; margin: 0 0 22px; font: 600 24px/1.04 "Space Grotesk",sans-serif; letter-spacing: -.06em; }
.community-guide ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.community-guide li { display: flex; align-items: flex-start; gap: 9px; }
.community-guide li > span { padding-top: 2px; color: #35d6ae; font: 500 8px "DM Mono",monospace; }
.community-guide li p { margin: 0; color: #a5b2af; font-size: 9px; line-height: 1.55; }
.community-guide__footer { display: flex; gap: 8px; margin-top: 24px; padding-top: 13px; border-top: 1px solid rgba(228,245,242,.1); color: #71817d; }
.community-guide__footer > span { color: #a6ffdf; }
.community-guide__footer p { margin: 0; font-size: 8px; line-height: 1.5; }
.community-footer { width: min(100% - 64px,1380px); margin: 0 auto; }
@keyframes community-arrive { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .community-main { width: min(100% - 44px,1380px); }
  .community-workspace { grid-template-columns: 200px minmax(0,1fr); }
  .community-guide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 16px; padding: 17px 20px; border-top: 1px solid rgba(228,245,242,.1); border-left: 0; }
  .community-guide .eyebrow, .community-guide h2 { margin: 0; }
  .community-guide h2 { font-size: 18px; }
  .community-guide ul { grid-template-columns: repeat(2,1fr); gap: 7px 14px; }
  .community-guide__footer { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 720px) {
  .community-main { width: calc(100% - 28px); padding: 30px 0 60px; }
  .community-intro { align-items: flex-start; flex-direction: column; padding-bottom: 22px; }
  .community-intro h1 { font-size: clamp(42px,12vw,60px); }
  .community-intro__note { max-width: none; }
  .community-workspace { min-height: 600px; grid-template-columns: minmax(0,1fr); border-radius: 14px; }
  .community-sidebar { min-height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid rgba(228,245,242,.1); }
  .community-server { min-height: 45px; padding: 0 3px 8px; }
  .community-server__mark { width: 29px; height: 29px; }
  .channel-list { display: flex; gap: 14px; overflow-x: auto; padding: 8px 0 4px; }
  .channel-group { flex: 0 0 auto; margin: 0; }
  .channel-group h3 { margin: 0 4px 5px; }
  .channel-group__items { display: flex; gap: 4px; }
  .community-channel-link { min-height: 32px; padding: 0 8px; background: rgba(255,255,255,.025); }
  .community-profile-link { display: none; }
  .community-chat__header { min-height: 80px; padding: 13px 14px; }
  .community-chat__header h2 { font-size: 17px; }
  .community-messages { min-height: 300px; max-height: 53vh; padding: 16px 13px; }
  .community-composer-wrap { padding: 0 11px 11px; }
  .community-guide { display: block; padding: 18px 14px; }
  .community-guide .eyebrow { margin-bottom: 10px; }
  .community-guide h2 { margin-bottom: 13px; font-size: 21px; }
  .community-guide ul { display: grid; grid-template-columns: 1fr 1fr; }
  .community-guide__footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(228,245,242,.1); }
  .community-footer { width: calc(100% - 28px); }
}
@media (max-width: 420px) {
  .community-live { display: none; }
  .community-guide ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .community-message { animation: none; }
  .community-messages { scroll-behavior: auto; }
}


/* Servidores próprios e conversa ao vivo */
.community-workspace { grid-template-columns: 58px 218px minmax(0,1fr) 236px; }
.community-server-rail { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 15px 7px; background: #090f12; border-right: 1px solid rgba(228,245,242,.1); }
.community-server-rail__items { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.community-server-rail__button, .community-server-add { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(228,245,242,.12); border-radius: 14px; color: #a6ffdf; background: #152126; font: 700 11px "DM Mono",monospace; cursor: pointer; transition: border-radius .18s ease, color .18s ease, background .18s ease; }
.community-server-rail__button:hover, .community-server-rail__button[aria-current="true"] { border-radius: 12px; color: #08211b; background: #a6ffdf; }
.community-server-rail__button[aria-current="true"] { box-shadow: 0 0 0 3px rgba(166,255,223,.12); }
.community-server-add { margin-top: auto; color: #a6ffdf; border-style: dashed; background: transparent; font: 500 22px "Manrope",sans-serif; }
.community-server-add:hover { color: #08211b; border-color: #a6ffdf; background: #a6ffdf; }
.server-loading { color: #71817d; font: 500 14px "DM Mono",monospace; }
.community-server { min-width: 0; }
.community-server__identity { min-width: 0; flex: 1; }
.community-server__identity b { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-server__identity small { white-space: nowrap; }
.community-add-channel { min-height: 34px; display: flex; align-items: center; gap: 8px; margin: 0 1px 10px; padding: 0 8px; border: 1px dashed rgba(166,255,223,.2); border-radius: 7px; color: #a6ffdf; background: transparent; text-align: left; font: 500 9px "DM Mono",monospace; cursor: pointer; }
.community-add-channel:hover { background: rgba(166,255,223,.06); }
.community-add-channel > span { font-size: 15px; }
.community-chat__header-actions { display: flex; align-items: center; gap: 12px; }
.community-voice-open { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(166,255,223,.2); border-radius: 8px; color: #a6ffdf; background: rgba(166,255,223,.07); font: 600 9px "DM Mono",monospace; cursor: pointer; white-space: nowrap; }
.community-voice-open:hover, .community-voice-open[aria-expanded="true"] { color: #08211b; background: #a6ffdf; }
.community-voice { padding: 17px 20px 14px; border-bottom: 1px solid rgba(166,255,223,.14); background: linear-gradient(120deg,rgba(166,255,223,.065),rgba(255,255,255,.012)); }
.community-voice__heading { display: flex; justify-content: space-between; gap: 12px; }
.community-voice__eyebrow { margin: 0 0 5px; color: #a6ffdf; font: 500 8px "DM Mono",monospace; letter-spacing: .1em; text-transform: uppercase; }
.community-voice__heading strong { color: #e9f0ed; font: 600 13px "Space Grotesk",sans-serif; }
.community-voice__heading > div > p:last-child { max-width: 540px; margin: 6px 0 0; color: #8b9b96; font-size: 9px; line-height: 1.55; }
.community-voice__collapse { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid rgba(228,245,242,.12); border-radius: 7px; color: #a5b2af; background: transparent; font-size: 18px; cursor: pointer; }
.community-voice__controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.community-voice__controls > div { display: flex; flex-wrap: wrap; gap: 6px; }
.community-voice__status { color: #9aaba5; font: 500 8px/1.5 "DM Mono",monospace; }
.community-voice__status.is-error { color: #ff9c79; }
.community-voice__join, .community-voice__share, .community-voice__stop, .community-voice__leave { min-height: 30px; padding: 0 10px; border: 1px solid rgba(166,255,223,.25); border-radius: 7px; color: #08211b; background: #a6ffdf; font: 700 8px "DM Mono",monospace; cursor: pointer; }
.community-voice__join:disabled, .community-voice__share:disabled { opacity: .45; cursor: not-allowed; }
.community-voice__leave { color: #bac5c1; border-color: rgba(228,245,242,.14); background: transparent; }
.community-voice__stop { color: #281712; border-color: rgba(255,156,121,.35); background: #ffb09a; }
.community-voice__people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.community-voice__person { min-height: 27px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px 3px 4px; border: 1px solid rgba(228,245,242,.1); border-radius: 999px; color: #c5d0cc; background: rgba(255,255,255,.025); font-size: 8px; }
.community-voice__person i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #a6ffdf; background: #1b2a2e; font: normal 7px "DM Mono",monospace; }
.community-voice__person b { padding-left: 4px; color: #a6ffdf; font: 500 7px "DM Mono",monospace; }
.community-voice__stage { position: relative; min-height: 110px; display: flex; align-items: flex-start; gap: 9px; margin-top: 11px; }
.community-voice__remote { position: relative; min-width: 0; min-height: 110px; flex: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(166,255,223,.16); border-radius: 10px; background: #070c0e; }
.community-voice__remote video { width: 100%; max-height: 310px; object-fit: contain; background: #070c0e; }
.community-voice__remote video[hidden] { display: none; }
.community-voice__remote p { margin: 12px; color: #84948f; text-align: center; font-size: 9px; }
.community-voice__remote p[hidden] { display: none; }
.community-voice__local { width: min(22%,170px); position: absolute; right: 8px; bottom: 8px; overflow: hidden; border: 1px solid rgba(166,255,223,.45); border-radius: 8px; background: #07100e; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.community-voice__local video { width: 100%; display: block; }
.community-voice__local span { display: block; padding: 4px 6px; color: #a6ffdf; font: 500 7px "DM Mono",monospace; }
.community-voice__privacy { margin: 9px 0 0; color: #71817d; font: 400 7px/1.5 "DM Mono",monospace; }
.community-dialog { width: min(100% - 32px,440px); padding: 0; border: 1px solid rgba(166,255,223,.22); border-radius: 17px; color: #e9f0ed; background: #10191e; box-shadow: 0 30px 120px rgba(0,0,0,.6); }
.community-dialog::backdrop { background: rgba(2,7,9,.76); backdrop-filter: blur(4px); }
.community-dialog form { position: relative; display: flex; flex-direction: column; padding: 27px; }
.community-dialog__close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 1px solid rgba(228,245,242,.12); border-radius: 8px; color: #a5b2af; background: transparent; font-size: 18px; cursor: pointer; }
.community-dialog .eyebrow { margin: 0 0 11px; font-size: 8px; }
.community-dialog h2 { margin: 0; font: 600 27px "Space Grotesk",sans-serif; letter-spacing: -.055em; }
.community-dialog form > p:not(.eyebrow) { margin: 8px 0 19px; color: #9aa9a4; font-size: 10px; line-height: 1.6; }
.community-dialog label { margin: 12px 0 6px; color: #d5dfda; font: 600 9px "DM Mono",monospace; }
.community-dialog input { min-height: 41px; padding: 0 11px; border: 1px solid rgba(228,245,242,.16); border-radius: 8px; outline: 0; color: #e9f0ed; background: #0b1215; font: 500 11px "Manrope",sans-serif; }
.community-dialog input:focus { border-color: rgba(166,255,223,.58); }
.community-dialog form > small { margin-top: 7px; color: #71817d; font-size: 8px; line-height: 1.5; }
.community-dialog__actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 20px; }
.community-dialog__cancel, .community-dialog__submit { min-height: 34px; padding: 0 12px; border: 1px solid rgba(228,245,242,.15); border-radius: 7px; color: #bac5c1; background: transparent; font: 600 9px "DM Mono",monospace; cursor: pointer; }
.community-dialog__submit { color: #08211b; border-color: #a6ffdf; background: #a6ffdf; }
.community-dialog__submit:disabled { opacity: .45; }
@media (max-width: 1120px) {
  .community-workspace { grid-template-columns: 54px 204px minmax(0,1fr); }
  .community-guide { grid-column: 2 / 4; }
  .community-chat__header { padding-inline: 16px; }
  .community-voice { padding-inline: 15px; }
}
@media (max-width: 720px) {
  .community-workspace { grid-template-columns: 48px minmax(0,1fr); }
  .community-server-rail { grid-column: 1; grid-row: 1; flex-direction: row; justify-content: flex-start; min-height: 64px; padding: 8px; border-right: 0; border-bottom: 1px solid rgba(228,245,242,.1); }
  .community-server-rail__items { width: auto; flex-direction: row; justify-content: flex-start; overflow-x: auto; }
  .community-server-rail__button, .community-server-add { width: 36px; height: 36px; }
  .community-server-add { margin: 0 0 0 auto; }
  .community-sidebar { grid-column: 2; grid-row: 1; min-width: 0; padding: 8px 9px; border-bottom: 1px solid rgba(228,245,242,.1); }
  .community-server { min-height: 40px; padding: 0 2px 5px; border: 0; }
  .community-server__mark { width: 27px; height: 27px; }
  .community-server__identity b { max-width: 150px; font-size: 10px; }
  .community-server__identity small { font-size: 7px; }
  .channel-list { display: flex; gap: 12px; overflow-x: auto; padding: 3px 0; }
  .channel-group { flex: 0 0 auto; margin: 0; }
  .channel-group h3 { margin: 0 4px 4px; }
  .channel-group__items { display: flex; gap: 4px; }
  .community-channel-link { min-height: 29px; padding: 0 7px; font-size: 8px; }
  .community-add-channel { min-height: 28px; margin: 4px 0 0; font-size: 8px; }
  .community-profile-link { display: none; }
  .community-chat { grid-column: 1 / -1; grid-row: 2; }
  .community-guide { grid-column: 1 / -1; grid-row: 3; }
  .community-chat__header-actions { gap: 7px; }
  .community-live { display: none; }
  .community-voice-open { min-height: 30px; padding: 0 8px; font-size: 8px; }
  .community-voice { padding: 13px 11px; }
  .community-voice__controls { align-items: flex-start; flex-direction: column; }
  .community-voice__stage { min-height: 90px; }
  .community-voice__remote { min-height: 90px; }
  .community-voice__remote video { max-height: 220px; }
  .community-voice__local { width: 33%; }
}
@media (prefers-reduced-motion: reduce) {
  .community-server-rail__button, .community-server-add { transition: none; }
}
.community-page [hidden] { display: none !important; }
