:root {
  --bg: #f4f7fc;
  --card: rgba(255, 255, 255, .96);
  --ink: #172238;
  --muted: #738199;
  --line: #dce4f0;
  --blue: #2b76f6;
  --blue-soft: #eaf2ff;
  --navy: #172641;
  --navy-2: #264a82;
  --green: #148963;
  --green-soft: #effaf5;
  --gold: #b97612;
  --gold-soft: #fff6e6;
  --shadow: 0 12px 34px rgba(35, 68, 120, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 1180px; min-height: 720px; }
body {
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 82% 10%, rgba(82, 143, 255, .11), transparent 23%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}
button { font: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  width: 100vw;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 23px 17px 18px;
  color: white;
  background: linear-gradient(180deg, #17243a 0%, #132036 100%);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 7px 23px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #296ffa, #66a4ff);
  box-shadow: 0 9px 24px rgba(45, 119, 247, .3);
}
.brand strong { display: block; font-size: 15px; letter-spacing: -0.2px; white-space: nowrap; }
.brand small {
  display: block;
  margin-top: 3px;
  color: #91a0b8;
  font-size: 9px;
  letter-spacing: 1.5px;
}

#side-nav { display: grid; gap: 8px; }
.side-button {
  height: 47px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #9eabc0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: .2s ease;
}
.side-button:hover { color: white; background: rgba(255,255,255,.05); }
.side-button.active { color: white; background: #294c80; }
.side-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #42516a;
  border-radius: 7px;
  font-size: 12px;
}
.side-button.active .side-index { border-color: var(--blue); background: var(--blue); }

.demo-contract {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #aeb9ca;
  background: rgba(255,255,255,.04);
  font-size: 10px;
  line-height: 1.7;
}
.demo-contract strong, .demo-contract span { display: block; }
.demo-contract strong { color: white; font-size: 11px; }

.main { padding: 19px 28px 13px; min-width: 0; }
.page-header {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.agent-title {
  margin: 0;
  color: #286bf1;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 1.15px;
  font-weight: 860;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.replay-button, .case-pill {
  height: 34px;
  padding: 0 13px;
  border-radius: 18px;
  font-size: 10px;
}
.replay-button {
  border: 1px solid #cfe0fb;
  color: #3567ae;
  background: #f5f9ff;
  cursor: pointer;
}
.replay-button.running { color: white; border-color: var(--blue); background: var(--blue); }
.replay-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}
.case-pill {
  display: flex;
  align-items: center;
  border: 1px solid #f0d49c;
  color: #8d5d11;
  background: var(--gold-soft);
}
.back-link {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 18px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #d7dfeb;
  color: #35507a;
  background: #f7f9fc;
}
.back-link:hover { border-color: var(--blue); color: var(--blue); }


.global-flow {
  height: 46px;
  margin-top: 9px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(35, 68, 120, .05);
  display: flex;
  align-items: center;
}
.global-stage {
  flex: 1;
  border: 0;
  color: #9ca8ba;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.global-stage:not(:last-child)::after {
  content: "";
  width: 38px;
  height: 1px;
  margin-left: auto;
  background: #d4deeb;
}
.global-stage span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f7;
  font-size: 11px;
}
.global-stage b { font-size: 12px; white-space: nowrap; }
.global-stage.active { color: var(--blue); }
.global-stage.active span { color: white; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

.mechanism {
  min-height: 82px;
  margin-top: 9px;
  padding: 13px 18px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(90deg, #172b4d, #244a82);
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  align-items: center;
  box-shadow: 0 11px 28px rgba(24,54,104,.16);
}
.mechanism-copy small {
  display: block;
  color: #8eb8ff;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.mechanism-copy strong { display: block; margin-top: 6px; font-size: 17px; }
.mechanism-steps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.mechanism-step {
  flex: 1;
  max-width: 146px;
  padding: 10px 9px;
  border: 1px solid rgba(149,190,255,.34);
  border-radius: 10px;
  text-align: center;
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 700;
  transition:
    color .9s cubic-bezier(.22,.61,.36,1),
    background-color .9s cubic-bezier(.22,.61,.36,1),
    border-color .9s cubic-bezier(.22,.61,.36,1),
    box-shadow .9s cubic-bezier(.22,.61,.36,1);
}
.mechanism-step em { margin-right: 6px; color: #6da8ff; font-style: normal; font-size: 8px; }
.mechanism-step.playing {
  color: #fff;
  border-color: rgba(211,230,255,1);
  background: rgba(100,158,255,.47);
  box-shadow:
    inset 0 0 0 1px rgba(232,241,255,.25),
    0 0 23px rgba(84,148,255,.34);
  transform: translateY(-1px);
}
.mechanism-step.playing em { color: #dceaff; }
.mechanism-arrow { color: #72acff; font-size: 17px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(360px, 43fr);
  gap: 14px;
  margin-top: 11px;
  min-height: 430px;
}
.workspace[data-stage="hotspot"] { grid-template-columns: minmax(0, 62fr) minmax(340px, 38fr); }
.workspace[data-stage="research"] { grid-template-columns: minmax(0, 65fr) minmax(340px, 35fr); }
.workspace[data-stage="content"] { grid-template-columns: minmax(0, 64fr) minmax(350px, 36fr); }
.workspace[data-stage="qc"],
.workspace[data-stage="human"],
.workspace[data-stage="production"] { grid-template-columns: minmax(0, 60fr) minmax(360px, 40fr); }
.card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bilingual-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.bilingual-title strong { font-size: 16px; }
.bilingual-title small { color: #8996aa; font-size: 12px; font-weight: 500; }
.card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.input-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #3c6fb8;
  font-size: 12px;
  font-weight: 700;
}
.input-hint b {
  font-size: 13px;
  transition: transform .25s ease;
}
.input-hint:hover b { transform: translateX(2px); }
.output-origin {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 9px;
  color: #3971c3;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 700;
}
.badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
}
.badge.gold { color: var(--gold); background: var(--gold-soft); }
.section-kicker {
  margin-top: 13px;
  color: #2b6fec;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.topic-list, .question-list, .source-list, .qc-list, .production-list { display: grid; gap: 8px; margin-top: 12px; }
.topic-list { gap: 7px; }
.topic-item {
  position: relative;
  min-height: 50px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 72px 1fr 68px;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  background: #fff;
  cursor: pointer;
  transition: border-color .28s ease, background-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.topic-item:hover { transform: translateY(-1px); border-color: #adc9f6; }
.topic-item.top-two { border-color: #b8d2fb; background: #f1f7ff; }
.topic-item.top-three-row { border-color: #c9dcf8; background: #f6faff; }
.topic-item.selected {
  border-color: #72a5ff;
  background: linear-gradient(90deg, #e7f1ff, #f8fbff);
  box-shadow: 0 6px 16px rgba(53,111,204,.12);
}
.topic-item.selected {
  box-shadow: inset 3px 0 0 var(--blue), 0 6px 16px rgba(53,111,204,.12);
}
.topic-item.selected::after,
.qc-tab.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  z-index: 4;
  width: 30px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(43,118,246,.12), var(--blue));
  box-shadow: 0 0 12px rgba(43,118,246,.4);
  animation: relation-arrow-in .3s cubic-bezier(.22,.61,.36,1) both;
}
.topic-item.selected::before,
.qc-tab.active::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -32px;
  z-index: 5;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--blue);
  filter: drop-shadow(0 2px 6px rgba(43,118,246,.45));
  animation: relation-arrow-in .3s cubic-bezier(.22,.61,.36,1) both;
}
.topic-item:hover:not(.selected)::after,
.qc-tab:hover:not(.active)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 30px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  opacity: .45;
  background: linear-gradient(90deg, rgba(43,118,246,.1), var(--blue));
}
.topic-rank {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; color: #73839b; background: #eff3f8; font-size: 12px;
}
.hot-rank {
  width: 68px;
  grid-template-columns: 22px 1fr;
  padding: 0 7px;
  color: #2c65ba;
  background: rgba(255,255,255,.72);
  font-size: 14px;
}
.hot-rank i { font-style: normal; font-size: 15px; }
.hot-rank b { white-space: nowrap; font-size: 13px; }
.selected .topic-rank { color: white; background: var(--blue); }
.topic-item strong { display: block; font-size: 14px; }
.topic-item small { display: block; margin-top: 5px; color: #7e8aa0; font-size: 10px; }
.topic-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
}
.topic-tags i {
  padding: 3px 8px;
  border-radius: 9px;
  color: #2f69b9;
  background: #e8f2ff;
  font-style: normal;
  line-height: 1.35;
}
.topic-tags i:nth-child(2) { color: #477c4f; background: #edf8ef; }
.topic-tags i:nth-child(3) { color: #8b641f; background: #fff6e2; }
.topic-tags i:nth-child(4) { color: #7354a3; background: #f3edff; }
.topic-tags.secondary i { opacity: .78; }
.topic-score { text-align: right; font-size: 20px; font-weight: 800; }
.selected .topic-score { color: var(--blue); }
.topic-score span { color: #9aa6b8; font-size: 10px; font-weight: 500; }
.micro-note { margin-top: 9px; color: #939fb1; font-size: 10px; line-height: 1.5; }

.dark-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(145deg, #172641, #294878);
}
.dark-panel .mini-label {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 11px;
  color: var(--blue);
  background: white;
  font-size: 10px;
  font-weight: 800;
}
.dark-panel h3 { margin: 10px 0 7px; font-size: 15px; }
.dark-panel p { margin: 0; color: #cad4e5; font-size: 12px; line-height: 1.55; }
.dark-panel .angle-copy {
  margin-top: 12px;
  color: #e0e8f5;
  font-size: 13px;
  line-height: 1.72;
}
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 13px; }
.metric { color: #c0ccde; font-size: 10px; }
.metric b { float: right; color: white; }
.metric-bar { height: 4px; margin-top: 5px; border-radius: 4px; background: rgba(255,255,255,.15); }
.metric-bar i { display: block; height: 100%; border-radius: inherit; background: #72a5ff; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.summary-box {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
}
.summary-box small { display: block; color: var(--muted); font-size: 11px; }
.summary-box strong { display: block; margin-top: 5px; font-size: 13px; }

.classification-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.class-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
}
.class-card.primary { color: white; border-color: #326fcf; background: linear-gradient(135deg, #235495, #2f73d6); }
.class-card small { display: block; color: inherit; opacity: .72; font-size: 11px; }
.class-card strong { display: block; margin-top: 5px; font-size: 13px; }

.research-section-title {
  margin-top: 13px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dbe7f8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.research-section-title > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.research-section-title div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.research-section-title strong { color: #245aa9; font-size: 12px; }
.research-section-title strong em { margin: 0 3px; color: #7ea3d5; font-style: normal; }
.research-section-title small { color: #8290a5; font-size: 12px; }
.research-section-title.compact { margin-top: 12px; }

.depth-track { display: flex; align-items: center; gap: 7px; margin-top: 11px; }
.depth-node {
  flex: 1;
  padding: 9px 7px;
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  color: #315b9f;
  background: #f5f9ff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.depth-node.active { color: white; border-color: var(--blue); background: var(--blue); }
.depth-arrow { color: #8cafeb; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.method-card, .question-item, .source-item, .delivery-item, .trace-item {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
}
.method-card b, .question-item b, .source-item b { color: #2e63b5; }
.question-list.two-col { grid-template-columns: 1fr 1fr; }

.expectation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 10px;
}
.expectation-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
}
.exp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 84px;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.exp-head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
}
.exp-head small:not(:first-child),
.exp-row .exp-delta { text-align: center; }
.exp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 84px;
  gap: 6px;
  align-items: center;
  padding-top: 7px;
}
.exp-metric b { display: block; color: var(--ink); font-size: 12px; font-weight: 800; }
.exp-metric span {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.exp-delta {
  padding: 5px 4px;
  white-space: nowrap;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.exp-delta.up { color: #12805d; background: #e9f7f0; }
.exp-delta.down { color: #c0414c; background: #fdecec; }
.exp-delta.none { color: #97a3b6; background: #f2f5fa; font-weight: 700; }
.expectation-card.positive { border-left: 3px solid #3ab88a; }
.expectation-card.negative { border-left: 3px solid #e16a74; }
.expectation-card.market-reaction {
  grid-column: 1 / -1;
  border-left: 3px solid #e16a74;
  background: #fff8f8;
}
.coverage-grid {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
.coverage-grid div {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f6f9fe;
  font-size: 12px;
}
.coverage-grid b { display: block; color: #2d63b5; }
.coverage-grid span { display: block; margin-top: 3px; color: #5d6c82; line-height: 1.4; }

.insight-box, .ready-box, .decision-box {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #bfe7d5;
  border-radius: 10px;
  color: #197a59;
  background: var(--green-soft);
  font-size: 12px;
  line-height: 1.5;
}
.insight-box strong, .ready-box strong, .decision-box strong { font-size: 13px; }

.narrative-flow { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.narrative-node {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: center;
  background: #fafcff;
  font-size: 12px;
  font-weight: 700;
}
.narrative-arrow { color: #72a5ff; }
.editor-grid { display: grid; grid-template-columns: 205px 1fr; gap: 11px; margin-top: 12px; }
.outline { display: grid; gap: 7px; }
.outline div { padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #52637c; background: #fafcff; font-size: 13px; font-weight: 650; }
.outline div.active { border-color: #8eb5ff; color: var(--blue); background: var(--blue-soft); }
.script {
  padding: 13px;
  border-radius: 12px;
  color: #dbe6f7;
  background: linear-gradient(145deg, #172641, #233f6b);
  font-size: 12px;
  line-height: 1.75;
}
.script-hook { color: #fff; font-size: 13px; line-height: 1.75; }
.script mark { color: white; background: rgba(72,137,255,.35); }
.script-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #84b4ff;
  font-size: 10px;
  letter-spacing: .5px;
}
.delivery-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 12px; }
.delivery-item {
  padding: 12px;
  border-left: 3px solid #6d9ff4;
  background: #f8fbff;
}
.delivery-item strong { display: block; color: #1d355d; font-size: 12px; }
.delivery-item small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.qc-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 11px;
  color: white;
  background: linear-gradient(120deg, #17325c, #28579a);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qc-result strong { font-size: 22px; }
.qc-workbench {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.qc-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}
.qc-tab {
  position: relative;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #52637c;
  background: #fafcff;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.qc-tab span { margin-right: 7px; color: #7da2dd; font-size: 11px; }
.qc-tab.active {
  color: var(--blue);
  border-color: #8fb6ff;
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue), 0 6px 14px rgba(43,118,246,.08);
}
.qc-detail {
  min-height: 286px;
  padding: 17px;
  border-radius: 12px;
  color: #dce7f7;
  background: linear-gradient(145deg, #172641, #244776);
}
.qc-detail[hidden] { display: none; }
.qc-detail.qc-panel-refresh { animation: panel-refresh .4s cubic-bezier(.22,.61,.36,1) both; }
.qc-detail-label {
  color: #83b2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}
.qc-detail h3 { margin: 9px 0 13px; color: #fff; font-size: 15px; }
.qc-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qc-fact-grid div,
.qc-check-grid div {
  padding: 11px;
  border: 1px solid rgba(167,199,247,.2);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
}
.qc-fact-grid div.wide { grid-column: 1 / -1; }
.qc-fact-grid small { display: block; color: #9db5d7; font-size: 11px; }
.qc-fact-grid strong { display: block; margin-top: 5px; color: #fff; font-size: 12px; }
.qc-check-grid { display: grid; gap: 9px; }
.qc-check-grid b { display: block; color: #9ec2ff; font-size: 12px; }
.qc-check-grid span { display: block; margin-top: 5px; color: #d8e3f2; font-size: 12px; line-height: 1.5; }
.qc-item {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 82px 1fr 48px;
  align-items: center;
  font-size: 12px;
}
.qc-item b { color: #2c5da9; }
.qc-item span:last-child { color: var(--green); text-align: right; font-weight: 800; }

.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.version {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
  font-size: 12px;
  line-height: 1.55;
}
.version.final { border-color: #91b7ff; background: #f2f7ff; }
.version strong { display: block; margin-bottom: 6px; font-size: 12px; }
.trace-list { display: grid; gap: 8px; margin-top: 12px; }
.trace-item strong { display: block; font-size: 12px; }
.trace-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.review-feedback {
  display: block;
  margin-top: 10px;
}
.review-feedback > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #345d99;
  font-size: 12px;
  font-weight: 800;
}
.review-feedback em {
  padding: 2px 6px;
  border-radius: 8px;
  color: #6f7f97;
  background: #edf1f7;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}
.review-feedback textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}
.review-feedback textarea:focus {
  outline: 2px solid #d7e6ff;
  border-color: #8fb6ff;
}
.human-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.human-actions button {
  padding: 7px 10px;
  border: 1px solid #cad7e9;
  border-radius: 8px;
  color: #4f6079;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.human-actions button:hover,
.human-actions button.chosen {
  border-color: #8eb5ff;
  color: var(--blue);
  background: var(--blue-soft);
}
.human-actions button.primary {
  margin-left: auto;
  color: white;
  border-color: #198a64;
  background: #198a64;
}
.human-actions button.primary:hover,
.human-actions button.primary.chosen { color: white; border-color: #126f51; background: #126f51; }
.qc-fallback-rule {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed #bfd0e7;
  border-radius: 9px;
  color: #536681;
  background: #f8fbff;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.qc-fallback-rule > span {
  padding: 4px 7px;
  border-radius: 7px;
  background: white;
  white-space: nowrap;
}
.qc-fallback-rule > span:first-child { color: #9b5b1b; background: #fff6e6; }
.qc-fallback-rule b { color: #91a0b5; }
.qc-fallback-rule small {
  margin-left: auto;
  color: #7c899d;
  line-height: 1.35;
}

.human-gate-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #aee1cc;
  border-radius: 11px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.human-gate-card strong { display: block; color: #197a59; font-size: 11px; }
.human-gate-card span { display: block; margin-top: 4px; color: #367a67; font-size: 9px; }
.approve-button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: #198a64;
  box-shadow: 0 6px 14px rgba(25,138,100,.2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.approve-button:hover { background: #137453; transform: translateY(-1px); }
.approve-button.approved { background: #12694c; }
.human-gate-card.approved { border-color: #77c6aa; background: #e5f7f0; }

.auto-gate-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #b8cdf0;
  border-radius: 11px;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auto-gate-card strong { display: block; color: #1f4fa3; font-size: 11px; }
.auto-gate-card span { display: block; margin-top: 4px; color: #47618c; font-size: 9px; line-height: 1.5; }
.auto-pass-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #9fbcec;
  border-radius: 9px;
  color: #1f4fa3;
  background: #dfeaff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.gate-track-note {
  margin: 8px 2px 0;
  color: #7c899d;
  font-size: 9px;
  line-height: 1.55;
}

.production-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 164px 1fr 68px;
  align-items: center;
  font-size: 12px;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.production-item b { display: block; }
.production-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; }
.progress { height: 5px; margin: 0 12px; overflow: hidden; border-radius: 5px; background: #e7edf6; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); }
.production-item span:last-child { color: var(--green); text-align: right; font-weight: 800; }
.production-item.running { border-color: #9fc0ff; background: #f5f9ff; box-shadow: 0 5px 12px rgba(46,111,236,.08); }
.production-item.running .progress i { width: 65%; animation: processing-bar .75s ease-in-out infinite alternate; }
.production-item.running .production-status { color: var(--blue); }
.production-item.complete .progress i { width: 100%; transition: width .35s ease; }
.production-item.waiting .production-status { color: #9aa6b7; }
@keyframes processing-bar {
  from { width: 22%; transform: translateX(-10%); }
  to { width: 72%; transform: translateX(45%); }
}
.resilience-strip {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #d4e0ee;
  border-radius: 10px;
  background: linear-gradient(90deg, #f7faff, #f3f8ff);
  display: grid;
  grid-template-columns: 94px 1fr auto;
  align-items: center;
  gap: 10px;
}
.resilience-strip > span {
  color: #2f70cf;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .7px;
}
.resilience-strip > div { display: flex; align-items: center; gap: 7px; }
.resilience-strip b { color: #405674; font-size: 11px; white-space: nowrap; }
.resilience-strip i { color: #78a3e8; font-style: normal; }
.resilience-strip small { color: #8b98aa; font-size: 7px; white-space: nowrap; }
.video-preview {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  height: 232px;
  padding: 15px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(180deg, rgba(9,20,38,.08), rgba(9,20,38,.92)), linear-gradient(145deg, #254e83, #101c30);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.preview-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    linear-gradient(90deg, transparent 49%, rgba(112,169,255,.28) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(112,169,255,.18) 50%, transparent 51%);
  background-size: 42px 42px;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: white;
  background: rgba(42,111,226,.76);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translate(-50%, -58%);
  cursor: pointer;
}
.play-button span { margin-left: 3px; font-size: 17px; }
.preview-copy { position: relative; z-index: 1; }
.video-preview small { color: #84b2ff; font-size: 10px; letter-spacing: 1px; }
.video-preview strong { display: block; margin-top: 7px; font-size: 17px; line-height: 1.25; }
.video-preview p { margin: 6px 0 0; color: #bac8dc; font-size: 12px; }

/* Cover-driven preview: artwork already carries burned-in headline copy,
   so no text overlay here — meta moves to the caption row below. */
.video-preview.has-cover {
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #06111f;
}
.preview-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-preview.has-cover .play-button {
  width: 48px;
  height: 48px;
  background: rgba(9,20,38,.5);
  border-color: rgba(255,255,255,.75);
  backdrop-filter: blur(2px);
  transform: translate(-50%, -50%);
  left: 50%;
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
  transition: background .2s ease, transform .2s ease;
}
.video-preview.has-cover .play-button:hover {
  background: rgba(42,111,226,.85);
  transform: translate(-50%, -50%) scale(1.06);
}
.video-preview.has-cover.buffering::after {
  content: "正在加载成片预览…";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: 7px 11px;
  border-radius: 999px;
  color: white;
  background: rgba(9,20,38,.76);
  font-size: 10px;
  font-weight: 750;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.preview-badge {
  position: absolute;
  top: 9px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: .5px;
  color: #dbe8ff;
  background: rgba(6,17,31,.55);
  border: 1px solid rgba(255,255,255,.22);
}
.preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 8px;
}
.preview-meta small { color: #4f7ec2; font-size: 10px; letter-spacing: 1px; }
.preview-meta span { color: #8b98aa; font-size: 11px; }


.page-footer {
  min-height: 28px;
  padding-top: 9px;
  color: #8c98aa;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
}

.workspace.transitioning .card { animation: card-in .68s cubic-bezier(.22,.61,.36,1) both; }
.output-card {
  position: relative;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.workspace[data-stage="content"] .output-card::before {
  content: "→";
  position: absolute;
  top: 68px;
  left: -21px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #a9c7f7;
  border-radius: 50%;
  color: var(--blue);
  background: #f8fbff;
  box-shadow: 0 7px 18px rgba(43,118,246,.12);
  font-size: 15px;
  font-weight: 800;
}
.output-card.output-refresh {
  animation: output-refresh .42s cubic-bezier(.22,.61,.36,1);
}
.output-card.output-pending {
  opacity: 0;
  transform: translateY(6px);
}
.output-card.output-reveal {
  animation: output-reveal .62s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes output-refresh {
  0% { border-color: #a9c7f7; box-shadow: 0 9px 22px rgba(43,118,246,.10); }
  58% { border-color: #83aff8; box-shadow: 0 14px 30px rgba(43,118,246,.16); }
  100% { border-color: var(--line); box-shadow: var(--shadow); }
}

@keyframes panel-refresh {
  from { opacity: .52; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes relation-arrow-in {
  from { opacity: 0; transform: translate(-5px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes card-in {
  from { opacity: .72; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes output-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 系统总览下方：双运行模式提示 ===== */
.dual-mode-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 7px 0 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(43,118,246,.06), rgba(20,137,99,.05) 62%, rgba(255,255,255,0));
}
.dual-mode-label {
  color: #4a5b76;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dual-mode-item b { font-size: 12px; font-weight: 800; }
.dual-mode-item {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.dual-mode-item.auto { color: #1f4fa3; border-color: #c3d6f6; background: var(--blue-soft); }
.dual-mode-item.hitl { color: #147556; border-color: #aee1cc; background: var(--green-soft); }
.dual-mode-note em { color: #93a1b6; font-size: 12px; font-style: normal; font-weight: 700; }
.dual-mode-note small { margin-left: auto; color: var(--muted); font-size: 10px; }

/* ===== 全宽双路径编排卡（仅 01 选题阶段） ===== */
/* 刻意让卡片内容上移，避免在常见屏高下「刚好卡在标题行」而被误认为页面结束；
   露出半截链路条更容易触发下拉。 */
.orch-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(43,118,246,.07), transparent 42%),
    var(--card);
}
.orch-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #26a17b 58%, rgba(255,255,255,0));
}
.orch-card .card-header { align-items: flex-start; }
.orch-card .card-header p { margin-top: 3px; font-size: 10px; line-height: 1.5; }
.orch-body {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 14px;
  margin-top: 9px;
}

/* ===== 常驻下滚提示胶囊 ===== */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: white;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: 0 18px 40px rgba(8, 20, 40, .35);
  transform: translateX(-50%);
  animation: cue-breathe 2.6s ease-in-out infinite;
  transition: opacity .3s ease, transform .3s ease;
}
.scroll-cue[hidden] { display: none; }
.scroll-cue:hover { animation-play-state: paused; }
.scroll-cue-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  font-size: 12px;
  animation: cue-nudge 1.5s ease-in-out infinite;
}
.scroll-cue-copy { display: flex; flex-direction: column; gap: 2px; }
.scroll-cue-copy strong { font-size: 11px; letter-spacing: .04em; }
.scroll-cue-copy small { color: rgba(255,255,255,.6); font-size: 9px; }
@keyframes cue-breathe {
  0%, 100% { box-shadow: 0 18px 40px rgba(8, 20, 40, .35), 0 0 0 0 rgba(43,118,246,.35); }
  50% { box-shadow: 0 18px 40px rgba(8, 20, 40, .35), 0 0 0 8px rgba(43,118,246,0); }
}
@keyframes cue-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue, .scroll-cue-arrow { animation: none; }
}

.orch-origin {
  padding: 13px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(155deg, var(--navy-2), var(--navy));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.orch-origin small {
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}
.orch-origin strong { font-size: 14px; letter-spacing: .04em; }
.orch-origin span { color: rgba(255,255,255,.7); font-size: 10px; }
.orch-tracks { display: grid; gap: 10px; min-width: 0; }
.orch-track {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
}
.orch-track.auto { border-color: #c8daf7; background: linear-gradient(90deg, #f2f7ff, rgba(255,255,255,.6)); }
.orch-track.hitl { border-color: #b6e2ce; background: linear-gradient(90deg, #f1fbf6, rgba(255,255,255,.6)); }
.orch-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.orch-track-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.orch-track.auto .orch-track-tag { color: #1f4fa3; }
.orch-track.hitl .orch-track-tag { color: #147556; }
.orch-track-end {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.orch-track.auto .orch-track-end { color: #1f4fa3; border: 1px solid #b9d1f5; background: #e6f0ff; }
.orch-track.hitl .orch-track-end { color: #10684d; border: 1px solid #a5dbc4; background: #e2f6ed; }
.orch-chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.orch-node {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: white;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.orch-node.auto { color: #22509e; border-color: #c4d8f8; }
.orch-node.hitl { color: #17604a; border-color: #b6e0cd; }
.orch-node.gate { box-shadow: 0 4px 12px rgba(20,137,99,.12); font-weight: 800; }
.orch-node.auto.gate { box-shadow: 0 4px 12px rgba(43,118,246,.14); }
.orch-arrow { color: #a9b7cb; font-size: 11px; font-style: normal; }
.orch-track small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.orch-note { margin: 11px 2px 0; color: #7c899d; font-size: 10px; line-height: 1.6; }

.requal-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border: 1px solid #a5dbc4;
  border-radius: 999px;
  color: #10684d;
  background: #e2f6ed;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

@media (max-width: 980px) {
  .orch-body { grid-template-columns: minmax(0, 1fr); }
  .dual-mode-note small { margin-left: 0; }
}


@media (max-width: 1260px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .main { padding-left: 22px; padding-right: 22px; }
  .mechanism { grid-template-columns: 220px 1fr; }
  .mechanism-step { font-size: 10px; }
}

/* Human Gate · staged layout */
.gate-step {
  position: relative;
  margin-top: 12px;
  padding: 12px 13px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fdfeff;
}
.gate-step + .gate-step { margin-top: 14px; }

.gate-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.gate-step-no {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #2b76f6, #4f93ff);
  font-size: 12px;
  font-weight: 800;
}
.gate-step-head strong { font-size: 14px; }
.gate-owner {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.gate-owner.auto { color: #4f6079; background: #eef2f8; }
.gate-owner.human { color: var(--gold); background: var(--gold-soft); }
.gate-step .summary-grid,
.gate-step .comparison { margin-top: 0; }
.human-actions button { font-size: 12px; padding: 9px 12px; }
.human-actions button.primary {
  padding: 9px 18px;
  box-shadow: 0 8px 18px rgba(25,138,100,.25);
}

.expectation-card.market-reaction .exp-metric span { white-space: normal; font-size: 11px; line-height: 1.45; }

/* Content Agent · master script + structural index */
.gen-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px dashed rgba(43,118,246,.32);
  border-radius: 10px;
  background: #f7faff;
  color: #52637c;
  font-size: 11px;
  font-weight: 700;
}
.gen-chain em { color: rgba(43,118,246,.55); font-style: normal; }
.gen-chain .gen-chain-key { color: var(--blue); }
.master-script {
  position: relative;
  margin-top: 11px;
  max-height: 340px;
  overflow-y: auto;

  padding: 13px 15px;
  border-radius: 12px;
  color: #cfdcf0;
  background: linear-gradient(145deg, #172641, #233f6b);
  font-size: 13px;
  line-height: 1.85;
  scroll-behavior: smooth;
}
.master-script p {
  margin: 0 0 11px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}
.master-script p:last-child { margin-bottom: 0; }
.master-script p.is-active {
  color: #fff;
  border-left-color: #6fa8ff;
  background: rgba(111,168,255,.16);
}
.master-script .script-hook { display: block; color: #fff; font-size: 14px; line-height: 1.8; }
.master-script mark { color: #fff; background: rgba(72,137,255,.38); }
.script-index { margin-top: 11px; }
.script-index-label {
  display: block;
  margin-bottom: 7px;
  color: #939fb1;
  font-size: 10px;
  letter-spacing: .4px;
}
.script-index-row { display: flex; flex-wrap: wrap; gap: 7px; }
.script-index-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcff;
  color: #52637c;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all .2s ease;
}
.script-index-row button span { color: #9aa8bb; font-size: 10px; font-weight: 800; }
.script-index-row button:hover,
.script-index-row button.active {
  border-color: #8eb5ff;
  color: var(--blue);
  background: var(--blue-soft);
}
.script-index-row button.active span { color: var(--blue); }

.gate-decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.gate-decision-actions button {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}
.gate-decision-actions button.loop {
  color: var(--blue);
  border-color: #9dc0ff;
  background: var(--blue-soft);
}
.gate-decision-actions button.loop:hover,
.gate-decision-actions button.loop.chosen {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}
.gate-decision-actions button.primary {
  color: #fff;
  border-color: #126f51;
  background: #157a5a;
  box-shadow: 0 8px 18px rgba(25,138,100,.25);
}
.gate-decision-actions button.primary:hover,
.gate-decision-actions button.primary.chosen { background: #126f51; }
.gate-secondary-actions { display: flex; gap: 14px; margin-top: 9px; }
.gate-secondary-actions button {
  padding: 0;
  border: none;
  background: none;
  color: #8b98ab;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gate-secondary-actions button:hover,
.gate-secondary-actions button.chosen { color: #c2503f; }
.decision-box.revising { border-color: #9dc0ff; background: var(--blue-soft); color: #1f3d6d; }
.decision-box.halted { border-color: #e6c9a6; background: #fdf6ec; color: #8a5a1c; }

/* Human Gate · stage-scoped trace */
.trace-item.done strong::before {
  content: "✓ ";
  color: #157a5a;
}
.trace-meta { display: grid; gap: 8px; margin-top: 11px; }
.trace-meta > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcff;
}
.trace-meta b { display: block; font-size: 11px; color: #33445c; }
.trace-meta span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.trace-meta .upstream {
  border-style: dashed;
  background: #f6f8fb;
  opacity: .82;
}

/* ===== Publish Kit (Production Agent · 发布套件) ===== */
.publish-kit {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.publish-kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.publish-kit-head b { font-size: 15px; color: #0f172a; }
.publish-kit-head span { font-size: 11px; letter-spacing: .1em; color: #7c8aa0; margin-left: 6px; }
.publish-kit-head em {
  font-style: normal;
  font-size: 11px;
  color: #1d4ed8;
  background: #eaf1ff;
  border: 1px solid #cfdefb;
  border-radius: 999px;
  padding: 3px 9px;
}
.publish-field { display: flex; flex-direction: column; gap: 5px; }
.publish-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}
.copy-btn {
  border: 1px solid #cfdefb;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .18s ease;
}
.copy-btn:hover { background: #dbe7ff; }
.copy-btn.copied { background: #e8f7ee; border-color: #bfe3cd; color: #17794a; }
.publish-value {
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #f7f9fc;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #23324a;
}
.publish-value.single { font-weight: 700; color: #0f172a; }
.publish-value.body {
  max-height: 92px;
  overflow-y: auto;
}
.publish-collapse { border: 1px solid #e3e9f2; border-radius: 10px; background: #fbfcfe; padding: 8px 11px; }
.publish-collapse > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #52637c;
}
.publish-collapse > summary::-webkit-details-marker { display: none; }
.publish-collapse > summary span { color: var(--blue); font-weight: 700; }
.publish-collapse[open] > summary span::after { content: " ▲"; }
.publish-collapse:not([open]) > summary span::after { content: " ▼"; }
.publish-collapse-body { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.publish-collapse-body .copy-btn { align-self: flex-start; }

.publish-value.tags { color: #1d4ed8; }
.publish-value.prompt { color: #6b5a19; background: #fdf8e8; border-color: #efe0b4; }
.cover-thumbs {
  display: grid;
  grid-template-columns: 84px 62px 1fr;
  gap: 8px;
  align-items: stretch;
  margin-top: 6px;
}
.cover-thumb {
  margin: 0;
  border-radius: 9px;
  background: linear-gradient(150deg, #16304f 0%, #0b1424 100%);
  color: #cfe6ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #16304f;
}
.cover-thumb.ratio-16-9 { aspect-ratio: 16 / 9; }
.cover-thumb.ratio-3-4 { aspect-ratio: 3 / 4; }
.cover-thumb span { font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.cover-thumb small { font-size: 9.5px; color: #7ea8d8; }
.cover-state {
  margin: 0;
  align-self: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: #17794a;
  background: #f1faf4;
  border: 1px solid #cfe9da;
  border-radius: 9px;
  padding: 8px 10px;
}
.publish-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-btn {
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all .18s ease;
}
.pk-btn.ghost { background: #f1f4f9; border-color: #e0e6ef; color: #64748b; }
.pk-btn.cover { background: #fdf6e3; border-color: #eddfb2; color: #8a6d19; }
.pk-btn.cover:hover { background: #faeeca; }
.pk-btn.primary {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .22);
}
.pk-btn.primary:hover { filter: brightness(1.06); }
.pk-btn.primary small { font-size: 10.5px; font-weight: 500; opacity: .85; }
.publish-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #7c8aa0;
  border-top: 1px dashed #e3e9f2;
  padding-top: 9px;
}
@media (max-width: 720px) {
  .cover-thumbs { grid-template-columns: 72px 54px 1fr; }
  .publish-actions { grid-template-columns: 1fr; }
}

/* ===== 阶段交接状态机 ===== */
.handoff-card {
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #cbd9ee;
  border-radius: 11px;
  background: linear-gradient(180deg, #f7fbff, #eef4fd);
}
.handoff-card.auto { border-color: #b6ddc9; background: linear-gradient(180deg, #f4fcf8, #eaf7f1); }
.handoff-card.gate { border-color: #ecd9ac; background: linear-gradient(180deg, #fffbf1, #fdf5e5); }
.handoff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.handoff-label { color: #6d7f97; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.handoff-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #12805d;
  background: #dcf3e8;
  border: 1px solid #b6ddc9;
}
.handoff-card.gate .handoff-badge { color: #9a6a12; background: #fbeecd; border-color: #ecd9ac; }
.handoff-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
}
.handoff-flow b {
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
}
.handoff-flow b.next { color: #2a6fe2; border-color: #bed6f7; }
.handoff-flow i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  color: #12805d;
}
.handoff-card.gate .handoff-flow i { color: #9a6a12; }
.handoff-card.auto .handoff-flow i { animation: handoffPulse 2.2s ease-in-out infinite; }
@keyframes handoffPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.handoff-card small { display: block; margin-top: 7px; color: #5d6c82; font-size: 11px; line-height: 1.45; }

/* ===== Research 阶段左右配比与右栏紧凑排版 ===== */
.workspace[data-stage="research"] { grid-template-columns: minmax(0, 52fr) minmax(430px, 48fr); }
.workspace[data-stage="research"] .expectation-card:not(:first-child) .exp-head { display: none; }
.workspace[data-stage="research"] .expectation-card:not(:first-child) .exp-row { padding-top: 0; }
.workspace[data-stage="research"] .expectation-card { padding: 8px 10px; }
.workspace[data-stage="research"] .expectation-card.market-reaction .exp-head { display: grid; }
.workspace[data-stage="research"] .insight-box,
.workspace[data-stage="research"] .ready-box { margin-top: 8px; }
.workspace[data-stage="research"] .coverage-grid,
.workspace[data-stage="research"] .source-list { grid-template-columns: 1fr 1fr; gap: 7px; }
@media (max-width: 1180px) {
  .workspace[data-stage="research"] { grid-template-columns: minmax(0, 1fr); }
  .workspace[data-stage="research"] .coverage-grid,
  .workspace[data-stage="research"] .source-list { grid-template-columns: 1fr; }
}

/* Human Review · 稿件通读框与对比 */
.master-script.review-script {
  max-height: 300px;
}
.master-script.review-script p { color: #cfdcf0; }
.version-origin {
  display: block;
  margin-top: 5px;
  color: #6f7f97;
  font-size: 10px;
}

/* Final output · 成片播放 */
.preview-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #06111f;
}
.video-preview.has-cover.playing .preview-cover,
.video-preview.has-cover.playing .preview-badge { opacity: 0; }

/* ===== 05 人审：审稿工作区 ===== */
.draft-link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: #f8fafd;
}
.draft-link-card.new { border-color: #9dc0ff; background: var(--blue-soft); }
.draft-link-meta strong { display: block; font-size: 14px; color: var(--ink); }
.draft-link-meta small { display: block; margin-top: 3px; font-size: 11.5px; color: #7d8899; }
.draft-open {
  flex: none; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--blue);
  background: #fff; color: var(--blue); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.draft-open:hover { background: var(--blue); color: #fff; }

.note-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 4px 0 10px; }
.note-templates-label { font-size: 10px; letter-spacing: .4px; color: #939fb1; text-transform: uppercase; }
.note-templates button {
  padding: 5px 10px; border-radius: 999px; border: 1px dashed #c6d2e4; background: #fff;
  font-size: 11.5px; color: #5a6779; cursor: pointer; transition: all .16s ease;
}
.note-templates button:hover { border-style: solid; border-color: var(--blue); color: var(--blue); }
.note-templates button.used { border-style: solid; border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }

.script-drawer {
  position: fixed; inset: 0; z-index: 60; background: rgba(9, 18, 34, .55);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  backdrop-filter: blur(3px);
}
.script-drawer-panel {
  width: min(760px, 100%); max-height: 82vh; display: flex; flex-direction: column;
  background: #0d1b30; border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  overflow: hidden; box-shadow: 0 30px 70px rgba(6, 14, 28, .45);
}
.script-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.script-drawer-head strong { font-size: 13px; color: #dce8f8; font-weight: 600; }
.script-drawer-head button {
  border: none; background: rgba(255,255,255,.08); color: #cfdcf0; cursor: pointer;
  width: 26px; height: 26px; border-radius: 8px; font-size: 12px;
}
.script-drawer-head button:hover { background: rgba(255,255,255,.18); }
.script-drawer-panel .master-script {
  margin: 0; border: none; border-radius: 0; max-height: none; overflow: auto; flex: 1;
}

.auto-next { margin-top: 12px; padding: 11px 13px; border-radius: 11px; background: #eaf7f0; border: 1px solid #b7e0c9; }
.auto-next span { display: block; font-size: 12px; color: #16704f; font-weight: 600; }
.auto-next i { display: block; margin-top: 8px; height: 4px; border-radius: 4px; background: #cdeadb; overflow: hidden; }
.auto-next i b { display: block; height: 100%; width: 0; background: #17915f; transition: width 2s linear; }

.review-log { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.review-log > summary {
  cursor: pointer; list-style: none; padding: 11px 14px; font-size: 12.5px;
  font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between;
}
.review-log > summary::after { content: "▾"; color: #9aa6b8; font-size: 11px; }
.review-log[open] > summary::after { content: "▴"; }
.review-log-body { padding: 0 14px 12px; display: grid; gap: 8px; }
.review-log-item {
  display: grid; gap: 2px; padding: 9px 11px; border-radius: 9px; background: #f7f9fc;
  border-left: 2px solid #c6d2e4;
}
.review-log-item b { font-size: 12px; color: var(--ink); }
.review-log-item span { font-size: 11.5px; color: #6c7889; }
.review-log-item i { font-size: 10.5px; color: #9aa6b8; font-style: normal; }

.script-drawer[hidden] { display: none; }

/* ===== 响应式：平板竖屏 / 手机（配合 index.html 的分级 viewport base）===== */
@media (max-width: 980px) {
  html, body { min-width: 0; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px 16px 14px;
  }
  .brand { margin: 0 0 14px; }
  #side-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .side-button { height: 52px; font-size: 14px; }
  .side-index { width: 26px; height: 26px; font-size: 13px; }
  .demo-contract { margin-top: 14px; font-size: 12px; }
  .demo-contract strong { font-size: 13px; }

  .main { padding: 18px 18px 24px; }
  .page-header { flex-wrap: wrap; gap: 10px; }
  .agent-title { font-size: 26px; }
  .replay-button, .case-pill, .back-link { height: 38px; font-size: 12px; }

  .global-flow {
    height: auto;
    padding: 12px 14px;
    gap: 10px;
    overflow-x: auto;
  }
  .global-stage { flex: 0 0 auto; }
  .global-stage b { font-size: 13px; }
  .global-stage:not(:last-child)::after { width: 22px; margin-left: 10px; }

  .mechanism { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mechanism-copy strong { font-size: 18px; }
  .mechanism-steps { flex-wrap: wrap; justify-content: flex-start; }
  .mechanism-step { flex: 1 1 140px; max-width: none; font-size: 12px; }

  /* 所有阶段统一改为单列纵向堆叠，避免右栏被压到不可读 */
  .workspace,
  .workspace[data-stage="hotspot"],
  .workspace[data-stage="research"],
  .workspace[data-stage="content"],
  .workspace[data-stage="qc"],
  .workspace[data-stage="human"],
  .workspace[data-stage="production"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .card { padding: 16px; }
  .bilingual-title strong { font-size: 17px; }
  .topic-item strong { font-size: 15px; }
  .handoff-card small { font-size: 12px; }
  .publish-note { font-size: 12px; }
}

@media (max-width: 700px) {
  .main { padding: 16px 14px 22px; }
  .agent-title { font-size: 23px; letter-spacing: .6px; }
  #side-nav { grid-auto-columns: minmax(132px, 1fr); }

  .topic-item {
    grid-template-columns: 78px minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 6px 10px;
    padding: 10px 12px;
  }
  .topic-item > :nth-child(3) { grid-column: 2; }

  .metric-grid,
  .method-grid,
  .comparison,
  .question-list.two-col,
  .classification-grid,
  .summary-grid,
  .workspace[data-stage="research"] .coverage-grid,
  .workspace[data-stage="research"] .source-list { grid-template-columns: minmax(0, 1fr); }

  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .mechanism-step { flex: 1 1 44%; }
  .mechanism-arrow { display: none; }
}

/* ===== 轻量滚动淡入：层级依次浮现（研究 / 写作 / 质检） ===== */
.sec-reveal { opacity: 0; transform: translateY(10px); }
.sec-reveal.sec-in {
  animation: sec-fade-up .68s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: var(--sec-delay, 0ms);
}
@keyframes sec-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sec-reveal { opacity: 1; transform: none; animation: none !important; }
}

/* ===== 桌面端呼吸感微调：写作 / 质检 左栏层级更宽松、与右栏等高 ===== */
@media (min-width: 981px) {
  .workspace[data-stage="content"] > .card,
  .workspace[data-stage="qc"] > .card { display: flex; flex-direction: column; }

  /* 写作台：三个层级之间拉开间距，母稿区自适应撑满剩余高度 */
  .workspace[data-stage="content"] .summary-grid.content-brief { margin-top: 18px; gap: 12px; }
  .workspace[data-stage="content"] .summary-box { padding: 14px 15px; }
  .workspace[data-stage="content"] .summary-box small { font-size: 12px; }
  .workspace[data-stage="content"] .summary-box strong { margin-top: 7px; font-size: 15px; }
  .workspace[data-stage="content"] .gen-chain {
    margin-top: 18px;
    padding: 13px 15px;
    font-size: 12.5px;
  }
  .workspace[data-stage="content"] .script-index { margin-top: 18px; }
  .workspace[data-stage="content"] .script-index-row { gap: 9px; }
  .workspace[data-stage="content"] .script-index-row button { padding: 10px 14px; font-size: 13px; }
  .workspace[data-stage="content"] .script-index-row button span { font-size: 11px; }
  .workspace[data-stage="content"] .master-script {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 18px;
    padding: 16px 18px;
  }


  /* QC：左侧四个维度卡片放大，右侧面板等高，整体呼吸感更强 */
  .workspace[data-stage="qc"] .qc-workbench {
    flex: 1 1 auto;
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 26px;
    margin-top: 18px;
  }
  .workspace[data-stage="qc"] .qc-tabs { gap: 12px; align-content: start; }
  .workspace[data-stage="qc"] .qc-tab { padding: 16px 14px; font-size: 14px; border-radius: 12px; }
  .workspace[data-stage="qc"] .qc-tab span { margin-right: 9px; font-size: 12.5px; }
  .workspace[data-stage="qc"] .qc-detail:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    min-height: 340px;
  }
  .workspace[data-stage="qc"] .qc-detail-label { font-size: 11px; }
  .workspace[data-stage="qc"] .qc-detail h3 { margin: 11px 0 16px; font-size: 16.5px; }
  .workspace[data-stage="qc"] .qc-fact-grid { gap: 12px; }
  .workspace[data-stage="qc"] .qc-check-grid { gap: 12px; }
  .workspace[data-stage="qc"] .qc-fact-grid div,
  .workspace[data-stage="qc"] .qc-check-grid div { padding: 14px; }
  .workspace[data-stage="qc"] .qc-fact-grid small { font-size: 12px; }
  .workspace[data-stage="qc"] .qc-fact-grid strong { margin-top: 6px; font-size: 13.5px; }
  .workspace[data-stage="qc"] .qc-check-grid b { font-size: 13px; }
  .workspace[data-stage="qc"] .qc-check-grid span { font-size: 12.5px; line-height: 1.6; }
  .workspace[data-stage="qc"] .micro-note { margin-top: 16px; }
}

/* ===== Review Agent · 终稿锁定 + 机制预览 ===== */
.review-lock-bar{
  display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;
  border:1px solid rgba(74,168,255,.28);border-radius:12px;padding:10px 13px;
  background:linear-gradient(180deg,rgba(240,247,255,.95),rgba(228,240,255,.9));
}
.review-lock-tag{
  flex:0 0 auto;font-size:10px;letter-spacing:.08em;font-weight:700;
  padding:3px 8px;border-radius:999px;background:rgba(31,111,184,.12);color:#1f6fb8;
}
.review-lock-bar p{margin:0;font-size:12px;line-height:1.65;color:#4c6684}
.review-lock-bar b{color:#1f6fb8}

.note-templates button{display:inline-flex;align-items:center;gap:6px}
.note-icon{flex:0 0 auto;opacity:.8}
.note-templates button.used .note-icon{opacity:1}

.field-hint{margin:6px 0 12px;font-size:11px;line-height:1.6;color:#8a97a9}

.mech-note{
  font-size:11.5px;color:#5a7592;background:#f5f8fd;border:1px solid #e2eaf6;
  border-radius:9px;padding:7px 10px;margin-bottom:10px;
}
.comparison.mech .version{border-style:dashed}
.comparison.mech .version.final{border-style:solid}
.diff-hl{font-style:normal;font-weight:700;color:#1f6fb8;background:rgba(74,168,255,.14);padding:0 3px;border-radius:4px}
.mech-gains{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mech-gains span{
  font-size:11px;padding:3px 9px;border-radius:999px;
  border:1px solid rgba(74,168,255,.3);background:rgba(74,168,255,.08);color:#1f6fb8;
}

.loop-note{display:flex;gap:7px;align-items:flex-start;margin:14px 0 0;font-size:11.5px;line-height:1.7;color:#4c6684}
.loop-note span{color:#2f6bff;font-size:12px;line-height:1.6}
.gate-decision-actions .note-icon{width:15px;height:15px;margin-right:6px;vertical-align:-3px}
.demo-boundary{
  display:flex;gap:10px;align-items:flex-start;margin-top:10px;
  border:1px solid #e2e8f2;background:#f7f9fc;border-radius:12px;padding:11px 13px;
}
.demo-boundary-icon{font-size:14px;line-height:1.3;opacity:.65}
.demo-boundary b{display:block;font-size:11.5px;letter-spacing:.04em;color:#4c6684;margin-bottom:3px}
.demo-boundary p{margin:0;font-size:11px;line-height:1.7;color:#8a97a9}


/* --- Review 状态机与复制反馈 --- */
.auto-next-cancel {
  margin-left: auto;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: rgba(226, 232, 240, 0.75);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  cursor: pointer;
}
.auto-next-cancel:hover { color: #fff; border-color: rgba(148, 163, 184, 0.6); }
.decision-resume {
  margin-top: 8px;
  display: inline-block;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
[data-human-action].is-locked,
[data-human-action]:disabled { opacity: 0.45; cursor: not-allowed; }
[data-copy].copy-failed { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }

}

/* ===== QC WARN 样例 · 折叠式披露（默认收起，不占版面） ===== */
.qc-warn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 14px;
  border: 1px solid rgba(202, 138, 4, 0.4);
  background: rgba(250, 204, 21, 0.12);
  color: #a16207;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.qc-warn-toggle:hover,
.qc-warn-toggle.is-open { border-color: #ca8a04; background: rgba(250, 204, 21, 0.22); }
.qc-warn-icon {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ca8a04;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}
.qc-warn-panel {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(202, 138, 4, 0.32);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(254, 252, 232, 0.9), rgba(255, 255, 255, 0.96));
}
.qc-warn-head { display: grid; gap: 3px; }
.qc-warn-head b { font-size: 11.5px; letter-spacing: 0.04em; color: #92400e; }
.qc-warn-head span { font-size: 11px; line-height: 1.5; color: #7c7566; }
.qc-warn-case { display: grid; gap: 6px; }
.qc-warn-row { display: grid; grid-template-columns: 68px 1fr; gap: 8px; align-items: baseline; }
.qc-warn-row small { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: #a8a294; }
.qc-warn-row strong { font-size: 11.5px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.qc-warn-row strong.warn { color: #b45309; }
.qc-warn-levels { display: grid; gap: 5px; padding-top: 8px; border-top: 1px dashed rgba(202, 138, 4, 0.3); }
.qc-warn-levels div { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: baseline; }
.qc-warn-levels b { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: #92400e; }
.qc-warn-levels span { font-size: 11px; line-height: 1.5; color: #6c7889; }
.qc-warn-foot { margin: 0; font-size: 10.5px; line-height: 1.55; color: #8d8778; }
