/* ── Chat Glance Widget ── */
.chat-glance-card {
  background: var(--color-card, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}
.chat-glance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}
.chat-glance-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary, #0F172A);
  margin: 0;
}
.chat-glance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chat-glance-item {
  padding: 10px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 150ms ease;
}
.chat-glance-item:hover,
.chat-glance-item:focus-visible {
  background: rgba(0, 0, 0, 0.02);
}

.chat-glance-item:focus-visible {
  outline: 2px solid var(--color-primary, #696cff);
  outline-offset: -2px;
  border-radius: 6px;
}
.chat-glance-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-glance-tutor {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary, #0F172A);
}
.chat-glance-time {
  font-size: 0.75rem;
  color: var(--color-text-secondary, #64748B);
}
.chat-glance-snippet {
  font-size: 0.8125rem;
  color: var(--color-text-secondary, #64748B);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-glance-empty, .chat-glance-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  text-align: center;
  color: var(--color-text-secondary, #64748B);
}
.chat-glance-empty p, .chat-glance-error p {
  margin: 8px 0 0;
  font-size: 0.875rem;
}
.chat-glance-empty-link {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-primary);
  text-decoration: none;
}
.chat-glance-empty-link:hover { text-decoration: underline; }
.chat-glance-retry {
  margin-top: 8px;
  background: none;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  cursor: pointer;
  color: var(--color-text-primary, #0F172A);
}

/* Chat skeleton */
.chat-skeleton-item {
  padding: 10px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.chat-skeleton-name {
  width: 80px;
  height: 14px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.chat-skeleton-snippet {
  width: 180px;
  height: 12px;
  border-radius: 4px;
}

/* noter-glance CSS removed — noter is now a shortcut (REV-003) */

/* ============ DARK MODE — Chat Glance ============ */

[data-theme="dark"] .chat-glance-card {
  background: #2b2a27;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .chat-glance-item {
  border-top-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .chat-glance-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .chat-glance-retry {
  border-color: rgba(255, 255, 255, 0.12);
  color: #e8e6e1;
}
[data-theme="dark"] .chat-skeleton-item {
  border-top-color: rgba(255, 255, 255, 0.06);
}
