:root {
  color-scheme: light;
  --ink: #10202b;
  --muted: #61717d;
  --line: #d9e1e5;
  --panel: #ffffff;
  --canvas: #eef2f3;
  --accent: #006b55;
  --accent-soft: #dcefe9;
  --warning: #a45505;
  --danger: #a32c2c;
  --blue: #195f91;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f5f6f8; color: var(--ink); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(22px, 3vw, 34px); letter-spacing: .02em; }
h2 { font-size: 18px; }
.eyebrow { margin-bottom: 5px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #8ba2ae; }
main { width: min(1440px, calc(100% - 32px)); margin: 18px auto 42px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 22px rgba(18, 34, 43, .06); }
.scenario-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; margin-bottom: 12px; }
.scenario-tab { min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 750 14px inherit; cursor: pointer; }
.scenario-tab:hover { background: #f3f7f6; color: var(--ink); }
.scenario-tab.active { background: #123d36; color: white; box-shadow: inset 0 -3px #20b486; }
.agent-console { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 680px; overflow: hidden; margin-bottom: 12px; padding: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(31, 35, 41, .08); }
.feishu-conversation { display: grid; grid-template-rows: 70px minmax(360px, 1fr) auto auto; min-width: 0; background: white; }
.feishu-header { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #e5e6eb; }
.agent-identity { display: flex; align-items: center; gap: 10px; color: #1f2329; font-size: 20px; }
.agent-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, #b7e4f5, #6554c0); color: white; font-weight: 900; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }
.agent-tag { padding: 3px 7px; border-radius: 5px; background: #efe8ff; color: #7b42e6; font-size: 12px; font-weight: 600; }
.feishu-tools { display: flex; gap: 22px; color: #646a73; font-size: 21px; }
.feishu-thread { overflow: auto; padding: 28px clamp(22px, 5vw, 70px) 18px; }
.reply-count { margin-bottom: 20px; color: #1456f0; font-size: 14px; }
.agent-reply { padding: 22px 20px; border: 1px solid #dee0e3; border-radius: 8px; color: #2f3338; font-size: 15px; line-height: 1.75; }
.agent-reply p { margin: 0 0 13px; }
.agent-reply h2 { margin: 14px 0 6px; font-size: 18px; }
.agent-reply ol { margin: 0; padding-left: 26px; }
.agent-reply li::marker { color: #1456f0; }
.reply-context { padding-left: 8px; border-left: 3px solid #bbbfc4; color: #646a73; font-size: 13px; }
.chat-response { margin-top: 16px; padding: 10px 12px; border-radius: 6px; background: #f2f3f5; color: #4e5969; font-size: 13px; line-height: 1.55; }
.feishu-composer { padding: 0 28px 24px; }
.quick-command { margin-bottom: 10px; padding: 8px 14px; border: 1px solid #d0d3d8; border-radius: 9px; background: white; color: #1f2329; font: inherit; }
.composer-box { display: grid; grid-template-columns: 1fr auto; min-height: 72px; padding: 10px 12px; border: 1px solid #bbbfc4; border-radius: 9px; background: white; }
.composer-box:focus-within { border-color: #3370ff; box-shadow: 0 0 0 2px rgba(51, 112, 255, .10); }
.composer-box input { grid-column: 1 / -1; min-width: 0; border: 0; outline: 0; color: #1f2329; font: 15px inherit; }
.composer-tools { display: flex; align-items: center; gap: 15px; color: #646a73; font-size: 18px; }
.composer-box button { align-self: end; width: 38px; height: 34px; border: 0; border-radius: 7px; background: #3370ff; color: white; cursor: pointer; font-size: 18px; }
.composer-box button:hover { background: #245bdb; }
.dispatch-details { padding: 0 28px 20px; }
.dispatch-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dispatch-strip > div { min-width: 0; padding: 9px 11px; border: 1px solid #dce5e7; border-radius: 8px; background: #f7faf9; }
.dispatch-strip span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dispatch-strip strong { display: block; margin-top: 3px; overflow: hidden; color: #18333e; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-plan { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 0; padding: 0 0 2px; list-style: none; }
.dispatch-plan li { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #d6e1e3; border-radius: 999px; color: #47606b; background: white; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.dispatch-plan li.active { border-color: #148467; background: #ddf4ed; color: #075845; }
.run-picker { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
select { min-width: min(440px, 72vw); padding: 10px 34px 10px 12px; border: 1px solid #b9c6cc; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.run-meta { color: var(--muted); font-size: 13px; text-align: right; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0; }
.metric { padding: 15px 18px; background: #172a34; color: white; border-radius: 12px; border-left: 4px solid #20b486; }
.metric span { display: block; color: #9eb0b9; font-size: 12px; }
.metric strong { display: block; margin-top: 6px; font-size: 24px; }
.workspace { display: grid; grid-template-columns: minmax(0, 2.85fr) minmax(260px, 1fr); gap: 12px; scroll-margin-top: 16px; }
.video-card, .skills-card, .lower-grid > .panel { padding: 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.pill { padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
video { display: block; width: 100%; aspect-ratio: 64/27; object-fit: contain; background: #091116; border-radius: 9px; }
.empty-state { min-height: 320px; padding: 40px; display: grid; place-items: center; border-radius: 9px; background: #f3f6f7; color: var(--muted); text-align: center; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.skill-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid #e0e6e9; border-radius: 8px; }
.skill-index { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 900; }
.skill-id { font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.skill-time { color: var(--muted); font-size: 11px; }
.lower-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; margin-top: 12px; }
.event-cards { display: grid; gap: 8px; }
.event-card { padding: 11px; border-left: 3px solid var(--warning); background: #fff8ed; border-radius: 7px; }
.event-card.safety { border-color: var(--danger); background: #fff0f0; }
.event-card strong { display: block; font-size: 13px; }
.event-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.event-log { height: 300px; overflow: auto; border: 1px solid #e0e6e9; border-radius: 8px; background: #f7f9fa; }
.log-row { display: grid; grid-template-columns: 48px 132px minmax(0, 1fr); gap: 8px; padding: 7px 9px; border-bottom: 1px solid #e7ecef; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-row:last-child { border-bottom: 0; }
.log-seq { color: var(--muted); }
.log-type { color: var(--blue); }
.limitations { margin-top: 12px; padding: 13px 17px; display: flex; gap: 12px; border: 1px solid #efc788; border-radius: 10px; background: #fff8e8; color: #68420d; font-size: 13px; }
.fastwam-panel { min-height: 420px; padding: 28px; }
.fastwam-hero { display: flex; justify-content: space-between; align-items: center; }
.fastwam-claim { max-width: 920px; margin: 28px 0; color: #405560; font-size: 16px; line-height: 1.7; }
.fastwam-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fastwam-metrics > div { padding: 20px; border-radius: 10px; background: #132832; color: white; border-left: 4px solid #20b486; }
.fastwam-metrics span { display: block; color: #a4bac3; font-size: 12px; }
.fastwam-metrics strong { display: block; margin-top: 8px; font-size: 20px; }
.fastwam-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.fastwam-flow > div { padding: 16px 18px; border: 1px solid #d7e2e5; border-radius: 10px; background: #f6faf9; }
.fastwam-flow span { display: block; color: var(--accent); font-size: 11px; font-weight: 900; }
.fastwam-flow strong { display: block; margin-top: 6px; color: #29414b; font-size: 14px; }
.fastwam-flow .pending { border-color: #efc788; background: #fff8e8; }
.fastwam-flow .pending span { color: var(--warning); }
.fastwam-boundary { margin-top: 28px; }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .workspace, .lower-grid { grid-template-columns: 1fr; }
  .run-picker { align-items: stretch; flex-direction: column; }
  .run-meta { text-align: left; }
  .fastwam-metrics { grid-template-columns: 1fr; }
  .fastwam-flow { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  main { width: min(100% - 18px, 1440px); }
  .metrics { grid-template-columns: 1fr; }
  .limitations { flex-direction: column; }
  .scenario-tabs { grid-template-columns: repeat(2, 1fr); }
  .dispatch-strip { grid-template-columns: 1fr; }
  .feishu-tools { gap: 10px; font-size: 16px; }
  .feishu-thread { padding: 18px 12px 12px; }
  .feishu-composer, .dispatch-details { padding-inline: 12px; }
}
