/* ============================================================================
 * 大纲细化工作台 · outline-studio.css
 *
 * 【P0】零硬编码色值（例外仅 #fff / #000）；无紫→粉渐变；圆角 ≤18px；无弹跳缓动。
 * 【取色】一律走 var()，与 inspire.css 同纪律：刻意不写 var(--x, #某值) 字面兜底 ——
 *         兜底色本身就是新增硬编码颜色，会被颜色台账判为新文件违规。缺变量先修 tokens。
 * 【加载】只被 index.html 引用（tokens.css 之后），admin.html 不加载。
 * ========================================================================== */

.ost-panel {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 13px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.ost-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ost-hd .sec-t { margin: 0; }

/* 进度提示条：给大纲 → 选方向 → 沟通定稿 */
.ost-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

.ost-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--meta);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.ost-step i { font-style: normal; font-weight: 600; }
.ost-step.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.ost-step.done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, transparent); }

/* 分段 */
.ost-sec { margin-top: 16px; }
.ost-sec:first-of-type { margin-top: 12px; }
.ost-sec + .ost-sec { border-top: 1px solid var(--border-soft); padding-top: 16px; }

.ost-sec-t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}

.ost-hint { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 6px; }

.ost-fld { margin-top: 12px; }
.ost-fld > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }

.ost-fld textarea,
.ost-fld input[type=number],
.ost-fld input[type=text] {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
}

.ost-fld textarea { min-height: 118px; resize: vertical; font-size: 13px; line-height: 1.75; }

.ost-row2 { display: flex; gap: 14px; flex-wrap: wrap; }
.ost-row2 > .ost-fld { flex: 1 1 210px; }

.ost-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ost-actions .ost-hint { margin: 0; }

.ost-err { font-size: 12.5px; line-height: 1.75; color: var(--danger); margin-top: 12px; }

.ost-empty { font-size: 13px; color: var(--muted); line-height: 1.85; }

/* ---- 方案卡 ---- */
.ost-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }

.ost-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.ost-card.sel {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-dim);
}

.ost-card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.ost-card-hd .ost-no {
  font-size: 11.5px;
  color: var(--meta);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
}

.ost-card-hd b { font-size: 14px; color: var(--fg); }

.ost-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1;
  color: var(--meta);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.ost-tag.chat { color: var(--info); background: var(--info-dim); }
.ost-tag.ok { color: var(--success); background: var(--success-dim); }

.ost-summary { font-size: 13px; line-height: 1.8; color: var(--fg-2); margin-top: 8px; }

.ost-turn {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 6px;
}

.ost-turn .ti { flex: 0 0 auto; margin-top: 2px; }
.ost-kv-t { font-weight: 500; color: var(--meta); }

.ost-tradeoff {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--warn);
  margin-top: 8px;
}

.ost-tradeoff .ti { flex: 0 0 auto; margin-top: 2px; }
.ost-tradeoff b { font-weight: 500; }

.ost-card-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---- 细纲预览 ---- */
.ost-items { margin-top: 11px; border-top: 1px dashed var(--border); padding-top: 10px; }

.ost-item { padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.ost-item:last-child { border-bottom: 0; }

.ost-item-idx {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.ost-item-idx .ost-ct { color: var(--fg); font-weight: 500; }

.ost-item-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 3px;
}

.ost-item-row b { flex: 0 0 auto; font-weight: 500; color: var(--meta); }

.ost-more { font-size: 11.5px; color: var(--meta); margin-top: 8px; }

/* ---- 新方案提示条 ---- */
.ost-warnbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--warn);
  background: var(--warn-dim);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}

/* ---- 对话区 ---- */
.ost-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.ost-msg { display: flex; gap: 9px; align-items: flex-start; }

.ost-msg .ost-av {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.4;
  color: var(--meta);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

.ost-msg.user .ost-av { color: var(--info); background: var(--info-dim); }
.ost-msg.assistant .ost-av { color: var(--accent); background: var(--accent-dim); }

.ost-msg .ost-body {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--fg-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.ost-chat-in { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.ost-chat-in textarea { flex: 1 1 auto; min-height: 62px; resize: vertical; font-size: 13px; line-height: 1.7; }
