mark.chatter-highlight {
  background: #fff3a3;
  border-bottom: 2px solid #f0c419;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: background 120ms ease;
}
mark.chatter-highlight:hover { background: #ffe566; }
mark.chatter-highlight.chatter-resolved {
  background: #ececec;
  border-bottom-color: #b8b8b8;
}

.chatter-chip {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 0;
}
.chatter-chip:hover { background: #fffae6; transform: scale(1.05); }

.chatter-panel {
  position: absolute;
  width: 300px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  z-index: 9999;
  font: 14px/1.4 -apple-system, system-ui, sans-serif;
}
.chatter-input {
  width: 100%;
  min-height: 64px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
.chatter-input:focus { border-color: #1a73e8; }
.chatter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.chatter-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.chatter-btn:hover { background: #f5f5f5; }
.chatter-btn.chatter-primary {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}
.chatter-btn.chatter-primary:hover { background: #1765c4; }

.chatter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: 14px/1.4 -apple-system, system-ui, sans-serif;
}
.chatter-empty {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 20px;
  border: 1px dashed #e0e0e0;
  border-radius: 8px;
}
.chatter-thread {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  transition: box-shadow 150ms, border-color 150ms;
}
.chatter-thread.chatter-active {
  border-color: #1a73e8;
  box-shadow: 0 2px 12px rgba(26, 115, 232, 0.18);
}
.chatter-thread.chatter-resolved { opacity: 0.55; }
.chatter-thread.chatter-orphaned {
  border-style: dashed;
  border-color: #fca5a5;
  background: #fff7f7;
}
.chatter-thread.chatter-orphaned .chatter-quote {
  border-left-color: #fca5a5;
  text-decoration: line-through;
}
.chatter-orphan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fee2e2;
  color: #b91c1c;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: 1px;
}
.chatter-quote {
  font-size: 12px;
  color: #555;
  border-left: 3px solid #f0c419;
  padding-left: 8px;
  margin-bottom: 6px;
  font-style: italic;
  word-break: break-word;
}
.chatter-thread.chatter-resolved .chatter-quote { border-left-color: #b8b8b8; }
.chatter-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}
.chatter-body {
  font-size: 13px;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.chatter-row { display: flex; gap: 14px; }
.chatter-link {
  background: none;
  border: 0;
  padding: 0;
  color: #1a73e8;
  cursor: pointer;
  font-size: 12px;
  font: inherit;
  font-size: 12px;
}
.chatter-link:hover { text-decoration: underline; }
