:root {
  color-scheme: light;
  --ink-950: #101926;
  --ink-800: #253247;
  --ink-650: #4b5a70;
  --ink-500: #6c788b;
  --ink-300: #aab3c1;
  --line: #dfe4eb;
  --line-soft: #e9edf2;
  --surface: #ffffff;
  --surface-subtle: #f7f8fa;
  --canvas: #f1f3f6;
  --navy: #17243a;
  --accent: #3d65d8;
  --accent-soft: #eef2ff;
  --success: #16805d;
  --success-soft: #e9f7f1;
  --danger: #b44343;
  --danger-soft: #fdf0f0;
  --warning: #966716;
  --warning-soft: #fff8ea;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --radius-sm: 7px;
  --radius-md: 12px;
  --shadow: 0 1px 2px rgba(16, 25, 38, 0.04), 0 10px 28px rgba(16, 25, 38, 0.05);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink-950);
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    var(--canvas);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }
button:focus-visible, summary:focus-visible { outline: 3px solid rgba(61, 101, 216, 0.24); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 34px 34px;
}

.product-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup, .header-meta, .panel-header, .activity-card-header,
.activity-title-group, .conversation-intro, .conversation-footer,
.process-header, .process-empty, .category, .message-meta {
  display: flex;
  align-items: center;
}

.brand-lockup { gap: 13px; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--navy);
  box-shadow: 0 5px 14px rgba(23, 36, 58, 0.18);
}

.brand-mark svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand-mark circle { fill: var(--navy); }

h1, h2, h3, p { margin: 0; }

h1 { font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; }
.brand-lockup p { margin-top: 2px; color: var(--ink-500); font-size: 12.5px; }

.header-meta { flex-wrap: wrap; justify-content: flex-end; gap: 8px; color: var(--ink-650); font-size: 11.5px; }

.mcp-status { position: relative; }
.mcp-status summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mcp-status summary::-webkit-details-marker { display: none; }
.mcp-status summary i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.mcp-status.disconnected summary { color: var(--danger); }
.mcp-status.disconnected summary i { background: var(--danger); }
.mcp-status-details {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 245px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 10.5px;
}
.mcp-status-details strong { color: var(--ink-800); font-size: 11.5px; }
.mcp-status-details > span { color: var(--ink-500); }
.knowledge-status .mcp-status-details { width: 390px; }
.mcp-status:not(.knowledge-status) .mcp-status-details { width: 340px; }
.mcp-status-details ul { display: grid; gap: 6px; margin: 5px 0 0; padding: 0; color: var(--ink-650); list-style: none; }
.capability-list li { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.capability-list strong { color: var(--ink-800); font: 650 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.capability-list span { color: var(--ink-500); line-height: 1.4; }
.catalog-list li { display: grid; gap: 3px; padding-top: 7px; border-top: 1px solid var(--line-soft); }
.catalog-list li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.catalog-list li > div span { flex: 0 0 auto; color: var(--ink-500); font-size: 9px; }
.catalog-list code { color: #53647e; font-size: 9px; overflow-wrap: anywhere; }
.catalog-list p { color: var(--ink-650); font-size: 9.5px; line-height: 1.4; }

.availability, .model-chip, .panel-label, .connection-state, .process-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.availability { gap: 7px; }
.availability i, .connection-state i, .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 128, 93, 0.1);
}

.model-chip {
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.model-chip span { color: var(--ink-500); font-weight: 500; }
.model-chip strong { color: var(--ink-800); font-size: 11.5px; }

main { display: grid; gap: 28px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: 16px;
  min-height: 545px;
}

.panel, .process-section, .analysis-section, .evaluation-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel { display: flex; flex-direction: column; min-height: 0; }

.panel-header {
  min-height: 78px;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-header h2, .process-header h2 {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.panel-label, .process-status {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--ink-500);
  background: var(--surface-subtle);
  font-size: 11px;
  font-weight: 600;
}

.demo-guide { border-bottom: 1px solid var(--line-soft); background: #fbfcfe; }
.demo-guide > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  color: var(--ink-650);
  cursor: pointer;
  list-style: none;
}
.demo-guide > summary::-webkit-details-marker { display: none; }
.demo-guide > summary > span:first-child { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.demo-guide > summary strong { color: var(--ink-800); font-size: 11px; }
.demo-guide > summary small { color: var(--ink-500); font-size: 10px; }
.guide-toggle::before { content: "Open"; color: var(--accent); font-size: 9.5px; font-weight: 700; }
.demo-guide[open] .guide-toggle::before { content: "Close"; }
.conversation-panel.has-conversation .demo-guide > summary { min-height: 36px; padding-block: 7px; background: var(--surface); }
.conversation-panel.has-conversation .demo-guide > summary small { display: none; }
.demo-guide-body {
  max-height: min(570px, 65vh);
  overflow-y: auto;
  display: grid;
  gap: 15px;
  padding: 4px 22px 18px;
  border-top: 1px solid var(--line-soft);
}
.guide-introduction { display: grid; gap: 8px; padding-top: 14px; }
.guide-introduction p { color: var(--ink-650); font-size: 10.5px; line-height: 1.55; }
.guide-introduction strong { color: var(--ink-800); }
.demo-disclosure { padding: 7px 9px; border-left: 2px solid #9bafd8; background: #f4f6fb; }
.guide-section { display: grid; gap: 8px; }
.guide-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.guide-heading h3 { color: var(--ink-800); font-size: 11px; }
.guide-heading > span { color: var(--ink-500); font-size: 9px; }
.prompt-suggestion-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.prompt-suggestion {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-650);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}
.prompt-suggestion:hover { border-color: #b8c5e5; background: #f8f9fd; }
.suggestion-index { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-size: 8px; font-weight: 750; }
.prompt-suggestion > span:last-child { min-width: 0; display: grid; gap: 3px; }
.prompt-suggestion strong { color: var(--ink-800); font-size: 9.5px; }
.prompt-suggestion q { color: var(--ink-650); font-size: 9.5px; line-height: 1.4; overflow-wrap: anywhere; }
.prompt-suggestion small { color: var(--ink-500); font-size: 8.5px; line-height: 1.35; }
.architecture-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.architecture-legend div { min-width: 0; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); }
.architecture-legend dt { color: var(--ink-800); font-size: 9.5px; font-weight: 750; }
.architecture-legend dd { margin: 3px 0 0; color: var(--ink-500); font-size: 9px; line-height: 1.4; }
.guide-observability { display: grid; gap: 4px; padding: 9px 10px; border-radius: 7px; color: var(--ink-650); background: var(--accent-soft); font-size: 9.5px; line-height: 1.45; }
.architecture-details { border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); }
.architecture-details > summary { padding: 8px 10px; color: var(--ink-650); font-size: 9.5px; font-weight: 700; cursor: pointer; }
.architecture-diagram { display: grid; gap: 8px; padding: 0 10px 10px; color: var(--ink-650); font-size: 9px; }
.architecture-diagram > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.architecture-diagram span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-800); background: var(--surface-subtle); font-weight: 650; }
.architecture-diagram i { color: var(--ink-300); font-style: normal; }
.architecture-diagram ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; line-height: 1.4; }

.conversation-body, .activity-body {
  flex: 1;
  min-height: 340px;
  max-height: 430px;
  overflow-y: auto;
  scrollbar-color: #c8ced7 transparent;
  scrollbar-width: thin;
}

.conversation-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: #fbfbfc;
}

.conversation-intro {
  flex: 1;
  min-height: 100%;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  max-width: 360px;
  margin: auto;
  text-align: center;
}

.conversation-intro h3, .activity-empty h3, .process-empty h3 {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-800);
}

.conversation-intro p, .activity-empty p, .process-empty p {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 12.5px;
  line-height: 1.6;
}

.demo-prompt {
  max-width: 340px;
  margin-top: 16px;
  padding: 8px 11px;
  border: 1px solid #d8dff0;
  border-radius: var(--radius-sm);
  color: #38528e;
  background: rgba(238, 242, 255, 0.72);
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}
.demo-prompt:hover { border-color: #b8c5e8; background: var(--accent-soft); }

.agent-orb {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dff0;
  border-radius: 16px;
  background: var(--accent-soft);
}

.agent-orb::before, .agent-orb::after, .agent-orb span {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.agent-orb::before { transform: translateX(-8px); }
.agent-orb::after { transform: translateX(8px); }
.agent-orb span { position: absolute; }

.conversation-footer {
  min-height: 78px;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  padding: 13px 18px 11px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

.conversation-composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.conversation-composer textarea {
  min-height: 42px;
  max-height: 120px;
  flex: 1;
  resize: none;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink-800);
  background: var(--surface-subtle);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.45;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.conversation-composer textarea::placeholder { color: var(--ink-300); }
.conversation-composer textarea:focus { border-color: #91a7e6; background: var(--surface); box-shadow: 0 0 0 3px rgba(61, 101, 216, 0.1); }
.conversation-composer textarea:disabled { cursor: wait; opacity: 0.68; }

.composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
  color: var(--ink-300);
  font-size: 9.5px;
}

#action-hint { color: var(--ink-500); text-align: right; }

.primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px 0 13px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  box-shadow: 0 4px 10px rgba(23, 36, 58, 0.15);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #213352; box-shadow: 0 7px 15px rgba(23, 36, 58, 0.18); }
.primary-button:focus-visible { outline: 3px solid rgba(61, 101, 216, 0.25); outline-offset: 2px; }
.primary-button:disabled { cursor: not-allowed; opacity: 0.52; }
.button-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: rgba(255, 255, 255, 0.1); }
.button-icon svg { width: 14px; fill: currentColor; }

.chat-message { display: flex; align-items: flex-start; width: min(100%, 72ch); animation: rise-in 250ms ease both; }
.message-content { min-width: 0; width: 100%; padding: 14px 16px 15px; border-left: 3px solid #8098d8; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--surface); box-shadow: 0 3px 12px rgba(16, 25, 38, 0.035); }
.message-meta { justify-content: space-between; gap: 22px; margin-bottom: 8px; font-size: 10.5px; }
.message-meta strong { color: var(--ink-800); }
.message-meta span { color: var(--ink-300); }
.message-body { color: var(--ink-800); font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.message-body p + p, .message-body p + ul, .message-body p + ol, .message-body ul + p, .message-body ol + p { margin-top: 10px; }
.message-body ul, .message-body ol { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 21px; }
.message-body code { padding: 1px 4px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface-subtle); font: 0.9em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.message-body strong { color: var(--ink-950); font-weight: 700; }

.user-message { align-self: flex-end; width: min(92%, 62ch); }
.user-message .message-content { border: 1px solid #d9e1f4; border-right: 3px solid #8ca2da; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--accent-soft); }
.message-error .message-content { border-color: #f1cece; background: var(--danger-soft); }

.activity-panel { background: #fcfcfd; }
.activity-header { background: var(--surface); }
.connection-state { gap: 7px; color: var(--ink-500); font-size: 11px; font-weight: 650; }
.connection-state.idle i { background: var(--ink-300); box-shadow: none; }
.connection-state.connected i { animation: pulse 1.8s ease infinite; }
.connection-state.complete i { background: var(--success); box-shadow: none; }
.connection-state.error { color: var(--danger); }
.connection-state.error i { background: var(--danger); box-shadow: 0 0 0 3px rgba(180, 67, 67, 0.1); }

.activity-body { position: relative; padding: 14px 20px 18px; }
.activity-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.activity-empty p { max-width: 300px; }

.stream-notice {
  display: grid;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid #f1cece;
  border-radius: 8px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 11px;
  line-height: 1.5;
}

.stream-notice strong { font-size: 11.5px; }

.trace-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.trace-preview span { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); }
.trace-preview span:first-child { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.trace-preview span:not(:last-child)::after { content: ""; position: absolute; top: 3px; left: 10px; width: 12px; height: 1px; background: var(--line); }

.trace-turn + .trace-turn { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.trace-turn-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.trace-turn-header h3 { color: var(--ink-800); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.trace-turn-status { color: var(--accent); font-size: 9.5px; font-weight: 650; }
.trace-turn-status.complete { color: var(--success); }
.trace-turn-status.error { color: var(--danger); }
.trace-turn-status.partial { color: #9b6a1c; }
.trace-turn-events { position: relative; }

.activity-item { position: relative; display: grid; grid-template-columns: 17px 1fr; animation: rise-in 180ms ease both; }
.activity-item:not(:last-child) { padding-bottom: 5px; }
.timeline-rail { position: relative; }
.timeline-rail::after { content: ""; position: absolute; top: 12px; bottom: -10px; left: 4px; width: 1px; background: var(--line); }
.activity-item:last-child .timeline-rail::after { display: none; }
.timeline-node { position: absolute; top: 8px; left: 1px; z-index: 1; width: 7px; height: 7px; border: 2px solid #fcfcfd; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.activity-item.running .timeline-node { animation: pulse 1.4s ease infinite; }
.activity-item.completed .timeline-node { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.activity-item.error .timeline-node { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.activity-entry { min-width: 0; padding: 3px 0 5px; }
.trace-sentence { color: var(--ink-800); font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
.activity-item.running .trace-sentence { color: var(--ink-650); }
.activity-item.error .trace-sentence { color: var(--danger); }

.event-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 10px 0 0; }
.event-fields div { min-width: 0; }
.event-fields dt { margin-bottom: 2px; color: var(--ink-500); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.event-fields dd { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: var(--ink-800); font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }

.technical-details { margin-top: 3px; }
.technical-details > summary { width: max-content; display: flex; align-items: center; gap: 5px; color: var(--ink-500); font-size: 9.5px; cursor: pointer; list-style: none; }
.technical-details > summary::-webkit-details-marker { display: none; }
.technical-details[open] > summary span { transform: rotate(180deg); }
.technical-details[open] { margin-top: 6px; padding: 9px 11px 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface-subtle); }
.raw-event { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line-soft); }
.raw-event > summary { color: var(--ink-500); font-size: 9px; cursor: pointer; }
.raw-event pre { overflow-x: auto; margin: 8px 0 0; padding: 9px; border-radius: 6px; color: #cdd7e7; background: #1c2737; font: 9px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.activity-footer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 22px; border-top: 1px solid var(--line-soft); color: var(--ink-500); background: var(--surface); font-size: 10px; }
.activity-footer > span { display: flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 5px; height: 5px; box-shadow: none; }

.process-section { display: grid; grid-template-columns: 210px 1fr; min-height: 190px; }
.process-header { align-items: flex-start; justify-content: space-between; flex-direction: column; padding: 22px; border-right: 1px solid var(--line-soft); background: #fbfbfc; }
.process-actions { display: grid; gap: 8px; align-items: start; width: 100%; }
.analysis-helper { color: var(--ink-500); font-size: 9px; line-height: 1.4; }
.reset-button, .analyze-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-650); background: var(--surface); font-size: 10px; font-weight: 650; cursor: pointer; }
.reset-button:hover:not(:disabled) { color: var(--danger); border-color: #e5bcbc; background: var(--danger-soft); }
.analyze-button { color: white; border-color: var(--navy); background: var(--navy); }
.analyze-button:hover:not(:disabled) { background: #213352; }
.reset-button:focus-visible, .analyze-button:focus-visible { outline: 3px solid rgba(61, 101, 216, 0.18); outline-offset: 2px; }
.reset-button:disabled, .analyze-button:disabled { cursor: not-allowed; opacity: 0.5; }
.process-content { min-width: 0; padding: 23px 26px; }
.process-empty { align-items: flex-start; gap: 13px; }
.empty-symbol { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-650); background: var(--surface-subtle); }
.empty-symbol svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.empty-symbol circle { fill: var(--surface-subtle); }
[hidden] { display: none !important; }
.process-model { display: grid; gap: 16px; }
.process-name-block > span { display: block; margin-bottom: 4px; color: var(--ink-500); font-size: 9px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.process-name-block h3 { color: var(--ink-800); font-size: 16px; line-height: 1.35; }
.knowledge-grid { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 10px; }
.knowledge-card { min-width: 0; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: #fbfbfc; }
.knowledge-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--ink-650); font-size: 10.5px; }
.category-icon { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: #596f9e; background: #f0f3f9; font-size: 8px; font-weight: 750; }
.category-icon.pain-points { color: var(--danger); background: var(--danger-soft); }
.category-icon.conflicts { color: #9b6a1c; background: #fff7e8; }
.knowledge-list { display: grid; gap: 6px; }
.knowledge-item { display: flex; align-items: flex-start; gap: 7px; color: var(--ink-800); font-size: 10.5px; line-height: 1.45; overflow-wrap: anywhere; }
.knowledge-item small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 9px; }
.knowledge-card[data-field="evidence"] .knowledge-item { display: grid; gap: 0; }
.knowledge-card[data-field="flow"], .knowledge-card[data-field="evidence"], .knowledge-card[data-field="conflicts"], .knowledge-card[data-field="unknowns"] { grid-column: span 2; }
.flow-card { background: #fcfdff; }
.process-flow-list { gap: 9px; }
.flow-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink-800); font-size: 10.5px; line-height: 1.45; }
.flow-step small { display: block; color: var(--ink-500); font-size: 9px; }
.flow-connector { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 8px; font-weight: 750; }
.flow-step.nested .flow-connector { color: #647492; background: transparent; font-size: 13px; }
.flow-decision { display: grid; gap: 8px; margin-top: 2px; padding: 10px 11px; border-left: 2px solid #91a6d6; border-radius: 0 7px 7px 0; background: #f5f7fc; }
.flow-decision > strong { color: var(--ink-650); font-size: 10.5px; }
.flow-branch { display: grid; gap: 6px; margin-left: 6px; padding: 7px 9px; border-left: 1px solid #cbd5e8; background: rgba(255, 255, 255, 0.72); }
.flow-condition { width: max-content; max-width: 100%; padding: 2px 6px; border-radius: 4px; color: #465d8b; background: #e8edf8; font-size: 9px; font-weight: 750; overflow-wrap: anywhere; }
.flow-route-unknown { color: var(--ink-500); font-size: 9.5px; font-style: italic; }
.evidence-source { color: #52698f !important; font-weight: 650; }
.provenance-details { margin-top: 3px; color: var(--ink-500); font-size: 8.5px; }
.provenance-details summary { width: max-content; cursor: pointer; }
.provenance-details > span { display: block; margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.conflict-card { border-color: #eadcbc; background: #fffdf8; }
.conflict-item { display: grid; gap: 8px; padding-left: 10px; border-left: 2px solid #d2a85a; }
.conflict-item strong { color: var(--ink-800); font-size: 10.5px; }
.conflict-side { display: grid; gap: 2px; }
.conflict-side > span { color: var(--ink-500); font-size: 8.5px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.conflict-side p { color: var(--ink-800); line-height: 1.5; }
.conflict-side small { color: #786039; }
.conflict-status { width: max-content; padding: 3px 6px; border-radius: 5px; color: var(--warning); background: var(--warning-soft); font-size: 8.5px; font-weight: 700; }
.knowledge-empty { color: var(--ink-300); font-size: 10px; font-style: italic; }
.step-number { flex: 0 0 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 8px; font-weight: 750; }

.analysis-section { min-width: 0; }
.analysis-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); background: #fbfbfc; }
.analysis-header h2 { font-size: 17px; letter-spacing: -0.015em; }
.section-helper { max-width: 700px; margin-top: 6px; color: var(--ink-500); font-size: 10px; line-height: 1.45; }
.analysis-empty { display: flex; align-items: flex-start; gap: 13px; padding: 24px 26px; }
.analysis-empty h3 { color: var(--ink-800); font-size: 14px; }
.analysis-empty p { max-width: 650px; margin-top: 5px; color: var(--ink-500); font-size: 12px; line-height: 1.55; }
.analysis-content { display: block; }
.stale-notice { grid-column: 1 / -1; padding: 10px 24px; border-bottom: 1px solid #eadcbc; color: #805619; background: #fff7e8; font-size: 11px; font-weight: 600; }
.analysis-block { min-width: 0; padding: 26px; border-bottom: 1px solid var(--line-soft); }
.analysis-block:last-child { border-bottom: 0; }
.analysis-block-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.analysis-block-heading .eyebrow { margin-bottom: 3px; }
.analysis-block-heading h3 { color: var(--ink-800); font-size: 15px; }
.stage-index { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border: 1px solid #d8dff0; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.analysis-summary, .proposal-objective { margin-bottom: 15px; color: var(--ink-800); font-size: 12px; line-height: 1.65; }
.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.analysis-grid article { min-width: 0; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.analysis-grid article.is-empty { align-self: start; padding-block: 9px; background: transparent; }
.analysis-grid article.wide { grid-column: span 2; }
.analysis-grid h4, .recommendation-card h4 { margin: 0 0 7px; color: var(--ink-650); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.result-list { display: grid; gap: 5px; }
.result-item { position: relative; padding-left: 11px; color: var(--ink-800); font-size: 10.5px; line-height: 1.45; overflow-wrap: anywhere; }
.result-item::before { content: ""; position: absolute; top: 6px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-300); }
.compact-empty { padding: 9px 11px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--ink-500); font-size: 10px; }
.recommendation-list { display: grid; gap: 10px; }
.recommendation-card { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fbfbfc; }
.recommendation-card.rejected { border-color: #efc7c7; background: #fffafa; }
.recommendation-card.unresolved { border-color: #eadcbc; background: #fffdf8; }
.recommendation-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.recommendation-title h4 { margin: 0; color: var(--ink-800); font-size: 12px; text-transform: none; letter-spacing: 0; }
.recommendation-card > p { color: var(--ink-650); font-size: 10.5px; line-height: 1.55; }
.recommendation-essentials, .recommendation-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.recommendation-detail { min-width: 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.recommendation-detail strong { display: block; margin-bottom: 3px; color: var(--ink-500); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.recommendation-detail span { color: var(--ink-800); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.recommendation-disclosure { margin-top: 10px; }
.recommendation-disclosure > summary { width: max-content; color: var(--accent); font-size: 9.5px; font-weight: 650; cursor: pointer; }
.recommendation-disclosure[open] > summary { margin-bottom: 2px; }
.status-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: var(--success); background: var(--success-soft); font-size: 8.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.04em; }
.status-badge.partially_supported, .status-badge.blocked_by_unknown { color: #805619; background: #fff0d5; }
.status-badge.unsupported { color: var(--danger); background: var(--danger-soft); }
.to-be-list { display: grid; gap: 0; }
.to-be-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.to-be-step + .to-be-step { margin-top: 7px; }
.to-be-order { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--accent); background: var(--accent-soft); font-size: 9px; font-weight: 750; }
.to-be-copy strong { display: block; color: var(--ink-800); font-size: 10.5px; line-height: 1.45; }
.to-be-copy span { color: var(--ink-500); font-size: 9px; }
.to-be-copy b { color: var(--ink-650); font-weight: 650; }
.automation-label { padding: 4px 6px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.to-be-step.human_controlled .automation-label { color: #805619; background: #fff0d5; }
.to-be-step.hybrid .automation-label { color: #6f4d96; background: #f3ecfb; }
.verification-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.verification-count { padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 6px; color: var(--ink-650); background: var(--surface-subtle); font-size: 9px; }
.verification-count.supported { color: var(--success); background: var(--success-soft); }
.verification-count.partially_supported, .verification-count.blocked_by_unknown { color: var(--warning); background: var(--warning-soft); }
.verification-count.unsupported { color: var(--danger); background: var(--danger-soft); }
.verification-list { display: grid; gap: 8px; }
.verification-item { display: grid; gap: 5px; padding: 10px 11px; border-left: 3px solid var(--success); background: var(--surface-subtle); }
.verification-item.partially_supported, .verification-item.blocked_by_unknown { border-left-color: #d2a85a; }
.verification-item.unsupported { border-left-color: var(--danger); }
.verification-item header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.verification-item strong { color: var(--ink-800); font-size: 10.5px; }
.verification-item p { color: var(--ink-650); font-size: 10px; line-height: 1.45; }
.verification-missing { color: #805619 !important; }

.section-divider { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin: 10px 4px -10px; color: var(--ink-500); }
.section-divider::after { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); }
.section-divider span { color: var(--ink-800); font-size: 11px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.section-divider p { font-size: 10.5px; }
.evaluation-section { min-width: 0; box-shadow: 0 1px 2px rgba(16, 25, 38, 0.03); }
.evaluation-empty { display: flex; align-items: flex-start; gap: 13px; padding: 24px 26px; }
.evaluation-empty h3 { color: var(--ink-800); font-size: 14px; }
.evaluation-empty p { margin-top: 5px; color: var(--ink-500); font-size: 12px; }
.evaluation-content { padding: 22px 24px 26px; }
.evaluation-meta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.evaluation-meta div { min-width: 0; padding: 4px 10px; border-left: 1px solid var(--line); }
.evaluation-meta span, .evaluation-meta strong { display: block; overflow-wrap: anywhere; }
.evaluation-meta span { color: var(--ink-500); font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.evaluation-meta strong { margin-top: 4px; color: var(--ink-800); font-size: 10px; }
.evaluation-disclaimer { margin: 14px 0 18px; padding: 7px 10px; border-left: 2px solid #9cadd8; color: var(--ink-500); background: #f7f8fc; font-size: 10px; line-height: 1.5; }
.evaluation-grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr); gap: 18px; }
.evaluation-grid h3 { margin-bottom: 9px; color: var(--ink-800); font-size: 12px; }
.evaluation-metrics, .evaluation-scenarios { display: grid; gap: 8px; }
.evaluation-metrics > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 10px; }
.evaluation-metrics span { color: var(--ink-650); }
.evaluation-metrics strong { color: var(--ink-800); white-space: nowrap; }
.evaluation-scenarios article { padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle); }
.evaluation-scenarios header { display: flex; justify-content: space-between; gap: 10px; }
.evaluation-scenarios header strong { color: var(--ink-800); font-size: 10.5px; }
.evaluation-scenarios header span { color: var(--ink-500); font-size: 9px; white-space: nowrap; }
.evaluation-scenarios p, .evaluation-scenarios li { color: var(--ink-650); font-size: 9.5px; line-height: 1.5; }
.evaluation-scenarios p { margin-top: 7px; }
.evaluation-scenarios ul { display: grid; gap: 5px; margin: 8px 0 0 16px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 980px) {
  .app-shell { padding-inline: 20px; }
  .workspace { grid-template-columns: 1fr; }
  .conversation-body, .activity-body { max-height: 440px; }
  .process-section { grid-template-columns: 1fr; }
  .process-header { min-height: 82px; align-items: center; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .process-actions { justify-items: end; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evaluation-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .app-shell { padding: 0 12px 20px; }
  .product-header { align-items: flex-start; flex-direction: column; padding: 18px 4px; }
  .header-meta { width: 100%; justify-content: flex-start; }
  .availability { width: 100%; }
  .mcp-status-details { left: 0; right: auto; max-width: calc(100vw - 24px); }
  .workspace { min-height: 0; gap: 12px; }
  .panel-header { min-height: 70px; padding: 15px 17px; }
  .conversation-body { min-height: 300px; padding: 19px 16px; }
  .demo-guide > summary { padding-inline: 17px; }
  .demo-guide-body { max-height: min(620px, 70vh); padding-inline: 17px; }
  .prompt-suggestion-list, .architecture-legend { grid-template-columns: 1fr; }
  .guide-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .activity-body { min-height: 300px; padding-inline: 16px; }
  .conversation-footer { align-items: stretch; flex-direction: column; padding: 15px 17px; }
  .conversation-composer { align-items: stretch; flex-direction: column; }
  .composer-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
  #action-hint { text-align: left; }
  .primary-button { width: 100%; }
  .chat-message, .user-message { width: 100%; }
  .process-content { padding: 20px 17px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card[data-field] { grid-column: auto; }
  .analysis-header { align-items: flex-start; flex-direction: column; padding: 18px 17px; }
  .analysis-empty, .analysis-block { padding: 20px 17px; }
  .analysis-grid, .recommendation-essentials, .recommendation-details { grid-template-columns: 1fr; }
  .analysis-grid article.wide { grid-column: auto; }
  .to-be-step { grid-template-columns: 28px 1fr; }
  .automation-label { grid-column: 2; width: max-content; }
  .evaluation-content { padding: 18px 17px 22px; }
  .evaluation-meta, .evaluation-grid { grid-template-columns: 1fr; }
  .evaluation-meta div { padding: 7px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .section-divider { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 430px) {
  .app-shell { padding-inline: 10px; }
  .brand-lockup { align-items: flex-start; }
  .brand-lockup p { font-size: 11.5px; }
  .header-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .header-meta > * { min-width: 0; max-width: 100%; }
  .header-meta .availability, .header-meta .knowledge-status { grid-column: 1 / -1; }
  .header-meta .mcp-status summary, .header-meta .model-chip { width: 100%; }
  .mcp-status summary, .model-chip { font-size: 10.5px; }
  .demo-guide > summary small { display: none; }
  .mcp-status-details { max-width: calc(100vw - 20px); }
  .process-header { align-items: stretch; flex-direction: column; }
  .process-actions { justify-items: stretch; }
  .process-actions button { width: 100%; }
  .knowledge-card[data-field] { grid-column: auto; }
  .to-be-step { grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
  .verification-item header { align-items: flex-start; flex-direction: column; }
}

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