body {
  margin: 0;
  font-family: sans-serif;
}

#app {
  display: flex;
  height: 100vh;
}

/* Debug Widget List */
#debug-widget-list {
  width: 240px;
  border-right: 1px solid #ccc;
  padding: 8px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

/* Consultation list */
#consultation-list {
  width: 240px;
  border-right: 1px solid #ccc;
  padding: 8px;
  box-sizing: border-box;
}

#consultation-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#consultation-items li {
  padding: 6px;
  cursor: pointer;
}
#consultation-items li.active {
  background-color: #e0e0e0;
}
#consultation-items li.disabled {
  color: #999;           /* テキストを薄くして無効を表現 */
  cursor: not-allowed;   /* マウスカーソルを禁止マークに */
  opacity: 0.6;          /* 少し透けさせる */
}

/* Thread */
#thread {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#event-list {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Events */
.event {
  padding: 8px;
  margin: 4px 0;
  max-width: 70%;
  border-radius: 4px;
  word-break: break-word;
}

/* ユーザー側メッセージ */
.event.user {
  background-color: #e0f0ff;
  align-self: flex-end;
  text-align: left;
  margin-bottom: 10px;
}

/* アシスタントのメッセージ + ミニリリス */
.event.assistant {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}
.mini-lilith {
  width: 120px;
  height: auto;
  margin-right: 8px;
}
.reply-meta {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}
.message-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}


/* Composer */
#composer {
  display: flex;
  border-top: 1px solid #ccc;
  padding: 8px;
  box-sizing: border-box;
}

#input {
  flex: 1;
  resize: none;
}

#send {
  margin-left: 8px;
}
#send:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 新規作成ボタンが無効の時 */
#createNewConsultation:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}