:root {
  --canvas: #f7f9fc;
  --paper: #ffffff;
  --ink: #1c2a43;
  --muted: #738096;
  --line: #dce4ef;
  --blue: #326cf4;
  --blue-deep: #2557d5;
  --blue-pale: #eef5ff;
  --mint: #18a878;
  --mint-pale: #ebf8f3;
  --amber: #d6902e;
  --amber-pale: #fff7e9;
  --rose: #c96d72;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Noto Sans Mono CJK SC", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); }

.site-header, main, .site-footer { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; background: #e8f8f2; }
.wordmark-mark i { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(24, 168, 120, .12); }
.wordmark b { display: block; font-size: 18px; letter-spacing: .02em; }
.wordmark small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.header-status { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #f0d6d7; border-radius: 8px; color: var(--rose); background: #fff8f8; font-size: 12px; font-weight: 700; }
.header-status em { padding-left: 7px; border-left: 1px solid #efd6d7; font-style: normal; font-weight: 500; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

.intro { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: 28px 0 37px; }
.eyebrow, .stage-kicker, .report-kicker, .card-index { margin: 0; color: var(--blue); font: 700 10px/1.4 var(--mono); letter-spacing: .12em; }
.intro h1 { margin: 10px 0 13px; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.05; letter-spacing: -.07em; }
.intro h1 em { color: var(--blue); font-style: normal; }
.intro > div:first-child > p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.intro-contract { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; max-width: 285px; }
.intro-contract span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: #63708a; background: var(--paper); font: 10px/1 var(--mono); }

.scenario-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 20px; }
.scenario-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 104px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 4px 12px rgba(33, 63, 108, .03); }
.scenario-card > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-pale); font: 700 10px/1 var(--mono); }
.scenario-card strong { display: block; font-size: 15px; line-height: 1.35; }
.scenario-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.scenario-card i { position: absolute; top: 12px; right: 12px; color: var(--blue); font: 700 9px/1 var(--mono); font-style: normal; }
.scenario-card--active { border-color: #8eb4ff; background: var(--blue-pale); box-shadow: inset 0 0 0 1px rgba(50, 108, 244, .07); }

.replay-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 355px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 45px rgba(39, 61, 101, .09); }
.replay-main { min-width: 0; padding: 31px clamp(25px, 4vw, 55px) 50px; background-color: #fbfdff; background-image: linear-gradient(rgba(202, 217, 237, .34) 1px, transparent 1px), linear-gradient(90deg, rgba(202, 217, 237, .34) 1px, transparent 1px); background-size: 40px 40px; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 900px; margin: 0 auto 31px; }
.workspace-heading h2 { margin: 6px 0 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; letter-spacing: -.055em; }
.execution-caption { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.run-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; flex: 0 0 auto; padding: 0 14px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); box-shadow: 0 8px 15px rgba(50, 108, 244, .19); font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.run-button:hover:not(:disabled) { background: var(--blue-deep); transform: translateY(-2px); }
.run-button:focus-visible, .wordmark:focus-visible { outline: 3px solid #8fb5ff; outline-offset: 4px; }
.run-button:disabled { cursor: wait; opacity: .75; }
.run-button-mark { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 8px; }

.task-feed { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.project-message { display: flex; align-items: start; justify-content: end; gap: 12px; }
.message-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 800; }
.message-avatar--person { order: 2; background: #23304a; }
.project-bubble { max-width: min(720px, calc(100% - 54px)); padding: 21px 23px 16px; border-radius: 13px 4px 13px 13px; color: #fff; background: linear-gradient(135deg, #3675f8, #2c64df); box-shadow: 0 10px 22px rgba(50, 108, 244, .19); }
.project-bubble p { margin-bottom: 16px; font-size: 16px; font-weight: 650; line-height: 1.75; }
.task-meta { display: flex; gap: 16px; color: rgba(255,255,255,.77); font-size: 11px; }

.agent-entry { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; transition: opacity .42s ease, transform .42s ease; }
.agent-entry.is-pending { display: none; opacity: 0; transform: translateY(12px); }
.agent-entry.is-visible { display: grid; opacity: 1; transform: translateY(0); animation: card-in .42s ease both; }
.agent-rail { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.agent-rail i { width: 1px; height: calc(100% - 50px); min-height: 22px; background: #b9d8ce; }
.agent-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #fff; background: var(--mint); font: 700 10px/1 var(--mono); box-shadow: 0 4px 12px rgba(24, 168, 120, .18); }
.agent-card { max-width: 780px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px 13px 13px 13px; background: var(--paper); box-shadow: 0 8px 18px rgba(39, 61, 101, .06); }
.stage-kicker { color: var(--mint); }
.agent-card h3 { margin: 7px 0 9px; font-size: 23px; line-height: 1.1; letter-spacing: -.04em; }
.agent-card > p:not(.stage-kicker) { margin-bottom: 0; color: #45536b; font-size: 14px; line-height: 1.8; }
.stage-note { display: inline-block; margin-top: 13px; padding: 5px 7px; border-radius: 5px; color: #28745f; background: var(--mint-pale); font-size: 10px; }
.artifact-strip, .layer-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.artifact-strip span, .layer-list span { padding: 6px 8px; border: 1px solid #d6e4fc; border-radius: 6px; color: #4167aa; background: #f3f7ff; font-size: 11px; }
.layer-list span:nth-child(2) { color: #9c6b2f; border-color: #f3dfb5; background: var(--amber-pale); }
.layer-list span:nth-child(3) { color: #35725d; border-color: #cde8dd; background: var(--mint-pale); }
.priority-preview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 15px; padding: 10px; border: 1px solid #f0dfb7; border-left: 3px solid var(--amber); background: var(--amber-pale); }
.priority-preview span { color: #8c692c; font: 700 9px/1 var(--mono); }
.priority-preview b { font-size: 12px; }
.priority-preview em { color: #9b7a42; font-size: 10px; font-style: normal; }
.agent-card--delivery { border-color: #c6e4d9; background: #fbfffd; }
.delivery-link { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #dcefe8; color: #138060; }
.delivery-link span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--mint); font-size: 12px; }
.delivery-link b { font-size: 12px; }
.delivery-link small { margin-left: auto; color: #6e9a8d; font-size: 10px; }

.replay-sidebar { display: flex; flex-direction: column; gap: 17px; padding: 31px 28px; border-left: 1px solid var(--line); background: #fff; }
.side-block { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.side-block > p { margin-bottom: 9px; color: var(--blue); font-size: 13px; font-weight: 800; }
.input-block { border-color: #cbdcff; background: var(--blue-pale); }
.input-block strong { display: block; font: 700 15px/1.55 var(--mono); letter-spacing: -.04em; }
.input-block span, .delivery-block span { display: block; margin-top: 12px; color: #5875a4; font-size: 11px; line-height: 1.55; }
.progress-block { padding: 16px 0 0; border-width: 0; border-radius: 0; }
.progress-title { display: flex; align-items: center; justify-content: space-between; }
.progress-title p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.progress-title b { color: var(--blue); font: 700 19px/1 var(--mono); letter-spacing: -.08em; }
.progress-track { height: 10px; margin: 13px 0 19px; overflow: hidden; border-radius: 999px; background: #e7edf7; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #26a17d); transition: width .45s ease; }
.progress-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.progress-list li { display: flex; align-items: center; gap: 11px; color: #8792a4; font-size: 13px; transition: color .3s ease; }
.progress-list span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #8290a2; background: #f0f3f7; font: 700 12px/1 var(--mono); transition: color .3s ease, background .3s ease; }
.progress-list li.is-active { color: var(--blue); }
.progress-list li.is-active span { color: #fff; background: var(--blue); box-shadow: 0 0 0 4px rgba(50,108,244,.12); }
.progress-list li.is-complete { color: #264c42; }
.progress-list li.is-complete span { color: var(--mint); background: var(--mint-pale); }
.delivery-block { margin-top: auto; border-color: #d8e8e2; background: #fbfffd; }
.delivery-block > p { color: var(--mint); }
.delivery-block strong { display: block; font-size: 15px; }
.delivery-block.is-ready { border-color: #a8ddca; background: var(--mint-pale); }
.delivery-block.is-ready strong { color: #147257; }
.delivery-block.is-ready span { color: #357862; }
.run-state { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }

.deliverable-section { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(42px, 8vw, 130px); align-items: center; padding: 125px 0; }
.section-intro h2, .boundary-heading h2 { margin: 12px 0 15px; font-size: clamp(34px, 4vw, 55px); line-height: 1.06; letter-spacing: -.065em; }
.section-intro > p:last-child { max-width: 360px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.report-card { padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 13px 15px 0 rgba(50, 108, 244, .08); }
.report-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--blue); font: 700 10px/1 var(--mono); letter-spacing: .1em; }
.report-topline span:last-child { color: var(--mint); font-size: 9px; }
.report-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 15px; padding: 17px 0; }
.report-summary, .priority-candidate { min-height: 186px; padding: 20px; border-radius: 9px; }
.report-summary { background: #f1f6ff; }
.priority-candidate { background: var(--amber-pale); }
.report-card h3 { margin: 8px 0 15px; font-size: 24px; letter-spacing: -.055em; }
.report-summary > p:last-child, .candidate-copy, .candidate-boundary { color: var(--muted); font-size: 12px; line-height: 1.65; }
.line-set { display: grid; gap: 8px; margin-bottom: 16px; }
.line-set i { display: block; height: 7px; border-radius: 20px; background: #acc6f5; }
.line-set i:nth-child(2) { width: 74%; }
.line-set i:nth-child(3) { width: 52%; }
.candidate-copy { color: #5e513a; }
.candidate-boundary { margin: 13px 0 0; color: #9c6b2f; font-weight: 700; }
.report-list { display: grid; gap: 6px; }
.report-list div { display: grid; grid-template-columns: 34px minmax(120px,.8fr) 1.7fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid #e6ebf2; }
.report-list span { color: var(--blue); font: 700 10px/1 var(--mono); }
.report-list strong { font-family: var(--display); font-size: 17px; letter-spacing: -.03em; }
.report-list small { color: var(--muted); font-size: 11px; }
.report-footer { padding-top: 14px; color: var(--muted); font-size: 11px; }

.boundary-section { padding: 0 0 100px; }
.boundary-heading { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(42px, 8vw, 130px); margin-bottom: 32px; }
.boundary-heading h2 { margin: 0; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.capability-card { min-height: 290px; padding: 27px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.capability-card h3 { max-width: 390px; margin: 17px 0 27px; font-size: 29px; line-height: 1.18; letter-spacing: -.05em; }
.capability-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.capability-card li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; }
.capability-card li::before { position: absolute; left: 0; color: var(--mint); content: "•"; }
.capability-card--can { background: #f5fbf8; }
.capability-card--cannot { background: #fff9f8; }
.capability-card--cannot .card-index, .capability-card--cannot li::before { color: var(--rose); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 21px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: .06em; }

@keyframes card-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .replay-workspace { grid-template-columns: minmax(0, 1fr) 310px; }
  .replay-sidebar { padding: 26px 20px; }
  .intro { align-items: start; }
}

@media (max-width: 860px) {
  .intro, .deliverable-section, .boundary-heading { grid-template-columns: 1fr; }
  .intro { display: grid; gap: 19px; }
  .intro-contract { justify-content: start; max-width: none; }
  .scenario-bar { grid-template-columns: 1fr 1fr; }
  .replay-workspace { grid-template-columns: 1fr; }
  .replay-sidebar { border-top: 1px solid var(--line); border-left: 0; }
  .delivery-block { margin-top: 0; }
  .deliverable-section { gap: 44px; padding: 85px 0; }
  .boundary-heading { gap: 15px; }
}

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 600px); }
  .site-header { min-height: 72px; }
  .header-status { padding: 7px 9px; font-size: 11px; }
  .header-status em { display: none; }
  .wordmark b { font-size: 16px; }
  .intro { padding: 25px 0 28px; }
  .intro h1 { font-size: clamp(35px, 10.3vw, 51px); }
  .intro > div:first-child > p:last-child { font-size: 14px; }
  .scenario-bar { gap: 9px; }
  .scenario-card { min-height: 88px; padding: 13px; gap: 9px; }
  .scenario-card strong { font-size: 13px; }
  .scenario-card small { font-size: 10px; }
  .scenario-card i { display: none; }
  .replay-main { padding: 23px 16px 34px; background-size: 30px 30px; }
  .workspace-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .workspace-heading h2 { font-size: 29px; }
  .run-button { width: 100%; }
  .task-feed { gap: 14px; }
  .project-message { gap: 8px; }
  .message-avatar { width: 35px; height: 35px; border-radius: 9px; font-size: 11px; }
  .project-bubble { max-width: calc(100% - 43px); padding: 16px; }
  .project-bubble p { font-size: 14px; line-height: 1.72; }
  .task-meta { flex-direction: column; gap: 4px; }
  .agent-entry { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .agent-avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 8px; }
  .agent-rail i { height: calc(100% - 42px); }
  .agent-card { padding: 16px; }
  .agent-card h3 { font-size: 20px; }
  .agent-card > p:not(.stage-kicker) { font-size: 13px; }
  .priority-preview { grid-template-columns: 1fr; gap: 5px; }
  .priority-preview em { justify-self: start; }
  .replay-sidebar { gap: 14px; padding: 21px 16px; }
  .report-card { padding: 16px; }
  .report-grid, .boundary-grid { grid-template-columns: 1fr; }
  .report-summary, .priority-candidate { min-height: auto; }
  .report-list div { grid-template-columns: 27px 1fr; }
  .report-list small { grid-column: 2; }
  .boundary-section { padding-bottom: 65px; }
  .capability-card { min-height: auto; padding: 22px; }
  .capability-card h3 { font-size: 25px; }
  .site-footer { flex-direction: column; padding-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
