.discussion-log {
  height: 400px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.streaming-container {
  height: 648px; /* 再在原基础上扩展三倍高度 */
  overflow-y: auto;
  font-size: 0.9rem;
}

.stream-bubble {
  max-width: 100%;
  margin-bottom: 6px;
  display: flex;
}

.stream-bubble-inner {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.85rem;
  max-width: 80%;
  cursor: pointer;
}

.stream-bubble-inner.boss {
  margin-left: auto;
  background-color: #d1f2ff;
}

.stream-bubble-inner .stream-role {
  font-weight: 600;
  margin-bottom: 2px;
}

.stream-bubble-inner .stream-content {
  max-height: 3.2em; /* 默认折叠：约两行多一点 */
  overflow: hidden;
}

.stream-bubble-inner.expanded .stream-content {
  max-height: none;
  overflow: visible;
}

.stream-bubble-inner .stream-toggle {
  font-size: 0.75rem;
  color: #888; /* 恢复为灰色 */
  text-align: right;
}

.result-pre {
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* 让右侧整列与左侧对齐顶部/底部 */
#discussion-section .row.g-3 {
  align-items: stretch;
}

/* 右侧列改为纵向布局，按钮区贴底 */
#discussion-section .col-md-4 {
  display: flex;
  flex-direction: column;
}

/* 右侧上半部分（资料相关）固定在上方，老板指令 + 本轮参与角色 + 按钮整体贴底 */
#discussion-section .col-md-4-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.round-actions-wrapper {
  margin-top: auto; /* 将老板指令 + 本轮参与角色 + 按钮整体推到底部 */
}

.round-actions {
  display: flex;
  flex-direction: column; /* 上下分布 */
  gap: 8px;
}

.round-actions .btn-round {
  width: 100%;
  height: 56px; /* 近似正方形：高度固定，宽度占满 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

/* 结束讨论时的加载遮罩 */
#end-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.end-loading-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.end-loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #e0e0e0;
  border-top-color: #dc3545; /* 和结束按钮同色系 */
  animation: end-spin 0.8s linear infinite;
}

@keyframes end-spin {
  to {
    transform: rotate(360deg);
  }
}

.end-loading-text {
  font-size: 0.95rem;
}

/* 上传资料拖拽框样式 */
.material-dropzone {
  position: relative;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.material-dropzone:hover {
  border-color: #0d6efd;
  background-color: #f1f5ff;
}

.material-dropzone.dragover {
  border-color: #0d6efd;
  background-color: #e7f1ff;
}

.material-dropzone .material-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
