:root {
  color-scheme: light;
  --ink: #0b1828;
  --slate: #657b92;
  --cyan: #13b8c7;
  --cyan-deep: #0d6672;
  --line: #d9e5ed;
  --mist: #f4f8fa;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(20, 184, 199, 0.14), transparent 30%),
    linear-gradient(135deg, #f9fcfd, #eef5f8);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.agent-demo {
  min-height: 100%;
  padding: clamp(24px, 4vw, 42px);
}

.agent-demo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.agent-eyebrow {
  margin: 0 0 8px;
  color: var(--cyan-deep);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.055em;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 7px 9px;
  border: 1px solid rgba(19, 184, 199, 0.35);
  border-radius: 999px;
  color: var(--cyan-deep);
  background: rgba(225, 249, 250, 0.68);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.agent-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #15b992;
  box-shadow: 0 0 0 4px rgba(21, 185, 146, 0.11);
}

.agent-intro {
  max-width: 760px;
  margin: 18px 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.75;
}

.agent-query {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid #c8dce6;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(38, 69, 91, 0.06);
}

.agent-query input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.agent-query input::placeholder { color: #91a3b2; }

.agent-query button,
.agent-suggestions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.agent-query button {
  padding: 10px 15px;
  border-radius: 10px;
  color: #f6ffff;
  background: #0e2338;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.agent-query button:hover { transform: translateY(-1px); background: #12344e; }

.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 21px;
}

.agent-suggestions button {
  padding: 6px 9px;
  border: 1px solid #cfdee6;
  border-radius: 999px;
  color: #46667c;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.71rem;
  font-weight: 750;
}

.agent-suggestions button:hover,
.agent-suggestions button:focus-visible {
  border-color: rgba(19, 184, 199, 0.7);
  color: var(--cyan-deep);
  outline: none;
}

.agent-result {
  min-height: 274px;
  padding: clamp(19px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid #d5e4eb;
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 13%, rgba(19, 184, 199, 0.10), transparent 12rem),
    rgba(255, 255, 255, 0.82);
}

.agent-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 218px;
  color: var(--slate);
  text-align: left;
}

.agent-result-placeholder strong { color: var(--ink); }
.agent-result-placeholder p { margin: 5px 0 0; font-size: 0.84rem; line-height: 1.6; }

.agent-result-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan-deep);
  background: #e4f8f9;
  font-family: Consolas, monospace;
  font-size: 1.8rem;
}

.agent-answer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.agent-answer-meta p,
.agent-answer-meta span {
  margin: 0;
  color: var(--cyan-deep);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.agent-answer-meta span { color: #71879a; letter-spacing: 0; }

.agent-answer {
  margin: 0;
  color: #25415a;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.8;
}

.agent-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 17px;
  padding: 0;
  list-style: none;
}

.agent-trace li {
  padding: 4px 7px;
  border-radius: 999px;
  color: #587286;
  background: #edf5f7;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.61rem;
  font-weight: 800;
}

.agent-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.agent-source {
  min-height: 108px;
  padding: 12px;
  border: 1px solid #d9e5eb;
  border-radius: 12px;
  background: rgba(247, 251, 252, 0.78);
}

.agent-source span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan-deep);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.agent-source h2 {
  margin: 0 0 5px;
  font-size: 0.82rem;
  letter-spacing: -0.025em;
}

.agent-source p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate);
  font-size: 0.71rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 620px) {
  .agent-demo { padding: 21px; }
  .agent-demo-header { align-items: flex-start; }
  .agent-status { display: none; }
  .agent-query { flex-direction: column; }
  .agent-query button { width: 100%; }
  .agent-sources { grid-template-columns: 1fr; }
  .agent-source { min-height: 0; }
  .agent-result { min-height: 340px; }
}

/* 2026-08-31: keep the retrieval action inside the shared light palette. */
.agent-query button {
  border: 1px solid #9fc9ed;
  color: #174b77;
  background: #dcecff;
  box-shadow: 0 8px 18px rgba(60, 119, 166, 0.12);
}

.agent-query button:hover {
  color: #103f68;
  background: #cfe5fb;
}
