.tc-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ─── STATUS BAR ─────────────────────────────────── */

.tc-statusbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
  transition: background 0.3s;
}

.tc-dot.on  { background: var(--up); box-shadow: 0 0 6px var(--up); }
.tc-dot.off { background: var(--wip); }

.tc-status { color: var(--muted); }

.tc-online {
  margin-left: auto;
  color: var(--muted2);
}

/* ─── LOG ────────────────────────────────────────── */

.tc-log {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 0.85rem 0.85rem 1rem;
  height: 360px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tc-log::-webkit-scrollbar { width: 6px; }
.tc-log::-webkit-scrollbar-track { background: var(--bg3); border-radius: 3px; }
.tc-log::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 3px; }
.tc-log::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── MESSAGES ───────────────────────────────────── */

.tc-msg {
  display: flex;
  gap: 0.5rem;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.tc-ts {
  font-size: 10px;
  color: var(--muted2);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.tc-nick        { white-space: nowrap; flex-shrink: 0; }
.tc-nick.self   { color: var(--up); }
.tc-nick.online { color: var(--accent); }
.tc-nick.gone   { color: var(--muted); }

.tc-sep  { color: var(--muted2); flex-shrink: 0; }
.tc-text { color: var(--text); }

.tc-sys {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.04em;
  padding: 0.1rem 0;
}

.tc-sys::before { content: '// '; }

/* ─── INPUT ──────────────────────────────────────── */

.tc-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 7px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s;
}

.tc-input-row:focus-within { border-color: var(--border-hover); }

.tc-prompt {
  font-size: 12px;
  color: var(--up);
  white-space: nowrap;
  flex-shrink: 0;
}

.tc-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  min-width: 0;
}

.tc-input::placeholder { color: var(--muted2); }
.tc-input:disabled     { opacity: 0.4; }

.tc-send {
  background: none;
  border: none;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted2);
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.tc-send:hover    { color: var(--accent); }
.tc-send:disabled { opacity: 0.3; cursor: default; }

.tc-hint {
  font-size: 10px;
  color: var(--muted2);
  letter-spacing: 0.06em;
}
