    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

    body {
      font-family: 'Inter', system-ui, sans-serif;
    }

    .scrollbar-thin::-webkit-scrollbar {
      width: 6px;
    }

    .scrollbar-thin::-webkit-scrollbar-track {
      background: transparent;
    }

    .scrollbar-thin::-webkit-scrollbar-thumb {
      background: #334155;
      border-radius: 3px;
    }

    .scrollbar-thin::-webkit-scrollbar-thumb:hover {
      background: #475569;
    }

    textarea {
      resize: none;
    }

    .thinking-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 10px;
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.25);
      color: #a5b4fc;
      font-size: 13px;
      margin-bottom: 8px;
      animation: thinking-pulse 2s ease-in-out infinite;
    }

    @keyframes thinking-pulse {

      0%,
      100% {
        opacity: 0.7;
      }

      50% {
        opacity: 1;
      }
    }

    .thinking-spinner {
      width: 14px;
      height: 14px;
      border: 2px solid rgba(99, 102, 241, 0.3);
      border-top-color: #818cf8;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    #voiceBtn.listening {
      color: #f87171;
      animation: mic-pulse 1s ease-in-out infinite;
    }

    @keyframes mic-pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: .6;
        transform: scale(1.2);
      }
    }

    .thinking-text {
      font-style: italic;
      max-height: 60px;
      overflow: hidden;
      transition: max-height 0.3s;
    }

    .msg-actions {
      opacity: 0;
      transition: opacity 0.15s;
    }

    .msg-wrapper:hover .msg-actions {
      opacity: 1;
    }

    .prose {
      line-height: 1.7;
    }

    .prose h1,
    .prose h2,
    .prose h3 {
      color: #f1f5f9;
      font-weight: 600;
      margin-top: 1.2em;
      margin-bottom: 0.5em;
    }

    .prose h1 {
      font-size: 1.5em;
    }

    .prose h2 {
      font-size: 1.25em;
    }

    .prose h3 {
      font-size: 1.1em;
    }

    .prose p {
      margin-bottom: 0.75em;
      color: #cbd5e1;
    }

    .prose ul,
    .prose ol {
      margin: 0.5em 0;
      padding-left: 1.5em;
      color: #cbd5e1;
    }

    .prose li {
      margin-bottom: 0.3em;
    }

    .prose code {
      background: #1e293b;
      padding: 0.15em 0.4em;
      border-radius: 4px;
      font-size: 0.875em;
      color: #e2e8f0;
    }

    .prose pre {
      background: #0c1222;
      border: 1px solid #1e293b;
      border-radius: 8px;
      padding: 1em;
      overflow-x: auto;
      margin: 0.75em 0;
    }

    .prose pre code {
      background: transparent;
      padding: 0;
    }

    .prose blockquote {
      border-left: 3px solid #ff1435;
      padding-left: 1em;
      margin: 0.75em 0;
      color: #94a3b8;
    }

    .prose table {
      width: 100%;
      border-collapse: collapse;
      margin: 0.75em 0;
    }

    .prose th,
    .prose td {
      border: 1px solid #1e293b;
      padding: 0.5em 0.75em;
      text-align: left;
      color: #cbd5e1;
    }

    .prose th {
      background: #1e293b;
      font-weight: 600;
    }

    .prose a {
      color: #ff1435;
      text-decoration: underline;
    }

    .prose strong {
      color: #f1f5f9;
    }

    .typing-dot {
      animation: blink 1.2s infinite;
    }

    .typing-dot:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes blink {

      0%,
      80%,
      100% {
        opacity: 0.3;
      }

      40% {
        opacity: 1;
      }
    }

    .drop-active {
      border-color: #ff1435 !important;
      background: rgba(255, 20, 53, 0.05) !important;
    }

    .chip {
      animation: chipIn 0.15s ease-out;
    }

    @keyframes chipIn {
      from {
        transform: scale(0.9);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* Sidebar */
    .sidebar {
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .sidebar.collapsed {
      transform: translateX(-100%);
      opacity: 0;
      pointer-events: none;
    }

    .sidebar-overlay {
      transition: opacity 0.25s ease;
    }

    .sidebar-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }

    /* Conversation item */
    .conv-item {
      transition: background 0.1s;
    }

    .conv-item:hover .conv-delete {
      opacity: 1;
    }

    .conv-delete {
      opacity: 0;
      transition: opacity 0.1s;
    }

    .conv-item.active {
      background: rgba(255, 20, 53, 0.1);
      border-color: rgba(255, 20, 53, 0.3);
    }

    /* Templates grid */
    .template-card {
      transition: border-color 0.15s, transform 0.1s;
    }

    .template-card:hover {
      border-color: #ff1435;
      transform: translateY(-1px);
    }

    /* Toast */
    .toast {
      animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    }

    @keyframes toastIn {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @keyframes toastOut {
      from {
        opacity: 1;
      }

      to {
        opacity: 0;
      }
    }

    /* Skeleton */
    .skeleton {
      background: linear-gradient(90deg, #1e293b 25%, #2d3a4d 50%, #1e293b 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    /* Language toggle */
    .lang-toggle .active {
      background: #ff1435;
      color: white;
    }

    .lang-toggle .inactive {
      background: transparent;
      color: #94a3b8;
    }

    /* Collaboration styles */
    .tab-btn {
      transition: all 0.15s;
    }

    .tab-btn.active {
      color: #ff1435;
      border-bottom: 2px solid #ff1435;
    }

    .tab-btn:not(.active) {
      color: #94a3b8;
      border-bottom: 2px solid transparent;
    }

    .shared-badge {
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
    }

    .bookmark-star {
      transition: color 0.15s;
      cursor: pointer;
    }

    .bookmark-star.active {
      color: #fbbf24;
    }

    .bookmark-star:not(.active) {
      color: #475569;
    }

    .tag-chip {
      font-size: 10px;
      padding: 1px 6px;
      border-radius: 9999px;
      background: #1e293b;
      color: #94a3b8;
      border: 1px solid #334155;
    }

    /* Reactions bar */
    .reaction-bar {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .reaction-btn {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      background: #1e293b;
      border: 1px solid #334155;
      color: #94a3b8;
      cursor: pointer;
      transition: all 0.15s;
    }

    .reaction-btn:hover {
      border-color: #ff1435;
      color: #e2e8f0;
    }

    .reaction-btn.active {
      background: rgba(255, 20, 53, 0.1);
      border-color: #ff1435;
      color: #ff1435;
    }

    .reaction-btn .count {
      font-weight: 600;
    }

    /* Comments thread */
    .comment-thread {
      margin-top: 8px;
      padding-left: 12px;
      border-left: 2px solid #334155;
    }

    .comment-item {
      padding: 4px 0;
    }

    .comment-author {
      font-size: 11px;
      font-weight: 600;
      color: #e2e8f0;
    }

    .comment-text {
      font-size: 12px;
      color: #94a3b8;
    }

    .comment-time {
      font-size: 10px;
      color: #475569;
    }

    /* Pin badge */
    .pin-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 10px;
      color: #fbbf24;
      background: rgba(251, 191, 36, 0.1);
      padding: 1px 6px;
      border-radius: 4px;
    }

    /* Notification bell */
    .notif-badge {
      position: absolute;
      top: -2px;
      right: -2px;
      min-width: 16px;
      height: 16px;
      border-radius: 99px;
      background: #ff1435;
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
    }

    .notif-dropdown {
      max-height: 400px;
      overflow-y: auto;
    }

    .notif-item {
      transition: background 0.1s;
    }

    .notif-item:hover {
      background: #1e293b;
    }

    .notif-item.unread {
      border-left: 3px solid #ff1435;
    }

    /* Presence dot */
    .presence-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
    }

    .presence-dot.online {
      background: #22c55e;
    }

    .presence-dot.offline {
      background: #475569;
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-panel {
      background: #0f172a;
      border: 1px solid #334155;
      border-radius: 12px;
      max-width: 500px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
    }

    /* Channel view */
    .channel-msg-author {
      font-size: 11px;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .channel-msg-author.user {
      color: #38bdf8;
    }

    .channel-msg-author.assistant {
      color: #ff1435;
    }

    /* Search */
    .search-input {
      background: #1e293b;
      border: 1px solid #334155;
      border-radius: 8px;
      padding: 6px 10px 6px 32px;
      font-size: 13px;
      color: #e2e8f0;
      width: 100%;
    }

    .search-input:focus {
      outline: none;
      border-color: #ff1435;
    }

    .search-input::placeholder {
      color: #475569;
    }

    /* User picker */
    .user-picker {
      background: #0b1120;
      border: 1px solid #334155;
      border-radius: 8px;
      max-height: 200px;
      overflow-y: auto;
    }

    .user-picker-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      cursor: pointer;
      transition: background 0.1s;
    }

    .user-picker-item:hover {
      background: #1e293b;
    }

    .user-picker-item.selected {
      background: rgba(255, 20, 53, 0.1);
      border-left: 2px solid #ff1435;
    }

    .user-picker-avatar {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: #334155;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
      color: #94a3b8;
      flex-shrink: 0;
    }

    .user-picker-info {
      flex: 1;
      min-width: 0;
    }

    .user-picker-name {
      font-size: 13px;
      color: #e2e8f0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-picker-username {
      font-size: 11px;
      color: #64748b;
    }