/* ============================================================
   WorkChat — Complete Design System
   ============================================================ */

:root {
  --bg-deep:     #d6e8eb;
  --bg-base:     #e8f2f4;
  --bg-surface:  #f2f8f9;
  --bg-elevated: #f9f9f9;
  --bg-hover:    #dbe7d7;
  --bg-active:   #ccddd9;
  --border-0: rgba(77,150,164,0.08);
  --border-1: rgba(77,150,164,0.16);
  --border-2: rgba(77,150,164,0.28);
  --border-3: rgba(77,150,164,0.42);
  --text-1: #1a3035;
  --text-2: #3d6e78;
  --text-3: #7fadb5;
  --accent:      #4d96a4;
  --accent-glow: rgba(77,150,164,0.24);
  --accent-hi:   #3d8090;
  --accent-dim:  rgba(77,150,164,0.12);
  --urgent:      #d95f5f;
  --urgent-dim:  rgba(217,95,95,0.10);
  --urgent-glow: rgba(217,95,95,0.22);
  --success:     #5a9e72;
  --success-dim: rgba(90,158,114,0.12);
  --warn:        #c8923a;
  --warn-dim:    rgba(200,146,58,0.12);
  --status-pending:     #7fadb5;
  --status-in-progress: #4d96a4;
  --status-done:        #5a9e72;
  --sidebar-w: 288px;
  --header-h:  62px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --shadow-sm: 0 1px 4px rgba(77,150,164,0.10);
  --shadow-md: 0 4px 16px rgba(77,150,164,0.13);
  --shadow-lg: 0 8px 32px rgba(77,150,164,0.17);
  --shadow-modal: 0 20px 60px rgba(30,80,90,0.18), 0 0 0 1px rgba(77,150,164,0.14);
}
/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

/* ─── App Shell ──────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  border-right: 1px solid var(--border-1);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border-0);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  font-size: 20px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.btn-new-chat {
  width: auto;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 15px;
}
.btn-new-chat:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.sidebar-search {
  padding: 10px 12px;
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
}
.chat-list::-webkit-scrollbar { width: 4px; }
.chat-list::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }

.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.12s;
  position: relative;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.chat-item:hover { background: var(--bg-hover); }
.chat-item.active {
  background: var(--bg-active);
  border-color: var(--border-2);
}
.chat-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

.chat-avatar {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}
.chat-avatar.group {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(79,142,247,0.2);
}

.chat-meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.chat-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.chat-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-time { font-size: 10px; color: var(--text-3); flex-shrink: 0; }
.chat-last {
  font-size: 12px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.unread-badge {
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.empty-chats {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.8;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.user-info {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 4px;
  transition: background 0.12s;
  flex: 1; min-width: 0;
}
.user-info:hover { background: var(--bg-hover); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.user-avatar-sm {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.user-details { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.user-name { font-size: 12px; font-weight: 500; }
.user-status { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }

.sidebar-footer-actions { display: flex; gap: 2px; }

/* Status dots */
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot-xs { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot-sm { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Notifications panel */
.notif-panel {
  position: absolute;
  bottom: 60px; left: 8px; right: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  max-height: 340px;
}
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-0);
  font-size: 12px; font-weight: 600;
}
.notif-read-all {
  font-size: 11px; color: var(--accent);
  transition: color 0.12s;
}
.notif-read-all:hover { color: var(--accent-hi); }
.notif-list { overflow-y: auto; max-height: 280px; }
.notif-list::-webkit-scrollbar { width: 3px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }
.notif-item {
  display: flex; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-0);
  transition: background 0.12s;
  cursor: pointer;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: var(--accent-dim); }
.notif-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 12px; font-weight: 600; }
.notif-body { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 10px; color: var(--text-3); }
.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--urgent);
}
.notif-loading { padding: 20px; text-align: center; color: var(--text-3); font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   MAIN CHAT AREA
   ═══════════════════════════════════════════════════════════ */
.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  overflow: hidden;
  min-width: 0;
}
.chat-main--empty {
  align-items: center;
  justify-content: center;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  height: var(--header-h);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-1);
  flex-shrink: 0;
}
.chat-header-info {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.chat-avatar-lg {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}
.chat-avatar-lg.group {
  background: var(--accent-dim);
  color: var(--accent);
}
.chat-title { font-size: 13px; font-weight: 600; letter-spacing: -0.2px; white-space: nowrap; }
.chat-subtitle {
  font-size: 10px; color: var(--text-3);
  display: flex; align-items: center; gap: 5px;
}

/* Tabs */
.tab-group {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 3px; gap: 2px;
  flex-shrink: 0;
}
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active {
  background: var(--bg-active);
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}
.tab-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.chat-header-actions { display: flex; gap: 4px; flex-shrink: 0; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-3);
  transition: all 0.12s; position: relative;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════
   TAB PANELS
   ═══════════════════════════════════════════════════════════ */
.tab-panel { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.tab-panel.active { display: flex; }

/* ─── Messages ───────────────────────────────────────────── */
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.messages-area::-webkit-scrollbar { width: 5px; }
.messages-area::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 3px; }

/* System message */
.system-message {
  text-align: center;
  padding: 8px 0;
}
.system-message span {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-0);
  border-radius: 20px;
  padding: 3px 12px;
}

/* Message wrappers */
.message-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
  animation: msgIn 0.18s ease-out both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.message-wrapper.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
  max-width: 74%;
}
.message-wrapper.theirs {
  align-self: flex-start;
  max-width: 74%;
}
.message-wrapper.task-message {
  max-width: 88%;
}

.msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
  margin-bottom: 3px;
}

.message-bubble {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.msg-author {
  font-size: 10px; font-weight: 700;
  color: var(--text-3);
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Reply quote — dentro de la burbuja, unificado */
.reply-quote {
  background: rgba(0,0,0,0.07);
  border-left: 3px solid rgba(0,0,0,0.2);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 6px 10px 8px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mine .reply-quote {
  background: rgba(0,0,0,0.15);
  border-left-color: rgba(255,255,255,0.4);
}
.rq-author { font-size: 10px; font-weight: 700; color: var(--accent); }
.mine .rq-author { color: rgba(255,255,255,0.85); }
.rq-text { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine .rq-text { color: rgba(255,255,255,0.65); }

/* Separador sutil entre quote y texto */
.reply-quote + .msg-text,
.reply-quote + p.msg-text {
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: 0 0 var(--r-lg) var(--r-lg) !important;
}

/* Bubble text */
.msg-text {
  background: var(--bg-elevated);
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 3px;
  font-size: 14px; line-height: 1.55;
  color: var(--text-1);
  word-break: break-word;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mine .msg-text {
  background: var(--accent);
  border-color: transparent;
  border-radius: var(--r-lg) var(--r-lg) 3px var(--r-lg);
  color: #fff;
}
/* Texto dentro de la burbuja */
.msg-text-content {
  padding: 9px 13px;
  margin: 0;
}

/* Msg meta row */
.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.mine .msg-meta { justify-content: flex-end; }
.msg-time { font-size: 10px; color: var(--text-3); }
.edited-tag { font-size: 10px; color: var(--text-3); font-style: italic; }
.msg-tick { font-size: 11px; color: var(--accent); }
.msg-reply-btn {
  font-size: 12px; color: var(--text-3);
  opacity: 0;
  transition: all 0.12s;
  padding: 2px 4px;
  border-radius: 4px;
}
.message-wrapper:hover .msg-reply-btn { opacity: 1; }
.msg-reply-btn:hover { background: var(--bg-hover); color: var(--text-1); }

/* ─── Task Tag in Chat ───────────────────────────────────── */
.task-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 12px 14px;
  min-width: 260px;
  max-width: 400px;
  cursor: default;
  transition: border-color 0.15s;
}
.task-tag--urgent {
  border-left-color: var(--urgent);
  background: linear-gradient(135deg, var(--urgent-dim), var(--bg-elevated));
}

.task-tag-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.task-tag-icon { color: var(--accent); font-size: 13px; }
.task-tag--urgent .task-tag-icon { color: var(--urgent); }
.task-tag-title { font-size: 14px; font-weight: 600; flex: 1; }
.urgency-pill {
  font-size: 9px; font-weight: 800;
  color: var(--urgent);
  background: var(--urgent-dim);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.6px;
}

.task-tag-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.tmeta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-2);
}
.tmeta-item.overdue { color: var(--urgent); }
.tmeta-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  color: var(--text-2);
}

/* Status chips */
.status-chip {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.status-pending     { background: rgba(139,146,165,0.15); color: var(--status-pending); }
.status-in_progress { background: var(--accent-dim);       color: var(--status-in-progress); }
.status-done        { background: var(--success-dim);      color: var(--status-done); }

.task-tag-edit {
  font-size: 11px; font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 4px 9px;
  transition: all 0.12s;
}
.task-tag-edit:hover { background: var(--accent); color: #fff; }

/* ─── Input area ──────────────────────────────────────────── */
.message-input-area {
  padding: 14px 22px 18px;
  background: var(--bg-base);
  border-top: 1px solid var(--border-1);
  flex-shrink: 0;
}

/* Command hint */
.command-hint {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  padding: 9px 13px;
  margin-bottom: 10px;
  animation: slideDown 0.18s ease-out;
}
.command-hint.visible { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hint-header { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 4px; }
.hint-body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hint-body code {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--bg-deep); color: var(--text-1);
  padding: 2px 6px; border-radius: 4px;
}
.hint-example { font-size: 11px; color: var(--text-3); }
.hint-example em { color: var(--text-2); font-style: normal; }

/* Reply preview bar */
.reply-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 7px 12px;
  margin-bottom: 10px;
  animation: slideDown 0.15s ease-out;
}
.reply-icon { font-size: 14px; color: var(--accent); }
.reply-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.reply-author { font-size: 11px; font-weight: 700; color: var(--accent); }
.reply-text { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-cancel { font-size: 12px; color: var(--text-3); transition: color 0.12s; }
.reply-cancel:hover { color: var(--urgent); }

/* Input row */
.input-row {
  display: flex; align-items: flex-end; gap: 10px;
}
.message-input-wrapper {
  flex: 1;
  display: flex; align-items: flex-end;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  transition: border-color 0.15s;
  overflow: hidden;
}
.message-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.message-input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: var(--text-1);
  font-size: 14px;
  padding: 10px 14px;
  resize: none;
  max-height: 120px;
  line-height: 1.5;
}
.message-input::placeholder { color: var(--text-3); }
.input-actions { padding: 0 10px 8px; }
.emoji-btn { font-size: 17px; opacity: 0.55; transition: opacity 0.12s; }
.emoji-btn:hover { opacity: 1; }

.send-btn {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.send-btn:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--accent-glow);
}
.send-btn:active { transform: translateY(0); }
.send-btn svg { width: 16px; height: 16px; stroke: #fff; }

/* ═══════════════════════════════════════════════════════════
   TASKS PANEL
   ═══════════════════════════════════════════════════════════ */
.tasks-panel {
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}

.tasks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-base);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.tasks-filters { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.filter-btn {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500;
  color: var(--text-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-0);
  transition: all 0.12s;
}
.filter-btn:hover { color: var(--text-1); border-color: var(--border-1); }
.filter-btn.active { background: var(--accent-dim); color: var(--accent); border-color: rgba(79,142,247,.25); }
.filter-urgent.active { background: var(--urgent-dim); color: var(--urgent); border-color: rgba(240,82,82,.25); }
.filter-sep { width: 1px; height: 20px; background: var(--border-1); margin: 0 4px; }
.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-0);
  border-radius: var(--r-sm);
  color: var(--text-2);
  padding: 5px 10px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.12s;
}
.filter-select:focus { border-color: var(--accent); }

/* Columns */
.tasks-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 22px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
}
.tasks-columns::-webkit-scrollbar { width: 5px; }
.tasks-columns::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 3px; }

.task-column { display: flex; flex-direction: column; gap: 8px; }

.column-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px;
  background: var(--bg-base);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
}
.column-title-row { display: flex; align-items: center; gap: 7px; }
.column-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
}
.dot-pending     { background: var(--status-pending); }
.dot-in_progress { background: var(--status-in-progress); }
.dot-done        { background: var(--status-done); }
.column-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--text-2);
}
.column-count {
  font-size: 11px; font-weight: 600;
  color: var(--text-3);
  background: var(--bg-elevated);
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.column-body { display: flex; flex-direction: column; gap: 7px; min-height: 40px; }

.col-add-btn {
  font-size: 12px; color: var(--text-3);
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px dashed var(--border-1);
  text-align: center;
  transition: all 0.12s;
  margin-top: 2px;
}
.col-add-btn:hover {
  color: var(--text-1);
  border-color: var(--border-2);
  background: var(--bg-hover);
}

/* Task card */
.task-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 13px 13px 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.task-card:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.task-card--urgent {
  border-left: 3px solid var(--urgent);
  background: linear-gradient(135deg, rgba(240,82,82,.04), var(--bg-elevated));
}
.task-card--urgent:hover { box-shadow: 0 4px 20px var(--urgent-glow); }
.task-card--overdue { border-color: var(--warn); }

.task-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 7px; min-height: 22px;
}
.task-card-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge-urgent {
  font-size: 9px; font-weight: 800;
  color: var(--urgent); background: var(--urgent-dim);
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.5px;
}
.badge-overdue {
  font-size: 9px; font-weight: 700;
  color: var(--warn); background: var(--warn-dim);
  padding: 2px 6px; border-radius: 3px;
}
.task-card-actions { display: flex; gap: 3px; opacity: 0; transition: opacity 0.15s; }
.task-card:hover .task-card-actions { opacity: 1; }

.icon-btn-xs {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-3);
  transition: all 0.12s;
}
.icon-btn-xs:hover { background: var(--bg-hover); color: var(--text-1); }
.icon-btn-xs.danger:hover { background: var(--urgent-dim); color: var(--urgent); }

.task-card-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-1); line-height: 1.4;
  margin-bottom: 5px;
}
.task-card-name.done-text { text-decoration: line-through; color: var(--text-3); }
.task-card-desc {
  font-size: 11px; color: var(--text-3);
  line-height: 1.5; margin-bottom: 10px;
}

.task-card-footer { display: flex; flex-direction: column; gap: 7px; }
.task-card-assignee { display: flex; align-items: center; justify-content: space-between; }
.assignee-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-2);
}
.assignee-chip.unassigned { color: var(--text-3); }
.assignee-av {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.task-due-chip { font-size: 10px; color: var(--text-3); }
.task-due-chip.overdue { color: var(--urgent); }
.task-tag-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.tag-chip {
  font-size: 9px; font-weight: 500;
  padding: 2px 6px; border-radius: 3px;
  background: var(--bg-hover); border: 1px solid var(--border-0);
  color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════
   INFO DRAWER
   ═══════════════════════════════════════════════════════════ */
.info-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--bg-base);
  border-left: 1px solid var(--border-1);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
  z-index: 20;
  overflow: hidden;
}
.info-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border-0);
}
.drawer-header h2 { font-size: 15px; font-weight: 600; }
.drawer-body { overflow-y: auto; flex: 1; padding: 16px; }
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }
.drawer-section { margin-bottom: 20px; }
.drawer-label {
  display: block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-3); margin-bottom: 8px;
}
.drawer-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.member-list { display: flex; flex-direction: column; gap: 4px; }
.member-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: var(--r-md);
  transition: background 0.12s;
}
.member-row:hover { background: var(--bg-hover); }
.member-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  flex-shrink: 0;
}
.member-info-sm { flex: 1; min-width: 0; }
.member-name-sm { font-size: 13px; font-weight: 500; display: block; }
.member-dept { font-size: 11px; color: var(--text-3); }
.owner-tag {
  font-size: 9px; font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
  padding: 1px 5px; border-radius: 3px;
  margin-left: 5px;
}

.task-stats { display: flex; flex-direction: column; gap: 4px; }
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
}
.stat-label { font-size: 12px; color: var(--text-2); }
.stat-val { font-size: 13px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-base);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  width: 100%; max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.22s cubic-bezier(0.16,1,0.3,1);
}
.modal--wide { max-width: 580px; }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-0);
}
.modal-header h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.modal-close {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  color: var(--text-3); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.modal-close:hover { background: var(--urgent-dim); color: var(--urgent); }
.modal-body { padding: 18px 22px 22px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-0);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label {
  font-size: 11px; font-weight: 700;
  color: var(--text-2); letter-spacing: 0.4px; text-transform: uppercase;
}
.req { color: var(--urgent); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control.is-error { border-color: var(--urgent); }
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23545c6e' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}
textarea.form-control { resize: vertical; min-height: 76px; line-height: 1.5; }

/* Urgency toggle */
.urgency-toggle { display: flex; gap: 8px; }
.urgency-opt { cursor: pointer; flex: 1; }
.urgency-opt input { display: none; }
.urg-label {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-1);
  background: var(--bg-elevated);
  font-size: 13px; font-weight: 500; color: var(--text-3);
  cursor: pointer; transition: all 0.15s;
}
.urgency-opt input:checked + .urg-label.normal {
  border-color: rgba(79,142,247,.3);
  background: var(--accent-dim); color: var(--accent);
}
.urgency-opt input:checked + .urg-label.urgent {
  border-color: rgba(240,82,82,.3);
  background: var(--urgent-dim); color: var(--urgent);
}

/* Type toggle (new chat) */
.type-toggle { display: flex; gap: 8px; }
.type-opt { cursor: pointer; flex: 1; }
.type-opt input { display: none; }
.type-label {
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-1);
  background: var(--bg-elevated);
  font-size: 13px; font-weight: 500; color: var(--text-3);
  cursor: pointer; transition: all 0.15s;
}
.type-opt input:checked + .type-label {
  border-color: rgba(79,142,247,.3);
  background: var(--accent-dim); color: var(--accent);
}

/* Members checklist */
.members-checklist {
  max-height: 200px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 4px;
}
.members-checklist::-webkit-scrollbar { width: 4px; }
.members-checklist::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }

.member-check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer; transition: background 0.12s;
}
.member-check-row:hover { background: var(--bg-hover); }
.member-check-row input { accent-color: var(--accent); flex-shrink: 0; }
.mc-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-2);
  flex-shrink: 0;
}
.mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mc-name { font-size: 13px; font-weight: 500; }
.mc-dept { font-size: 11px; color: var(--text-3); }
.mc-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* Buttons */
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  transition: all 0.15s;
  box-shadow: 0 2px 8px var(--accent-glow);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; pointer-events: none; }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text-2);
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-1);
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--border-2); color: var(--text-1); }
.btn-danger {
  background: var(--urgent-dim); color: var(--urgent);
  padding: 10px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(240,82,82,.25);
  transition: all 0.15s;
}
.btn-danger:hover { background: var(--urgent); color: #fff; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-body {
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-deep);
}
.auth-shell {
  width: 100%; max-width: 420px;
  padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
}
.auth-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700;
}
.auth-card {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
}
.auth-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 4px; }
.auth-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; }
.form-row-inline { display: flex; align-items: center; margin-bottom: 16px; }
.checkbox-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.checkbox-label input { accent-color: var(--accent); }
.auth-switch {
  text-align: center;
  font-size: 13px; color: var(--text-3);
  margin-top: 16px;
}
.auth-switch a { color: var(--accent); transition: color 0.12s; }
.auth-switch a:hover { color: var(--accent-hi); }
.auth-footer { font-size: 11px; color: var(--text-3); }

/* Demo accounts */
.auth-demo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-0);
}
.demo-label { font-size: 11px; color: var(--text-3); margin-bottom: 8px; text-align: center; }
.demo-accounts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.demo-btn {
  font-size: 11px; font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  transition: all 0.12s;
}
.demo-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Alerts */
.alert {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-danger { background: var(--urgent-dim); border: 1px solid rgba(240,82,82,.25); color: var(--urgent); }
.alert-success { background: var(--success-dim); border: 1px solid rgba(52,211,153,.25); color: var(--success); }

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.profile-avatar-section {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-base);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
}
.profile-big-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.role-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  margin-top: 4px;
}
.role-admin    { background: rgba(240,82,82,.15);    color: var(--urgent); }
.role-manager  { background: var(--warn-dim);        color: var(--warn); }
.role-employee { background: var(--accent-dim);      color: var(--accent); }

.settings-card {
  background: var(--bg-base);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  width: 100%;
}
.settings-card--danger { border-color: rgba(240,82,82,.2); }
.settings-title {
  font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-0);
}

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--text-3);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-icon { font-size: 48px; color: var(--accent); opacity: 0.4; margin-bottom: 8px; }
.empty-state h2 { font-size: 20px; font-weight: 600; color: var(--text-2); }
.empty-state p { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --sidebar-w: 240px; }
  .tasks-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .tasks-columns { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .chat-header { padding: 0 14px; gap: 8px; }
  .messages-area { padding: 14px 16px; }
  .message-input-area { padding: 10px 14px 14px; }
  .modal { max-width: 100%; border-radius: var(--r-lg); }
}

/* ─── Adjuntos ───────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-elevated);
  margin-top: 8px;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.drop-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.drop-text { font-size: 13px; color: var(--text-2); margin: 0; }
.drop-link { color: var(--accent); cursor: pointer; text-decoration: underline; }
.drop-hint { font-size: 11px; color: var(--text-3); margin: 4px 0 0; }

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  transition: border-color 0.15s;
}
.attachment-item:hover { border-color: var(--border-2); }

.att-thumb {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}
.att-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.att-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.att-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-1);
}
.att-meta { font-size: 11px; color: var(--text-3); }

.att-actions { display: flex; gap: 4px; }
.att-btn {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  transition: all 0.12s;
  text-decoration: none;
  border: none; background: none; cursor: pointer;
}
.att-btn:hover { background: var(--bg-hover); color: var(--text-1); }
.att-btn.danger:hover { background: var(--urgent-dim); color: var(--urgent); }

.upload-bar {
  height: 4px;
  background: var(--border-1);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.upload-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
  width: 0%;
}
.upload-label { font-size: 11px; color: var(--text-3); margin-top: 4px; display: block; }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.15s ease;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   WorkChat — Bootstrap custom layer
   Solo lo que Bootstrap no cubre: layout fijo, burbujas, sidebar
   ============================================================ */

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #0d0f12;
  overflow: hidden;
  height: 100vh;
}

/* ─── Shell: sidebar + main en toda la pantalla ─────────── */
.wc-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ─── Sidebar ────────────────────────────────────────────── */
.wc-sidebar {
  display: flex;
  flex-direction: column;
  background: #13161b;
  border-right: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}

.wc-sidebar-header { border-bottom: 1px solid rgba(255,255,255,0.06); }
.wc-brand-icon { font-size: 20px; color: #4f8ef7; filter: drop-shadow(0 0 6px rgba(79,142,247,.3)); }
.wc-brand-name { font-size: 15px; }

.wc-chat-list { overflow-y: auto; }
.wc-chat-list::-webkit-scrollbar { width: 4px; }
.wc-chat-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }

.wc-chat-item {
  color: #8b92a5;
  border: 1px solid transparent;
  transition: all .12s;
}
.wc-chat-item:hover { background: #262c37 !important; color: #e8eaf0; }
.wc-chat-item.active {
  background: #2d3444 !important;
  border-color: rgba(255,255,255,.13);
  color: #e8eaf0;
  position: relative;
}
.wc-chat-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: #4f8ef7;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(79,142,247,.4);
}

.wc-chat-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #21262f;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: #8b92a5;
}
.wc-chat-avatar.group {
  background: rgba(79,142,247,.12);
  color: #4f8ef7;
  border-color: rgba(79,142,247,.2);
}
.wc-chat-name { font-size: 13px; }

.wc-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #4f8ef7;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.wc-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Notif panel */
.wc-notif-panel {
  position: absolute;
  bottom: 60px; left: 8px; right: 8px;
  z-index: 100;
  background: #21262f !important;
}
.wc-notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f05252;
  top: 4px; right: 4px;
}

/* ─── Main area ──────────────────────────────────────────── */
.wc-main { overflow: hidden; background: #1a1e26; }

.wc-header {
  height: 62px;
  background: #13161b;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  flex-shrink: 0;
}

/* Nav pills tabs */
.wc-tabs .nav-link {
  color: #8b92a5;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 8px;
}
.wc-tabs .nav-link:hover { color: #e8eaf0; background: rgba(255,255,255,.05); }
.wc-tabs .nav-link.active { background: #2d3444; color: #e8eaf0; }

/* ─── Messages ───────────────────────────────────────────── */
.wc-messages { scroll-behavior: smooth; }
.wc-messages::-webkit-scrollbar { width: 5px; }
.wc-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.07); border-radius: 3px; }

.wc-msg-wrap { animation: msgIn .18s ease-out both; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wc-msg-wrap:hover .wc-reply-btn { opacity: 1 !important; }

.wc-msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #21262f;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: #8b92a5;
  flex-shrink: 0;
  margin-bottom: 3px;
}

/* Bubbles */
.wc-bubble {
  padding: 9px 13px;
  border-radius: 14px 14px 14px 3px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  max-width: 100%;
}
.wc-bubble.theirs {
  background: #21262f;
  border: 1px solid rgba(255,255,255,.06);
  color: #e8eaf0;
}
.wc-bubble.mine {
  background: #4f8ef7;
  border-radius: 14px 14px 3px 14px;
  color: #fff;
}

/* Reply quote */
.wc-reply-quote {
  background: rgba(79,142,247,.08);
  border-radius: 0 6px 6px 0;
  padding: 4px 10px;
  max-width: 400px;
}

/* Task tag */
.wc-task-tag { background: #1a1e26 !important; }
.wc-status-badge-pending     { background: rgba(139,146,165,.2); color: #8b92a5; }
.wc-status-badge-in_progress { background: rgba(79,142,247,.15); color: #4f8ef7; }
.wc-status-badge-done        { background: rgba(52,211,153,.15); color: #34d399; }

/* ─── Input area ──────────────────────────────────────────── */
.wc-input-area { background: #13161b; }

.wc-cmd-hint {
  background: rgba(79,142,247,.1) !important;
  border-color: #4f8ef7 !important;
  color: #e8eaf0;
  font-size: 13px;
}

.wc-reply-bar {
  background: #21262f !important;
  border-color: rgba(255,255,255,.1) !important;
}

.wc-input-wrap textarea {
  border-radius: 12px;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
  max-height: 120px;
}
.wc-input-wrap textarea:focus { box-shadow: 0 0 0 3px rgba(79,142,247,.2); border-color: #4f8ef7 !important; }

.wc-send-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 2px 10px rgba(79,142,247,.3);
}
.wc-send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,142,247,.4); }

/* ─── Kanban ─────────────────────────────────────────────── */
.wc-kanban { background: #1a1e26; }
.wc-kanban .card { background: #13161b !important; }
.wc-kanban .card-body { min-height: 60px; }

.wc-task-card { transition: all .15s; background: #21262f !important; }
.wc-task-card:hover { border-color: rgba(255,255,255,.2) !important; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.wc-task-card:hover .wc-card-actions { opacity: 1 !important; }

.wc-assignee-av {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #2d3444;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  color: #8b92a5;
  flex-shrink: 0;
}

/* ─── Info Drawer ────────────────────────────────────────── */
.wc-drawer {
  width: 0;
  overflow: hidden;
  background: #13161b;
  display: flex;
  flex-direction: column;
  transition: width .25s cubic-bezier(.16,1,.3,1);
  flex-shrink: 0;
}
.wc-drawer.open { width: 280px; }

.wc-member-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #21262f;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #8b92a5;
  flex-shrink: 0;
}

/* ─── Auth ───────────────────────────────────────────────── */
.wc-auth-body {
  min-height: 100vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f12;
}
.wc-auth-shell {
  width: 100%; max-width: 420px;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem;
}
.wc-auth-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.wc-auth-card { width: 100%; }

/* ─── Profile ────────────────────────────────────────────── */
.wc-profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #4f8ef7;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}
.wc-role-admin    { background: rgba(240,82,82,.15);   color: #f05252; }
.wc-role-manager  { background: rgba(245,158,11,.15);  color: #f59e0b; }
.wc-role-employee { background: rgba(79,142,247,.15);  color: #4f8ef7; }

/* ─── New chat modal members ─────────────────────────────── */
.wc-member-row:hover { background: rgba(255,255,255,.04); }
.wc-mc-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #2d3444;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #8b92a5;
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .wc-shell { grid-template-columns: 1fr; }
  .wc-sidebar { display: none; }
  .wc-drawer { display: none; }
  .wc-header { height: auto; min-height: 56px; padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
  .wc-kanban .row { flex-direction: column; }
}

/* ─── Admin panel extras ─────────────────────────────────── */
.icon-btn-xs {
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-3);
  transition: all .12s;
  border: none; background: none; cursor: pointer;
}
.icon-btn-xs:hover         { background: var(--bg-hover);   color: var(--text-1); }
.icon-btn-xs.danger:hover  { background: var(--urgent-dim); color: var(--urgent); }
.icon-btn-xs.warn:hover    { background: var(--warn-dim);   color: var(--warn); }
.icon-btn-xs.success:hover { background: var(--success-dim);color: var(--success); }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE MÓVIL
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Shell: una sola capa, no grid */
  .app-shell,
  .wc-shell {
    display: block;
    height: 100dvh;
    position: relative;
    overflow: hidden;
  }

  /* SIDEBAR — capa encima, ocupa toda la pantalla */
  .sidebar,
  .wc-sidebar {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100dvh;
    z-index: 20;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Cuando hay un chat abierto: sidebar se desliza fuera por la izquierda */
  body.chat-open .sidebar,
  body.chat-open .wc-sidebar {
    transform: translateX(-100%);
  }

  /* CHAT MAIN — debajo, ocupa toda la pantalla */
  .chat-main,
  .wc-main {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100dvh;
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Cuando hay un chat abierto: main entra desde la derecha */
  body.chat-open .chat-main,
  body.chat-open .wc-main {
    transform: translateX(0);
  }

  /* Botón volver — visible solo en móvil */
  .wc-back-btn { display: flex !important; }

  /* Drawer info — pantalla completa */
  .info-drawer,
  .wc-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100% !important;
    z-index: 30;
  }

  /* Header más compacto */
  .chat-header,
  .wc-header {
    padding: 0 10px;
    height: 54px;
    gap: 6px;
  }

  /* Ocultar texto en tabs, solo iconos */
  .tab-btn,
  .wc-tabs .nav-link {
    padding: 4px 10px;
    font-size: 12px;
  }

  /* Mensajes */
  .messages-area,
  .wc-messages {
    padding: 10px 12px;
  }

  /* Input */
  .message-input-area,
  .wc-input-area {
    padding: 8px 12px 12px;
  }

  /* Kanban una columna */
  .tasks-columns {
    grid-template-columns: 1fr;
  }
  .wc-kanban .row {
    flex-direction: column;
  }

  /* Modal desde abajo */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal,
  .modal--wide {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 92dvh;
  }

  /* Profile y Admin — mismo comportamiento que chat-main */
  .profile-main,
  .admin-main {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100%;
      height: 100dvh;
      z-index: 10;
      transform: translateX(100%);
      transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto;
  }

  body.chat-open .profile-main,
  body.chat-open .admin-main {
      transform: translateX(0);
  }

}

/* ── Mobile loader ───────────────────────────────────────── */
.mobile-loader-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(79,142,247,0.2);
    border-top-color: #4f8ef7;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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


/* Elementos solo visibles en escritorio */
.wc-desktop-only { display: flex; }

@media (max-width: 768px) {
    .wc-desktop-only { display: none !important; }
}

/* ─── Admin users responsive ─────────────────────────────── */
.admin-table-wrap { display: block; }
.admin-cards-wrap { display: none; flex-direction: column; gap: 10px; }

.admin-user-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 14px;
    transition: border-color .12s;
}
.admin-user-card:hover { border-color: var(--border-2); }

@media (max-width: 768px) {
    .admin-table-wrap { display: none; }
    .admin-cards-wrap { display: flex; }
}

@media (max-width: 768px) {
    .msg-reply-btn { opacity: 1 !important; }
}

.reply-preview {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-1);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    padding: 7px 12px;
    margin-bottom: 10px;
}
.reply-icon { font-size: 14px; color: var(--accent); }
.reply-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.reply-author { font-size: 11px; font-weight: 700; color: var(--accent); }
.reply-text { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-cancel { font-size: 12px; color: var(--text-3); cursor: pointer; }
.reply-cancel:hover { color: var(--urgent); }
/* ═══════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg-deep:     #0d1517;
  --bg-base:     #111c1f;
  --bg-surface:  #162024;
  --bg-elevated: #1c282c;
  --bg-hover:    #1f2e32;
  --bg-active:   #243438;

  --border-0: rgba(77,150,164,0.07);
  --border-1: rgba(77,150,164,0.14);
  --border-2: rgba(77,150,164,0.24);
  --border-3: rgba(77,150,164,0.36);

  --text-1: #e0f0f2;
  --text-2: #7fadb5;
  --text-3: #4a7580;

  --accent:      #4d96a4;
  --accent-glow: rgba(77,150,164,0.28);
  --accent-hi:   #5da8b6;
  --accent-dim:  rgba(77,150,164,0.14);

  --urgent:      #e06060;
  --urgent-dim:  rgba(224,96,96,0.12);
  --urgent-glow: rgba(224,96,96,0.25);

  --success:     #5aae7a;
  --success-dim: rgba(90,174,122,0.12);

  --warn:        #d4a04a;
  --warn-dim:    rgba(212,160,74,0.12);

  --status-pending:     #4a7580;
  --status-in-progress: #4d96a4;
  --status-done:        #5aae7a;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.55);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.70), 0 0 0 1px rgba(77,150,164,0.12);
}

/* Ajustes específicos modo oscuro */
[data-theme="dark"] .msg-text,
[data-theme="dark"] .wc-bubble.theirs {
  background: var(--bg-elevated);
  border-color: var(--border-1);
  color: var(--text-1);
}

[data-theme="dark"] .task-card,
[data-theme="dark"] .wc-task-card {
  background: var(--bg-elevated);
}

[data-theme="dark"] .modal {
  background: var(--bg-base);
}

[data-theme="dark"] .form-control {
  background: var(--bg-hover) !important;
  color: var(--text-1) !important;
  border-color: var(--border-1) !important;
}

[data-theme="dark"] select.form-control option {
  background: var(--bg-hover);
  color: var(--text-1);
}

[data-theme="dark"] .settings-card {
  background: var(--bg-elevated);
  border-color: var(--border-1);
}

[data-theme="dark"] .wc-auth-body {
  background: linear-gradient(135deg, #0d1517 0%, #111c1f 100%);
}

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ═══════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: var(--bg-hover);
  border: 1px solid var(--border-1);
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-active);
  border-color: var(--border-2);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE — layout mejorado
   ═══════════════════════════════════════════════════════════ */
.profile-page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  width: 100%;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.profile-avatar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.profile-email {
  font-size: 13px;
  color: var(--text-3);
}

.profile-avatar-actions {
  flex-shrink: 0;
}

.profile-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Responsive móvil perfil */
@media (max-width: 768px) {
  .profile-page-wrap {
    padding: 16px 14px 32px;
  }

  .profile-avatar-section {
    padding: 14px;
    gap: 12px;
  }

  .profile-name { font-size: 17px; }

  .profile-avatar-actions {
    width: 100%;
  }

  .profile-avatar-actions .btn-danger {
    width: 100%;
    text-align: center;
  }

  .profile-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .settings-card {
    padding: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   EMOJI PICKER
   ═══════════════════════════════════════════════════════════ */

/* Botón del picker en el input */
.emoji-btn {
    font-size: 18px;
    opacity: 0.7;
    transition: all .15s;
    padding: 4px;
    border-radius: var(--r-sm);
    line-height: 1;
}
.emoji-btn:hover {
    opacity: 1;
    background: var(--bg-active);
    transform: scale(1.15);
}

/* Panel picker */
.emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
    animation: modalIn .18s cubic-bezier(.16,1,.3,1);
}

/* Tabs de categorías */
.emoji-picker-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 8px 6px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-1);
    flex-wrap: wrap;
}

.ep-tab {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    cursor: pointer;
    transition: all .12s;
    flex-shrink: 0;
}
.ep-tab:hover {
    background: var(--bg-active);
    border-color: var(--border-2);
    transform: scale(1.1);
}
.ep-tab.active {
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Grid de emojis */
.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    max-height: 220px;
    overflow-y: auto;
}
.emoji-picker-grid::-webkit-scrollbar { width: 4px; }
.emoji-picker-grid::-webkit-scrollbar-thumb { background: var(--border-1); border-radius: 2px; }

.ep-emoji {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background: var(--bg-hover);
    border: 1px solid transparent;
    transition: all .1s;
    line-height: 1;
}
.ep-emoji:hover {
    background: var(--bg-active);
    border-color: var(--border-2);
    transform: scale(1.25);
    z-index: 1;
    position: relative;
    box-shadow: var(--shadow-md);
}

/* Contenedor del input relativo para posicionar el picker */
.message-input-area {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════
   REACCIONES EN MENSAJES
   ═══════════════════════════════════════════════════════════ */

/* Botón ➕ en msg-meta */
.msg-react-btn {
    font-size: 13px;
    color: var(--text-3);
    opacity: 0;
    transition: all .12s;
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    line-height: 1.3;
    cursor: pointer;
}
.message-wrapper:hover .msg-react-btn { opacity: 1; }
.msg-react-btn:hover {
    background: var(--bg-active);
    border-color: var(--border-2);
    color: var(--text-1);
}

/* Visible siempre en móvil */
@media (max-width: 768px) {
    .msg-react-btn { opacity: 1; }
    .msg-reply-btn { opacity: 1 !important; }
}

/* Panel de reacciones rápidas */
.reaction-picker {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    animation: msgIn .15s ease-out;
}

.rp-emoji {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background: var(--bg-hover);
    border: 1px solid var(--border-1);
    transition: all .12s;
    line-height: 1;
}
.rp-emoji:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    transform: scale(1.3) translateY(-4px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Chips de reacciones bajo el mensaje */
.msg-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    padding: 0 2px;

}



.reaction-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-1);
    cursor: pointer;
    transition: all .12s;
    line-height: 1.2;
}
.reaction-chip span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
}
.reaction-chip:hover {
    background: var(--bg-hover);
    border-color: var(--border-2);
    transform: scale(1.05);
}
.reaction-chip.mine {
    background: var(--accent-dim);
    border-color: var(--accent);
}
.reaction-chip.mine span {
    color: var(--accent);
}
