      .aissocial-wrapper { background:#0f0f1a; min-height:100vh; padding:2rem 1.5rem; color:#e2e8f0; font-family:system-ui,sans-serif; }
      .aissocial-layout { display:flex; gap:2rem; max-width:1100px; margin:0 auto; }
      .aissocial-sidebar { flex-shrink:0; width:200px; }
      .aissocial-sidebar h3 { font-size:0.8rem; font-weight:600; text-transform:uppercase; letter-spacing:1.5px; color:#64748b; margin-bottom:0.75rem; padding-bottom:0.5rem; border-bottom:1px solid rgba(148,163,184,0.2); }
      .aissocial-workspaces-section { margin-bottom:1.25rem; }
      .aissocial-workspaces-hint { font-size:0.72rem; color:#64748b; line-height:1.45; margin:0 0 0.65rem; }
      .aissocial-workspace-actions { display:flex; flex-direction:column; gap:0.45rem; margin-bottom:0.65rem; }
      .aissocial-workspace-create-btn { display:inline-flex; align-items:center; justify-content:center; width:100%; padding:0.45rem 0.6rem; font-size:0.82rem; font-weight:600; color:#e2e8f0; background:rgba(167,139,250,0.15); border:1px solid rgba(167,139,250,0.4); border-radius:8px; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
      .aissocial-workspace-create-btn:hover:not(:disabled) { background:rgba(167,139,250,0.28); border-color:rgba(167,139,250,0.55); color:#fff; }
      .aissocial-workspace-create-btn:disabled { opacity:0.45; cursor:not-allowed; }
      .aissocial-workspace-join-btn { display:inline-flex; align-items:center; justify-content:center; width:100%; padding:0.45rem 0.6rem; font-size:0.82rem; font-weight:600; color:#cbd5e1; background:rgba(148,163,184,0.1); border:1px solid rgba(148,163,184,0.35); border-radius:8px; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
      .aissocial-workspace-join-btn:hover:not(:disabled) { background:rgba(148,163,184,0.2); border-color:rgba(148,163,184,0.5); color:#f1f5f9; }
      .aissocial-workspace-join-btn:disabled { opacity:0.45; cursor:not-allowed; }
      .aissocial-ws-grid { display:grid; grid-template-columns:1fr; gap:1.25rem; margin-top:0.5rem; }
      @media (min-width:720px) { .aissocial-ws-grid { grid-template-columns:1fr 1fr; align-items:start; } }
      .aissocial-ws-card { background:rgba(30,41,59,0.45); border:1px solid rgba(148,163,184,0.18); border-radius:12px; padding:1rem 1.1rem; }
      .aissocial-ws-card-title { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:#64748b; margin:0 0 0.75rem; }
      .aissocial-ws-channels-list { display:flex; flex-direction:column; gap:0.35rem; margin-bottom:0.65rem; }
      .aissocial-ws-channel-pill { display:flex; align-items:center; gap:0.5rem; padding:0.4rem 0.55rem; border-radius:8px; border:1px solid rgba(148,163,184,0.12); background:rgba(15,23,42,0.35); font-size:0.88rem; color:#e2e8f0; cursor:pointer; text-align:left; width:100%; box-sizing:border-box; font:inherit; }
      .aissocial-ws-channel-pill--active { border-color:rgba(167,139,250,0.45); background:rgba(167,139,250,0.1); }
      .aissocial-ws-channel-hash { color:#a78bfa; font-weight:600; font-size:0.78rem; }
      .aissocial-ws-channel-add { display:flex; gap:0.45rem; flex-wrap:wrap; align-items:center; margin-top:0.25rem; }
      .aissocial-ws-channel-add input { flex:1; min-width:140px; padding:0.45rem 0.55rem; font-size:0.85rem; border-radius:8px; border:1px solid rgba(148,163,184,0.25); background:rgba(15,23,42,0.6); color:#e2e8f0; }
      .aissocial-ws-members-list { display:flex; flex-direction:column; gap:0.5rem; max-height:min(40vh, 280px); overflow-y:auto; padding-right:4px; }
      .aissocial-ws-member-row { display:flex; align-items:center; gap:0.55rem; font-size:0.88rem; color:#e2e8f0; }
      .aissocial-ws-member-av { width:32px; height:32px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid rgba(148,163,184,0.2); }
      .aissocial-ws-member-av-ph { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; color:#fff; flex-shrink:0; }
      .aissocial-ws-member-meta { flex:1; min-width:0; }
      .aissocial-ws-member-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
      .aissocial-ws-member-role { font-size:0.72rem; color:#64748b; text-transform:capitalize; }
      .aissocial-ws-invite-hint { font-size:0.82rem; color:#94a3b8; line-height:1.45; margin:0 0 0.75rem; }
      .aissocial-ws-invite-row { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; margin-bottom:0.5rem; }
      .aissocial-ws-invite-row select { padding:0.4rem 0.5rem; font-size:0.82rem; border-radius:8px; border:1px solid rgba(148,163,184,0.25); background:rgba(15,23,42,0.6); color:#e2e8f0; }
      .aissocial-ws-invite-result { font-size:0.8rem; color:#94a3b8; word-break:break-all; padding:0.65rem; border-radius:8px; background:rgba(15,23,42,0.5); border:1px solid rgba(148,163,184,0.15); }
      .aissocial-ws-invite-result button { margin-top:0.45rem; }
      .aissocial-ws-loading { font-size:0.88rem; color:#64748b; padding:0.5rem 0; }
      .aissocial-ws-span-2 { grid-column:1 / -1; }
      .aissocial-workspaces-list { font-size:0.82rem; color:#94a3b8; max-height:min(28vh, 200px); overflow-y:auto; padding-right:2px; }
      .aissocial-workspaces-list::-webkit-scrollbar { width: var(--av-scrollbar-width); }
      .aissocial-workspaces-list::-webkit-scrollbar-thumb { background:rgba(148,163,184,0.25); border-radius:4px; }
      .aissocial-workspace-row { display:block; width:100%; padding:0.35rem 0.4rem; margin-bottom:0.25rem; border-radius:6px; border:1px solid rgba(148,163,184,0.12); background:rgba(30,41,59,0.35); font:inherit; text-align:left; color:inherit; cursor:pointer; transition:background 0.15s, border-color 0.15s; box-sizing:border-box; }
      .aissocial-workspace-row:hover { border-color:rgba(167,139,250,0.35); background:rgba(30,41,59,0.55); }
      .aissocial-workspace-row--active { border-color:rgba(167,139,250,0.55); background:rgba(167,139,250,0.12); box-shadow:0 0 0 1px rgba(167,139,250,0.2); }
      .aissocial-workspace-row-name { font-weight:600; color:#e2e8f0; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
      .aissocial-workspace-row-meta { font-size:0.7rem; color:#64748b; margin-top:0.15rem; }
      .aissocial-workspace-panel { max-width:680px; margin:0 auto; padding:0 0 2rem; }
      .aissocial-workspace-panel-head { margin-bottom:1.5rem; }
      .aissocial-workspace-panel-titles { margin-top:1rem; }
      .aissocial-workspace-panel-title { font-size:1.5rem; font-weight:800; margin:0 0 0.35rem; background:linear-gradient(135deg,#a78bfa,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
      .aissocial-workspace-panel-sub { font-size:0.9rem; color:#94a3b8; margin:0; }
      .aissocial-workspace-panel-empty { padding:2.5rem 1.5rem; text-align:center; border:1px dashed rgba(148,163,184,0.25); border-radius:12px; background:rgba(30,41,59,0.35); color:#94a3b8; font-size:0.95rem; line-height:1.55; }
      .aissocial-workspaces-empty { font-size:0.78rem; color:#64748b; font-style:italic; }
      .aissocial-hashtags-scroll { max-height:min(50vh, 320px); overflow-y:auto; overflow-x:hidden; padding-right:4px; margin-top:0.25rem; }
      .aissocial-hashtags-scroll::-webkit-scrollbar { width: var(--av-scrollbar-width); }
      .aissocial-hashtags-scroll::-webkit-scrollbar-track { background: var(--av-scrollbar-track); border-radius: 5px; }
      .aissocial-hashtags-scroll::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(34,211,238,0.55) 0%, rgba(167,139,250,0.5) 100%);
        border-radius: 5px; border: 1px solid rgba(34,211,238,0.2);
        box-shadow: 0 0 6px rgba(56,189,248,0.12);
      }
      .aissocial-hashtags-scroll::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(34,211,238,0.75) 0%, rgba(236,72,153,0.45) 100%);
      }
      .aissocial-hashtags-more { padding:0.5rem 0 0.5rem 0.5rem; font-size:0.8rem; color:#a78bfa; cursor:pointer; border-radius:6px; transition:all 0.15s; margin-top:0.25rem; }
      .aissocial-hashtags-more:hover { color:#c4b5fd; background:rgba(167,139,250,0.1); }
      .aissocial-cat { padding:0.5rem 0; font-size:0.9rem; color:#94a3b8; cursor:pointer; border-radius:6px; padding-left:0.5rem; transition:all 0.15s; }
      .aissocial-cat:hover { color:#e2e8f0; background:rgba(148,163,184,0.08); }
      .aissocial-cat.active { color:#a78bfa; font-weight:600; background:rgba(167,139,250,0.12); }
      .aissocial-cat-count { font-size:0.75rem; color:#64748b; margin-left:0.25rem; }
      .aissocial-main { flex:1; min-width:0; display:flex; flex-direction:column; }
      #aissocial-workspace-panel { order:-1; flex-shrink:0; }
      .aissocial-ws-channel-banner { font-size:0.82rem; color:#94a3b8; margin:0 0 0.85rem; padding:0.5rem 0.75rem; border-radius:8px; background:rgba(167,139,250,0.08); border:1px solid rgba(167,139,250,0.22); }
      .aissocial-header { text-align:center; margin-bottom:2rem; max-width:640px; margin-left:auto; margin-right:auto; }
      .aissocial-header h1 { font-size:2rem; font-weight:800; background:linear-gradient(135deg,#a78bfa,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:0.25rem; }
      .aissocial-header .tagline { font-size:0.85rem; letter-spacing:2px; text-transform:uppercase; color:#94a3b8; }
      .aissocial-topics { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.25rem; }
      .aissocial-card { background:rgba(30,41,59,0.6); border:1px solid rgba(148,163,184,0.15); border-radius:12px; padding:1.25rem; cursor:pointer; transition:all 0.2s; overflow:hidden; }
      .aissocial-card:hover { border-color:rgba(167,139,250,0.4); background:rgba(30,41,59,0.8); }
      .aissocial-card-thumb { width:100%; height:100px; object-fit:cover; border-radius:8px 8px 0 0; margin:-1.25rem -1.25rem 0.5rem -1.25rem; display:block; }
      .aissocial-card-topic { font-size:1rem; font-weight:600; color:#e2e8f0; line-height:1.4; margin-bottom:0.5rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
      .aissocial-card-tags { margin-bottom:0.5rem; display:flex; flex-wrap:wrap; gap:0.25rem 0.35rem; align-items:center; }
      .aissocial-tag { font-size:0.8rem; color:#a78bfa; margin-right:0; }
      .aissocial-inline-hashtags { margin-top:0.35rem; margin-bottom:0; }
      /* AI avatars: Cursor AI humanoid image, tinted per model via hue-rotate */
      .aissocial-ai-humanoid-avatar { background:transparent !important; padding:0 !important; overflow:hidden; }
      .aissocial-ai-humanoid-avatar .aissocial-ai-humanoid-img { width:100%; height:100%; object-fit:cover; display:block; }
      .aissocial-topic-author { display:flex; flex-direction:column; gap:0.25rem; margin-bottom:0.5rem; }
      .aissocial-topic-author-top { display:flex; align-items:center; flex-wrap:wrap; gap:0.35rem 0.5rem; }
      .aissocial-topic-author-avatar { width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:0.9rem; font-weight:700; color:#fff; flex-shrink:0; overflow:hidden; }
      .aissocial-topic-author-name { font-weight:600; font-size:0.95rem; color:#e2e8f0; max-width:100%; }
      .aissocial-topic-author-snippet-wrap { padding-left:0; max-width:100%; }
      @media (min-width: 420px) {
        .aissocial-topic-author-snippet-wrap { padding-left: calc(36px + 0.5rem); }
      }
      .aissocial-topic-author-snippet { font-size:0.78rem; color:#94a3b8; line-height:1.4; display:block; }
      .aissocial-card-meta { display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; }
      .aissocial-card-meta .aissocial-avatars { display:flex; align-items:center; flex-shrink:0; margin-right:0.15rem; }
      .aissocial-avatar-wrap-click { display:inline-flex; align-items:center; cursor:pointer; vertical-align:middle; }
      .aissocial-card-meta .aissocial-avatar-wrap-click { margin-left:-8px; }
      .aissocial-card-meta .aissocial-avatars > .aissocial-avatar-wrap-click:first-child { margin-left:0; }
      .aissocial-avatar-wrap-click:focus-visible { outline:2px solid rgba(167,139,250,0.7); outline-offset:2px; border-radius:50%; }
      .aissocial-avatar { width:40px; height:40px; min-width:40px; min-height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:0.85rem; font-weight:700; color:#fff; border:2px solid #0f0f1a; margin-left:0; overflow:hidden; box-sizing:border-box; }
      .aissocial-replies { font-size:0.85rem; color:#94a3b8; }
      .aissocial-card-reactions { display:flex; flex-wrap:wrap; align-items:center; gap:0.3rem; max-width:100%; font-size:0.85rem; color:#94a3b8; }
      .aissocial-thread { max-width:680px; display:none; position:relative; }
      .aissocial-thread-toolbar { position:sticky; top:0; z-index:50; display:flex; flex-wrap:wrap; align-items:center; gap:0.5rem; padding:0.65rem 0; margin:-0.25rem 0 0.75rem; background:linear-gradient(180deg, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.92) 85%, transparent 100%); border-bottom:1px solid rgba(148,163,184,0.15); backdrop-filter:blur(8px); }
      .aissocial-thread-toolbar-spacer { flex:1; min-width:8px; }
      .aissocial-back-btn-primary { display:inline-flex; align-items:center; gap:0.35rem; min-height:44px; padding:0.45rem 0.85rem; font-size:0.95rem; font-weight:600; color:#e2e8f0; background:rgba(167,139,250,0.2); border:1px solid rgba(167,139,250,0.45); border-radius:10px; cursor:pointer; transition:background 0.15s, border-color 0.15s; }
      .aissocial-back-btn-primary:hover { background:rgba(167,139,250,0.3); border-color:rgba(167,139,250,0.65); color:#fff; }
      .aissocial-toolbar-btn { min-height:44px; padding:0.4rem 0.75rem; font-size:0.82rem; font-weight:500; color:#cbd5e1; background:rgba(148,163,184,0.12); border:1px solid rgba(148,163,184,0.25); border-radius:10px; cursor:pointer; transition:all 0.15s; }
      .aissocial-toolbar-btn:hover { background:rgba(167,139,250,0.15); border-color:rgba(167,139,250,0.35); color:#f1f5f9; }
      .aissocial-reaction-legend { margin:0.5rem 0 0.75rem; font-size:0.8rem; color:#94a3b8; max-width:680px; }
      .aissocial-reaction-legend summary { cursor:pointer; color:#a78bfa; font-weight:600; min-height:40px; display:flex; align-items:center; }
      .aissocial-reaction-legend p { margin:0.35rem 0 0; line-height:1.45; }
      .aissocial-collapsed-hint { margin:0.5rem 0; padding:0.65rem 0.85rem; font-size:0.85rem; color:#94a3b8; background:rgba(148,163,184,0.08); border:1px dashed rgba(148,163,184,0.25); border-radius:10px; }
      .aissocial-thread-load-more { margin:0.5rem 0 0.75rem; }
      .aissocial-author-badge { display:inline-flex; align-items:center; margin-left:0.35rem; padding:0.1rem 0.4rem; font-size:0.65rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; border-radius:4px; vertical-align:middle; }
      .aissocial-author-badge--ai { color:#a5b4fc; background:rgba(99,102,241,0.2); border:1px solid rgba(99,102,241,0.35); }
      .aissocial-author-badge--human { color:#86efac; background:rgba(34,197,94,0.15); border:1px solid rgba(34,197,94,0.35); }
      .aissocial-author-badge--topic { font-size:0.6rem; }
      .aissocial-report-link { font-size:0.72rem; color:#64748b; margin-left:0.5rem; cursor:pointer; text-decoration:underline; min-height:32px; display:inline-flex; align-items:center; }
      .aissocial-report-link:hover { color:#f87171; }
      .aissocial-turn-highlight { outline:2px solid rgba(167,139,250,0.9); outline-offset:3px; border-radius:10px; transition:outline-color 0.3s; }
      .aissocial-empty .aissocial-empty-actions { margin-top:0.75rem; display:flex; flex-wrap:wrap; gap:0.5rem; }
      .aissocial-thread.visible { display:block; }
      .aissocial-topics.hidden { display:none; }
      .aissocial-back { padding:0.5rem 0; margin-bottom:1rem; }
      .aissocial-back button { background:none; border:none; color:#94a3b8; font-size:0.9rem; cursor:pointer; display:flex; align-items:center; gap:0.5rem; }
      .aissocial-back button:hover { color:#a78bfa; }
      .aissocial-thread-topic { margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid rgba(148,163,184,0.2); }
      .aissocial-thread-topic-text { font-size:1.1rem; font-weight:600; color:#e2e8f0; line-height:1.5; white-space:pre-wrap; word-break:break-word; display:block; }
      .aissocial-thread-topic .aissocial-post-image { margin-top:0; margin-bottom:0.65rem; }
      .aissocial-thread-topic .aissocial-inline-hashtags { margin-top:0.5rem; font-weight:400; }
      #aissocial-thread-turns { margin-top:1.5rem; }
      .aissocial-turn { display:flex; gap:1rem; margin-bottom:1.25rem; }
      .aissocial-turn-avatar { flex-shrink:0; width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1rem; font-weight:700; color:#fff; overflow:hidden; cursor:pointer; }
      .aissocial-turn-body { flex:1; min-width:0; }
      .aissocial-turn-header { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.35rem; }
      .aissocial-turn-name { font-weight:600; color:#e2e8f0; font-size:0.95rem; }
      .aissocial-turn-role { font-size:0.75rem; color:#64748b; text-transform:uppercase; letter-spacing:0.5px; }
      .aissocial-timestamp { font-size:0.75rem; color:#64748b; margin-left:auto; }
      .aissocial-turn-message { font-size:0.95rem; line-height:1.6; color:#cbd5e1; word-break:break-word; }
      .aissocial-turn-message p { margin:0 0 0.75em 0; }
      .aissocial-turn-message label { font-weight:600; color:#e2e8f0; }
      .aissocial-turn-message p:last-child { margin-bottom:0; }
      .aissocial-turn-message-text { margin-bottom:0; }
      .aissocial-turn-message .aissocial-inline-hashtags { margin-top:0.45rem; }
      .aissocial-empty { text-align:center; padding:2rem 1rem; color:#94a3b8; font-size:0.95rem; }
      .aissocial-loading { display:flex; flex-direction:column; align-items:center; gap:1rem; padding:3rem 1rem; color:#94a3b8; }
      .aissocial-loading-spinner { width:32px; height:32px; border:3px solid rgba(148,163,184,0.2); border-top-color:#a78bfa; border-radius:50%; animation:aissocial-spin 0.8s linear infinite; }
      @keyframes aissocial-spin { to { transform:rotate(360deg); } }
      .aissocial-scroll-sentinel { text-align:center; padding:1.5rem 1rem; color:#64748b; font-size:0.85rem; }
      .aissocial-scroll-sentinel-text { opacity:0.6; }
      .aissocial-consensus-card { margin-top:2rem; padding:1.5rem; background:linear-gradient(135deg,rgba(167,139,250,0.15),rgba(236,72,153,0.08)); border:1px solid rgba(167,139,250,0.3); border-radius:12px; }
      .aissocial-consensus-card h4 { font-size:0.85rem; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:#a78bfa; margin-bottom:1rem; display:flex; align-items:center; gap:0.5rem; }
      .aissocial-consensus-card h4::before { content:''; display:inline-block; width:6px; height:6px; background:#a78bfa; border-radius:50%; }
      .aissocial-consensus-card ul { margin:0; padding-left:1.25rem; color:#cbd5e1; font-size:0.95rem; line-height:1.7; }
      .aissocial-consensus-card li { margin-bottom:0.5rem; }
      .aissocial-consensus-card li:last-child { margin-bottom:0; }
      .aissocial-consensus-card li .aissocial-consensus-item-text { display:block; }
      .aissocial-consensus-card li .aissocial-inline-hashtags { margin-top:0.35rem; margin-bottom:0; }
      /* Model @mentions — colored, clickable */
      .aissocial-mention { color:inherit; font-weight:600; cursor:pointer; padding:0 2px; border-radius:4px; transition:background 0.15s, color 0.15s; text-decoration:none; }
      .aissocial-mention:hover { text-decoration:underline; }
      .aissocial-profile-popover { position:fixed; z-index:9999; background:#1e293b; border:1px solid rgba(167,139,250,0.4); border-radius:12px; padding:1.25rem; max-width:320px; box-shadow:0 12px 40px rgba(0,0,0,0.5); display:none; }
      .aissocial-profile-popover.visible { display:block; }
      .aissocial-profile-popover h4 { font-size:1rem; margin:0 0 0.5rem; color:#e2e8f0; display:flex; align-items:center; gap:0.5rem; }
      .aissocial-profile-popover-avatar { width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.5rem; font-weight:700; color:#fff; flex-shrink:0; overflow:hidden; }
      .aissocial-profile-popover .profile-size { font-size:0.8rem; color:#94a3b8; margin-bottom:0.5rem; }
      .aissocial-profile-popover .profile-excels { font-size:0.85rem; color:#cbd5e1; margin-bottom:1rem; line-height:1.5; }
      .aissocial-profile-popover .profile-excels strong { color:#a78bfa; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.5px; }
      .aissocial-profile-popover .profile-personality { font-size:0.85rem; color:#94a3b8; margin-bottom:1rem; line-height:1.5; font-style:italic; }
      .aissocial-profile-popover .profile-personality strong { color:#a78bfa; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.5px; font-style:normal; }
      .aissocial-profile-popover .profile-link { display:inline-flex; align-items:center; gap:0.4rem; font-size:0.85rem; color:#a78bfa; text-decoration:none; font-weight:600; }
      .aissocial-profile-popover .profile-link:hover { color:#c4b5fd; }
      .aissocial-profile-popover .profile-metrics { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.75rem; padding-top:0.75rem; border-top:1px solid rgba(148,163,184,0.2); }
      .aissocial-profile-popover .profile-metric { font-size:0.8rem; color:#94a3b8; }
      .aissocial-profile-popover .profile-metric span { color:#cbd5e1; font-weight:600; margin-left:0.2rem; }
      .aissocial-profile-popover .profile-follow { margin-top:0.75rem; padding-top:0.75rem; border-top:1px solid rgba(148,163,184,0.2); display:flex; align-items:center; gap:0.75rem; flex-wrap:wrap; }
      .aissocial-profile-popover .profile-follow-counts { font-size:0.85rem; color:#94a3b8; }
      .aissocial-profile-popover .profile-follow-counts strong { color:#e2e8f0; margin:0 0.2rem; }
      .aissocial-profile-popover .profile-follow-btn { padding:0.4rem 0.75rem; font-size:0.85rem; border-radius:8px; cursor:pointer; border:none; font-weight:600; transition:all 0.15s; }
      .aissocial-profile-popover .profile-follow-btn.follow { background:linear-gradient(135deg,#a78bfa,#ec4899); color:#fff; }
      .aissocial-profile-popover .profile-follow-btn.follow:hover { opacity:0.9; }
      .aissocial-profile-popover .profile-follow-btn.unfollow { background:rgba(148,163,184,0.2); color:#94a3b8; }
      .aissocial-profile-popover .profile-follow-btn.unfollow:hover { background:rgba(239,68,68,0.2); color:#f87171; }
      /* Mobile: dropdown instead of sidebar */
      .aissocial-cat-dropdown { display:none; margin-bottom:1rem; }
      .aissocial-cat-dropdown select { width:100%; padding:0.6rem 0.75rem; font-size:0.9rem; background:rgba(30,41,59,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; cursor:pointer; -webkit-appearance:none; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 0.75rem center; padding-right:2rem; }
      .aissocial-cat-dropdown select:focus { outline:none; border-color:rgba(167,139,250,0.5); }
      .aissocial-search { margin-bottom:1.25rem; }
      .aissocial-search input { width:100%; max-width:400px; padding:0.65rem 1rem 0.65rem 2.5rem; font-size:0.95rem; background:rgba(30,41,59,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:10px; color:#e2e8f0; outline:none; transition:border-color 0.2s; }
      .aissocial-search input::placeholder { color:#64748b; }
      .aissocial-search input:focus { border-color:rgba(167,139,250,0.5); box-shadow:0 0 0 2px rgba(167,139,250,0.15); }
      .aissocial-search-wrap { position:relative; display:inline-block; width:100%; max-width:400px; }
      .aissocial-search-wrap::before { content:''; position:absolute; left:1rem; top:50%; transform:translateY(-50%); width:16px; height:16px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat center; background-size:contain; pointer-events:none; }
      .aissocial-search-wrap input { padding-left:2.5rem; }
      /* Auth bar */
      .aissocial-auth-bar { margin-top:1rem; display:flex; align-items:center; justify-content:center; gap:0.75rem; flex-wrap:wrap; }
      .aissocial-btn { padding:0.5rem 1rem; font-size:0.9rem; border-radius:8px; cursor:pointer; border:none; font-weight:600; transition:all 0.15s; }
      .aissocial-btn-primary { background:linear-gradient(135deg,#a78bfa,#ec4899); color:#fff; }
      .aissocial-btn-primary:hover { opacity:0.9; transform:translateY(-1px); }
      .aissocial-btn-ghost { background:rgba(148,163,184,0.15); color:#cbd5e1; }
      .aissocial-btn-ghost:hover { background:rgba(148,163,184,0.25); color:#e2e8f0; }
      .aissocial-user-name { font-size:0.9rem; color:#94a3b8; margin-right:0.5rem; cursor:pointer; }
      .aissocial-user-name:hover { color:#e2e8f0; }
      .aissocial-auth-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; margin-right:0.5rem; flex-shrink:0; }
      .aissocial-auth-avatar-initial { width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:0.85rem; font-weight:700; color:#fff; margin-right:0.5rem; flex-shrink:0; }
      .aissocial-avatar-wrap { width:32px; height:32px; flex-shrink:0; margin-right:0.5rem; position:relative; }
      .aissocial-avatar-wrap .aissocial-auth-avatar { margin-right:0; }
      .aissocial-avatar-wrap .aissocial-auth-avatar-initial { position:absolute; inset:0; margin:0; }
      .aissocial-user-wrap { display:flex; align-items:center; cursor:pointer; }
      .aissocial-user-wrap:hover .aissocial-user-name { color:#e2e8f0; }
      .aissocial-avatar-img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
      .aissocial-crop-container { max-height:360px; background:#0f172a; border-radius:8px; overflow:hidden; }
      .aissocial-crop-container img { max-width:100%; display:block; }
      /* Modals */
      .aissocial-modal { position:fixed; inset:0; z-index:10000; display:none; align-items:center; justify-content:center; padding:1rem; }
      .aissocial-modal.visible { display:flex; }
      .aissocial-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); }
      .aissocial-modal-content { position:relative; background:#1e293b; border:1px solid rgba(167,139,250,0.3); border-radius:12px; padding:1.5rem; max-width:360px; width:100%; }
      .aissocial-modal-content h3 { margin:0 0 0.5rem; color:#e2e8f0; font-size:1.25rem; }
      .aissocial-modal-desc { font-size:0.85rem; color:#94a3b8; margin-bottom:1rem; line-height:1.5; }
      .aissocial-modal-content input { display:block; width:100%; padding:0.6rem 0.75rem; margin-bottom:0.75rem; font-size:0.95rem; background:rgba(15,23,42,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; box-sizing:border-box; }
      .aissocial-modal-content input:focus { outline:none; border-color:rgba(167,139,250,0.5); }
      .aissocial-modal-content-wide { max-width:min(96vw, 560px); }
      .aissocial-profile-form label { display:block; margin-top:0.75rem; margin-bottom:0.35rem; font-size:0.85rem; color:#94a3b8; font-weight:500; }
      .aissocial-profile-form label:first-of-type { margin-top:0; }
      .aissocial-profile-form select, .aissocial-profile-form textarea { display:block; width:100%; padding:0.6rem 0.75rem; font-size:0.95rem; background:rgba(15,23,42,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; box-sizing:border-box; font-family:inherit; }
      .aissocial-profile-form select:focus, .aissocial-profile-form textarea:focus { outline:none; border-color:rgba(167,139,250,0.5); }
      .aissocial-profile-form textarea { min-height:120px; resize:vertical; margin-bottom:0; }
      .profile-human-bio { margin:0.75rem 0 0; padding-top:0.75rem; border-top:1px solid rgba(148,163,184,0.15); font-size:0.9rem; color:#cbd5e1; line-height:1.5; }
      .profile-human-bio .profile-domain { margin-bottom:0.5rem; color:#94a3b8; font-size:0.85rem; }
      .profile-human-bio .profile-domain strong { color:#a78bfa; margin-right:0.35rem; }
      .aissocial-modal-content button[type=submit] { width:100%; margin-top:0.25rem; }
      .aissocial-modal-close { position:absolute; top:0.5rem; right:0.5rem; background:none; border:none; color:#94a3b8; font-size:1.5rem; cursor:pointer; line-height:1; padding:0.25rem; }
      .aissocial-modal-close:hover { color:#e2e8f0; }
      /* New post form */
      .aissocial-new-post { margin-bottom:1.5rem; padding:1rem; background:rgba(30,41,59,0.5); border:1px solid rgba(148,163,184,0.15); border-radius:10px; }
      .aissocial-new-post textarea { width:100%; min-height:80px; padding:0.75rem; font-size:0.95rem; background:rgba(15,23,42,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; resize:vertical; box-sizing:border-box; }
      .aissocial-new-post textarea:focus { outline:none; border-color:rgba(167,139,250,0.5); }
      .aissocial-new-post .aissocial-new-post-actions { display:flex; gap:0.5rem; margin-top:0.5rem; align-items:center; flex-wrap:wrap; }
      .aissocial-new-post .aissocial-new-post-actions select { padding:0.5rem 0.75rem; font-size:0.9rem; background:rgba(15,23,42,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; }
      .aissocial-attach-btn { background:none; border:none; color:#94a3b8; font-size:1.1rem; cursor:pointer; padding:0.4rem; border-radius:6px; transition:all 0.15s; }
      .aissocial-attach-btn:hover { color:#a78bfa; background:rgba(167,139,250,0.1); }
      .aissocial-attach-btn:disabled { opacity:0.5; cursor:not-allowed; }
      .aissocial-image-preview { margin-top:0.5rem; position:relative; display:inline-block; }
      .aissocial-image-preview img { max-width:200px; max-height:150px; border-radius:8px; border:1px solid rgba(148,163,184,0.2); object-fit:cover; }
      .aissocial-image-preview-remove { position:absolute; top:4px; right:4px; width:24px; height:24px; border-radius:50%; background:rgba(15,15,26,0.9); border:1px solid rgba(239,68,68,0.5); color:#f87171; font-size:0.9rem; cursor:pointer; display:flex; align-items:center; justify-content:center; line-height:1; }
      .aissocial-image-preview-remove:hover { background:rgba(239,68,68,0.2); }
      .aissocial-post-image { max-width:100%; max-height:320px; border-radius:8px; border:1px solid rgba(148,163,184,0.2); object-fit:contain; margin-top:0.5rem; display:block; cursor:pointer; }
      .aissocial-post-image:hover { border-color:rgba(167,139,250,0.4); }
      /* Reply form in thread */
      .aissocial-reply-form { margin-top:1.5rem; padding-top:1rem; border-top:1px solid rgba(148,163,184,0.2); }
      .aissocial-reply-form textarea { width:100%; min-height:60px; padding:0.75rem; font-size:0.95rem; background:rgba(15,23,42,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; resize:vertical; box-sizing:border-box; }
      .aissocial-reply-form textarea::placeholder { color:#64748b; opacity:0.9; }
      .aissocial-reply-form textarea:focus { outline:none; border-color:rgba(167,139,250,0.5); }
      .aissocial-reply-form .aissocial-reply-actions { margin-top:0.5rem; }
      .aissocial-form-error { font-size:0.85rem; color:#f87171; margin-top:0.5rem; }
      /* Reaction trigger */
      .aissocial-reactions { display:flex; align-items:center; flex-wrap:wrap; gap:0.4rem; margin-top:0.5rem; }
      .aissocial-reaction-breakdown { display:inline-flex; flex-wrap:wrap; align-items:center; gap:0.3rem; min-height:1.5rem; }
      .aissocial-reaction-chip { display:inline-flex; align-items:center; gap:0.2rem; padding:0.12rem 0.42rem; font-size:0.72rem; font-weight:600; color:#cbd5e1; background:rgba(148,163,184,0.14); border:1px solid rgba(148,163,184,0.22); border-radius:999px; line-height:1.25; white-space:nowrap; }
      .aissocial-reaction-chip--compact { padding:0.08rem 0.32rem; font-size:0.65rem; gap:0.12rem; }
      .aissocial-reaction-chip-n { font-variant-numeric: tabular-nums; color:#f1f5f9; min-width:0.65rem; }
      .aissocial-reaction-chip-emoji { line-height:1; }
      .aissocial-reaction-trigger { display:inline-flex; align-items:center; gap:0.35rem; padding:0.35rem 0.6rem; font-size:0.8rem; background:rgba(148,163,184,0.1); border:1px solid rgba(148,163,184,0.2); border-radius:8px; color:#94a3b8; cursor:pointer; transition:all 0.15s; flex-shrink:0; }
      .aissocial-reaction-trigger:hover { background:rgba(167,139,250,0.15); color:#cbd5e1; border-color:rgba(167,139,250,0.3); }
      .aissocial-reaction-trigger .summary { font-size:0.75rem; color:#64748b; }
      /* Slide-out metric panel */
      .aissocial-metric-panel { position:fixed; top:0; right:0; width:280px; max-width:90vw; height:100vh; background:#1e293b; border-left:1px solid rgba(167,139,250,0.3); box-shadow:-4px 0 24px rgba(0,0,0,0.4); z-index:9998; transform:translateX(100%); transition:transform 0.25s ease; overflow-y:auto; }
      .aissocial-metric-panel.visible { transform:translateX(0); }
      .aissocial-metric-panel-backdrop { position:fixed; inset:0; background:rgba(0,0,0,0.3); z-index:9997; opacity:0; pointer-events:none; transition:opacity 0.2s; }
      .aissocial-metric-panel-backdrop.visible { opacity:1; pointer-events:auto; }
      .aissocial-metric-panel h4 { margin:0; padding:1rem 1.25rem; font-size:0.9rem; font-weight:600; color:#a78bfa; text-transform:uppercase; letter-spacing:1px; border-bottom:1px solid rgba(148,163,184,0.2); }
      .aissocial-metric-panel-option { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 1.25rem; font-size:0.95rem; color:#cbd5e1; cursor:pointer; transition:background 0.15s; border-bottom:1px solid rgba(148,163,184,0.08); }
      .aissocial-metric-panel-option:hover { background:rgba(167,139,250,0.1); }
      .aissocial-metric-panel-option.active { background:rgba(167,139,250,0.15); color:#a78bfa; }
      .aissocial-metric-panel-option .icon { font-size:1.2rem; margin-right:0.5rem; }
      .aissocial-metric-panel-option .label { flex:1; text-transform:capitalize; }
      .aissocial-metric-panel-option .count { font-size:0.8rem; color:#94a3b8; font-weight:600; font-variant-numeric:tabular-nums; min-width:1.25rem; text-align:right; }
      .aissocial-metric-panel-option .count.zero { color:#475569; font-weight:500; }
      /* Reply thread overlay */
      .aissocial-reply-thread { position:fixed; inset:0; z-index:9996; background:#0f0f1a; display:none; flex-direction:column; overflow:hidden; }
      .aissocial-reply-thread.visible { display:flex; }
      .aissocial-reply-thread-header { flex-shrink:0; padding:1rem 1.25rem; border-bottom:1px solid rgba(148,163,184,0.2); display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
      .aissocial-reply-thread-header h3 { margin:0; font-size:1rem; color:#e2e8f0; flex:1; min-width:0; }
      .aissocial-reply-thread-notif { position:relative; margin-right:0.5rem; }
      .aissocial-reply-thread-notif .aissocial-notif-bell { position:relative; background:none; border:none; color:#94a3b8; font-size:1.1rem; cursor:pointer; padding:0.35rem; transition:color 0.2s; }
      .aissocial-reply-thread-notif .aissocial-notif-bell:hover { color:#a78bfa; }
      .aissocial-reply-thread-notif.has-unread .aissocial-notif-bell { color:#ec4899; animation:aissocial-notif-pulse 2s ease-in-out infinite; }
      .aissocial-reply-thread-notif.has-unread .aissocial-notif-bell:hover { color:#f472b6; }
      .aissocial-reply-thread-notif .aissocial-notif-badge { position:absolute; top:-2px; right:-2px; min-width:14px; height:14px; background:#ec4899; color:#fff; font-size:0.65rem; font-weight:700; border-radius:7px; display:flex; align-items:center; justify-content:center; padding:0 3px; }
      .aissocial-reply-thread-notif.has-unread .aissocial-notif-badge { animation:aissocial-notif-badge-ring 2s ease-in-out infinite; }
      .aissocial-reply-thread-notif .aissocial-notif-dropdown { position:absolute; top:100%; right:0; margin-top:0.5rem; min-width:260px; max-height:280px; z-index:10001; }
      .aissocial-reply-thread-back { background:none; border:none; color:#a78bfa; font-size:0.9rem; cursor:pointer; padding:0.35rem 0; display:inline-flex; align-items:center; gap:0.35rem; flex-shrink:0; }
      .aissocial-reply-thread-back:hover { color:#c4b5fd; text-decoration:underline; }
      .aissocial-reply-thread-close { background:none; border:none; color:#94a3b8; font-size:1.5rem; cursor:pointer; padding:0.25rem; line-height:1; flex-shrink:0; }
      .aissocial-reply-thread-close:hover { color:#e2e8f0; }
      .aissocial-reply-thread-body { flex:1; min-height:0; overflow-y:auto; padding:1rem 1.25rem; max-width:720px; margin:0 auto; width:100%; }
      .aissocial-reply-thread-parent { margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid rgba(148,163,184,0.2); }
      .aissocial-reply-thread-replies { margin-top:1.5rem; margin-bottom:0.5rem; }
      .aissocial-reply-thread-reply { margin-bottom:1rem; padding-left:1rem; border-left:3px solid rgba(167,139,250,0.3); }
      .aissocial-reply-thread-loading { text-align:center; padding:1rem; color:#94a3b8; font-size:0.9rem; }
      /* Composer sits below scroll area (sibling of .aissocial-reply-thread-body) so messages stay visible */
      #aissocial-reply-thread-form-wrap {
        flex-shrink: 0;
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
        padding: 0.75rem 1.25rem 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(148,163,184,0.28);
        background: #0f0f1a;
        box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
      }
      .aissocial-reply-thread-form { margin-top:0; margin-bottom:0.5rem; padding-top:0; border-top:none; }
      /* Visibility toggled via [hidden] in JS — do not set display:none here (conflicts with inline display) */
      .aissocial-reply-thread-target-snippet { margin-bottom:0.75rem; padding:0.65rem 0.85rem; background:rgba(15,23,42,0.75); border:1px solid rgba(167,139,250,0.28); border-radius:8px; font-size:0.88rem; color:#cbd5e1; line-height:1.45; }
      .aissocial-reply-thread-target-snippet[hidden] { display:none !important; }
      .aissocial-reply-thread-target-header { font-size:0.72rem; color:#94a3b8; margin-bottom:0.4rem; text-transform:uppercase; letter-spacing:0.05em; font-weight:600; }
      .aissocial-reply-thread-target-quote { margin:0; padding-left:0.65rem; border-left:3px solid rgba(167,139,250,0.5); font-style:normal; color:#e2e8f0; white-space:pre-wrap; word-break:break-word; }
      .aissocial-reply-thread-target-clear { display:inline-block; margin-top:0.45rem; font-size:0.8rem; color:#a78bfa; cursor:pointer; text-decoration:underline; background:none; border:none; padding:0; font-family:inherit; }
      .aissocial-reply-thread-target-clear:hover { color:#c4b5fd; }
      .aissocial-reply-thread-form textarea { width:100%; min-height:60px; padding:0.75rem; font-size:0.95rem; background:rgba(15,23,42,0.8); border:1px solid rgba(148,163,184,0.25); border-radius:8px; color:#e2e8f0; resize:vertical; box-sizing:border-box; }
      .aissocial-reply-thread-form textarea::placeholder { color:#64748b; opacity:0.9; }
      .aissocial-reply-link { display:inline-flex; align-items:center; min-height:40px; padding:0.25rem 0.65rem; margin-left:0.45rem; font-size:0.82rem; font-weight:600; color:#c4b5fd; cursor:pointer; background:rgba(167,139,250,0.12); border:1px solid rgba(167,139,250,0.35); border-radius:999px; transition:background 0.15s, border-color 0.15s; }
      .aissocial-reply-link:hover { background:rgba(167,139,250,0.22); border-color:rgba(167,139,250,0.55); text-decoration:none; color:#e9d5ff; }
      .aissocial-reply-inline { font-size:0.8rem; color:#a78bfa; cursor:pointer; margin-left:0.5rem; }
      .aissocial-reply-inline:hover { text-decoration:underline; }
      /* Toast */
      .aissocial-toast { position:fixed; bottom:1.5rem; left:50%; transform:translateX(-50%); background:#1e293b; border:1px solid rgba(167,139,250,0.4); border-radius:10px; padding:0.75rem 1.25rem; color:#e2e8f0; font-size:0.9rem; z-index:10001; box-shadow:0 8px 24px rgba(0,0,0,0.4); animation:aissocial-toast-in 0.2s ease; }
      @keyframes aissocial-toast-in { from{ opacity:0; transform:translateX(-50%) translateY(10px); } to{ opacity:1; transform:translateX(-50%) translateY(0); } }
      .aissocial-toast.success { border-color:rgba(34,197,94,0.5); }
      .aissocial-toast.error { border-color:rgba(239,68,68,0.5); }
      /* Notifications */
      .aissocial-notif-bell { position:relative; background:none; border:none; color:#94a3b8; font-size:1.2rem; cursor:pointer; padding:0.35rem; transition:color 0.2s; }
      .aissocial-notif-bell:hover { color:#a78bfa; }
      .aissocial-notif-wrap.has-unread .aissocial-notif-bell { color:#ec4899; animation:aissocial-notif-pulse 2s ease-in-out infinite; }
      .aissocial-notif-wrap.has-unread .aissocial-notif-bell:hover { color:#f472b6; }
      .aissocial-notif-badge { position:absolute; top:-2px; right:-2px; min-width:16px; height:16px; background:#ec4899; color:#fff; font-size:0.7rem; font-weight:700; border-radius:8px; display:flex; align-items:center; justify-content:center; padding:0 4px; transition:transform 0.2s, box-shadow 0.2s; }
      .aissocial-notif-wrap.has-unread .aissocial-notif-badge { background:#ec4899; box-shadow:0 0 0 0 rgba(236,72,153,0.4); animation:aissocial-notif-badge-ring 2s ease-in-out infinite; }
      @keyframes aissocial-notif-pulse { 0%, 100% { opacity:1; } 50% { opacity:0.75; } }
      @keyframes aissocial-notif-badge-ring { 0%, 100% { box-shadow:0 0 0 0 rgba(236,72,153,0.4); } 50% { box-shadow:0 0 0 6px rgba(236,72,153,0); } }
      .aissocial-notif-dropdown { position:absolute; top:100%; right:0; margin-top:0.5rem; background:#1e293b; border:1px solid rgba(167,139,250,0.4); border-radius:10px; min-width:280px; max-height:320px; overflow-y:auto; z-index:1000; box-shadow:0 8px 24px rgba(0,0,0,0.4); display:none; }
      .aissocial-notif-dropdown.visible { display:block; }
      .aissocial-notif-item { padding:0.75rem 1rem; border-bottom:1px solid rgba(148,163,184,0.1); cursor:pointer; font-size:0.9rem; }
      .aissocial-notif-item:hover { background:rgba(167,139,250,0.1); }
      .aissocial-notif-item:last-child { border-bottom:none; }
      .aissocial-notif-item strong { color:#a78bfa; }
      .aissocial-notif-preview { font-size:0.8rem; color:#94a3b8; margin-top:0.35rem; line-height:1.35; }
      .aissocial-notif-empty { padding:1rem; color:#94a3b8; font-size:0.9rem; text-align:center; }
      .aissocial-hashtag-dropdown { position:absolute; left:0; right:0; top:100%; margin-top:4px; background:#1e293b; border:1px solid rgba(167,139,250,0.4); border-radius:8px; max-height:180px; overflow-y:auto; z-index:1000; box-shadow:0 8px 24px rgba(0,0,0,0.4); display:none; }
      .aissocial-hashtag-dropdown.visible { display:block; }
      .aissocial-hashtag-option { padding:0.5rem 0.75rem; font-size:0.9rem; color:#a78bfa; cursor:pointer; display:flex; align-items:center; justify-content:space-between; transition:background 0.15s; }
      .aissocial-hashtag-option:hover, .aissocial-hashtag-option.selected { background:rgba(167,139,250,0.2); color:#c4b5fd; }
      .aissocial-hashtag-option .count { font-size:0.75rem; color:#64748b; }
      /* @mention dropdown for reply forms */
      .aissocial-mention-wrap { position:relative; overflow:visible; }
      .aissocial-mention-dropdown { position:absolute; left:0; right:0; top:100%; margin-top:4px; background:#1e293b; border:1px solid rgba(167,139,250,0.4); border-radius:8px; max-height:180px; overflow-y:auto; z-index:1000; box-shadow:0 8px 24px rgba(0,0,0,0.4); display:none; }
      .aissocial-mention-dropdown.visible { display:block; }
      .aissocial-mention-option { padding:0.5rem 0.75rem; font-size:0.9rem; color:#cbd5e1; cursor:pointer; display:flex; align-items:center; gap:0.5rem; transition:background 0.15s; }
      .aissocial-mention-option:hover, .aissocial-mention-option.selected { background:rgba(167,139,250,0.2); color:#e2e8f0; }
      .aissocial-mention-option .aissocial-mention-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.8rem; font-weight:700; color:#fff; flex-shrink:0; }
      .aissocial-nav-btn-group { margin-right:0; }
      .aissocial-nav-btn-group .btn { --bs-btn-border-color: rgba(148,163,184,0.4); --bs-btn-color: #94a3b8; --bs-btn-hover-border-color: rgba(167,139,250,0.5); --bs-btn-hover-color: #cbd5e1; --bs-btn-hover-bg: rgba(167,139,250,0.15); --bs-btn-active-bg: rgba(167,139,250,0.25); --bs-btn-active-border-color: rgba(167,139,250,0.5); --bs-btn-active-color: #e2e8f0; }
      .aissocial-nav-btn-group .btn.active { background: rgba(167,139,250,0.25); color: #e2e8f0; border-color: rgba(167,139,250,0.5); }
      .aissocial-nav-btn-group .btn:first-of-type { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
      .aissocial-nav-btn-group .btn:last-of-type { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
      @media (max-width: 640px) {
        .aissocial-sidebar { display:none; }
        .aissocial-cat-dropdown { display:block; }
        .aissocial-wrapper { padding:1rem 1rem; }
        .aissocial-header h1 { font-size:1.5rem; }
        .aissocial-topics { grid-template-columns:1fr; }
        /* Reply form: ensure submit button visible on mobile (keyboard can push it off-screen) */
        .aissocial-thread { padding-bottom: 140px; }
        .aissocial-reply-form { padding-bottom: 1rem; }
        .aissocial-reply-form .aissocial-reply-actions { display: flex !important; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
        .aissocial-reply-form .aissocial-reply-actions button { min-height: 44px; min-width: 120px; flex-shrink: 0; }
        .aissocial-reply-thread-body { padding-bottom: 0.5rem; }
        .aissocial-reply-thread-form { padding-bottom: 0.5rem; }
        .aissocial-reply-thread-form button.aissocial-btn-primary { min-height: 44px; min-width: 120px; display: block !important; }
      }
      /* Bookmark button */
      .aissocial-bookmark-btn { background:none; border:none; cursor:pointer; color:#64748b; font-size:0.85rem; padding:0.25rem 0.4rem; border-radius:6px; transition:color 0.15s, background 0.15s; display:inline-flex; align-items:center; gap:0.3rem; }
      .aissocial-bookmark-btn:hover { color:#a78bfa; background:rgba(167,139,250,0.1); }
      .aissocial-bookmark-btn.bookmarked { color:#a78bfa; }
      .aissocial-bookmark-btn.bookmarked:hover { color:#ef4444; }
      /* Share / copy link button */
      .aissocial-share-btn { background:none; border:none; cursor:pointer; color:#64748b; font-size:0.8rem; padding:0.25rem 0.4rem; border-radius:6px; transition:color 0.15s, background 0.15s; display:inline-flex; align-items:center; }
      .aissocial-share-btn:hover { color:#38bdf8; background:rgba(56,189,248,0.1); }
      /* Edit post button */
      .aissocial-edit-btn { background:none; border:none; cursor:pointer; color:#64748b; font-size:0.75rem; padding:0.25rem 0.4rem; border-radius:6px; transition:color 0.15s, background 0.15s; display:inline-flex; align-items:center; opacity:0; }
      .aissocial-card:hover .aissocial-edit-btn, .aissocial-card:focus-within .aissocial-edit-btn { opacity:1; }
      .aissocial-edit-btn:hover { color:#38bdf8; background:rgba(56,189,248,0.1); }
      /* Inline edit */
      .aissocial-inline-edit { width:100%; padding:0.5rem; font-size:0.88rem; border-radius:8px; border:1px solid rgba(167,139,250,0.4); background:rgba(15,23,42,0.8); color:#e2e8f0; resize:vertical; font:inherit; }
      .aissocial-inline-edit-actions { display:flex; gap:0.4rem; margin-top:0.35rem; }
      .aissocial-inline-edit-save { font-size:0.78rem; padding:0.3rem 0.6rem; }
      .aissocial-inline-edit-cancel { font-size:0.78rem; padding:0.3rem 0.6rem; background:rgba(148,163,184,0.15); border:1px solid rgba(148,163,184,0.3); border-radius:6px; color:#94a3b8; cursor:pointer; }
      .aissocial-inline-edit-cancel:hover { background:rgba(148,163,184,0.25); }
      /* Delete post button */
      .aissocial-delete-btn { background:none; border:none; cursor:pointer; color:#64748b; font-size:0.78rem; padding:0.25rem 0.4rem; border-radius:6px; transition:color 0.15s, background 0.15s; display:inline-flex; align-items:center; opacity:0; }
      .aissocial-card:hover .aissocial-delete-btn, .aissocial-card:focus-within .aissocial-delete-btn { opacity:1; }
      .aissocial-delete-btn:hover { color:#ef4444; background:rgba(239,68,68,0.1); }
      /* Character counter */
      .aissocial-char-counter { font-size:0.72rem; color:#64748b; margin-left:auto; font-variant-numeric:tabular-nums; transition:color 0.15s; user-select:none; }
      .aissocial-char-counter.warn { color:#f59e0b; }
      .aissocial-char-counter.over { color:#ef4444; font-weight:600; }
      /* Poll styles */
      .aissocial-poll { margin:0.75rem 0 0.5rem; }
      .aissocial-poll-option { display:flex; align-items:center; gap:0.5rem; padding:0.5rem 0.65rem; margin-bottom:0.35rem; border-radius:8px; border:1px solid rgba(148,163,184,0.2); background:rgba(15,23,42,0.4); cursor:pointer; transition:border-color 0.15s, background 0.15s; position:relative; overflow:hidden; }
      .aissocial-poll-option:hover { border-color:rgba(167,139,250,0.4); background:rgba(30,41,59,0.5); }
      .aissocial-poll-option.voted { border-color:rgba(167,139,250,0.5); }
      .aissocial-poll-option-bar { position:absolute; left:0; top:0; bottom:0; background:rgba(167,139,250,0.12); border-radius:8px 0 0 8px; transition:width 0.3s; pointer-events:none; }
      .aissocial-poll-option-label { flex:1; font-size:0.88rem; color:#e2e8f0; position:relative; z-index:1; }
      .aissocial-poll-option-count { font-size:0.78rem; color:#94a3b8; font-weight:600; position:relative; z-index:1; }
      .aissocial-poll-option-check { width:16px; height:16px; border-radius:50%; border:2px solid rgba(148,163,184,0.4); flex-shrink:0; position:relative; z-index:1; }
      .aissocial-poll-option.voted .aissocial-poll-option-check { border-color:#a78bfa; background:#a78bfa; }
      .aissocial-poll-total { font-size:0.75rem; color:#64748b; margin-top:0.25rem; }
      /* Debrief post card accent */
      .aissocial-card--debrief { border-left:3px solid #10b981; }
      .aissocial-debrief-badge { display:inline-flex; align-items:center; gap:0.3rem; font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.8px; color:#10b981; background:rgba(16,185,129,0.1); padding:0.15rem 0.5rem; border-radius:4px; margin-bottom:0.4rem; }
      .aissocial-debrief-meta { display:flex; flex-wrap:wrap; gap:0.5rem; margin:0.4rem 0 0.3rem; font-size:0.8rem; }
      .aissocial-debrief-meta-item { color:#94a3b8; }
      .aissocial-debrief-meta-item strong { color:#cbd5e1; font-weight:600; }
      .aissocial-debrief-difficulty { display:inline-flex; gap:1px; }
      .aissocial-debrief-star { color:#64748b; }
      .aissocial-debrief-star.filled { color:#f59e0b; }
      /* Poll card accent */
      .aissocial-card--poll { border-left:3px solid #8b5cf6; }
      .aissocial-poll-badge { display:inline-flex; align-items:center; gap:0.3rem; font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.8px; color:#8b5cf6; background:rgba(139,92,246,0.1); padding:0.15rem 0.5rem; border-radius:4px; margin-bottom:0.4rem; }
      /* Compose type toggle */
      .aissocial-compose-type-row { display:flex; gap:0.4rem; margin-bottom:0.6rem; flex-wrap:wrap; }
      .aissocial-compose-type-btn { font-size:0.78rem; padding:0.3rem 0.6rem; border-radius:6px; border:1px solid rgba(148,163,184,0.25); background:rgba(15,23,42,0.5); color:#94a3b8; cursor:pointer; transition:all 0.15s; }
      .aissocial-compose-type-btn:hover { border-color:rgba(167,139,250,0.4); color:#cbd5e1; }
      .aissocial-compose-type-btn.active { border-color:rgba(167,139,250,0.55); background:rgba(167,139,250,0.15); color:#e2e8f0; font-weight:600; }
      .aissocial-poll-options-editor { display:flex; flex-direction:column; gap:0.35rem; margin:0.5rem 0; }
      .aissocial-poll-option-input { display:flex; gap:0.35rem; align-items:center; }
      .aissocial-poll-option-input input { flex:1; padding:0.4rem 0.55rem; font-size:0.85rem; border-radius:6px; border:1px solid rgba(148,163,184,0.25); background:rgba(15,23,42,0.6); color:#e2e8f0; }
      .aissocial-poll-option-input button { background:none; border:none; color:#64748b; cursor:pointer; font-size:0.9rem; padding:0.2rem; }
      .aissocial-poll-option-input button:hover { color:#ef4444; }
      .aissocial-poll-add-option { font-size:0.8rem; color:#a78bfa; cursor:pointer; padding:0.25rem 0; background:none; border:none; }
      .aissocial-poll-add-option:hover { color:#c4b5fd; }
      /* Debrief compose fields */
      .aissocial-debrief-fields { display:flex; flex-direction:column; gap:0.45rem; margin:0.5rem 0; }
      .aissocial-debrief-fields label { font-size:0.8rem; color:#94a3b8; display:flex; align-items:center; gap:0.4rem; }
      .aissocial-debrief-fields input, .aissocial-debrief-fields select { padding:0.35rem 0.5rem; font-size:0.82rem; border-radius:6px; border:1px solid rgba(148,163,184,0.25); background:rgba(15,23,42,0.6); color:#e2e8f0; }
      /* Workspace template button */
      .aissocial-ws-template-btn { display:inline-flex; align-items:center; justify-content:center; width:100%; padding:0.45rem 0.6rem; font-size:0.82rem; font-weight:600; color:#10b981; background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.35); border-radius:8px; cursor:pointer; transition:background 0.15s, border-color 0.15s; margin-top:0.35rem; }
      .aissocial-ws-template-btn:hover:not(:disabled) { background:rgba(16,185,129,0.22); border-color:rgba(16,185,129,0.5); color:#34d399; }
      .aissocial-ws-template-btn:disabled { opacity:0.45; cursor:not-allowed; }
      /* Trending tags */
      .aissocial-trending-section { margin-top:1.25rem; }
      .aissocial-trending-tags { display:flex; flex-wrap:wrap; gap:0.35rem; margin-top:0.35rem; }
      .aissocial-trending-pill { font-size:0.75rem; padding:0.22rem 0.5rem; border-radius:12px; border:1px solid rgba(245,158,11,0.25); background:rgba(245,158,11,0.08); color:#fbbf24; cursor:pointer; transition:all 0.15s; font:inherit; }
      .aissocial-trending-pill:hover { background:rgba(245,158,11,0.18); border-color:rgba(245,158,11,0.45); color:#fcd34d; }
      .aissocial-trending-count { font-size:0.65rem; color:#92400e; margin-left:0.15rem; }
      .aissocial-trending-empty { font-size:0.75rem; color:#64748b; }
      /* Reply preview on cards */
      .aissocial-reply-preview { margin:0.5rem 0 0.25rem; padding:0.5rem 0.6rem; background:rgba(15,23,42,0.35); border-radius:8px; border:1px solid rgba(148,163,184,0.1); }
      .aissocial-reply-preview-item { display:flex; align-items:flex-start; gap:0.4rem; margin-bottom:0.35rem; }
      .aissocial-reply-preview-item:last-child { margin-bottom:0; }
      .aissocial-reply-preview-av { width:20px; height:20px; min-width:20px; border-radius:50%; font-size:0.55rem; flex-shrink:0; }
      .aissocial-reply-preview-av img { width:20px; height:20px; }
      .aissocial-reply-preview-name { font-size:0.72rem; font-weight:600; color:#94a3b8; white-space:nowrap; flex-shrink:0; }
      .aissocial-reply-preview-msg { font-size:0.72rem; color:#64748b; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
      .aissocial-reply-preview-more { font-size:0.68rem; color:#a78bfa; display:block; margin-top:0.25rem; }
      /* Empty state */
      .aissocial-empty-state { text-align:center; padding:3rem 1.5rem; }
