.talk-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.1);
  color: #888; padding: 6px 12px; border-radius: 16px;
  font-size: 0.75rem; cursor: pointer; transition: all 0.2s;
  margin-top: 6px; display: inline-flex; align-items: center; gap: 4px;
}
.talk-toggle:hover, .talk-toggle.active {
  color: #42a5f5; border-color: rgba(66,165,245,0.3);
}
.talk-toggle .talk-count { font-weight: 700; }
.talk-thread {
  display: none; padding: 12px; margin-top: 8px;
  background: rgba(0,0,0,0.3); border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.talk-thread.open { display: block; }
.talk-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.talk-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0e0e0; padding: 8px 12px; border-radius: 8px;
  font-size: 0.82rem; font-family: inherit;
  box-sizing: border-box;
}
.talk-input:focus { border-color: rgba(66,165,245,0.4); outline: none; }
.talk-input::placeholder { color: #555; }
.talk-nick-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.talk-nick-input {
  width: 140px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #aaa; padding: 6px 10px; border-radius: 8px;
  font-size: 0.72rem; font-family: inherit;
  box-sizing: border-box;
}
.talk-nick-input:focus { border-color: rgba(66,165,245,0.3); outline: none; color: #e0e0e0; }
.talk-nick-input::placeholder { color: #444; }
.talk-char-count { font-size: 0.65rem; color: #555; margin-left: auto; }
.talk-char-count.warn { color: #ff9800; }
.talk-char-count.over { color: #ff5252; }
.talk-submit {
  background: #42a5f5; color: #fff; border: none;
  padding: 8px 16px; border-radius: 6px; font-size: 0.8rem;
  cursor: pointer; font-weight: 700; white-space: nowrap;
  transition: background 0.2s;
}
.talk-submit:hover { background: #1e88e5; }
.talk-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.talk-comments-list { margin-top: 4px; }
.talk-comment {
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.talk-comment:last-child { border-bottom: none; }
.talk-header { display: flex; align-items: center; flex-wrap: wrap; }
.talk-nick { color: #42a5f5; font-weight: 700; font-size: 0.75rem; }
.talk-time { color: #555; font-size: 0.68rem; margin-left: 8px; }
.talk-msg { color: #ccc; font-size: 0.82rem; margin: 4px 0; line-height: 1.3; word-break: break-word; }
.talk-actions { display: flex; gap: 10px; align-items: center; }
.talk-vote {
  background: none; border: none; color: #666; font-size: 0.72rem;
  cursor: pointer; padding: 2px 6px; transition: color 0.15s;
  font-family: inherit;
}
.talk-vote:hover { color: #e0e0e0; }
.talk-up.voted { color: #00e676; }
.talk-down.voted { color: #ff5252; }
.talk-react-btn {
  background: none; border: none; font-size: 0.8rem;
  cursor: pointer; padding: 2px 4px; opacity: 0.5;
  transition: opacity 0.15s;
}
.talk-react-btn:hover { opacity: 1; }
.talk-react-btn.reacted { opacity: 1; }
.talk-emoji-display { font-size: 0.75rem; margin-left: 2px; }
.talk-load-more {
  background: none; border: 1px solid rgba(255,255,255,0.08);
  color: #888; padding: 6px 12px; border-radius: 6px;
  font-size: 0.72rem; cursor: pointer; margin-top: 8px;
  width: 100%; transition: all 0.2s;
}
.talk-load-more:hover { color: #42a5f5; border-color: rgba(66,165,245,0.3); }
.talk-empty { color: #555; font-size: 0.78rem; text-align: center; padding: 12px 0; }
.talk-error { color: #ff5252; font-size: 0.72rem; margin-top: 4px; }
.talk-posting { opacity: 0.6; pointer-events: none; }
/* Emoji picker */
.talk-emoji-picker {
  display: none; position: absolute; background: rgba(20,20,30,0.95);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 6px; z-index: 100; gap: 2px; flex-wrap: wrap; width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.talk-emoji-picker.open { display: flex; }
.talk-emoji-opt {
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; padding: 4px; border-radius: 4px;
  transition: background 0.15s;
}
.talk-emoji-opt:hover { background: rgba(255,255,255,0.1); }
/* Mobile */
@media(max-width:768px) {
  .talk-thread { padding: 8px; }
  .talk-input-row { flex-direction: column; }
  .talk-submit { width: 100%; }
  .talk-nick-row { flex-wrap: wrap; }
  .talk-nick-input { width: 100%; }
}
