/* v3.11（需求 v3.15）：写作页三栏职责、下拉自适应、结论来源标注、方向行补全 */
.writing-layout { grid-template-columns: 220px 360px minmax(0, 1fr); }

/* 历史筛选 / 排序：两列等宽，文字不换行、不被箭头挤压 */
.history-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
}
.history-tools .select-sm {
  width: 100%;
  min-width: 0;
  height: 28px;
  font-size: 12px;
  line-height: 26px;
  padding: 0 20px 0 8px;
  white-space: nowrap;
  text-overflow: clip;
  overflow: hidden;
}
.history-tools .select-sm option { font-size: 12px; }

/* 历史项 */
.history-list { list-style: none; }
.history-empty { list-style: none; }
.history-item { padding: 9px 10px; }
.history-title { font-size: 13px; line-height: 1.45; }
.history-meta {
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* 对话头部模型下拉：与新建内容窗口同款 */
.panel-head { gap: 8px; }
.panel-head .chat-head-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.model-select {
  width: 100%;
  height: 32px;
  font-size: 12.5px;
  padding: 0 24px 0 10px;
}
.panel-head .model-select {
  width: auto;
  min-width: 120px;
  max-width: 190px;
  height: 28px;
  font-size: 12px;
  padding: 0 20px 0 8px;
  flex: 0 1 auto;
}

/* 对话输入区 */
.chat-compose { padding: 10px; }
.compose-direction {
  margin-bottom: 10px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.55;
}
.compose-direction .dir-title { margin-bottom: 3px; }
.compose-direction .dir-body { margin-bottom: 3px; }
.chat-input { padding: 8px 10px; min-height: 62px; font-size: 13px; }
.compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  min-height: 28px;
}
.compose-hint {
  font-size: 12px;
  color: var(--text-4);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compose-foot .btn { flex: 0 0 auto; }

/* 预览工具条与结论来源 */
.preview-toolbar { gap: 8px; padding: 9px 14px; }
.article-statusbar { gap: 8px 20px; font-size: 12px; }
.check-strip { row-gap: 6px; }
.check-strip .chip { white-space: nowrap; }

/* 方向行：主关键词长尾展开 */
.dir-kw { display: inline; }
.dir-kw summary {
  display: inline;
  cursor: pointer;
  color: var(--blue);
  list-style: none;
}
.dir-kw summary::-webkit-details-marker { display: none; }
.dir-kw[open] summary { margin-right: 4px; }
.dir-kw div { display: inline; color: var(--text-3); }

/* 对话生成规则：多条草稿卡片 */
.rule-draft {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}
.rule-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.rule-draft .form-grid { gap: 10px 14px; }
.rule-draft .form-label { font-size: 12px; }
.rule-draft .input, .rule-draft .select, .rule-draft .textarea { font-size: 12.5px; }
.draft-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
