/* ── Content OS 吸收：质检面板（AI味 + 收藏价值评分） ── */

#write-quality-panel {
  font-size: 13px;
  line-height: 1.5;
}

.qc-section {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.qc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.qc-label {
  font-weight: 600;
  font-size: 13px;
}

.qc-score {
  font-weight: 700;
  font-size: 14px;
  padding: 1px 6px;
  border-radius: 4px;
}

.qc-pass { color: #2e7d32; background: #e8f5e9; }
.qc-fail { color: #c62828; background: #ffebee; }

.qc-count {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: auto;
}

.qc-bar-container {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-left: 8px;
  max-width: 120px;
}

.qc-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.qc-details {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qc-item {
  padding: 3px 6px;
  background: #fafafa;
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
}

.qc-item code {
  background: #fff3e0;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 11px;
  color: #e65100;
}

.qc-context {
  color: var(--text-secondary);
  font-size: 11px;
}

.qc-warn {
  color: #e65100;
}

/* ── Content OS 吸收：内容生命周期面板（Gap①） ── */

.cl-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: box-shadow 0.15s;
}

.cl-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cl-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cl-title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.cl-badge-published { background: #e8f5e9; color: #2e7d32; }
.cl-badge-feedback { background: #fff3e0; color: #e65100; }
.cl-badge-archived { background: #f5f5f5; color: #999; }
.cl-badge-idea { background: #e3f2fd; color: #1565c0; }
.cl-badge-brief { background: #f3e5f5; color: #7b1fa2; }
.cl-badge-draft { background: #fce4ec; color: #c62828; }
.cl-badge-review { background: #fff8e1; color: #f57f17; }

.cl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cl-meta-item { white-space: nowrap; }

.cl-notes {
  font-size: 12px;
  color: var(--text-secondary);
  background: #fafafa;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.cl-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.cl-filter.active,
.cs-doc-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Tab 栏 ── */

#page-distill .tabs {
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  gap: 0;
}

#page-distill .tabs .tab {
  position: relative;
  padding: 12px 22px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  user-select: none;
}

#page-distill .tabs .tab:hover {
  color: var(--text);
  background: var(--primary-light);
}

#page-distill .tabs .tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

#page-distill [id^="sl-panel-"] {
  animation: soulPanelIn 0.3s ease-out;
}

@keyframes soulPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 设置页 Tab 栏 ── */

.settings-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.settings-tab {
  padding: 10px 24px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.settings-tab:hover {
  color: var(--text);
}

.settings-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.settings-tab-content {
  animation: ds-fade-in 0.3s ease;
}