:root {
  color-scheme: light;
  --bg: #eef3f6;
  --surface: #ffffff;
  --surface-muted: #f3f7f9;
  --text: #172131;
  --muted: #667386;
  --line: #dce4eb;
  --line-strong: #c9d4de;
  --primary: #0d756f;
  --primary-dark: #095c58;
  --accent: #0d8c82;
  --warning: #a96516;
  --danger: #be4040;
  --ink: #101c2d;
  --shadow: 0 18px 48px rgba(20, 35, 55, 0.10);
  --shadow-soft: 0 1px 2px rgba(20, 35, 55, 0.04);
  --glow: 0 22px 60px rgba(13, 117, 111, 0.13);
  --glass: rgba(255, 255, 255, 0.76);
  --ease-out-ui: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(13, 140, 130, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(34, 94, 147, 0.11), transparent 26%),
    linear-gradient(180deg, #f7fbfc 0%, #eef3f6 38%, #f6f8fb 100%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

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

.sidebar {
  background: #101c2d;
  color: #f8fafc;
  padding: 20px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin: 0 8px 26px;
}

.brand > div:last-child {
  display: grid;
  gap: 3px;
}

.brand small {
  color: #7f91a6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #0d8c82;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(14, 95, 131, 0.28);
}

.sidebar-note {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #b8c5d1;
  font-size: 12px;
  line-height: 1.6;
}

.nav-list { display: grid; gap: 4px; }

.nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #aebdcb;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #39b8ad;
}

.sidebar-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: grid;
  gap: 7px;
  color: #7f91a6;
  font-size: 12px;
}

.sidebar-health {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b8c5d1;
}

.main {
  min-width: 0;
  padding: 24px 32px 40px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(247, 251, 252, .96), rgba(247, 251, 252, .78));
  backdrop-filter: blur(14px);
}

.page-title h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 980px;
  line-height: 1.65;
}

.page-quickbar {
  position: sticky;
  top: 76px;
  z-index: 18;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  margin: -6px 0 16px;
  padding: 9px;
  border: 1px solid rgba(201, 212, 222, .8);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: 0 16px 40px rgba(20, 35, 55, .08);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.page-quickbar::-webkit-scrollbar { display: none; }

.quickbar-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

.quickbar-link {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  min-height: 30px;
  padding: 5px 11px;
  background: rgba(255,255,255,.7);
  color: #506071;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.quickbar-link:hover,
.quickbar-link.active,
.density-toggle,
.section-focus-mode .focus-toggle {
  background: #0d756f;
  color: #fff;
  transform: translateY(-1px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.layout-2 { grid-template-columns: minmax(0, 1fr) 340px; }

.panel,
.card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 1px rgba(20, 35, 55, .03), 0 18px 44px rgba(20, 35, 55, .055);
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel {
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: panelIn .28s ease both;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.panel:hover {
  border-color: rgba(13, 117, 111, .18);
  box-shadow: var(--shadow);
}

.panel::before { display: none; }
.card { padding: 16px; }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.35;
}

.panel-head .panel-title {
  margin-bottom: 4px;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  flex-shrink: 0;
}

.seg {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 5px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.seg.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.metric {
  display: grid;
  gap: 6px;
}

.metric-value {
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.metric-value.small {
  font-size: 18px;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.hero-console {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.console-hero {
  padding: 22px;
  min-height: 250px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(135deg, rgba(17, 95, 124, 0.08), rgba(22, 134, 111, 0.06) 42%, #ffffff 72%);
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-title {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.signal.warning .signal-dot { background: var(--warning); }
.signal.danger .signal-dot { background: var(--danger); }

.section-title {
  margin: 24px 0 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-step {
  position: relative;
  min-height: 132px;
  padding: 14px;
}

.pipeline-step::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 48px;
  width: 10px;
  height: 1px;
  background: var(--line);
}

.pipeline-step:last-child::after { display: none; }

.step-code {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

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

.connector {
  display: grid;
  gap: 8px;
}

.connector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f4ef;
  color: #17634f;
  font-size: 12px;
}

.status-chip.optional,
.status-chip.configured {
  background: #eef3f7;
  color: #586474;
}

.run-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px 80px 80px;
  gap: 10px;
  align-items: center;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e8edf2;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.value-card {
  min-height: 150px;
}

.command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

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

.scenario {
  cursor: pointer;
}

.scenario:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.trace-list {
  display: grid;
  gap: 8px;
}

.trace-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.trace-stage {
  font-weight: 700;
  color: var(--primary);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.delivery-card {
  min-height: 112px;
}

.delivery-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar.stretch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13, 117, 111, .10); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.danger {
  color: var(--danger);
  border-color: rgba(190, 64, 64, .22);
}
.btn.danger:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 12px 26px rgba(190, 64, 64, .14);
}
.btn.ghost {
  min-height: 30px;
  padding: 5px 9px;
  background: rgba(255,255,255,.72);
  font-size: 12px;
}
.btn:disabled { cursor: not-allowed; opacity: .64; transform: none; box-shadow: none; }
.btn.icon { width: 38px; justify-content: center; padding: 8px; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-height: 40px;
  padding: 9px 11px;
  font: inherit;
}

.grid-4 > select,
.grid-4 > input,
.grid-4 > button {
  min-width: 0;
}

textarea { resize: vertical; line-height: 1.55; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 6px; }

.chat-box {
  height: min(62vh, 620px);
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(240, 244, 247, .92)),
    var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: center;
  min-height: 220px;
  background:
    radial-gradient(circle at 88% 20%, rgba(13, 117, 111, .16), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,247,245,.86));
}

.chat-command-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -.045em;
}

.chat-command-copy p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.agent-orbit {
  position: relative;
  min-height: 188px;
  border-radius: 28px;
  border: 1px solid rgba(13, 117, 111, .14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.52)),
    radial-gradient(circle at 50% 50%, rgba(13,117,111,.12), transparent 48%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.68), 0 24px 60px rgba(20,35,55,.08);
  overflow: hidden;
}

.agent-orbit::before,
.agent-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(13,117,111,.24);
  border-radius: 999px;
  animation: orbitSpin 16s linear infinite;
}

.agent-orbit::after {
  inset: 54px;
  animation-duration: 22s;
  animation-direction: reverse;
}

.agent-orbit span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0d756f;
  border: 1px solid rgba(13,117,111,.18);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(20,35,55,.08);
}

.agent-orbit span:nth-child(1) { left: 38%; top: 14px; }
.agent-orbit span:nth-child(2) { right: 20px; top: 54px; }
.agent-orbit span:nth-child(3) { right: 54px; bottom: 18px; }
.agent-orbit span:nth-child(4) { left: 38px; bottom: 22px; }
.agent-orbit span:nth-child(5) { left: 16px; top: 58px; }
.agent-orbit span:nth-child(6) { left: 39%; top: 78px; background: #0d756f; color: #fff; }

.chat-panel {
  padding: 14px;
}

.chat-inputbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.message {
  max-width: min(760px, 88%);
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.65;
  white-space: pre-wrap;
  animation: messageIn .22s ease both;
  position: relative;
}

.message.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
}

.message.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(20, 35, 55, .05);
  white-space: normal;
}

.message.ai:hover .message-copy {
  opacity: 1;
  transform: translateY(0);
}

.message-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(13,117,111,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}

.message.user {
  box-shadow: 0 14px 28px rgba(13, 117, 111, .20);
}

.markdown-body {
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }

.markdown-body p {
  margin: .42rem 0;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: .95rem 0 .42rem;
  color: var(--ink);
  line-height: 1.35;
}

.markdown-body h2 { font-size: 18px; }
.markdown-body h3 { font-size: 16px; }
.markdown-body h4,
.markdown-body h5 { font-size: 15px; }

.markdown-body ul,
.markdown-body ol {
  margin: .35rem 0 .65rem;
  padding-left: 1.25rem;
}

.markdown-body li {
  margin: .22rem 0;
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef5f4;
  color: #0c625c;
  font-size: .92em;
}

.markdown-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 13px;
}

.markdown-table th,
.markdown-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.markdown-table th {
  color: #385063;
  background: #f4f8f9;
  font-weight: 700;
}

.markdown-table tr:last-child td {
  border-bottom: 0;
}

.typing-message {
  display: grid;
  gap: 8px;
  min-width: min(380px, 88%);
}

.typing-title {
  font-weight: 700;
  color: var(--primary);
}

.typing-step {
  color: var(--muted);
  font-size: 13px;
}

.typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 14px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingPulse 1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: .14s; }
.typing-dots span:nth-child(3) { animation-delay: .28s; }

.agent-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9f7f5, #f6fbfb);
  border: 1px solid rgba(13, 117, 111, .16);
  color: #0d756f;
  font-size: 12px;
  font-weight: 700;
}

.route-summary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,250,249,.96));
}

.route-plan {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(201, 212, 222, .78);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
}

.route-step p {
  margin: 4px 0 0;
  line-height: 1.55;
}

.route-index {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e9f7f5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #173044;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: rgba(190, 64, 64, .25);
  color: var(--danger);
}

.toast.success {
  border-color: rgba(13, 117, 111, .25);
  color: var(--primary);
}

.command-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 920;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(13,117,111,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--primary);
  box-shadow: 0 18px 46px rgba(20, 35, 55, .13);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.command-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(20, 35, 55, .17);
  background: rgba(255,255,255,.96);
}

.command-launcher span {
  min-width: 34px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #101c2d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.command-launcher strong {
  font-size: 13px;
  white-space: nowrap;
}

.command-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 9vh 18px 18px;
  background: rgba(16, 28, 45, .36);
  backdrop-filter: blur(12px);
  animation: commandFade .16s ease both;
}

.command-open {
  overflow: hidden;
}

.command-panel-wrap {
  width: min(760px, 100%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(13,117,111,.13), transparent 30%),
    rgba(255,255,255,.94);
  box-shadow: 0 34px 100px rgba(16, 28, 45, .28);
  overflow: hidden;
}

.command-input-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid rgba(201, 212, 222, .82);
}

.command-input-row input {
  border: 0;
  background: transparent;
  min-height: 42px;
  padding: 0;
  font-size: 16px;
  outline: none;
}

.command-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: #e4f7f4;
  font-weight: 800;
}

.command-hint {
  padding: 9px 16px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid rgba(201, 212, 222, .58);
}

.command-results {
  max-height: min(60vh, 520px);
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.command-result {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.command-result:hover,
.command-result.active {
  background: rgba(239, 248, 247, .92);
  border-color: rgba(13,117,111,.18);
}

.command-type {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f7;
  color: #586474;
  font-size: 12px;
  font-weight: 800;
}

.command-type.audit,
.command-type.evidence,
.command-type.task {
  background: #e4f7f4;
  color: var(--primary);
}

.command-type.evaluation,
.command-type.tool {
  background: #fef3c7;
  color: var(--warning);
}

.command-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.command-copy strong,
.command-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-copy small,
.command-empty span {
  color: var(--muted);
  font-size: 12px;
}

.command-badge {
  color: var(--muted);
  font-size: 12px;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-empty {
  padding: 34px 16px;
  text-align: center;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.skeleton-lines {
  display: grid;
  gap: 8px;
}

.skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7eef3, #f7fafb, #e7eef3);
  background-size: 220% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.prewrap {
  white-space: pre-wrap;
  line-height: 1.7;
}

.list {
  display: grid;
  gap: 10px;
}

.list.dense { gap: 6px; }

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.item.clickable { cursor: pointer; }
.item.clickable:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.item.compact {
  padding: 9px 10px;
}

.section-band {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--primary);
}

.matrix {
  overflow-x: auto;
}

.matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.matrix th,
.matrix td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.matrix th {
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-muted);
}

.quality {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.quality-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #e5edf2 0);
}

.quality-ring span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-weight: 700;
}

.metric-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.metric-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  margin: 0;
}

.metric-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
}

.metric-toggle-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.metric-toggle-text small {
  color: var(--muted);
  line-height: 1.45;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.score-pill {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
}

.score-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.score-pill strong {
  color: var(--primary);
  white-space: nowrap;
}

.item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.eval-card {
  display: grid;
  gap: 8px;
}

.trace-summary,
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.trace-summary span {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf7f3;
  color: #17634f;
  font-size: 12px;
  max-width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.badge.high { background: #fee2e2; color: var(--danger); }
.badge.medium { background: #fef3c7; color: var(--warning); }
.badge.low { background: #dcfce7; color: #167246; }
.badge.pass { background: #dcfce7; color: #167246; }
.badge.review { background: #fef3c7; color: var(--warning); }
.badge.blocked { background: #fee2e2; color: var(--danger); }
.badge.高 { background: #fee2e2; color: var(--danger); }
.badge.中 { background: #fef3c7; color: var(--warning); }
.badge.低 { background: #dcfce7; color: #167246; }

.muted { color: var(--muted); }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.hidden { display: none !important; }

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 20px;
  align-items: stretch;
  min-height: 360px;
  margin-bottom: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(201, 212, 222, .82);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 252, 251, .76) 48%, rgba(236, 247, 255, .76)),
    radial-gradient(circle at 80% 12%, rgba(14, 165, 233, .16), transparent 28%),
    radial-gradient(circle at 16% 94%, rgba(13, 117, 111, .18), transparent 34%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .10);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 117, 111, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 117, 111, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,.7), transparent 72%);
  pointer-events: none;
  z-index: -2;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
  animation: softFloat 9s ease-in-out infinite;
}

.hero-orb.orb-a {
  width: 220px;
  height: 220px;
  right: 22%;
  top: -86px;
  background: radial-gradient(circle, rgba(20, 184, 166, .30), transparent 67%);
}

.hero-orb.orb-b {
  width: 280px;
  height: 280px;
  right: -82px;
  bottom: -108px;
  background: radial-gradient(circle, rgba(59, 130, 246, .20), transparent 68%);
  animation-delay: -3s;
}

.home-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 820px;
}

.home-hero-copy h2 {
  margin: 0;
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(32px, 4.3vw, 60px);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.home-hero-copy p {
  margin: 0;
  max-width: 760px;
  color: #526174;
  font-size: 16px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(13, 117, 111, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: #315663;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.home-hero-system {
  align-self: center;
  display: grid;
  gap: 14px;
}

.system-card-main,
.system-mini-card {
  border: 1px solid rgba(201, 212, 222, .86);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 22px 56px rgba(15, 23, 42, .10);
  backdrop-filter: blur(18px);
}

.system-card-main {
  padding: 18px;
  min-height: 252px;
}

.system-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.system-card-head small {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #167246;
  font-weight: 800;
  font-size: 11px;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
  position: relative;
}

.system-flow span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 15px;
  background: linear-gradient(180deg, #f8fffe, #edf8f7);
  border: 1px solid rgba(13, 117, 111, .12);
  color: var(--primary);
  font-weight: 900;
  font-size: 12px;
}

.system-flow i {
  display: none;
}

.system-layers {
  display: grid;
  gap: 9px;
}

.system-layers div {
  padding: 11px 12px;
  border: 1px solid rgba(201, 212, 222, .82);
  border-radius: 15px;
  background: rgba(248, 250, 252, .72);
}

.system-layers strong,
.system-mini-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.3;
}

.system-layers small,
.system-mini-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.system-mini-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 15px 16px;
}

.system-mini-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.system-mini-card strong {
  grid-row: span 2;
  font-size: 34px;
  color: var(--primary);
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 58px;
  margin-bottom: 22px;
}

.workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-actions > * {
  flex-shrink: 0;
}

.global-search {
  position: relative;
  width: min(260px, 22vw);
  margin: 0;
}

.global-search span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.global-search input {
  min-height: 38px;
  padding-left: 48px;
  background: var(--surface);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.metric-cell {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.metric-cell:last-child { border-right: 0; }

.metric-cell .metric-value {
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.metric-cell small,
.project-table small,
.trace-row small,
.queue-row small,
.readiness-row small,
.empty-compact span,
.harness-item small,
.harness-score-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.evolution-command {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 180px minmax(280px, .9fr);
  gap: 18px;
  align-items: stretch;
  background:
    radial-gradient(circle at 12% 12%, rgba(13, 140, 130, .13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfb 50%, #edf6f5 100%);
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.evolution-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.evolution-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.harness-score-card {
  min-height: 136px;
  padding: 16px;
  border: 1px solid rgba(13, 117, 111, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  display: grid;
  align-content: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.harness-score-card span {
  color: var(--muted);
  font-size: 12px;
}

.harness-score-card strong {
  color: var(--primary);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.05em;
}

.harness-stack {
  display: grid;
  gap: 8px;
}

.harness-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(13, 117, 111, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .84);
}

.harness-item > span {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e0f2f1;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.harness-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 16px;
  align-items: stretch;
}

.project-board,
.agent-rail {
  min-height: 376px;
}

.text-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.project-table th {
  background: transparent;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .02em;
}

.project-table td {
  height: 55px;
  vertical-align: middle;
}

.project-table td:first-child {
  display: grid;
  gap: 3px;
}

.project-table tbody tr {
  transition: background .15s ease;
}

.project-table tbody tr:hover {
  background: #f7fafb;
}

.agent-stage-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 2px 0 20px;
}

.agent-stage-line span {
  position: relative;
  padding-top: 15px;
  color: #8a97a7;
  text-align: center;
  font-size: 11px;
}

.agent-stage-line span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: #dce4eb;
}

.agent-stage-line span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #c4cfd9;
}

.agent-stage-line .done::before,
.agent-stage-line .done::after,
.agent-stage-line .active::before,
.agent-stage-line .active::after {
  background: var(--accent);
}

.agent-stage-line .active {
  color: var(--primary);
  font-weight: 700;
}

.trace-feed,
.evidence-queue,
.readiness-list,
.control-bars {
  display: grid;
  gap: 0;
}

.trace-row,
.queue-row,
.readiness-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.trace-row {
  grid-template-columns: 10px minmax(0, 1fr);
}

.queue-row,
.readiness-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.readiness-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.trace-mark,
.readiness-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aeb9c5;
}

.trace-mark.success,
.readiness-mark.pass { background: var(--accent); }
.trace-mark.danger,
.readiness-mark.blocked { background: var(--danger); }
.readiness-mark.review { background: var(--warning); }

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .85fr) minmax(250px, .65fr);
  gap: 16px;
  margin-top: 16px;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(110px, 1fr) 34px;
  gap: 12px;
  align-items: center;
  min-height: 49px;
  border-top: 1px solid var(--line);
}

.control-meta {
  display: grid;
  gap: 3px;
}

.control-meta span {
  color: var(--muted);
  font-size: 11px;
}

.control-score {
  color: var(--primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.subtle-label {
  color: var(--muted);
  font-size: 12px;
}

.empty-state,
.empty-compact {
  color: var(--muted);
  text-align: center;
}

section[data-section-label] {
  scroll-margin-top: 140px;
}

.section-collapse-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  border: 1px solid rgba(13,117,111,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--primary);
  min-height: 28px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

section[data-collapsible="true"].panel > .panel-head,
section[data-collapsible="true"].panel > .section-title {
  padding-right: 92px;
}

section[data-collapsible="true"] {
  position: relative;
  transition: max-height .28s ease, opacity .2s ease;
}

section.section-collapsed {
  max-height: 86px;
  overflow: hidden;
}

section.section-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(246,248,251,0), #f6f8fb);
  pointer-events: none;
}

section.section-focus-hidden {
  display: none !important;
}

.section-focus-mode .main {
  min-height: 100vh;
}

section[data-collapsible="true"].grid {
  padding-top: 38px;
}

section[data-collapsible="true"].grid > .section-collapse-btn {
  top: 4px;
  right: 0;
}

.focus-toggle {
  border: 1px solid rgba(13,117,111,.16);
}

.density-compact .panel,
.density-compact .card,
.density-compact .item {
  border-radius: 12px;
}

.density-compact .panel { padding: 14px; }
.density-compact .card { padding: 12px; }
.density-compact .item { padding: 9px; }
.density-compact .grid,
.density-compact .list { gap: 10px; }
.density-compact .mt-16 { margin-top: 10px; }
.density-compact .mt-12 { margin-top: 8px; }

.density-compact .list:not(#evalResults):not(#researchPanel),
.density-compact #runHistory,
.density-compact #evidenceRequests,
.density-compact #controlTests,
.density-compact #evaluationRuns {
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.eval-detail {
  display: block;
}

.record-detail {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,252,.94));
  border-color: rgba(201, 212, 222, .9);
  box-shadow: var(--shadow-soft);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.record-detail:hover {
  border-color: rgba(13, 117, 111, .22);
  box-shadow: 0 14px 32px rgba(20, 35, 55, .07);
  transform: translateY(-1px);
}

.eval-detail > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eval-detail > summary::-webkit-details-marker { display: none; }

.record-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.record-title strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.record-title small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.record-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.eval-detail > summary::after {
  content: "展开";
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef6f5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.eval-detail[open] > summary::after {
  content: "收起";
}

.detail-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.empty-state {
  padding: 54px 20px;
}

.empty-state p {
  margin: 8px 0 0;
  font-size: 13px;
}

.empty-compact {
  padding: 38px 12px;
  display: grid;
  gap: 6px;
}

.runtime-hero {
  position: relative;
}

.runtime-hero::after,
.runtime-pulse::after,
.harness-console::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 140, 130, .18), rgba(13, 140, 130, 0));
  pointer-events: none;
  animation: softFloat 7s ease-in-out infinite;
}

.runtime-pulse {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,252,.92)),
    radial-gradient(circle at 20% 16%, rgba(13,117,111,.12), transparent 35%);
}

.harness-console {
  background:
    radial-gradient(circle at 8% 5%, rgba(13,140,130,.13), transparent 26%),
    radial-gradient(circle at 100% 20%, rgba(39,92,150,.10), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,251,252,.94));
}

.harness-metrics {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.harness-meter {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(13,117,111,.18);
  border-radius: 18px;
  background:
    conic-gradient(from 180deg at 80% 50%, rgba(13,117,111,.18), rgba(255,255,255,.2), rgba(13,117,111,.12)),
    rgba(255,255,255,.78);
  display: grid;
  align-content: center;
  gap: 7px;
  box-shadow: var(--shadow-soft);
}

.harness-meter span,
.harness-meter small,
.mini-head span,
.proposal-card small,
.backlog-item small,
.radar-card small,
.lane-card small {
  color: var(--muted);
  line-height: 1.55;
}

.harness-meter strong {
  color: var(--primary);
  font-size: clamp(42px, 6vw, 68px);
  line-height: .95;
  letter-spacing: -.07em;
}

.harness-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mini-head h3 {
  margin: 0;
  font-size: 15px;
}

.radar-grid,
.backlog-list,
.proposal-stack,
.control-plane,
.candidate-grid {
  display: grid;
  gap: 10px;
}

.candidate-card {
  border: 1px solid rgba(201,212,222,.88);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.candidate-card > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
}

.candidate-card > summary::-webkit-details-marker { display: none; }
.candidate-card .detail-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }

/* Product UI refinement: stable type, readable wrapping, and state-led motion. */
h1, h2, h3 {
  text-wrap: balance;
  letter-spacing: -.02em;
}

p, li, td, th, small, strong {
  overflow-wrap: anywhere;
}

.page-title p,
.hero-copy,
.muted {
  text-wrap: pretty;
}

.page-quickbar {
  box-shadow: 0 4px 8px rgba(20, 35, 55, .07);
}

.quickbar-link,
.btn,
.candidate-card,
.governance-detail,
.section-collapse-btn {
  transition-duration: 180ms;
  transition-timing-function: var(--ease-out-ui);
}

.candidate-card[open] {
  border-color: rgba(13,117,111,.24);
}

.candidate-card[open] .detail-body {
  animation: panelIn 180ms var(--ease-out-ui);
}

.radar-card,
.backlog-item,
.proposal-card,
.lane-card,
.control-mode {
  border: 1px solid rgba(201,212,222,.86);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.radar-card:hover,
.backlog-item:hover,
.proposal-card:hover,
.lane-card:hover,
.hover-lift:hover {
  transform: translateY(-2px);
  border-color: rgba(13,117,111,.28);
  box-shadow: 0 16px 40px rgba(20, 35, 55, .08);
}

.radar-card.implemented {
  border-color: rgba(13,117,111,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(237,250,248,.82));
}

.radar-card p,
.proposal-card p,
.backlog-item p {
  margin: 8px 0;
  line-height: 1.65;
}

.proposal-card .trace-summary span {
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.control-mode {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #101c2d;
  color: #fff;
  border-color: rgba(16,28,45,.12);
}

.control-mode .badge {
  background: rgba(255,255,255,.12);
  color: #d8f4ef;
}

.governance-detail {
  border: 1px solid rgba(201,212,222,.86);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  padding: 12px;
}

.governance-detail > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.governance-detail > summary::-webkit-details-marker { display: none; }

.governance-detail > summary small {
  color: var(--muted);
  font-weight: 500;
}

.governance-detail > summary::after {
  content: "展开";
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e4f7f4;
  color: var(--primary);
  font-size: 12px;
}

.governance-detail[open] > summary::after {
  content: "收起";
}

.lane-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.lane-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lane-card strong,
.lane-card small {
  display: block;
}

.lane-index {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: #e4f7f4;
  font-size: 12px;
  font-weight: 800;
}

.scroll-panel {
  max-height: 520px;
  overflow: auto;
  padding-right: 3px;
}

.quality-diagnostics {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.quality-diagnostics::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .18), transparent 68%);
  pointer-events: none;
  z-index: -1;
  animation: softFloat 8s ease-in-out infinite;
}

.quality-pitch {
  display: grid;
  gap: 10px;
}

.pitch-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(20, 184, 166, .18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, .08), rgba(59, 130, 246, .05)),
    rgba(255, 255, 255, .76);
  color: var(--ink);
}

.pitch-line .signal-dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(13, 117, 111, .18);
}

.pitch-line .signal-dot::before {
  content: "✓";
}

.pitch-line .pitch-text {
  min-width: 0;
  line-height: 1.65;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quality-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quality-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 117, 111, .2);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.quality-card summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.quality-card summary::-webkit-details-marker {
  display: none;
}

.quality-card summary::after {
  content: "展开";
  color: var(--muted);
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

.quality-card[open] summary::after {
  content: "收起";
}

.quality-scoreline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.quality-scoreline strong {
  font-size: 24px;
  letter-spacing: -.03em;
  color: var(--ink);
}

.quality-scoreline .status {
  transform: translateY(-2px);
}

.quality-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  animation: panelIn .18s ease;
}

.compact-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.compact-bullets li + li {
  margin-top: 6px;
}

.selected-task {
  border-color: rgba(13,117,111,.28);
  background: linear-gradient(180deg, #fff, #f4fbfa);
}

@keyframes softFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  50% { transform: translate3d(-12px, 18px, 0) scale(1.08); opacity: 1; }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typingPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

@keyframes commandFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 940px) {
  body { overflow-x: hidden; }
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    overflow: hidden;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    min-width: 0;
    width: 100%;
  }
  .brand { margin-bottom: 14px; min-width: 0; }
  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-link { justify-content: center; font-size: 12px; white-space: nowrap; }
  .sidebar-footer { display: none; }
  .main { padding: 18px; min-width: 0; width: 100%; }
  .grid-2, .grid-3, .grid-4, .layout-2, .kpi-row, .quality, .quality-grid { grid-template-columns: 1fr; }
  .hero-console, .home-hero, .pipeline-grid, .connector-grid, .command-panel, .scenario-grid, .delivery-grid, .metric-toggle-grid, .score-grid, .overview-grid, .lower-grid, .evolution-command, .chat-command-panel, .harness-metrics, .harness-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 22px; border-radius: 22px; }
  .home-hero-system { align-self: stretch; }
  .agent-orbit { min-height: 160px; }
  .workspace-header { align-items: flex-start; flex-direction: column; min-width: 0; width: 100%; }
  .workspace-actions { width: 100%; min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
  .global-search { width: 100%; min-width: 0; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { border-bottom: 1px solid var(--line); }
  .metric-cell:nth-child(2n) { border-right: 0; }
  .metric-cell:last-child { border-bottom: 0; }
  .pipeline-step::after { display: none; }
  .run-row { grid-template-columns: 1fr; }
  .toolbar.stretch { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar { position: static; }
  .page-quickbar { top: 0; margin-top: 0; }
  .panel-head { flex-direction: column; }
  .segmented { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .command-launcher {
    right: 14px;
    bottom: 14px;
  }
  .command-launcher strong {
    display: none;
  }
  .command-overlay {
    padding: 12px;
    align-items: start;
  }
  .command-panel-wrap {
    border-radius: 18px;
  }
  .command-result {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .command-badge {
    display: none;
  }
}

@media (max-width: 620px) {
  .main { padding: 16px 12px 28px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { border-right: 0; }
  .metric-cell:last-child { grid-column: 1 / -1; }
  .workspace-actions .status-pill { order: 3; width: 100%; }
  .project-table th:nth-child(3),
  .project-table td:nth-child(3),
  .project-table th:nth-child(5),
  .project-table td:nth-child(5) { display: none; }
  .control-row { grid-template-columns: minmax(120px, 1fr) 90px 30px; }
  .btn,
  .btn.danger.ghost,
  .quickbar-link,
  .section-collapse-btn,
  .candidate-card > summary,
  .governance-detail > summary,
  input,
  select {
    min-height: 44px;
  }
  .candidate-card > summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .record-actions {
    justify-content: flex-start;
  }
}

/* ========================================================================== */
/* 2026 visual system: cinematic enterprise glass                             */
/* CSS-only migration. DOM, content, ordering and application behavior stay   */
/* unchanged.                                                                 */
/* ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #070d16;
  --surface: rgba(13, 24, 38, .82);
  --surface-muted: rgba(18, 33, 50, .72);
  --text: #f3f7fb;
  --muted: #9aabba;
  --line: rgba(203, 224, 239, .13);
  --line-strong: rgba(217, 234, 246, .22);
  --primary: #52d3c6;
  --primary-dark: #2aa69d;
  --accent: #77bfff;
  --warning: #f2be70;
  --danger: #ff7b7b;
  --ink: #f7fafc;
  --shadow: 0 28px 78px rgba(0, 0, 0, .34);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, .055), 0 14px 34px rgba(0, 0, 0, .18);
  --glow: 0 22px 64px rgba(82, 211, 198, .1);
  --glass: rgba(10, 20, 33, .72);
}

html {
  background: #070d16;
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(52, 135, 168, .15), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(68, 188, 166, .11), transparent 27%),
    radial-gradient(circle at 74% 92%, rgba(66, 105, 174, .1), transparent 32%),
    linear-gradient(155deg, #07101b 0%, #070d16 42%, #091321 100%);
  background-attachment: fixed;
  color: var(--text);
  font-feature-settings: "kern" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -24%;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 22%, rgba(98, 194, 211, .055), transparent 24%),
    radial-gradient(circle at 78% 36%, rgba(96, 135, 218, .05), transparent 23%);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

::selection {
  color: #06110f;
  background: rgba(82, 211, 198, .82);
}

* {
  scrollbar-color: rgba(124, 152, 174, .38) rgba(5, 12, 21, .45);
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(5, 12, 21, .45); }
*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(124, 152, 174, .38);
  background-clip: padding-box;
}

.app-shell {
  position: relative;
}

.sidebar {
  background: rgba(5, 11, 20, .88);
  border-right: 1px solid rgba(220, 236, 247, .09);
  box-shadow: 22px 0 70px rgba(0, 0, 0, .16);
  backdrop-filter: blur(24px) saturate(126%);
  -webkit-backdrop-filter: blur(24px) saturate(126%);
}

.brand-icon {
  background: linear-gradient(145deg, rgba(92, 225, 211, .96), rgba(42, 136, 151, .94));
  color: #051311;
  border: 1px solid rgba(222, 255, 250, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 13px 32px rgba(52, 187, 173, .19);
}

.brand small,
.sidebar-footer { color: #7990a4; }
.sidebar-note,
.sidebar-health { color: #a9bac8; }

.sidebar-note {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(218, 237, 249, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.nav-link {
  color: #93a7b8;
  transition: color .22s ease, background-color .22s ease, transform .22s var(--ease-out-ui), box-shadow .22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f6fbff;
  background: rgba(183, 222, 239, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: translateX(2px);
}

.nav-link.active::before {
  background: #5bddcf;
  box-shadow: 0 0 16px rgba(91, 221, 207, .45);
}

.main {
  position: relative;
}

.topbar,
.workspace-header {
  background: linear-gradient(180deg, rgba(7, 13, 22, .93), rgba(7, 13, 22, .66));
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.page-title h1,
.workspace-header h1 {
  color: #f5f9fc;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.page-title p,
.muted,
.metric-label,
.section-title p { color: var(--muted); }

.page-quickbar {
  border-color: rgba(215, 234, 246, .12);
  background: rgba(10, 20, 33, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 18px 48px rgba(0, 0, 0, .2);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.quickbar-link {
  color: #a7b8c7;
  background: rgba(231, 244, 252, .045);
  border: 1px solid rgba(218, 237, 248, .07);
}

.quickbar-link:hover,
.quickbar-link.active,
.density-toggle,
.section-focus-mode .focus-toggle {
  color: #061412;
  background: #55d3c7;
  border-color: rgba(203, 255, 248, .5);
  box-shadow: 0 8px 24px rgba(53, 188, 176, .18);
}

.status-pill {
  color: #b3c2cf;
  background: rgba(14, 27, 42, .7);
  border-color: rgba(213, 233, 246, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
}

.status-dot {
  background: #61decf;
  box-shadow: 0 0 0 4px rgba(97, 222, 207, .08), 0 0 16px rgba(97, 222, 207, .3);
}

.panel,
.card,
.system-card-main,
.system-mini-card,
.candidate-card,
.quality-card,
.radar-card,
.backlog-item,
.proposal-card,
.lane-card,
.governance-detail,
.score-pill,
.item,
.signal,
.trace-step,
.delivery-card,
.control-card,
.scenario-card,
.tool-card,
.memory-card,
.evaluation-card,
.run-card {
  color: var(--text);
  background: linear-gradient(150deg, rgba(18, 32, 49, .79), rgba(10, 20, 33, .69));
  border-color: rgba(210, 231, 244, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .052), 0 20px 58px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.panel {
  animation: cinematicRise .48s var(--ease-out-ui) both;
  transition: transform .24s var(--ease-out-ui), box-shadow .24s ease, border-color .24s ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 212, 206, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .065), 0 30px 82px rgba(0, 0, 0, .26);
}

.selected-task,
.candidate-card[open],
.governance-detail[open] {
  color: var(--text);
  background: linear-gradient(155deg, rgba(34, 74, 77, .5), rgba(13, 27, 42, .76));
  border-color: rgba(91, 221, 207, .27);
}

.segmented {
  background: rgba(5, 13, 23, .58);
  border-color: rgba(215, 235, 247, .13);
}

.seg { color: #91a7b9; }
.seg:hover { color: #e7f2f8; background: rgba(232, 245, 251, .05); }
.seg.active {
  color: #071412;
  background: #56d3c7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px rgba(50, 182, 169, .17);
}

.btn {
  color: #dbe6ee;
  background: rgba(231, 243, 250, .055);
  border-color: rgba(214, 234, 247, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out-ui), box-shadow .2s ease;
}

.btn:hover {
  color: #fff;
  background: rgba(235, 247, 252, .09);
  border-color: rgba(135, 210, 213, .28);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.btn.primary {
  color: #061311;
  background: linear-gradient(135deg, #61dfd1, #45bdb4);
  border-color: rgba(202, 255, 247, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 12px 30px rgba(50, 188, 175, .18);
}

.btn.primary:hover {
  color: #04100e;
  background: linear-gradient(135deg, #70e8db, #50c9bf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 16px 38px rgba(50, 188, 175, .25);
}

.btn.ghost { background: transparent; }
.btn.danger,
.btn.danger.ghost { color: #ff9b9b; border-color: rgba(255, 123, 123, .25); }

input,
select,
textarea {
  color: #edf4f8;
  background: rgba(4, 12, 21, .58);
  border-color: rgba(211, 233, 247, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  caret-color: #68e0d3;
}

input::placeholder,
textarea::placeholder { color: #6f8497; }

input:hover,
select:hover,
textarea:hover { border-color: rgba(142, 201, 210, .26); }

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(92, 221, 208, .58);
  box-shadow: 0 0 0 3px rgba(82, 211, 198, .1), inset 0 1px 0 rgba(255, 255, 255, .035);
  outline: 0;
}

option { color: #edf4f8; background: #101c2b; }

table,
.project-table,
.matrix table {
  color: #dbe6ed;
  background: rgba(5, 13, 23, .3);
}

th {
  color: #9eb2c3;
  background: rgba(18, 34, 51, .78);
  border-color: rgba(215, 234, 246, .11);
}

td { border-color: rgba(215, 234, 246, .09); }
tbody tr:hover { background: rgba(98, 210, 202, .045); }

.tag,
.chip,
.badge,
.status,
.hero-tags span,
.system-layer,
.command-badge {
  color: #b8cad7;
  background: rgba(219, 237, 247, .055);
  border-color: rgba(211, 233, 246, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.home-hero,
.console-hero,
.chat-command-panel {
  color: #f5f9fc;
  background:
    radial-gradient(circle at 12% 16%, rgba(83, 204, 198, .13), transparent 32%),
    radial-gradient(circle at 88% 22%, rgba(101, 147, 220, .1), transparent 30%),
    linear-gradient(150deg, rgba(16, 31, 48, .9), rgba(8, 18, 30, .82));
  border-color: rgba(215, 234, 246, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 34px 90px rgba(0, 0, 0, .29);
  backdrop-filter: blur(20px) saturate(126%);
}

.home-hero h2,
.hero-title,
.home-hero-system strong { color: #f7fbfd; }
.home-hero p,
.hero-copy { color: #a8bac8; }
.section-kicker,
.hero-eyebrow { color: #65dfd2; }

.hero-orb {
  filter: blur(4px) saturate(.9);
  opacity: .42;
}

.system-flow span {
  color: #bbcad5;
  background: rgba(225, 240, 248, .055);
  border-color: rgba(214, 234, 246, .11);
}

.system-flow i { background: rgba(98, 220, 208, .38); }

.system-layers > div {
  color: #e8f1f6;
  background: rgba(220, 238, 248, .055);
  border-color: rgba(211, 233, 246, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.system-layers > div span,
.system-layers > div small { color: #8095a7; }

.metric-strip {
  background: rgba(9, 19, 31, .68);
  border-color: rgba(211, 232, 245, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 58px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px);
}

.metric-cell { border-color: rgba(211, 232, 245, .1); }

.message.ai {
  color: #dfe9ef;
  background: rgba(17, 31, 48, .86);
  border-color: rgba(212, 233, 245, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.message.user {
  color: #061311;
  background: linear-gradient(135deg, #5ddace, #3eb6ad);
  border-color: rgba(205, 255, 248, .42);
  box-shadow: 0 14px 36px rgba(47, 176, 164, .15);
}

.markdown-body pre,
.markdown-body code,
.mono,
pre {
  color: #c6d7e2;
  background: rgba(3, 10, 18, .62);
  border-color: rgba(209, 231, 245, .11);
}

.markdown-body blockquote {
  color: #a9bac8;
  border-color: rgba(96, 220, 208, .32);
  background: rgba(72, 193, 182, .04);
}

.section-collapse-btn,
.focus-toggle,
.density-toggle,
.command-launcher {
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.section-collapse-btn {
  color: #aec0cd;
  background: rgba(13, 26, 41, .72);
  border-color: rgba(213, 233, 246, .14);
}

.command-overlay { background: rgba(2, 8, 15, .76); backdrop-filter: blur(9px); }
.command-panel-wrap {
  color: var(--text);
  background: rgba(10, 20, 33, .9);
  border-color: rgba(215, 234, 246, .17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 36px 100px rgba(0, 0, 0, .48);
  backdrop-filter: blur(24px);
}

.command-result:hover,
.command-result.active { background: rgba(87, 207, 198, .075); }

@keyframes cinematicRise {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.995); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes ambientDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); opacity: .76; }
  100% { transform: translate3d(1.5%, 1%, 0) scale(1.04); opacity: 1; }
}

@media (max-width: 940px) {
  .sidebar {
    background: rgba(5, 11, 20, .96);
    border-right: 0;
    border-bottom: 1px solid rgba(220, 236, 247, .09);
  }

  .topbar,
  .workspace-header { background: transparent; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
