:root {
  --bg: #dfe2f0;
  --window: #eceef7;
  --titlebar: #f7f7fb;
  --card: #ffffff;
  --navy: #0c2850;
  --green: #30782c;
  --muted: #6b7388;
  --line: rgba(12, 40, 80, 0.08);
  --orange: #d97732;
  --teal: #168f84;
  --violet: #5343b5;
  --pink: #d24a88;
  --pub: #228f4c;
  --blue: #3a6fd4;
  --gold: #c4961e;
  --you-bg: #f8efc0;
  --magenta: #b8327a;
  --danger: #d44545;
  --shadow: 0 1px 2px rgba(12, 40, 80, 0.04), 0 8px 22px rgba(36, 42, 80, 0.07);
  --font: "Noto Sans CJK SC", "Noto Sans SC", "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: radial-gradient(1200px 700px at 10% -10%, #f4f0fb, transparent 55%),
              radial-gradient(900px 600px at 100% 100%, #e4e8fb, transparent 50%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font-family: inherit; }
.desktop {
  min-height: 100%;
  padding: 10px 14px 12px;
}
.window {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  background: var(--window);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(30, 34, 70, 0.16);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 0 16px 18px;
  overflow: hidden;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  margin: 0 -16px 4px;
  padding: 0 16px;
  background: var(--titlebar);
  border-bottom: 1px solid var(--line);
}
.traffic { display: flex; gap: 7px; }
.tl { width: 11px; height: 11px; border-radius: 50%; display: block; }
.tl.red { background: #ff5f57; }
.tl.yellow { background: #febc2e; }
.tl.green { background: #28c840; }
.tags { flex: 1; display: flex; gap: 14px; overflow: hidden; font-size: 12px; color: #4b5568; }
.tags b { color: var(--pub); font-weight: 700; margin-left: 4px; }
.tags .demo { color: var(--muted); font-weight: 400; }
.live-pill {
  border: 1px dashed #8fd0a2;
  color: var(--pub);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f3fbf5;
  white-space: nowrap;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 6px 4px;
}
.brand-block { display: flex; gap: 14px; align-items: flex-start; }
.logo-tile {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 72px;
}
.logo-tile img { width: 54px; height: 54px; object-fit: contain; }
.brand-text h1 { font-size: 30px; line-height: 1.05; letter-spacing: 0.01em; font-weight: 700; }
.brand-text .fan { color: var(--green); }
.brand-text .desk { color: var(--navy); }
.meta-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chip {
  font-size: 11px; font-weight: 700;
  background: #fff; border-radius: 999px;
  padding: 2px 8px; color: #5a6478;
  border: 1px solid var(--line);
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #8a6a12;
  background: #fff6d8; border-radius: 999px; padding: 2px 9px;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: #e0b225; display: block; }
.hot-line {
  margin-top: 8px;
  display: inline-block;
  border: 1px dashed #e2b07a;
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 3px 8px;
  background: #fff8f0;
}
.manager { margin-top: 6px; font-size: 12px; color: var(--muted); }
.hero-kpis { display: grid; grid-template-columns: 1.4fr 0.8fr 0.7fr 0.7fr; gap: 8px 16px; min-width: 420px; text-align: right; align-content: start; }
.kpi .num { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.kpi .num.mag { color: var(--magenta); }
.kpi .num.ok { color: var(--pub); }
.kpi .num.bad { color: var(--danger); }
.kpi .num.navy { color: var(--navy); }
.kpi .lbl { margin-top: 4px; font-size: 11px; color: var(--muted); }
.kpi.tiny .num { font-size: 22px; }
.workspace { display: grid; grid-template-columns: 270px 1fr; gap: 10px; margin-top: 4px; }
.agents-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted);
  padding: 4px 6px 8px;
}
.agents-head .online { letter-spacing: 0; font-weight: 700; color: var(--pub); }
.agent {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  padding: 7px 10px 7px 8px;
  margin-bottom: 6px;
  cursor: pointer;
  position: relative;
}
.agent:hover { border-color: rgba(12,40,80,0.08); }
.agent .row { display: flex; align-items: flex-start; gap: 8px; }
.agent .ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex: 0 0 32px;
}
.agent .name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.agent .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.agent .tag {
  margin-left: auto; font-size: 10px; color: var(--muted);
  background: #f3f4f8; border-radius: 999px; padding: 2px 7px;
}
.agent .slogan { margin-top: 6px; font-size: 12px; font-weight: 700; }
.agent .stat { margin-top: 3px; font-size: 11px; color: #3d4658; }
.agent.c-orange .name, .agent.c-orange .slogan { color: var(--orange); }
.agent.c-teal .name, .agent.c-teal .slogan { color: var(--teal); }
.agent.c-violet .name, .agent.c-violet .slogan { color: var(--violet); }
.agent.c-pink .name, .agent.c-pink .slogan { color: var(--pink); }
.agent.c-green .name, .agent.c-green .slogan { color: var(--pub); }
.agent.c-blue .name, .agent.c-blue .slogan { color: var(--blue); }
.agent.c-orange .ico { background: #f3a15d; }
.agent.c-teal .ico { background: #3cbcb0; }
.agent.c-violet .ico { background: #3c3950; }
.agent.c-pink .ico { background: #f08ab3; }
.agent.c-green .ico { background: #47c06e; }
.agent.c-blue .ico { background: #6aa0f0; }
.agent.active.c-orange { background: #fff4eb; border: 1.5px dashed #e0a36a; }
.agent.you {
  background: var(--you-bg);
  border: 1.5px dashed #e0c15a;
}
.agent.you .name, .agent.you .slogan { color: #c48a12; }
.agent.you .ico { background: #f0c14b; color: #6a4a00; }
.agent.you.active { box-shadow: 0 0 0 2px rgba(196, 154, 30, 0.2), var(--shadow); }
.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 8px 12px;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.card-head .muted, .muted { color: var(--muted); font-weight: 400; font-size: 11px; }
.crumb-row { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 8px; font-size: 12px; }
.crumb { color: var(--muted); }
.crumb b { color: var(--navy); }
.pipeline-card { padding: 12px 14px 10px; }
.pipe-top { display: grid; grid-template-columns: 160px 1fr 90px; gap: 6px; align-items: center; min-height: 96px; }
.waiting { min-height: 0; }
.wait-item {
  border: 1px dashed #c9cde0;
  border-radius: 10px;
  padding: 7px 9px;
  margin-bottom: 6px;
  font-size: 12px;
}
.wait-item strong { display: block; }
.wait-item .sub { color: var(--muted); font-size: 11px; }
.wait-item.hot { border-color: #8aa7e8; }
.flow { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 4px 0; position: relative; }
.flow::before {
  content: "";
  position: absolute; left: 28px; right: 28px; top: 24px;
  border-top: 2px dotted #c9cde0; z-index: 0;
}
.node { position: relative; z-index: 1; text-align: center; width: 78px; }
.node .ring {
  width: 44px; height: 44px; border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #f3f5fb; color: #fff; font-weight: 700; font-size: 13px;
  border: 3px solid #e4e7f2;
}
.node .n-name { margin-top: 6px; font-size: 12px; font-weight: 700; }
.node .n-sub { font-size: 10px; color: var(--muted); }
.node.on .ring { box-shadow: 0 0 0 3px rgba(48,120,44,0.12); }
.node.st-选题 .ring { background: #3cbcb0; border-color: #f2a3b8; }
.node.st-写稿 .ring { background: #3c3950; border-color: #d8d8e3; }
.node.st-成片 .ring { background: #f08ab3; border-color: #f8c8dc; }
.node.st-发布 .ring { background: #47c06e; border-color: #b6ebc6; }
.node.st-热点 .ring { background: #f3a15d; border-color: #f8d2b0; }
.channels { display: flex; flex-direction: column; gap: 6px; }
.ch {
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  text-align: center; color: #5a6478;
  border: 1px solid #e4e7f0; border-radius: 6px; padding: 4px 2px;
  background: #fafbfe;
}
.mini-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px;
}
.mini { padding: 0 6px; }
.mini .k { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.mini .k i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mini .v { font-size: 18px; font-weight: 700; margin-top: 2px; line-height: 1.2; }
.mini .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8px; margin: 6px 0; }
.log-body {
  font-size: 12px; line-height: 1.55; color: #3c4456;
  max-height: 132px; overflow: auto; padding-right: 4px;
}
.log-line { margin-bottom: 2px; }
.log-line .t { color: #9a6b32; font-variant-numeric: tabular-nums; margin-right: 6px; }
.log-line .act { font-weight: 700; color: var(--orange); margin-right: 4px; }
.log-line .demo { color: var(--muted); }
.work-body { font-size: 13px; min-height: 140px; }
.form-grid { display: grid; gap: 8px; }
.form-grid label, .field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; }
.form-grid input, .form-grid textarea, .form-grid select, .field input, .field textarea, .field select {
  border: 1px solid #e3e6ef; border-radius: 8px; padding: 7px 9px;
  font-size: 13px; color: var(--navy); background: #fbfbfe;
  outline: none; width: 100%;
}
.form-grid textarea, .field textarea { min-height: 72px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus,
.field input:focus, .field textarea:focus { border-color: #9bb7e8; background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: #f5f6fb; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: #16325f; }
.btn.ok { background: var(--pub); color: #fff; border-color: var(--pub); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c4c4; }
.btn.sm { padding: 4px 9px; font-size: 11px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.item-list { display: flex; flex-direction: column; gap: 6px; max-height: 168px; overflow: auto; margin-bottom: 8px; }
.item-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px;
  cursor: pointer; background: #fbfbfe;
}
.item-row.on { border-color: #c8b06a; background: #fffbeb; }
.item-row .tt { font-weight: 700; font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .st { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #eef1f8; color: #546078; }
.badge-demo { font-size: 10px; color: var(--muted); border: 1px solid #e3e6ef; border-radius: 999px; padding: 0 5px; }
.chain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.capsule {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 8px; font-size: 12px; background: #fafbfe;
}
.capsule .no { font-weight: 700; font-size: 10px; color: #fff; background: #8a93ab; border-radius: 999px; padding: 1px 6px; }
.capsule.on { background: #f3fbf5; border-color: #c9ebd4; }
.capsule.on .no { background: var(--pub); }
.review-body { display: flex; flex-direction: column; gap: 5px; max-height: 140px; overflow: auto; }
.rev {
  display: grid; grid-template-columns: 48px 54px 1fr auto;
  gap: 8px; align-items: start; font-size: 12px;
  padding: 6px 8px; border-radius: 10px;
}
.rev.hi { background: #fff8d9; box-shadow: inset 3px 0 0 #e0b225; }
.rev .tm { color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 7px; }
.pill.skip { background: #fde3ea; color: #c43b5b; }
.pill.ok { background: #dff6e8; color: #1d8a45; }
.pill.wait { background: #fff3d6; color: #a67a12; }
.rev .ttl { font-weight: 700; }
.rev .why { color: var(--muted); font-size: 11px; margin-top: 2px; }
.rev .res { font-weight: 700; color: var(--pub); white-space: nowrap; }
.rev .res.bad { color: var(--danger); }
.watermark {
  position: absolute; left: 16px; bottom: 6px;
  font-size: 12px; color: #9aa1b5; font-weight: 700; letter-spacing: 0.04em;
  pointer-events: none;
}
.toast {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--navy); color: #fff; padding: 10px 14px;
  border-radius: 10px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow); z-index: 20;
}
.empty { color: var(--muted); font-size: 12px; padding: 10px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .pipe-top, .mid, .hero-kpis, .chain-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
  .pipe-top { min-height: auto; }
}

.num, .v, .res, .live-tag { font-variant-numeric: tabular-nums; }
.demo-n { color: #7a5b14; font-weight: 700; }
.is-ticking { animation: tickFlash 0.6s ease; }
@keyframes tickFlash {
  0% { color: #228f4c; }
  100% { color: inherit; }
}
.num.mag { transition: none; }
.log-line.fresh { animation: logIn 0.45s ease-out; }
@keyframes logIn {
  from { opacity: 0; transform: translateY(-10px); background: #fff8d9; }
  to { opacity: 1; transform: none; background: transparent; }
}
.log-body { max-height: 132px; scroll-behavior: smooth; }
.review-body { max-height: 140px; }
.item-list { max-height: 200px; }
.live-pill { position: relative; }
.live-pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #228f4c;
  display: inline-block;
  margin-right: 6px;
  animation: liveDot 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
