/* Public-chat design system. Every selector is scoped; the record editor remains unchanged. */
.community-root,.community-panel,.community-lightbox,.community-image-menu{--community-bg:#101d29;--community-surface:#1a2c3a;--community-line:#354958;--community-text:#eff5f8;--community-muted:#b5c7d3;--community-green:#92e3bd;--community-accent:#a8efce;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:16px;line-height:1.6;color:var(--community-text);box-sizing:border-box;text-align:left;letter-spacing:normal;text-shadow:none;color-scheme:dark}
.community-root *,.community-lightbox *,.community-image-menu *{box-sizing:border-box;font-family:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;text-shadow:none}
.community-root button,.community-lightbox button,.community-root input,.community-root textarea,.community-root select,.community-image-menu button{font:inherit;letter-spacing:normal;text-shadow:none}
.community-root button,.community-lightbox button,.community-image-menu button{cursor:pointer;border:0;margin:0;min-width:0;box-shadow:none;font-weight:500;background:none;color:inherit;line-height:1.4;transition:background .16s,color .16s,opacity .16s,border-color .16s;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;touch-action:manipulation}
.community-root button:disabled,.community-lightbox button:disabled,.community-image-menu button:disabled{opacity:.5;cursor:not-allowed;filter:none}
.community-root button:focus-visible,.community-root select:focus-visible,.community-root input:focus-visible,.community-root textarea:focus-visible,.community-lightbox button:focus-visible,.community-lightbox a:focus-visible,.community-timeline:focus-visible,.community-image-menu :focus-visible{outline:2px solid #b0f5d4;outline-offset:3px}
.community-root svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.community-toggle{position:fixed!important;right:24px;top:16px;z-index:1100;min-height:48px;padding:0 18px!important;gap:10px!important;border:1px solid #699d87!important;border-radius:15px!important;background:#23493f!important;color:#e8fff2!important;box-shadow:0 8px 28px #0004!important;font-size:15px!important;font-weight:700!important;backdrop-filter:blur(16px)}
.community-toggle:hover,.community-toggle-active{background:#2e5a4b!important;border-color:#a3dfbe!important}
.community-toggle svg{width:22px;height:22px}.community-toggle-dot{height:7px;width:7px;border-radius:50%;background:#a1e8bb;box-shadow:0 0 9px #80d5a766}.community-toggle-dot.community-offline{background:#bac4cd;box-shadow:none}
.community-unread{background:#ed7f75;color:#1f1716;min-width:24px;height:24px;padding:0 6px;border-radius:12px;font-size:13px;font-weight:700;display:inline-flex;justify-content:center;align-items:center;font-variant-numeric:tabular-nums}
.community-panel{position:fixed;right:20px;top:80px;bottom:20px;width:500px;max-width:calc(100vw - 40px);z-index:1200;display:flex;flex-direction:column;background:var(--community-bg);border:1px solid #526574;border-radius:24px;overflow:hidden;box-shadow:-18px 24px 80px #030b1266,0 2px 8px #0004;isolation:isolate}
.community-header{flex:none;display:flex;align-items:center;gap:6px;min-height:102px;padding:21px 16px 20px 24px;border-bottom:1px solid var(--community-line);background:#1d3340}
.community-heading{min-width:0;flex:1}.community-heading h2{font-size:22px;line-height:1.35;font-weight:700;letter-spacing:.2px;margin:0 0 9px;color:#f7fbff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;padding:0;background:none;text-shadow:none}.community-heading p{font-size:13px;line-height:1.5;margin:0;color:#b8ccd8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-connection{color:#a5ecc6}.community-connection::before{content:"";display:inline-block;width:6px;height:6px;vertical-align:2px;border-radius:50%;background:currentColor;margin-right:6px}.community-connection-off{color:#efd294}
.community-root .community-icon-button{width:44px;height:44px;padding:10px;border-radius:12px;color:#d0dfe8;flex:none}.community-root .community-icon-button:hover{background:#ffffff0d;color:#fff}.community-header>.community-icon-button:first-child{margin-left:-10px}
.community-room-note{flex:none;font-size:13px;color:#bdcfdc;padding:12px 24px;background:#162735;border-bottom:1px solid #2d414e;line-height:1.65}.community-lock-icon{font-size:17px;vertical-align:-1px;color:#b9dfd2;margin-right:4px}
.community-timeline{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#536c7b transparent;padding:0 22px 14px;scroll-behavior:auto}
.community-root .community-history{display:flex;min-height:44px;margin:12px auto 3px;padding:8px 14px;font-size:13px;color:#c3dbeb;border-radius:11px}.community-root .community-history:hover{background:#223b49;color:#d8f7e7}
.community-date{display:flex;justify-content:center;margin:23px 0 22px;font-size:13px;line-height:1.45;color:#bfd0dc;font-weight:400}.community-date span{padding:4px 13px;background:#213443;border:1px solid #ffffff06;border-radius:8px}
.community-message{display:flex;align-items:flex-start;gap:11px;margin:0 0 22px;min-width:0}.community-avatar{--community-avatar-hue:155;position:relative;overflow:hidden;width:42px;height:42px;border-radius:14px;flex:0 0 42px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;color:hsl(var(--community-avatar-hue) 42% 87%);background:hsl(var(--community-avatar-hue) 24% 28%);border:1px solid hsl(var(--community-avatar-hue) 24% 44%);user-select:none;box-shadow:0 3px 8px #0002}.community-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0;filter:none;opacity:1}.community-avatar>img[hidden]{display:none}
.community-message-content{max-width:calc(100% - 53px);min-width:0;display:flex;align-items:flex-start;flex-direction:column}.community-message-meta{display:flex;align-items:baseline;gap:10px;max-width:100%;font-size:13px;line-height:1.4;margin:0 0 7px;color:#c3d5e1}.community-message-meta>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:220px}.community-message-meta time{font-size:13px;color:#abc0ce;white-space:nowrap;font-variant-numeric:tabular-nums}
.community-bubble{position:relative;min-width:34px;padding:12px 16px;max-width:100%;border:1px solid #3b5263;border-radius:5px 17px 17px 17px;background:#243b4c;color:#f3f8fc;font-size:16px;line-height:1.8;overflow:hidden;box-shadow:0 3px 8px #07121b24}.community-message-text{margin:0!important;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-family:inherit;font-weight:400;font-size:inherit;line-height:inherit;text-align:left}
.community-message-mine{flex-direction:row-reverse}.community-message-mine .community-message-content{align-items:flex-end}.community-message-mine .community-message-meta{flex-direction:row-reverse}.community-message-mine .community-bubble{background:#365f50;border-color:#5c8c73;color:#f4fff5;border-radius:17px 5px 17px 17px}
.community-message-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:20px;margin-top:5px;font-size:13px;line-height:1.5;color:#bbcedb}.community-root .community-message-actions button{min-height:32px;font-size:13px;padding:5px 4px;border-radius:5px;color:#c2d7e4}.community-root .community-message-actions button:hover{color:#d0f7e2;background:#ffffff0a}.community-send-status{display:inline-flex;align-items:center;gap:6px;font-size:13px}.community-send-error{color:#ffbfb2!important;font-size:13px;overflow-wrap:anywhere}.community-recalled{text-align:center;font-size:13px;color:#b2c5d1;margin:18px 0 26px;overflow-wrap:anywhere}
.community-message-images{display:flex;flex-direction:column;gap:8px;max-width:288px}.community-message-text+.community-message-images{margin-top:10px}.community-image-item{position:relative;min-width:0}.community-root .community-message-image{display:block;position:relative;border-radius:11px;background:#10212c;padding:0;overflow:hidden;line-height:0;min-width:64px;min-height:48px;max-width:100%;border:1px solid #ffffff14}.community-message-image img{display:block;width:auto;max-width:100%;height:auto;max-height:296px;object-fit:contain;border:0;opacity:1;filter:none}.community-image-fallback{display:none;color:#d2e0e9;font-size:13px;padding:20px;line-height:1.6}.community-image-broken .community-image-fallback{display:block}
.community-images-many{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.community-images-many .community-message-image{aspect-ratio:1;width:100%}.community-images-many img{height:100%;width:100%;object-fit:cover}.community-root .community-image-more{position:absolute;right:5px;top:5px;min-width:44px;height:44px;padding:0 6px;border:1px solid #bfdfd74d;background:#102c2eea;color:#fff;border-radius:12px;font-size:16px;letter-spacing:2px;opacity:0}.community-image-item:hover .community-image-more,.community-image-item:focus-within .community-image-more{opacity:1}.community-message-sticker .community-bubble{border:0;padding:0;background:transparent;box-shadow:none}.community-message-sticker .community-message-image{background:transparent;border:0;max-width:180px}.community-message-sticker .community-message-image img{max-height:185px}.community-invalid-image{font-size:13px;padding:14px;color:#e2cda8}
.community-bottom-hint{height:0;position:relative;z-index:2;align-self:center}.community-root .community-bottom-hint button{position:relative;transform:translateY(-60px);min-height:44px;padding:10px 18px;font-size:14px;border-radius:22px;background:#315b54;border:1px solid #7ba694;box-shadow:0 4px 18px #0005;color:#e4ffed;white-space:nowrap}
.community-compose{position:relative;flex:none;padding:12px 20px 17px;background:#1a2d3a;border-top:1px solid #415566}.community-compose-toolbar{display:flex;align-items:center;gap:4px;min-height:44px;margin-bottom:7px}.community-root .community-tool{width:44px;height:44px;padding:10px;color:#cee0eb;border-radius:12px}.community-root .community-tool:hover,.community-root .community-tool-active{background:#395548;color:#b6f1ce}.community-compose-hint{flex:1;text-align:right;white-space:nowrap;font-size:13px;color:#afc7d6;margin-left:4px}
.community-root .community-composer{display:block;resize:none;min-height:74px;max-height:130px;width:100%;background:#12232f!important;border:1px solid #3c5667!important;border-radius:13px!important;padding:12px 14px!important;margin:0!important;box-shadow:none!important;color:#f5fbff!important;line-height:1.65;font-size:16px;text-align:left;outline-offset:2px;scrollbar-width:thin}.community-composer::placeholder{color:#b1c5d4;opacity:1}.community-root .community-composer:focus{border-color:#9ed8be!important;outline:2px solid #87c4a73d}.community-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px}.community-compose-footer>span{font-size:13px;color:#b5cad9}.community-compose-footer .community-text-limit{color:#f4d19b}.community-root .community-send{min-height:44px;min-width:98px;padding:0 18px;background:#a1e8bf;color:#103c2b;font-weight:700;border:1px solid #b1f2ce;border-radius:12px;font-size:15px;box-shadow:0 3px 8px #0002}.community-root .community-send:not(:disabled):hover{background:#bcf4d2;color:#0b3023}.community-root .community-send:disabled{opacity:.6}.community-send svg{width:19px;height:19px}
.community-emoji-panel,.community-sticker-panel{position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;max-height:min(340px,45vh);overflow-y:auto;overscroll-behavior:contain;padding:16px;background:#213a49;border:1px solid #5b7482;border-radius:18px;box-shadow:0 -8px 32px #0005;z-index:3;scrollbar-width:thin}.community-emoji-panel{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.community-root .community-emoji-panel button{min-height:44px;font-size:27px;border-radius:10px;padding:2px}.community-root .community-emoji-panel button:hover{background:#ffffff16}.community-sticker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}.community-sticker-heading strong{font-size:16px;color:#eef8fd}.community-root .community-sticker-heading button{min-height:44px;font-size:13px;color:#c1f0d6;padding:8px;border-radius:8px}.community-sticker-empty{font-size:14px;line-height:1.85;color:#bfd1de;padding:8px 4px 18px}.community-sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px}.community-sticker-item{position:relative;min-width:0}.community-sticker-item>button:first-child{width:100%;aspect-ratio:1;background:#172d3b;border-radius:12px;padding:7px}.community-sticker-item>button:first-child:hover{background:#3b5c5b}.community-sticker-item img{max-width:100%;max-height:85px;object-fit:contain}.community-root .community-sticker-remove{position:absolute;right:-5px;top:-10px;width:30px;height:30px;font-size:20px;padding:0;background:#476471;border:1px solid #7895a2;color:#fff;border-radius:50%}
.community-upload-list{display:flex;flex-direction:column;gap:9px;max-height:190px;overflow-y:auto;padding:3px 0 10px;scrollbar-width:thin}.community-upload-item{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #4c6678;border-radius:13px;background:#213a4b}.community-upload-item>img{width:52px;height:52px;object-fit:cover;border-radius:8px;flex:none}.community-upload-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#c5d7e3}.community-upload-info>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f0f7fc;max-width:100%}.community-upload-info progress{width:100%;height:6px;accent-color:#abedc5}.community-upload-info>div{display:flex;gap:12px;flex-wrap:wrap}.community-root .community-upload-info button{font-size:13px;color:#c8f3de;padding:7px 0;min-height:32px}.community-root .community-upload-remove{width:44px;height:44px;font-size:25px;color:#d3e4f0;padding:0;flex:none;border-radius:10px}.community-upload-info .community-upload-done{color:#b0f0c8}
.community-toast,.community-alert{flex:none;font-size:14px;line-height:1.7;margin:0;padding:12px 22px;background:#294e40;border-bottom:1px solid #659079;color:#effff4;overflow-wrap:anywhere}.community-alert{background:#513730;border-color:#997568;color:#ffe5d5}.community-drop-zone{position:absolute;inset:106px 10px 10px;z-index:8;border:2px dashed #b1efcb;background:#1a453df5;border-radius:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;color:#f2fff4;padding:20px;text-align:center}.community-drop-zone>span{font-size:48px;line-height:1.2;margin-bottom:16px}.community-drop-zone strong{font-size:21px}.community-drop-zone p{font-size:14px;color:#c5ebd8;margin:10px 0}
.community-subpage{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#536c7b transparent;padding:26px 24px}.community-page-intro{margin-bottom:17px}.community-page-intro h3{font-size:20px;color:#f1f8fc;margin:0 0 9px;font-weight:600}.community-page-intro p{font-size:14px;color:#c0d2df;line-height:1.85;margin:0}.community-root .community-refresh{font-size:14px;color:#c8efdd;margin-bottom:9px;padding:10px 0;min-height:44px}.community-member{display:flex;align-items:center;gap:13px;border-bottom:1px solid #344a59;padding:18px 0}.community-member>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.community-member strong{font-size:16px;font-weight:600;color:#f1f7fa;overflow-wrap:anywhere}.community-member small{font-size:13px;color:#b5cad8}.community-self-label{display:inline-block;font-size:13px;padding:1px 6px;border:1px solid #71957e;border-radius:6px;color:#cbf4dd;margin-left:3px}.community-root .community-member>button{flex:none;min-height:44px;font-size:13px;color:#dcffeb;padding:9px 10px;border:1px solid #668e78;border-radius:11px;background:#2b4e41}
.community-my-profile{display:flex;flex-direction:column;align-items:center;padding:2px 0 26px;gap:9px}.community-avatar-large{width:80px;height:80px;font-size:30px;flex-basis:80px;border-radius:26px;margin-bottom:8px}.community-my-profile>strong{font-size:21px;font-weight:600;color:#f4fafc}.community-my-profile>span:last-child{font-size:13px;color:#b4cbd9;text-align:center}.community-settings-card{border:1px solid #415b6c;border-radius:17px;padding:20px;margin:0 0 18px;background:#1a3040}.community-settings-card>label{font-size:16px;font-weight:600;color:#edf7fe}.community-settings-card p{font-size:14px;line-height:1.85;color:#bed2df;margin:8px 0 16px}.community-name-edit{display:flex;gap:10px}.community-root .community-name-edit input{width:100%;min-width:0;flex:1;min-height:46px;border:1px solid #607e90;border-radius:11px;background:#112530;color:#f4fbff;padding:11px 12px;font-size:16px;box-shadow:none}.community-root .community-name-edit input::placeholder{color:#afc5d2}.community-root .community-name-edit button{font-size:15px;min-height:46px;border:1px solid #7aa98c;background:#38664d;color:#effff2;border-radius:11px;padding:10px 15px;white-space:nowrap}.community-setting-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}.community-setting-title h3{font-size:16px;margin:0;font-weight:600}.community-setting-title>span{font-size:13px;color:#bdd1df}.community-avatar-controls{display:flex;flex-wrap:wrap;gap:10px}.community-root .community-avatar-controls button{min-height:44px;padding:10px 13px;font-size:14px;border-radius:11px;border:1px solid #729787;background:#2e5045;color:#e1ffec}.community-root .community-avatar-controls button+button{background:#233c4b;border-color:#5d7788;color:#d8e7f2}.community-avatar-upload{margin-top:15px}
.community-root .community-avatar-paste{display:flex;justify-content:flex-start;gap:12px;width:100%;min-height:78px;margin-top:14px;padding:13px 14px;border:1px dashed #7aa893;border-radius:12px;background:#183b33;color:#e3ffef;text-align:left;white-space:normal}.community-avatar-paste>svg{width:24px;height:24px;flex:none}.community-avatar-paste>span{display:block;min-width:0}.community-avatar-paste strong{display:block;font-size:15px;line-height:1.5;font-weight:600}.community-avatar-paste small{display:block;margin-top:4px;font-size:13px;line-height:1.7;color:#c4dfd0;overflow-wrap:anywhere}.community-root .community-avatar-paste:not(:disabled):hover{background:#234c3f;border-color:#b0e8c8}.community-root .community-avatar-paste:focus{outline:2px solid #b0f5d4;outline-offset:3px;background:#234c3f}
.community-sharing-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.community-sharing-heading h3{font-size:16px;color:#eef8fe;font-weight:600;margin:0}.community-sharing-heading p{margin:7px 0 0}.community-switch{position:relative;display:inline-flex;flex:none;width:56px;height:44px;cursor:pointer}.community-switch input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:2}.community-switch>span{position:absolute;inset:6px 0;background:#4a6271;border:1px solid #7892a0;border-radius:18px;transition:background .2s}.community-switch>span::after{content:"";position:absolute;width:22px;height:22px;left:4px;top:4px;border-radius:50%;background:#edf3f7;box-shadow:0 1px 4px #0003;transition:transform .2s}.community-switch input:checked+span{background:#82cea4;border-color:#bbeacf}.community-switch input:checked+span::after{background:#fff;transform:translateX(23px)}.community-switch input:focus-visible+span{outline:2px solid #c0f9db;outline-offset:3px}.community-switch input:disabled+span{opacity:.5}.community-sharing-note{border-top:1px solid #476071;margin-top:18px;padding-top:15px}.community-sharing-note>strong{font-size:14px;color:#b4f1cc;font-weight:600}.community-sharing-note p{font-size:14px;margin:10px 0 0;color:#c5d8e4}.community-sharing-note b{font-weight:600;color:#eff8fc}.community-settings-foot{font-size:13px;line-height:1.9;color:#aec5d4;margin:4px 3px}
.community-shared-page{padding:20px}.community-shared-notice{font-size:13px;line-height:1.7;color:#c4e6db;background:#224439;border:1px solid #517a68;padding:11px 13px;border-radius:11px;margin-bottom:20px}.community-shared-filters{display:flex;align-items:flex-end;gap:11px;margin-bottom:22px}.community-shared-filters label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#c2d8e7;flex:1;min-width:0}.community-shared-filters label:first-child{flex:1.5}.community-root .community-shared-filters select{width:100%;font-size:14px;color:#f0f9ff;border:1px solid #607e91;background:#213d50;padding:10px 8px;border-radius:10px;min-height:44px;box-shadow:none}.community-record-table{border:1px solid #446273;border-radius:13px;overflow:hidden;background:#192f3f}.community-record-head,.community-record-row{display:grid;grid-template-columns:1.15fr .75fr 1fr 1fr;gap:7px;padding:13px 10px;align-items:center;font-size:14px;text-align:center}.community-record-head{background:#294759;color:#c9dfea;font-size:13px;padding-top:12px;padding-bottom:12px}.community-record-row{border-top:1px solid #3d5363;color:#d1e2ed;font-variant-numeric:tabular-nums}.community-record-row:nth-child(odd){background:#20394b}.community-record-row strong{font-size:16px;color:#f0faff;font-weight:600}.community-record-burst>span:last-child{color:#ffb6a8}.community-record-burst>strong{color:#ffd1b3}.community-root .community-load-more{display:flex;width:100%;min-height:46px;margin:18px 0 5px;padding:11px 14px;background:#2d5343;border:1px solid #73977e;border-radius:12px;color:#e3ffeb;font-size:14px}.community-record-count{font-size:13px;color:#afcadb;text-align:center;margin:18px 0}.community-loading{font-size:14px;color:#c9e0ef;text-align:center;padding:18px}
.community-empty{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 14px;color:#bfd5e4}.community-empty strong{font-size:18px;font-weight:600;color:#edf8ff;margin:12px 0}.community-empty p{font-size:14px;color:#afc8d9;line-height:1.9;margin:0}.community-empty-symbol{display:flex;justify-content:center;align-items:center;width:72px;height:72px;border-radius:23px;font-size:34px;background:#284d43;color:#c0f1d2;margin:16px 0}.community-spinner{display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:community-spin .8s linear infinite;flex:none;vertical-align:-2px}.community-empty>.community-spinner{margin:28px 0 12px;width:26px;height:26px;color:#b5eccf}.community-hidden-input{display:none!important}.community-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.community-lightbox{position:fixed;inset:0;z-index:50000;background:#050c12ed;display:flex;flex-direction:column;backdrop-filter:blur(14px)}.community-lightbox-toolbar{flex:none;min-height:76px;display:flex;align-items:center;gap:12px;padding:16px 24px;background:#172e3be6;border-bottom:1px solid #526c7e}.community-lightbox-toolbar>span{flex:1;font-size:16px;color:#e1f0f9}.community-lightbox-toolbar button,.community-lightbox-toolbar a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #6d8799;border-radius:11px;font-size:14px;color:#edf9ff;background:#29495e;text-decoration:none;white-space:nowrap}.community-lightbox-toolbar button:hover,.community-lightbox-toolbar a:hover{background:#3b6350}.community-lightbox-scroll{min-height:0;flex:1;overflow:auto;display:flex;align-items:center;justify-content:center;padding:28px;overscroll-behavior:contain}.community-lightbox-scroll>img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;box-shadow:0 10px 70px #0006}.community-lightbox-full{display:block;text-align:center}.community-lightbox-full>img{max-width:none;max-height:none;width:auto;height:auto;display:inline-block;vertical-align:middle}
.community-image-menu{position:fixed;z-index:51000;width:264px;max-width:calc(100vw - 16px);padding:8px;background:#253f4f;border:1px solid #78909d;border-radius:15px;box-shadow:0 12px 38px #0008}.community-image-menu-title{display:block;font-size:13px;color:#bfd7e4;padding:5px 11px 7px}.community-image-menu button,.community-image-menu a{display:flex;align-items:center;justify-content:flex-start;min-height:44px;padding:10px 11px;width:100%;border-radius:9px;font-size:15px;line-height:1.5;color:#f3faff;text-decoration:none;cursor:pointer}.community-image-menu button:first-of-type{color:#cbf8dd;font-weight:600}.community-image-menu button:hover,.community-image-menu a:hover{background:#365b60}
.community-slide-enter-active,.community-slide-leave-active{transition:opacity .18s,transform .24s cubic-bezier(.2,.8,.2,1)}.community-slide-enter-from,.community-slide-leave-to{opacity:0;transform:translateX(24px)}@keyframes community-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.community-toggle{top:34px;right:12px;min-height:44px;padding:0 13px!important;font-size:14px!important;border-radius:13px!important;gap:8px!important}.community-panel{right:8px;top:90px;bottom:8px;width:500px;max-width:calc(100vw - 16px);border-radius:20px}.community-header{min-height:94px;padding:17px 10px 17px 18px;gap:2px}.community-heading h2{font-size:21px;margin-bottom:7px}.community-heading p{font-size:13px}.community-room-note{padding:11px 18px;font-size:13px}.community-timeline{padding-right:15px;padding-left:15px}.community-message-meta>span{max-width:170px}.community-compose{padding:10px 14px 13px}.community-compose-hint{font-size:13px;margin-left:0;white-space:normal;line-height:1.5;max-width:170px}.community-compose-toolbar{gap:2px}.community-subpage{padding:22px 18px}.community-settings-card{padding:17px}.community-lightbox-toolbar{padding:12px;gap:8px;flex-wrap:wrap}.community-lightbox-toolbar>span{font-size:15px;flex-basis:100%}.community-lightbox-toolbar button,.community-lightbox-toolbar a{font-size:13px;padding:9px 11px}.community-lightbox-scroll{padding:12px}.community-root .community-image-more{opacity:1}.community-root .community-message-actions button,.community-root .community-upload-info button{min-height:44px;padding-top:9px;padding-bottom:9px}.community-root .community-sticker-remove{width:44px;height:44px;top:-12px;right:-5px;font-size:23px}.community-sticker-grid{gap:22px 15px;grid-template-columns:repeat(3,minmax(0,1fr))}.community-sticker-item>button:first-child{padding:10px}.community-sticker-heading{align-items:center;flex-wrap:wrap}}
@media(max-width:400px){.community-panel{border-radius:17px}.community-header{padding-left:14px;padding-right:8px}.community-root .community-icon-button{width:44px;padding:11px}.community-heading h2{font-size:20px}.community-heading p{font-size:13px}.community-room-note{padding:10px 14px}.community-timeline{padding-left:12px;padding-right:12px}.community-message{gap:8px}.community-avatar{width:36px;height:36px;flex-basis:36px;border-radius:12px;font-size:16px}.community-message-content{max-width:calc(100% - 44px)}.community-message-meta{gap:7px}.community-message-meta>span{max-width:120px}.community-bubble{padding:10px 12px}.community-compose-hint{max-width:140px}.community-compose{padding-left:12px;padding-right:12px}.community-emoji-panel{grid-template-columns:repeat(6,minmax(0,1fr));padding:10px}.community-subpage{padding:20px 14px}.community-settings-card{padding:15px}.community-member{gap:10px}.community-root .community-member>button{font-size:13px;padding:8px}.community-member strong{font-size:16px}.community-avatar-large{width:76px;height:76px;flex-basis:76px;font-size:29px;border-radius:24px}.community-record-head,.community-record-row{gap:4px;padding-left:6px;padding-right:6px;font-size:13px}.community-record-row strong{font-size:16px}.community-shared-filters{gap:7px}}
@media(max-height:700px){.community-header{min-height:82px;padding-top:14px;padding-bottom:14px}.community-compose{padding-top:8px;padding-bottom:10px}.community-root .community-composer{min-height:64px}.community-compose-toolbar{margin-bottom:5px}.community-upload-list{max-height:132px}.community-emoji-panel,.community-sticker-panel{max-height:42vh}}
@media(max-height:540px){.community-panel{top:8px;bottom:8px}.community-header{min-height:69px;padding-top:10px;padding-bottom:10px}.community-heading h2{font-size:20px;margin-bottom:3px}.community-room-note{display:none}.community-timeline{min-height:0}.community-upload-list{max-height:88px}.community-compose-toolbar{min-height:44px;margin-bottom:4px}.community-root .community-composer{min-height:52px;max-height:80px;padding-top:9px!important;padding-bottom:9px!important}.community-compose-footer{padding-top:6px}.community-compose{padding-top:5px;padding-bottom:7px}.community-heading p{font-size:13px}}
@supports(padding:max(0px)){@media(max-width:700px){.community-panel{bottom:max(8px,env(safe-area-inset-bottom))}.community-toggle{right:max(12px,env(safe-area-inset-right))}}}
@media(hover:none){.community-root .community-image-more{opacity:1}.community-root .community-message-actions button,.community-root .community-upload-info button{min-width:44px;min-height:44px}.community-root .community-sticker-remove,.community-root .community-upload-remove{width:44px;height:44px;min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.community-root *,.community-lightbox *,.community-image-menu *{transition:none!important;scroll-behavior:auto!important}.community-spinner{animation-duration:2s}.community-slide-enter-active,.community-slide-leave-active{transition:none}}

/* Room tools: public aliases, mentions, moderation and discoverable history. */
.community-toggle-unread>svg{animation:community-new-message 1.7s ease-in-out infinite;transform-origin:center}.community-toggle-unread{border-color:#c2f7d6!important}.community-toggle-mentioned{background:#385742!important}.community-toggle-at{font-size:13px;font-weight:700;color:#fff0b7;background:#775f36;padding:2px 6px;border-radius:6px;white-space:nowrap}@keyframes community-new-message{0%,100%{opacity:1;filter:drop-shadow(0 0 0 #b5ffd400);transform:scale(1)}50%{opacity:.55;filter:drop-shadow(0 0 5px #adffca);transform:scale(.9)}}
.community-message-mentioned .community-bubble{border-color:#b3aa6e;box-shadow:0 0 0 1px #e1ce8033}.community-message-mentions{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;margin-bottom:6px;max-width:100%}.community-message-at{font-size:14px;line-height:1.65;color:#c7f5df;overflow-wrap:anywhere}.community-message-at.community-at-me{color:#fff0b0;font-weight:700}.community-mention-for-you{font-size:13px;color:#ffe7a8;white-space:nowrap;border:1px solid #9c8a59;border-radius:6px;padding:0 5px}.community-message-text.community-emoji-only{font-size:34px;line-height:1.45;letter-spacing:3px}.community-muted-notice{font-size:14px;color:#ffe3bc;background:#5c4330;border:1px solid #9b7852;padding:9px 11px;margin:0 0 9px;border-radius:10px;line-height:1.6}.community-selected-mentions{display:flex;flex-wrap:wrap;gap:6px;max-height:92px;overflow:auto;margin:1px 0 8px;padding:2px}.community-selected-at{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:0 3px 0 10px;min-height:40px;border:1px solid #6a9e83;background:#274b3e;border-radius:11px;font-size:14px;color:#e1ffe9;overflow-wrap:anywhere}.community-root .community-selected-at button{flex:none;width:36px;min-height:40px;padding:0;font-size:22px;color:#c9efda;border-radius:9px}.community-root .community-selected-at button:hover{background:#517665}.community-root .community-mention-tool{font-size:25px;font-weight:600;padding:7px}
.community-mention-picker{position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;max-height:min(410px,55vh);overflow-y:auto;overscroll-behavior:contain;z-index:4;padding:14px;background:#213a49;border:1px solid #718b99;border-radius:18px;box-shadow:0 -8px 32px #0005;scrollbar-width:thin}.community-mention-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.community-mention-heading strong{font-size:16px;color:#f2fbff}.community-root .community-mention-heading button{width:44px;height:44px;border-radius:10px;font-size:24px;color:#d7e7ed}.community-root .community-mention-filter{display:block;width:100%;min-height:44px;margin:0 0 9px;padding:10px 12px;font-size:16px;color:#f4fbff;background:#142b37;border:1px solid #7790a0;border-radius:11px;box-shadow:none}.community-mention-options{max-height:230px;overflow:auto;scrollbar-width:thin}.community-root .community-mention-option{display:flex;justify-content:flex-start;text-align:left;gap:11px;width:100%;min-height:53px;padding:8px;border-radius:11px;color:#eefaff;font-size:15px;overflow-wrap:anywhere}.community-root .community-mention-option:hover{background:#3d5b5a}.community-mention-option>span:nth-child(2){flex:1;min-width:0}.community-mention-option>small{font-size:13px;color:#b9f2d1;flex:none}.community-mention-everyone>span:first-child{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:#685836;border-radius:12px;font-size:23px;color:#fff0ba}.community-mention-everyone strong{display:block;font-size:15px}.community-mention-everyone small{display:block;font-size:13px;font-weight:400;color:#e8d9ad;margin-top:2px}.community-mention-note{font-size:13px;line-height:1.7;color:#c2d7e2;border-top:1px solid #476372;padding:10px 5px 0;margin:10px 0 0}
.community-emoji-panel{display:block}.community-emoji-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;border-bottom:1px solid #506a78;padding-bottom:11px;margin-bottom:11px}.community-root .community-emoji-categories button{display:flex;flex-direction:column;gap:5px;padding:7px 2px;min-height:61px;font-size:25px;border-radius:10px}.community-emoji-categories button>span{display:block;font-size:13px;line-height:1.5;white-space:nowrap;color:#c7dce7}.community-root .community-emoji-categories .community-category-selected{background:#385e50;box-shadow:inset 0 0 0 1px #82b59b}.community-emoji-categories .community-category-selected>span{color:#edfff1}.community-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.community-root .community-emoji-grid button{width:100%;min-height:48px;padding:3px 0;font-size:32px}.community-sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 13px}.community-sticker-item img{max-height:115px}.community-sticker-item>button:first-child{min-height:92px}
.community-member{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:13px;row-gap:11px;align-items:start}.community-member>.community-avatar{grid-column:1;grid-row:1}.community-member>.community-member-info{grid-column:2;min-width:0}.community-member>.community-member-actions{grid-column:2;display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}.community-root .community-member-actions button{min-height:44px;border:1px solid #698c7d;border-radius:10px;background:#294b40;color:#ddffeb;font-size:14px;padding:8px 11px}.community-root .community-member-actions button[data-community="mute-toggle"]{border-color:#9a805d;background:#513f2e;color:#ffe6c0}.community-role-label{display:inline-block;font-size:13px;padding:0 5px;line-height:1.6;border:1px solid #8b9db0;border-radius:5px;color:#e4effb;margin-left:5px;vertical-align:1px}.community-member-info>.community-member-muted{color:#ffd6af}.community-member>.community-mute-controls{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;width:100%;padding:13px;background:#47392c;border:1px solid #9a7c55;border-radius:12px}.community-mute-controls label{font-size:14px;color:#ffe9cd;overflow-wrap:anywhere}.community-mute-controls>div{display:flex;gap:8px;flex-wrap:wrap}.community-root .community-mute-controls select{flex:1;min-width:130px;min-height:44px;background:#2e2a25;border:1px solid #9d8a6b;border-radius:9px;color:#fff4e5;padding:8px;font-size:15px}.community-root .community-mute-controls button{min-height:44px;padding:9px 12px;font-size:14px;border:1px solid #aa946f;background:#725b3a;color:#fff3de;border-radius:9px}.community-mute-controls>small{font-size:13px;color:#d8c5aa}
.community-share-days{display:flex;flex-direction:column;gap:8px;margin-top:20px;font-size:15px!important;font-weight:500!important;color:#e3f2f9}.community-root .community-share-days select{min-height:46px;width:100%;font-size:16px;color:#effaff;padding:10px 12px;background:#142c3c;border:1px solid #68879b;border-radius:11px;box-shadow:none}.community-share-days small{font-size:13px;line-height:1.75;color:#bcd0dd;font-weight:400}.community-search-entry .community-load-more{justify-content:space-between;margin-bottom:0}.community-search-form{display:flex;gap:9px;margin:0 0 17px}.community-root .community-search-form input{display:block;flex:1;min-width:0;min-height:46px;width:100%;margin:0;padding:11px 12px;font-size:16px;border:1px solid #69869a;background:#152c3a;color:#f3fbff;border-radius:11px;box-shadow:none}.community-root .community-search-form button{min-height:46px;padding:10px 15px;background:#3c6953;color:#effff4;border:1px solid #83b59a;border-radius:11px;font-size:15px}.community-search-summary{font-size:14px;line-height:1.75;color:#c7dce9;margin:10px 0 18px;overflow-wrap:anywhere}.community-search-result{padding:15px 14px;background:#1a3141;border:1px solid #496477;border-radius:13px;margin-bottom:13px;min-width:0}.community-search-result .community-message-meta{align-items:flex-start;flex-wrap:wrap;gap:5px 12px;margin-bottom:9px}.community-search-result .community-message-meta>strong{font-size:15px;color:#effaff;font-weight:600;max-width:100%;overflow-wrap:anywhere}.community-search-result .community-message-meta>time{font-size:13px;white-space:normal;color:#bdd3e2}.community-search-result>.community-message-text{font-size:16px;line-height:1.8;color:#edf7ff;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.community-search-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.community-root .community-search-images button{padding:0;min-height:44px;width:105px;max-width:100%;border-radius:9px;overflow:hidden;background:#10232f}.community-search-images img{display:block;width:100%;max-height:130px;object-fit:contain}.community-search-page .community-alert{border:1px solid #997568;border-radius:10px;margin:8px 0 15px}
@media(max-width:700px){.community-compose-hint{font-size:13px;max-width:160px}.community-emoji-panel,.community-mention-picker{left:8px;right:8px}.community-emoji-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.community-root .community-emoji-categories button{min-height:44px;flex-direction:row;font-size:24px;padding:7px 3px;gap:5px}.community-member{grid-template-columns:36px minmax(0,1fr)}.community-selected-at{min-height:44px}.community-root .community-selected-at button{width:44px;height:44px}}
@media(max-width:400px){.community-emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.community-root .community-emoji-grid button{min-height:46px;font-size:32px}.community-sticker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.community-sticker-item img{max-height:110px}.community-compose-hint{max-width:104px}.community-member>.community-member-actions{grid-column:1/-1}.community-root .community-member-actions button{font-size:13px;padding:8px 10px}.community-toggle{gap:6px!important}.community-toggle-at{font-size:13px;padding:2px 4px}.community-search-form{gap:7px}.community-root .community-search-form button{padding-left:12px;padding-right:12px}.community-search-result{padding:13px 11px}.community-mention-picker{padding:11px}.community-mention-options{max-height:180px}}
@media(max-height:540px){.community-emoji-panel,.community-mention-picker{max-height:58vh}.community-emoji-categories{grid-template-columns:repeat(6,minmax(0,1fr))}.community-root .community-emoji-categories button{flex-direction:row;min-height:44px;font-size:23px}.community-emoji-categories button>span{display:none}.community-mention-options{max-height:100px}.community-selected-mentions{max-height:50px}.community-muted-notice{font-size:13px;padding:6px 9px;margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){.community-toggle-unread>svg{animation:none;opacity:1;filter:none;transform:none}}

@media(max-width:700px) and (min-width:401px){.community-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Existing message avatars gain a keyboard/touch menu without changing row geometry. */
.community-root .community-message-avatar{padding:0;gap:0;min-height:0;font-size:18px;font-weight:700;line-height:1.6;color:hsl(var(--community-avatar-hue) 42% 87%);background:hsl(var(--community-avatar-hue) 24% 28%);border:1px solid hsl(var(--community-avatar-hue) 24% 44%);box-shadow:0 3px 8px #0002}.community-root .community-message-avatar:hover{box-shadow:0 0 0 2px #a8efce66}.community-root .community-message-avatar:focus-visible{outline:2px solid #b0f5d4;outline-offset:3px}.community-avatar-menu{position:fixed;z-index:51200;width:240px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:8px;color:#eff5f8;background:#253f4f;border:1px solid #78909d;border-radius:15px;box-shadow:0 12px 38px #0008;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:16px;line-height:1.6;letter-spacing:normal;text-shadow:none;text-align:left;box-sizing:border-box;color-scheme:dark}.community-avatar-menu *{box-sizing:border-box;font-family:inherit;letter-spacing:inherit;text-shadow:none}.community-avatar-menu-title{display:block;font-size:14px;line-height:1.7;font-weight:600;color:#e5f5fc;padding:5px 10px 9px;margin:0 0 3px;border-bottom:1px solid #58717f;overflow-wrap:anywhere}.community-avatar-menu button{display:flex;align-items:center;justify-content:flex-start;gap:11px;width:100%;min-width:0;min-height:60px;margin:0;padding:10px;border:0;border-radius:10px;background:none;box-shadow:none;color:#f2fbff;font:inherit;line-height:1.5;text-align:left;cursor:pointer;touch-action:manipulation}.community-avatar-menu button>span:last-child{flex:1;min-width:0}.community-avatar-menu button strong{display:block;font-size:15px;font-weight:600;line-height:1.5}.community-avatar-menu button small{display:block;font-size:13px;line-height:1.6;font-weight:400;color:#bdd3df;margin-top:3px;overflow-wrap:anywhere}.community-avatar-action-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;font-size:24px;color:#bdf0d4}.community-avatar-menu button:hover:not(:disabled){background:#3a5c5a}.community-avatar-menu button:disabled{cursor:default;opacity:.6}.community-avatar-menu button:focus-visible,.community-avatar-menu:focus-visible{outline:2px solid #b0f5d4;outline-offset:1px}.community-avatar-menu button:focus-visible{background:#3a5c5a}
@media(max-width:400px){.community-root .community-message-avatar{font-size:16px}}

@media(hover:none){.community-root .community-message-avatar{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px}}

/* Public videos and isolated direct conversations reuse the room typography and surfaces. */
.community-root .community-text-link{color:#b4eaff;text-decoration:underline;text-decoration-color:#86cce8;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}.community-root .community-text-link:hover{color:#e1f7ff;text-decoration-color:currentColor}.community-root .community-text-link:focus-visible{outline:2px solid #b0f5d4;outline-offset:2px;border-radius:3px}.community-direct-entry{position:relative}.community-direct-badge{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;min-width:18px;min-height:18px;padding:0 4px;border:1px solid #f1c1ac;border-radius:10px;background:#ef9888;color:#261d1c;font-size:11px!important;font-weight:700;line-height:1.4}.community-direct-note{color:#d5e9f4;background:#193340;border-bottom-color:#466675}.community-root .community-direct-thread{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:90px;text-align:left;padding:17px 0;margin:0;border-bottom:1px solid #3d5363;border-radius:0;color:#eff7fc;background:none}.community-root .community-direct-thread:hover{background:#233f4b;border-radius:10px}.community-direct-thread-content{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0}.community-direct-thread-content>span{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}.community-direct-thread-content strong{font-size:16px;font-weight:600;color:#f0f9ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.community-direct-thread-content time{font-size:13px;color:#bfd4e1;white-space:nowrap;flex:none}.community-direct-thread-content>small{font-size:14px;color:#c5d8e5;line-height:1.7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.community-direct-thread-content>em{font-style:normal;font-size:13px;color:#d8c49b}.community-direct-thread>.community-unread{flex:none}.community-message-videos{display:flex;flex-direction:column;gap:10px;margin-top:8px;max-width:100%;width:280px}.community-video-item{min-width:0;max-width:100%;border:1px solid #5c7688;border-radius:11px;overflow:hidden;background:#102330}.community-video-item>video{display:block;max-width:100%;width:100%;max-height:300px;min-height:115px;background:#080e14;object-fit:contain}.community-video-footer{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:7px;padding:9px 10px;background:#1c3443}.community-video-footer>span{font-size:13px;color:#bdd3e2}.community-root .community-video-footer a{font-size:14px;min-height:32px;display:inline-flex;align-items:center;padding:3px 0;color:#c4f2dd;text-decoration:underline;text-underline-offset:3px}.community-root .community-video-footer button{font-size:13px;min-height:32px;color:#d0f6e1;padding:4px 0}.community-video-error{font-size:13px!important;line-height:1.75!important;padding:10px 11px;margin:0!important;color:#ffe4bf;background:#4a3e30;overflow-wrap:anywhere}.community-upload-item>video{width:58px;height:52px;object-fit:contain;border-radius:8px;flex:none;background:#091824}.community-private-media-error{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:7px;padding:7px 8px;border:1px solid #987b58;border-radius:8px;background:#4b3e30;color:#ffe7bf;font-size:13px}.community-root .community-private-media-error button{min-height:36px;padding:5px 8px;font-size:13px;border:1px solid #b4a27b;border-radius:7px;color:#fff1d9}.community-search-result .community-message-videos{width:100%;margin-top:12px}.community-search-result .community-video-item>video{max-height:260px}.community-panel .community-heading{min-width:0}.community-panel .community-heading h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-panel .community-heading p{overflow-wrap:anywhere}.community-root .community-compose-hint{min-width:0}.community-root .community-compose-toolbar{flex-wrap:nowrap}
@media(max-width:700px){.community-header{padding-left:14px;padding-right:8px;gap:1px}.community-heading h2{font-size:20px}.community-heading p{font-size:13px}.community-root .community-compose-hint{font-size:13px;line-height:1.45;max-width:110px}.community-compose-toolbar{gap:1px}.community-message-videos{width:270px}.community-video-item>video{max-height:230px}.community-video-footer a,.community-root .community-video-footer button{min-height:44px}.community-direct-thread{gap:10px}}
@media(max-width:400px){.community-root .community-compose-hint{max-width:62px}.community-root .community-compose-toolbar .community-tool{width:40px;min-width:40px;height:44px;padding:8px}.community-message-videos{width:220px}.community-video-item>video{max-height:205px;min-height:110px}.community-direct-thread-content>span{align-items:flex-start;flex-wrap:wrap;gap:3px}.community-direct-thread-content time{font-size:13px}.community-root .community-direct-thread{gap:10px}.community-root .community-compose-hint{overflow-wrap:anywhere}}
@media(hover:none){.community-root .community-compose-toolbar .community-tool{min-width:44px;width:44px;min-height:44px}.community-root .community-private-media-error button{min-height:44px}}

/* v11 comfort controls stay within the existing chat surfaces. */
.community-panel.community-layout-wide{width:820px;max-width:calc(100vw - 40px)}
.community-panel.community-layout-full{inset:12px;width:auto;max-width:none;border-radius:18px}
.community-width-toggle{order:2}.community-header .community-heading{order:0}.community-header>.community-icon-button:not(.community-width-toggle){order:1}
.community-reading-tools{flex:none;display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px 20px;background:#142633;border-bottom:1px solid #304754;font-size:12px;color:#c1d5df}
.community-reading-tools>span{margin-right:auto;font-variant-numeric:tabular-nums}.community-root .community-reading-tools button{min-height:32px;padding:5px 8px;border:1px solid #446456;border-radius:9px;background:#1c3835;color:#d9f5e6;font-size:12px}.community-reading-tools button[aria-pressed=true]{background:#3d5547;color:#f9efc4}
.community-root .community-quote{display:flex;align-items:flex-start;flex-direction:column;gap:3px;width:100%;min-width:0;text-align:left;padding:9px 11px;margin-bottom:10px;border-left:3px solid #9bcbb9;border-radius:5px;background:#081e2655;color:#d8e9ee;line-height:1.6}
.community-quote strong{font-size:13px;font-weight:600}.community-quote span{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.community-root .community-quote:hover:not(:disabled){background:#0d283aaa}
.community-reply-preview{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;margin:0 0 9px;border-left:3px solid #a3e5c8;background:#203d47;border-radius:8px}.community-reply-preview>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.community-reply-preview strong{font-size:13px;color:#bff3d9}.community-reply-preview small{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.community-root .community-reply-preview button{flex:none;min-width:36px;min-height:36px;border-radius:8px;font-size:22px;background:#294957}
.community-context-view{scroll-behavior:auto;overflow-anchor:none}.community-context-target{border-color:#a6e7c6!important;background:#23473f!important;box-shadow:0 0 0 2px #9edbb51a}.community-context-target:focus{outline:2px solid #b8efcf;outline-offset:2px}.community-root .community-context-link{min-height:40px;padding:7px 0;color:#b7ead2;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.community-comfort-label{display:flex;flex-direction:column;gap:9px;margin:17px 0;color:#e4f0f6;font-size:15px}.community-comfort-label select,.community-comfort-label textarea{width:100%;min-height:46px;border:1px solid #668292;border-radius:10px;background:#112633;color:#f0f8ff;padding:10px 12px;outline-offset:2px;font-size:15px;resize:vertical}.community-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.7;font-size:14px;margin:18px 0;color:#dfedf4}.community-consent input{width:20px;height:20px;flex:none;margin-top:3px;accent-color:#8ad6b2}.community-comfort-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0}.community-root .community-comfort-actions button,.community-root [data-community=member-unblock]{min-height:44px;padding:9px 13px;border:1px solid #648b7e;border-radius:10px;background:#25473f;color:#e7fff2;font-size:14px}.community-root .community-comfort-actions button:hover,.community-root [data-community=member-unblock]:hover{background:#355e50}.community-comfort-actions button[aria-pressed=true]{background:#47745e;border-color:#abdfbd}.community-report-excerpt{padding:13px 14px;border:1px solid #567381;border-left:3px solid #d5bb84;border-radius:9px;background:#192e3b;color:#e0edf5;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}.community-report-excerpt p{margin:5px 0 0}.community-comfort-settings>p{font-size:13px;color:#bcd1df}
@media(max-width:700px){.community-panel.community-layout-wide{max-width:calc(100vw - 16px);width:calc(100vw - 16px)}.community-panel.community-layout-full{inset:0;border-radius:0}.community-root .community-header{flex-wrap:wrap;min-height:92px;padding:12px 9px;gap:0}.community-header .community-heading{flex:1 1 130px}.community-header .community-icon-button{width:40px;height:44px;padding:9px}.community-header .community-width-toggle{order:2}.community-reading-tools{padding:7px 12px;gap:5px}.community-root .community-reading-tools button{min-height:36px}.community-reading-tools>span{flex:1 0 100%;font-size:12px}.community-reply-preview{padding:8px 10px}.community-comfort-label{font-size:14px}.community-root .community-comfort-actions button{flex:1 0 auto}.community-context-view .community-search-images img{max-width:100%}}
@media(max-width:400px){.community-panel .community-header .community-heading{flex-basis:105px}.community-header .community-heading h2{font-size:18px}.community-header .community-heading p{font-size:12px}.community-root .community-header .community-icon-button{width:38px;min-width:38px}.community-reading-tools{padding:6px 12px}.community-root .community-reading-tools button{font-size:12px;padding:5px 7px}}
@media(hover:none){.community-root .community-reading-tools button,.community-root .community-message-actions button,.community-root .community-context-link{min-height:44px}}

/* A deliberate resume action confirms its target without adding motion. */
.community-root .community-resume-target{outline:2px solid #b8efcf;outline-offset:3px;border-radius:12px}.community-root .community-recalled.community-resume-target{margin:12px 4px;padding:10px}

/* Touch keyboards have no Enter shortcut; keep the media tools on one clear row. */
@media(max-width:700px){.community-root .community-compose-hint{display:none}}

/* The shared-record date picker keeps its native behavior with legible dark options. */
.board[data-shared-view="true"] select[data-community="shared-view-date"]{color-scheme:dark;background-color:#112633;color:#edf6ff}
.board[data-shared-view="true"] select[data-community="shared-view-date"] option{background-color:#112633;color:#edf6ff}

/* The public-only assistant uses the existing chat surface; no external avatar. */
.community-root .community-ai-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:middle;min-height:20px;padding:1px 6px;border:1px solid #8ac9c6;border-radius:6px;background:#244e53;color:#d7ffff;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.3px}
.community-root .community-avatar-ai{font-size:15px;font-weight:700;color:#dcffff;background:#254d57;border-color:#8bc3cb}
.community-root .community-message-ai .community-bubble{background:#203b47;border-color:#648c98}
.community-root .community-ai-tool{width:48px;min-width:44px;min-height:44px;flex:none;padding:8px 5px;color:#c8f8ed;font-size:14px;font-weight:700;border:1px solid #547c77;background:#223f40}
.community-root .community-ai-tool:hover:not(:disabled){background:#315b54;border-color:#a2dac9}
.community-root .community-ai-disclosure{margin:0 0 9px;padding:9px 11px;border-left:2px solid #83c2b5;border-radius:7px;background:#142c35;color:#d4e8ed;line-height:1.5}
.community-root .community-ai-disclosure p{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 4px;font-size:13px}.community-root .community-ai-disclosure small{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#c2d7df}
.community-root .community-ai-disclosure button,.community-root .community-ai-request button{min-height:44px;padding:8px 11px;border:1px solid #71978b;border-radius:9px;background:#28483f;color:#e5fff0;font-size:13px}
.community-root .community-ai-request{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:8px;max-width:100%;color:#c8e6e3;font-size:13px;line-height:1.6}.community-root .community-ai-request small{flex-basis:100%;font-size:13px;color:#f3cfab;overflow-wrap:anywhere}
.community-root .community-ai-error{color:#ffd0ba!important;font-size:13px;overflow-wrap:anywhere}
.community-root .community-ai-settings{border-color:#547a79}.community-root .community-ai-settings h3{display:flex;align-items:center;gap:8px}.community-root .community-ai-settings>p{font-size:14px;line-height:1.75;color:#d0e3ec;overflow-wrap:anywhere}.community-root .community-ai-configured{font-size:13px;color:#b8d0d9}
.community-root .community-ai-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px;margin:18px 0}.community-root .community-ai-settings-grid label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#e3f2f6;font-size:14px;line-height:1.6}.community-root .community-ai-settings-grid input{display:block;width:100%;min-width:0;min-height:44px;border:1px solid #668292;border-radius:9px;background:#112633;color:#f0f8ff;padding:9px 11px;font-size:16px;line-height:1.5}.community-root .community-ai-settings-grid small{font-size:13px;color:#bed3df;line-height:1.55}
@media(max-width:700px){.community-root .community-compose-toolbar{flex-wrap:wrap;gap:2px}.community-root .community-ai-disclosure{padding:7px 9px}.community-root .community-ai-settings-grid{gap:14px 10px}.community-root .community-ai-request button{min-height:44px}}
@media(max-width:360px){.community-root .community-ai-settings-grid{grid-template-columns:minmax(0,1fr)}.community-root .community-ai-settings .community-setting-title{align-items:flex-start;flex-wrap:wrap}.community-root .community-ai-settings .community-setting-title>span{white-space:normal}}

/* Short narrow screens scroll the composer, never the fixed panel past its header. */
@media(max-width:700px) and (max-height:700px){
 .community-root .community-panel:not(.community-layout-full){top:8px}
 .community-root .community-header{flex:none;flex-wrap:nowrap;min-height:58px;padding:7px 6px;gap:0}
 .community-root .community-header .community-heading{flex:1 1 0;min-width:0}
 .community-root .community-header .community-heading h2{margin:0}
 .community-root .community-header .community-heading p,.community-root .community-room-note{display:none}
 .community-root .community-header .community-icon-button{flex:0 0 auto}
 .community-root .community-reading-tools{flex:0 1 auto;min-height:44px;max-height:96px;overflow-y:auto;padding:4px 8px;gap:3px}
 .community-root .community-reading-tools>span{display:none}
 .community-root .community-reading-tools button{min-height:44px}
 .community-root .community-timeline{min-height:0}
 .community-root .community-compose{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:calc(100% - 160px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:60px;padding-top:6px;padding-bottom:6px}
 .community-root .community-compose-toolbar{flex:none;margin-bottom:5px}
 .community-root .community-compose>.community-selected-mentions{flex:none;max-height:58px;overflow-y:auto;margin-bottom:6px}
 .community-root .community-compose>.community-reply-preview{flex:none;max-height:76px;overflow-y:auto}
 .community-root .community-compose>.community-upload-list{flex:none;max-height:88px}
 .community-root .community-compose>.community-ai-disclosure{flex:none;max-height:120px;overflow-y:auto}
 .community-root .community-compose>.community-composer{flex:none;min-height:52px;max-height:80px}
 .community-root .community-compose-footer{position:sticky;bottom:0;z-index:3;flex:none;min-height:50px;padding-top:6px;padding-bottom:2px;background:#1a2d3a}
 .community-root .community-panel>.community-toast,.community-root .community-panel>.community-alert{flex-shrink:1;max-height:64px;overflow-y:auto}
}

/* Image questions can combine a quote, attachments and the AI disclosure.
   Keep the send footer inside the panel on desktop as well as short phones. */
.community-root .community-compose.community-compose-ai{display:flex;flex-direction:column;flex:0 1 auto;min-height:0;max-height:calc(100% - 160px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:60px}
.community-root .community-compose-ai>*{flex-shrink:0}
.community-root .community-compose-ai>.community-ai-disclosure{max-height:120px;overflow-y:auto}
.community-root .community-compose-ai>.community-compose-footer{position:sticky;bottom:0;z-index:3;min-height:50px;background:#1a2d3a}

/* AI remains a normal mention. Options expand in document flow, never over Send. */
.community-root .community-compose-toolbar .community-ai-options-toggle{width:44px;min-width:44px;min-height:44px;padding:7px;gap:5px;font-size:20px;white-space:nowrap}
.community-root .community-ai-options-toggle[aria-expanded=true]{color:#e2fff4;background:#284b45;border-color:#83baaa}
.community-root .community-compose-ai .community-compose-hint{min-width:0;white-space:normal;overflow-wrap:anywhere}
.community-root .community-ai-options-menu{position:static;flex:none;min-width:0;margin:0 0 8px;padding:7px 10px;border:1px solid #44675f;border-radius:9px;background:#142c35;color:#d4e8ed;font-size:13px;line-height:1.5;overflow:visible;max-height:none}
.community-root .community-ai-options-state{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin:0}
.community-root .community-ai-options-state small{font-size:12px;color:#abc8c7;white-space:nowrap}
.community-root .community-ai-options-group{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;min-width:0}
.community-root .community-ai-options-group label{display:inline-flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;white-space:nowrap}
.community-root .community-ai-options-group input{width:18px;height:18px;margin:0;accent-color:#8ad6b2}
.community-root .community-ai-options-scope{flex:1 1 130px;min-width:0;overflow-wrap:anywhere;color:#b5ced4}
.community-root .community-ai-options-group button,.community-root .community-ai-compose-status button{min-width:44px;min-height:44px;padding:7px 9px;border:1px solid #71978b;border-radius:8px;background:#28483f;color:#e5fff0;font-size:13px}
.community-root .community-ai-compose-status{display:flex;align-items:center;gap:7px;min-width:0;margin:0 0 6px;color:#c2d7df;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.community-root .community-ai-compose-status>span{flex:1;min-width:0}
@media(max-width:400px){.community-root .community-ai-options-toggle{padding:7px 6px;gap:2px}.community-root .community-ai-options-scope{flex-basis:115px}}
