/* ════════════════════════════════
   OmicsLab Teams — Meeting UI
   ════════════════════════════════ */

/* ── Wrapper ── */
.tm-wrap {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
  background: #0d1117;
}

/* ── Header ── */
.tm-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid #21262d;
  background: #161b22;
}

.tm-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 0.25rem;
}

.tm-header-sub {
  font-size: 0.73rem;
  color: #8b949e;
  margin-bottom: 0.85rem;
}

.tm-header-actions { display: flex; gap: 0.5rem; }

/* ── Buttons ── */
.tm-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  background: #238636;
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.tm-btn-primary:hover { background: #2ea043; }

.tm-btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tm-btn-secondary:hover { background: #21262d; border-color: #8b949e; }

/* ── Auth notice ── */
.tm-auth-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: rgba(88, 166, 255, 0.06);
  border-bottom: 1px solid rgba(88, 166, 255, 0.15);
  font-size: 0.78rem;
  color: #8b949e;
}

.tm-auth-link {
  background: transparent;
  border: none;
  color: #58a6ff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.tm-auth-link:hover { color: #79c0ff; }

/* ── Rooms grid ── */
.tm-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

/* ── Room card ── */
.tm-room-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tm-room-card:hover {
  border-color: #30363d;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.tm-room-active { border-color: rgba(63, 185, 80, 0.35); }

.tm-room-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.tm-room-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-room-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.tm-live-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3fb950;
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.tm-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fb950;
  animation: tm-pulse 1.5s ease-in-out infinite;
}

@keyframes tm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.tm-locked-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  color: #8b949e;
  background: rgba(139, 148, 158, 0.08);
  border: 1px solid rgba(139, 148, 158, 0.15);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.tm-room-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0.25rem 0 0;
  line-height: 1.3;
}

.tm-room-desc {
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.5;
  margin: 0;
}

.tm-room-schedule {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #8b949e;
  margin-top: 0.25rem;
}

.tm-room-footer { margin-top: auto; padding-top: 0.5rem; }

.tm-join-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  width: 100%;
  justify-content: center;
}

.tm-join-btn:hover {
  background: #238636;
  border-color: rgba(63, 185, 80, 0.4);
  color: #fff;
}

/* ── Info strip ── */
.tm-info-strip {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #21262d;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

.tm-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: #8b949e;
  line-height: 1.4;
}

.tm-info-item svg { flex-shrink: 0; margin-top: 0.1rem; }

/* ── Create dialog overlay ── */
.tm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 9, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tm-dialog {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.tm-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #21262d;
  font-weight: 700;
  font-size: 0.9rem;
  color: #e6edf3;
}

.tm-dialog-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Permission / Loading screen ── */
.tm-meeting-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  background: #0d1117;
  padding: 2rem;
}

.tm-perm-card {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.tm-perm-denied { border-color: rgba(255, 107, 107, 0.3); }

.tm-perm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.tm-perm-denied-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.tm-perm-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 0.65rem;
}

.tm-perm-desc {
  font-size: 0.82rem;
  color: #8b949e;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.tm-perm-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #3fb950;
}

.tm-perm-spinner svg {
  animation: tm-spin 1s linear infinite;
}

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

.tm-perm-steps {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.tm-perm-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b949e;
  margin-bottom: 0.65rem;
}

.tm-perm-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #c9d1d9;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.tm-perm-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #21262d;
  font-size: 0.6rem;
  font-weight: 700;
  color: #58a6ff;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tm-perm-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Meeting view ── */
.tm-meeting {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4rem);
  background: #010409;
  overflow: hidden;
}

.tm-meeting-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
  flex-shrink: 0;
}

.tm-meeting-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #e6edf3;
}

.tm-meeting-live {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3fb950;
}

.tm-meeting-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #8b949e;
  background: rgba(139, 148, 158, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.tm-meeting-participants-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #8b949e;
}

/* ── Meeting body ── */
.tm-meeting-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  flex: 1;
  overflow: hidden;
}

/* ── Video area ── */
.tm-video-area {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  padding: 8px;
  overflow-y: auto;
  background: #010409;
}

/* ── Video tile ── */
.tm-video-tile {
  position: relative;
  background: #161b22;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  width: calc(50% - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tm-tile-self { border: 2px solid rgba(63, 185, 80, 0.4); }

.tm-video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-video-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #238636;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.tm-tile-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tm-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.tm-tile-audio-only {
  font-size: 0.6rem;
  color: #e3b341;
  background: rgba(0,0,0,0.55);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.tm-mute-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Chat sidebar ── */
.tm-chat-sidebar {
  background: #161b22;
  border-left: 1px solid #21262d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tm-chat-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #21262d;
  font-weight: 700;
  font-size: 0.8rem;
  color: #e6edf3;
  flex-shrink: 0;
}

.tm-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tm-chat-system {
  font-size: 0.68rem;
  color: #8b949e;
  text-align: center;
  padding: 0.25rem 0.5rem;
  font-style: italic;
}

.tm-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
}

.tm-chat-self { background: rgba(63, 185, 80, 0.06); }

.tm-chat-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: #3fb950;
}

.tm-chat-self .tm-chat-name { color: #58a6ff; }

.tm-chat-text {
  font-size: 0.78rem;
  color: #c9d1d9;
  word-break: break-word;
}

.tm-chat-composer {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid #21262d;
  flex-shrink: 0;
}

.tm-chat-input {
  flex: 1;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #e6edf3;
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.tm-chat-input:focus { outline: none; border-color: #58a6ff; }
.tm-chat-input::placeholder { color: #8b949e; }

.tm-chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #238636;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
}

.tm-chat-send:hover { background: #2ea043; }

/* ── Controls bar ── */
.tm-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #0d1117;
  border-top: 1px solid #21262d;
  flex-shrink: 0;
}

.tm-ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 1rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #c9d1d9;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 68px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tm-ctrl-btn:hover { background: #30363d; border-color: #8b949e; }
.tm-ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.tm-ctrl-off {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff6b6b;
}

.tm-ctrl-off:hover { background: rgba(255, 107, 107, 0.18); }

.tm-ctrl-hand {
  background: rgba(227, 179, 65, 0.1);
  border-color: rgba(227, 179, 65, 0.35);
  color: #e3b341;
}

.tm-ctrl-active {
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.35);
  color: #58a6ff;
}

.tm-ctrl-leave {
  background: rgba(185, 28, 28, 0.15);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff6b6b;
}

.tm-ctrl-leave:hover { background: #b91c1c; color: #fff; }

/* ── Toast ── */
.tm-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 9000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .tm-meeting-body { grid-template-columns: 1fr; }
  .tm-chat-sidebar { display: none; }
  .tm-video-tile { width: 100%; }
  .tm-controls { gap: 0.25rem; }
  .tm-ctrl-btn { min-width: 54px; padding: 0.5rem 0.6rem; font-size: 0.6rem; }
  .tm-rooms-grid { grid-template-columns: 1fr; padding: 1rem; }
  .art-hub { grid-template-columns: 1fr; }
  .art-input-panel { border-right: none; border-bottom: 1px solid #21262d; }
}

/* ══════════════════════════════════════════════
   ARTICLE ANALYSER
   ══════════════════════════════════════════════ */

/* Tab bar */
.tm-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #21262d;
  background: #161b22;
  padding: 0 1.5rem;
}

.tm-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.tm-tab:hover { color: #c9d1d9; }

.tm-tab-active {
  color: #e6edf3;
  border-bottom-color: #3fb950;
}

/* Article hub layout */
.art-hub {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 10rem);
  overflow: hidden;
}

/* Input panel */
.art-input-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #21262d;
  background: #161b22;
}

.art-panel-header {
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid #21262d;
}

.art-panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 0.2rem;
}

.art-panel-sub {
  font-size: 0.72rem;
  color: #8b949e;
  line-height: 1.4;
}

/* Input sub-tabs */
.art-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #21262d;
  padding: 0 1.25rem;
}

.art-input-tab {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.art-input-tab:hover { color: #c9d1d9; }

.art-input-tab-active {
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

.art-input-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Textarea */
.art-textarea {
  flex: 1;
  width: 100%;
  min-height: 260px;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #e6edf3;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Consolas', monospace;
  resize: none;
  outline: none;
  line-height: 1.65;
  box-sizing: border-box;
}

.art-textarea::placeholder { color: #484f58; }

/* Drop zone */
.art-drop-zone {
  margin: 1rem 1.25rem;
  border: 1.5px dashed #30363d;
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.art-drop-zone:hover,
.art-drop-hover {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.04);
}

.art-drop-label { font-size: 0.82rem; font-weight: 600; color: #c9d1d9; }
.art-drop-sub   { font-size: 0.7rem; color: #8b949e; text-align: center; }

.art-file-status {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: #58a6ff;
}

/* Footer */
.art-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #21262d;
  gap: 0.5rem;
}

.art-char-count { font-size: 0.7rem; color: #484f58; }

.art-input-actions { display: flex; gap: 0.5rem; }

/* Result panel */
.art-result-panel {
  overflow-y: auto;
  background: #0d1117;
}

/* Empty state */
.art-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  min-height: 300px;
  padding: 3rem 2rem;
  text-align: center;
}

.art-empty-title { font-size: 0.92rem; font-weight: 700; color: #484f58; }
.art-empty-sub   { font-size: 0.78rem; color: #30363d; max-width: 340px; line-height: 1.6; }

/* Loading */
.art-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  color: #8b949e;
}

.art-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #21262d;
  border-top-color: #3fb950;
  border-radius: 50%;
  animation: art-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Error */
.art-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: #ff6b6b;
}

/* Result */
.art-result {
  padding: 0;
}

.art-result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid #21262d;
  background: #161b22;
  position: sticky;
  top: 0;
  z-index: 2;
}

.art-result-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3fb950;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.art-download-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Sections */
.art-section {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #161b22;
}

.art-section-africa {
  background: rgba(249, 115, 22, 0.03);
}

.art-section-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* Tags */
.art-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.art-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.art-tag-green  { color: #3fb950; background: rgba(63,185,80,0.1);    border-color: rgba(63,185,80,0.25);    }
.art-tag-blue   { color: #58a6ff; background: rgba(88,166,255,0.1);   border-color: rgba(88,166,255,0.25);   cursor: pointer; }
.art-tag-blue:hover { background: rgba(88,166,255,0.18); }
.art-tag-purple { color: #bc8cff; background: rgba(188,140,255,0.1);  border-color: rgba(188,140,255,0.25);  }
.art-tag-orange { color: #f97316; background: rgba(249,115,22,0.1);   border-color: rgba(249,115,22,0.25);   }
.art-tag-red    { color: #ff6b6b; background: rgba(255,107,107,0.1);  border-color: rgba(255,107,107,0.25);  }
.art-tag-sm     { font-size: 0.65rem; padding: 0.12rem 0.4rem; }

/* Lists */
.art-list {
  padding-left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.art-finding {
  font-size: 0.78rem;
  color: #c9d1d9;
  line-height: 1.55;
}

.art-ordered-list {
  padding-left: 1.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.art-ordered-list li {
  font-size: 0.78rem;
  color: #c9d1d9;
  line-height: 1.55;
}

/* Africa rows */
.art-africa-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.art-africa-label {
  font-size: 0.68rem;
  color: #8b949e;
  font-weight: 600;
  min-width: 90px;
  flex-shrink: 0;
}

/* Research opportunities */
.art-opps-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.art-opp-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.art-opp-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(88,166,255,0.12);
  border: 1px solid rgba(88,166,255,0.25);
  color: #58a6ff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.art-opp-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 0.35rem;
}

.art-opp-desc {
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.art-opp-tools { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* Thesis */
.art-thesis { display: flex; flex-direction: column; gap: 0.6rem; }

.art-thesis-chapter {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  overflow: hidden;
}

.art-thesis-ch-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
}

.art-thesis-num {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #bc8cff;
  background: rgba(188,140,255,0.1);
  border: 1px solid rgba(188,140,255,0.2);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.art-thesis-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e6edf3;
}

.art-thesis-points {
  padding: 0.65rem 1rem 0.65rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.art-thesis-points li {
  font-size: 0.75rem;
  color: #8b949e;
  line-height: 1.5;
}

/* Search terms */
.art-search-row { gap: 0.35rem; }

.art-search-hint {
  font-size: 0.68rem;
  color: #484f58;
  margin-top: 0.5rem;
}

/* Copy toast */
.art-copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #238636;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 9999;
  pointer-events: none;
  animation: art-toast-in 0.2s ease;
}

@keyframes art-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════
   JITSI EMBED MEETING (cross-device via meet.jit.si)
   ══════════════════════════════════════════════ */
.tm-jitsi-page { display: flex; flex-direction: column; height: 100%; min-height: calc(100vh - 120px); }

.tm-jitsi-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tm-jitsi-info { display: flex; align-items: center; gap: 0.65rem; }
.tm-jitsi-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3fb950;
  flex-shrink: 0;
  position: relative;
}
.tm-jitsi-live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(63,185,80,0.4);
  animation: tm-pulse 2s infinite;
}
@keyframes tm-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.35); }
}

.tm-jitsi-room-name { font-size: 0.92rem; font-weight: 700; color: #e6edf3; }
.tm-jitsi-tag {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em;
  color: #3fb950; background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.3);
  border-radius: 4px; padding: 0.1rem 0.45rem;
}

.tm-jitsi-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.tm-jitsi-share-hint { font-size: 0.75rem; color: #8b949e; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

.tm-jitsi-copy-btn {
  padding: 0.15rem 0.5rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 5px;
  color: #8b949e;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.tm-jitsi-copy-btn:hover { background: #30363d; color: #e6edf3; }

.tm-jitsi-iframe {
  flex: 1;
  width: 100%;
  min-height: 480px;
  border: none;
  background: #0d1117;
}

.tm-jitsi-note {
  padding: 0.65rem 1.5rem;
  font-size: 0.73rem;
  color: #6e7681;
  background: #0d1117;
  border-top: 1px solid #21262d;
  line-height: 1.55;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .tm-jitsi-topbar { padding: 0.6rem 1rem; }
  .tm-jitsi-iframe { min-height: 360px; }
  .tm-jitsi-share-hint { font-size: 0.68rem; }
}
