#community{max-width:760px;margin:auto}.community-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0}.community-hero h2{font-size:30px;margin:4px 0}.community-eyebrow{font-size:11px;letter-spacing:2px;color:#6579a0;font-weight:800}.community-compose,.community-post{padding:22px;border:1px solid #dce4ef;border-radius:22px;background:var(--card,#fff);margin-bottom:14px;box-shadow:0 6px 22px #26365308}.community-compose textarea{width:100%;box-sizing:border-box;min-height:110px;resize:vertical;border:0;background:transparent;font:inherit;font-size:17px;padding:14px 0;color:inherit}.community-compose select,.community-toolbar input,.community-toolbar select{font:inherit;color:inherit;padding:10px;border:1px solid #dce4ef;border-radius:12px;background:transparent;min-width:0}.community-compose-footer,.community-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.community-toolbar{margin:20px 0}.community-toolbar input{flex:1}.community-post-head{display:flex;gap:12px;align-items:center}.community-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e9edff;color:#5266b1;font-weight:900}.community-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.community-deck{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#8198d310;border:1px solid #8198d333;border-radius:16px;padding:16px;margin:14px 0}.community-deck b{flex:1 1 200px;overflow-wrap:anywhere}.community-files{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.community-files button{max-width:100%;overflow-wrap:anywhere;white-space:normal}.community-empty{text-align:center;padding:36px 20px;color:#718096}#communityStatus{min-height:24px;margin:10px 0}#communityPreview{width:min(700px,90vw);max-height:85vh;border:1px solid #dce4ef;border-radius:22px;padding:22px;color:inherit;background:var(--card,#fff)}#communityPreview::backdrop{background:#10203988}#communityPreview details{padding:16px;border-bottom:1px solid #8198d333}#communityPreview summary{cursor:pointer;font-weight:750;white-space:pre-wrap;overflow-wrap:anywhere}#communityPreview details p{white-space:pre-wrap;overflow-wrap:anywhere}#communityPreview img{max-width:100%;max-height:300px;object-fit:contain}#communityPreviewTitle{overflow-wrap:anywhere}.community-file-help{font-size:12px;color:#718096;margin:10px 0}.community-files-label{cursor:pointer}body.theme-dark .community-post,body.theme-dark .community-compose{background:#192337;color:#e5eaf5}@media(max-width:600px){.community-post,.community-compose{padding:16px}.community-hero h2{font-size:25px}.community-compose-footer select{width:100%}}

html[data-theme="dark"] .community-post,html[data-theme="dark"] .community-compose,html[data-theme="dark"] #communityPreview{background:#192337;color:#e5eaf5;border-color:#ffffff25}
#community{padding-bottom:80px}.community-hero{margin:12px 0 20px}.community-hero h2{font-size:29px}.community-toolbar{margin:0 0 12px;gap:8px}.community-toolbar input{flex:1 1 160px}.community-toolbar select{flex:0 1 130px}.community-empty{min-height:35vh;display:grid;place-items:center;padding:30px 22px;font-size:18px;line-height:1.8;color:var(--theme-muted,#64748b)}
#community .community-fab{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:calc(max(9px,env(safe-area-inset-bottom)) + 88px);z-index:2147483002;width:58px;height:58px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff80;background:#234e86;color:white;font-size:37px;line-height:1;box-shadow:0 8px 24px #183b7145;cursor:pointer;touch-action:manipulation}
html[data-theme="dark"] #community .community-fab{background:#94c3ff;color:#10213a;border-color:#bedcff}
#communityComposer{position:fixed;inset:0;box-sizing:border-box;width:100vw!important;max-width:none!important;height:100dvh;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f9fbff!important;color:var(--theme-ink,#12213d);overflow:hidden;box-shadow:none!important}
#communityComposer::backdrop{background:#f9fbff}#communityComposer:not([open]){display:none!important}#communityComposer[open]{display:block!important}
#communityForm{height:100%;display:flex;flex-direction:column;margin:0;overflow:hidden;box-sizing:border-box;padding-top:env(safe-area-inset-top)}
.community-compose-top{display:flex;align-items:center;justify-content:space-between;flex:none;padding:16px 20px;border-bottom:1px solid #8198d322;gap:14px}
#communityComposer .community-compose-top button{border:0;background:transparent;font:inherit;color:inherit;padding:9px 0;cursor:pointer}.community-compose-top strong{font-size:15px}
#communityComposer .community-compose-top .community-post-button{padding:10px 24px;border-radius:24px;background:#234e86!important;color:#fff!important;font-weight:800}#communityComposer button:disabled{opacity:.4;cursor:default}
.community-compose-main{display:flex;gap:12px;flex:1;min-height:80px;padding:24px 20px 4px;overflow:auto}.community-compose-main .community-avatar{flex:0 0 40px}.community-writing{flex:1;min-width:0;display:flex;flex-direction:column}.community-writing>b{font-size:14px;margin:1px 0 10px}
#communityComposer #communityText{flex:1;min-height:100px;width:100%;box-sizing:border-box;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font:inherit;font-size:21px;line-height:1.65;color:inherit;outline:none;resize:none}
.community-compose-bottom{flex:none;padding:8px 20px calc(12px + env(safe-area-inset-bottom));max-height:45%;overflow:auto}.community-composer-settings{display:grid;grid-template-columns:1fr 1.3fr;align-items:center;gap:10px;margin:12px 0}.community-composer-settings label{margin:0;font-size:13px;color:var(--theme-muted,#64748b)}
#communityComposer select{width:100%;box-sizing:border-box;min-height:40px;padding:9px 12px;margin:0;border-radius:13px;border:1px solid #8198d333;background:transparent;color:inherit;font:inherit;font-size:14px}
.community-compose-tools{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding-top:14px;border-top:1px solid #8198d333}.community-compose-tools label{font-size:14px;font-weight:700;color:#3564a3;cursor:pointer;margin:0}.community-compose-tools label[hidden]{display:none!important}.community-compose-tools label span:first-child{font-size:22px;vertical-align:middle}#communityCharCount{margin-left:auto;font-size:12px;color:var(--theme-muted,#64748b)}
.community-draft-files{display:flex;gap:6px;flex-wrap:wrap}.community-draft-files span{padding:6px 10px;background:#8198d315;border-radius:10px;font-size:12px;overflow-wrap:anywhere;max-width:100%}#communityComposeStatus{color:#c03842;line-height:1.5;font-size:14px;overflow-wrap:anywhere}
body.community-composing{overflow:hidden!important}body.community-composing>#quickDock,body.community-composing #themeToggle,body.community-composing #studySessionFloat{visibility:hidden!important;pointer-events:none!important}
html[data-theme="dark"] #communityComposer{background:#101827!important;color:#e9eff9}html[data-theme="dark"] #communityComposer::backdrop{background:#101827}html[data-theme="dark"] #communityComposer .community-post-button{background:#94c3ff!important;color:#10213a!important}html[data-theme="dark"] .community-compose-tools label{color:#94c3ff}
@media(min-width:800px){#communityForm{max-width:800px;margin:auto;border-left:1px solid #8198d322;border-right:1px solid #8198d322}.community-compose-main{padding:32px}.community-compose-bottom{padding:16px 32px 24px}}
html body #communityComposer[open]{opacity:1!important;transform:none!important;translate:none!important;scale:none!important;animation:none!important;transition:none!important}html body #communityComposer[open]::backdrop{opacity:1!important;animation:none!important;transition:none!important}
html[data-theme="dark"] #communityComposer .community-avatar{background:#253e62!important;color:#b8d8ff!important}html[data-theme="dark"] #communityComposer #communityCancel{background:transparent!important}

.community-files:has(.community-inline-image){display:grid;grid-template-columns:minmax(0,1fr);width:100%}.community-inline-image{width:100%;min-width:0;min-height:80px;overflow:hidden;border-radius:16px;background:#8198d310;color:var(--theme-muted,#64748b)}.community-inline-image img{display:block;width:100%;height:auto;max-height:640px;object-fit:contain}.community-inline-image.is-loaded{min-height:0}
.community-post-slot{display:flow-root;overflow-anchor:auto}
#community{max-width:1060px}.community-layout{display:grid;grid-template-columns:190px minmax(0,760px);gap:24px;align-items:start}.community-stream{min-width:0}.community-sidebar{position:sticky;top:20px;display:grid;gap:8px;border:1px solid #8198d333;border-radius:20px;padding:14px;background:#ffffff30}.community-sidebar button{font:inherit;text-align:left;padding:12px;border:0;border-radius:13px;color:var(--theme-ink,#12213d);background:transparent;cursor:pointer;font-weight:750}.community-sidebar button.active{background:#8198d326}.community-sidebar p{font-size:12px;line-height:1.6;color:var(--theme-muted,#64748b);padding:0 10px}
.community-author-button{border:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;padding:0!important;font:inherit!important;font-weight:800!important;cursor:pointer;overflow-wrap:anywhere;text-align:left}.community-post-head .community-avatar[role="button"]{cursor:pointer;flex:0 0 42px}.community-post-head>div{min-width:0}.community-post-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid #8198d322;padding-top:12px;margin-top:14px}.community-post-actions .community-like-button{font-size:24px!important;min-width:42px;padding:4px 10px!important}.community-like-button[aria-pressed="true"]{color:#d94873!important}.community-like-count{font-size:13px!important}.community-post-actions .community-pin-button{margin-left:auto}.community-pin-button[aria-pressed="true"]{background:#8198d330!important}
#communityProfileHeader{padding:20px;margin-bottom:18px;border-radius:22px;border:1px solid #8198d333;background:#ffffff40}#communityProfileHeader[hidden]{display:none!important}#communityProfileHeader>.community-avatar{width:62px;height:62px;font-size:25px;margin-top:16px}#communityProfileHeader h3{font-size:25px;margin:12px 0 5px;overflow-wrap:anywhere}#communityProfileHeader p{margin:0;color:var(--theme-muted,#64748b)}
#communityPeople{width:min(440px,calc(100vw - 32px));max-height:75dvh;box-sizing:border-box;border:1px solid #8198d340;border-radius:24px;padding:22px;color:var(--theme-ink,#12213d);background:#f9fbff}#communityPeople::backdrop{background:#10203988}.community-people-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.community-person{display:flex;align-items:center;gap:12px;cursor:pointer;width:100%;text-align:left;border:0;border-bottom:1px solid #8198d322;padding:13px 0;background:transparent;font:inherit;color:inherit}.community-person .community-avatar{flex:0 0 42px}#communityPeopleStatus{color:var(--theme-muted,#64748b)}html[data-theme="dark"] #communityPeople,html[data-theme="dark"] #communityProfileHeader{background:#192337!important;color:#e9eff9;border-color:#ffffff25}html[data-theme="dark"] .community-sidebar{background:#19233780}
html body #communityComposer{height:var(--community-visible-height,100dvh)!important;top:var(--community-visible-top,0px)!important;bottom:auto!important}.community-compose-main{min-height:0}#communityComposer #communityText{min-height:50px}.community-compose-bottom{max-height:65%}#communityComposer.community-keyboard-open .community-compose-top{padding:8px 16px}#communityComposer.community-keyboard-open .community-compose-main{padding:12px 16px 0}#communityComposer.community-keyboard-open .community-compose-bottom{padding:4px 16px 10px}#communityComposer.community-keyboard-open .community-composer-settings{gap:6px;margin:5px 0}#communityComposer.community-keyboard-open .community-compose-tools{padding-top:6px;gap:12px}#communityComposer.community-keyboard-open .community-file-help{display:none}#communityComposer.community-keyboard-open select{min-height:34px;padding:6px 10px;font-size:16px}
@media(max-width:760px){.community-layout{grid-template-columns:minmax(0,1fr);gap:14px}.community-sidebar{position:static;display:flex;padding:5px;gap:5px;border-radius:16px}.community-sidebar button{flex:1;text-align:center;padding:10px}.community-sidebar p{display:none}.community-post-actions .btn{font-size:12px}}
#communityThread{width:min(780px,calc(100vw - 24px));height:min(88dvh,900px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:0;border:1px solid #8198d340;border-radius:24px;background:#f9fbff;color:var(--theme-ink,#12213d);overflow:hidden}#communityThread:not([open]){display:none}#communityThread[open]{display:flex;flex-direction:column}#communityThread::backdrop{background:#10203999}.community-thread-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;flex:none;border-bottom:1px solid #8198d330}.community-thread-head h3{margin:0;flex:1;font-size:19px}.community-thread-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:16px}.community-thread-footer{border-top:1px solid #8198d330;flex:none;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.community-thread-footer>.btn{width:100%}#communityThreadParent>.community-post{border-color:#8198d360;background:#8198d310}#communityThreadList .community-post{margin:0 0 12px}.community-comment-count{font-size:13px!important}.community-reply-origin{font-size:12px!important;margin-top:12px;max-width:100%;overflow-wrap:anywhere}.community-thread-scroll [data-post-id] .community-post-actions{gap:6px}.community-thread-scroll [data-post-id] .community-post-actions>.btn{font-size:12px}#communityThreadStatus{color:var(--theme-muted,#64748b);line-height:1.6}#communityReplyContext{display:block;color:var(--theme-blue,#3564a3);font-size:13px;margin:-2px 0 10px}#communityReplyContext[hidden]{display:none}html[data-theme="dark"] #communityThread{background:#152236!important;color:#e9eff9;border-color:#ffffff25}html[data-theme="dark"] #communityThread .community-post{background:#192b43;border-color:#ffffff25}@media(max-width:600px){#communityThread{border-radius:22px}.community-thread-scroll{padding:12px}.community-thread-head{padding:12px}.community-thread-scroll .community-post{padding:14px}.community-thread-scroll .community-post-actions .community-pin-button{margin-left:0}}
html[data-theme="dark"] :is(#community,#communityThread,#communityPeople) .community-avatar{background:#293f63!important;color:#b8d8ff!important}html[data-theme] :is(#community,#communityThread) button.community-author-button{background:transparent!important;box-shadow:none!important}
.community-draft-file{display:flex;align-items:center;gap:3px;max-width:100%;border:1px solid #8198d333;border-radius:12px;background:#8198d315}.community-draft-files .community-draft-file>span{min-width:0;overflow-wrap:anywhere;background:transparent;padding:7px 10px}.community-draft-file .community-remove-file{flex:0 0 38px;width:38px;min-height:38px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--theme-ink,#263653);font-size:16px;cursor:pointer;touch-action:manipulation}.community-remove-file:focus-visible{outline:2px solid #7189ee;outline-offset:2px}
