.cli-shell {
  --cli-terminal: #101318;
  --cli-terminal-panel: #181c23;
  --cli-terminal-line: rgba(255, 255, 255, 0.09);
  --cli-success: #35c978;
}

.cli-hero {
  grid-template-columns: minmax(0, 0.9fr) 620px;
}

.cli-hero .mcp-hero-copy {
  padding-top: 18px;
}

.cli-hero h1 {
  max-width: 640px;
  font-size: 58px;
}

.cli-hero h1 span {
  display: block;
  white-space: nowrap;
}

.cli-hero .mcp-hero-text,
.cli-section-head p {
  text-wrap: pretty;
}

@media (min-width: 1201px) {
  .cli-section-head {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  }

  .cli-section-head h2 {
    font-size: 44px;
    white-space: nowrap;
  }

  .cli-section-head p {
    font-size: 15px;
    white-space: nowrap;
  }
}

.cli-hero-facts {
  display: flex;
  gap: 32px;
  margin: 34px 0 0;
}

.cli-hero-facts div {
  min-width: 104px;
}

.cli-hero-facts dt {
  margin-bottom: 6px;
  color: var(--mcp-soft);
  font-size: 12px;
  font-weight: 700;
}

.cli-hero-facts dd {
  margin: 0;
  color: var(--mcp-ink);
  font-size: 14px;
  font-weight: 800;
}

.cli-terminal-visual {
  position: relative;
  min-width: 0;
  padding: 28px 0 28px 28px;
}

.cli-terminal-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 438px;
  border-radius: 16px;
  background: var(--cli-terminal);
  box-shadow: 0 34px 72px rgba(18, 31, 59, 0.2), 0 4px 16px rgba(18, 31, 59, 0.1);
  color: rgba(255, 255, 255, 0.82);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
}

.cli-terminal-titlebar {
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--cli-terminal-line);
  background: #171b21;
  color: rgba(255, 255, 255, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-align: center;
}

.cli-terminal-titlebar em {
  justify-self: end;
  font-style: normal;
}

.cli-terminal-dots {
  display: flex;
  gap: 7px;
}

.cli-terminal-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.cli-terminal-dots i:first-child {
  background: #ff6961;
}

.cli-terminal-dots i:nth-child(2) {
  background: #f6be4f;
}

.cli-terminal-dots i:last-child {
  background: #62c554;
}

.cli-terminal-body {
  padding: 25px 28px 28px;
}

.cli-terminal-body pre {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cli-terminal-body code {
  color: rgba(255, 255, 255, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
}

.cli-terminal-path {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.cli-terminal-path span {
  color: #8ca8ff;
}

.cli-terminal-path b {
  margin-left: 8px;
  color: var(--cli-success);
}

.cli-prompt,
.cli-continuation {
  color: #7ea0ff;
}

.cli-terminal-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--cli-terminal-line);
  color: rgba(255, 255, 255, 0.54);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.cli-terminal-progress span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67d99a;
}

.cli-terminal-progress i,
.cli-live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cli-success);
  box-shadow: 0 0 0 5px rgba(53, 201, 120, 0.12);
}

.cli-terminal-json {
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--cli-terminal-panel);
}

.cli-terminal-json code {
  color: rgba(255, 255, 255, 0.64);
}

.cli-terminal-json span {
  color: #94adff;
}

.cli-terminal-json b {
  color: #67d99a;
  font-weight: 500;
}

.cli-result-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px -18px 0 -28px;
  padding: 18px 24px;
  border-radius: 12px;
  background: #e9edf7;
  color: #7b8496;
  font-size: 11px;
}

.cli-result-rail::before {
  position: absolute;
  top: 50%;
  right: 19%;
  left: 19%;
  height: 1px;
  background: rgba(47, 99, 255, 0.18);
  content: "";
}

.cli-result-rail span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 6px;
  background: #e9edf7;
}

.cli-result-rail span::before {
  width: 6px;
  height: 6px;
  border: 3px solid #e9edf7;
  border-radius: 50%;
  background: #2f63ff;
  box-shadow: 0 0 0 1px rgba(47, 99, 255, 0.22);
  content: "";
}

.cli-result-rail b {
  color: #40485a;
  white-space: nowrap;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-command,
.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-progress,
.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-json,
.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-result-rail span {
  opacity: 0;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-command {
  animation: cli-terminal-enter 420ms 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-progress {
  animation: cli-terminal-enter 380ms 1120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-progress i {
  animation: cli-status-pulse 680ms 1450ms ease-out both;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-terminal-json {
  animation: cli-result-enter 500ms 1520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-result-rail span {
  animation: cli-step-enter 360ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-result-rail span:nth-child(1) {
  animation-delay: 1960ms;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-result-rail span:nth-child(2) {
  animation-delay: 2110ms;
}

.mcp-motion-ready .cli-terminal-visual.mcp-revealed .cli-result-rail span:nth-child(3) {
  animation-delay: 2260ms;
}

@keyframes cli-terminal-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cli-result-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cli-status-pulse {
  from {
    box-shadow: 0 0 0 0 rgba(53, 201, 120, 0.42);
  }
  to {
    box-shadow: 0 0 0 9px rgba(53, 201, 120, 0);
  }
}

@keyframes cli-step-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cli-workflow {
  padding-top: 72px;
}

.cli-workbench {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding: 12px;
  border-radius: 18px;
  background: #e9edf5;
  box-shadow: 0 22px 56px rgba(32, 67, 137, 0.08);
}

.cli-workbench-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
}

.cli-workbench-tab {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  min-height: 82px;
  padding: 15px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #515969;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.cli-workbench-tab > span {
  grid-row: 1 / span 2;
  color: #8b94a5;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.cli-workbench-tab b {
  color: inherit;
  font-size: 15px;
}

.cli-workbench-tab small {
  margin-top: 5px;
  color: #838b9a;
  font-size: 12px;
}

.cli-workbench-tab.is-active {
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 67, 137, 0.09);
  color: var(--mcp-accent);
}

.cli-workbench-tab:active {
  transform: scale(0.96);
}

.cli-workbench-tab:focus-visible,
.cli-pane-label button:focus-visible {
  outline: 2px solid var(--mcp-accent);
  outline-offset: 2px;
}

.cli-workbench-stage {
  min-width: 0;
  overflow: hidden;
  padding: 28px;
  border-radius: 12px;
  background: #fff;
}

.cli-workbench-stage > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding-bottom: 22px;
}

.cli-workbench-stage header span:first-child {
  color: var(--mcp-accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cli-workbench-stage h3 {
  margin: 5px 0 0;
  color: var(--mcp-ink);
  font-size: 24px;
  line-height: 1.28;
}

.cli-live-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #effaf4;
  color: #18854a;
  font-size: 12px;
  white-space: nowrap;
}

.cli-workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 10px;
  background: var(--cli-terminal);
}

.cli-code-pane,
.cli-output-pane {
  min-width: 0;
  min-height: 272px;
  padding: 18px 20px 20px;
}

.cli-code-pane {
  border-right: 1px solid var(--cli-terminal-line);
  background: #14181e;
}

.cli-output-pane {
  background: #101318;
}

.cli-pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--cli-terminal-line);
  color: rgba(255, 255, 255, 0.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.cli-pane-label button {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #8ca8ff;
  cursor: pointer;
  font: inherit;
}

.cli-pane-label em {
  color: #67d99a;
  font-style: normal;
}

.cli-workbench-grid pre {
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cli-workbench-grid code {
  color: rgba(255, 255, 255, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.85;
}

.cli-output-pane code {
  color: #aeb9ca;
}

.cli-workbench-stage.is-switching .cli-workbench-grid,
.cli-workbench-stage.is-switching > header,
.cli-workbench-stage.is-switching .cli-flow-note {
  opacity: 0;
  transform: translateY(8px);
}

.cli-workbench-grid,
.cli-workbench-stage > header,
.cli-flow-note {
  transition: opacity 140ms ease, transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cli-flow-note {
  min-height: 43px;
  margin: 18px 0 0;
  color: var(--mcp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.cli-capability-table thead th:nth-child(1) {
  width: 13%;
}

.cli-capability-table thead th:nth-child(2) {
  width: 28%;
}

.cli-capability-table thead th:nth-child(3) {
  width: 37%;
}

.cli-capability-table thead th:nth-child(4) {
  width: 22%;
}

@media (hover: hover) {
  .cli-terminal-visual:hover .cli-terminal-window {
    transform: translateY(-3px);
    box-shadow: 0 38px 80px rgba(18, 31, 59, 0.23), 0 6px 18px rgba(18, 31, 59, 0.11);
  }

  .cli-workbench-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.55);
    color: #2f63ff;
  }

  .cli-pane-label button:hover {
    color: #bfd0ff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cli-terminal-window,
  .cli-workbench-grid,
  .cli-workbench-stage > header,
  .cli-flow-note,
  .cli-workbench-tab {
    transition: none;
  }

  .mcp-motion-ready .cli-terminal-visual .cli-terminal-command,
  .mcp-motion-ready .cli-terminal-visual .cli-terminal-progress,
  .mcp-motion-ready .cli-terminal-visual .cli-terminal-json,
  .mcp-motion-ready .cli-terminal-visual .cli-result-rail span {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 1200px) {
  .cli-hero {
    grid-template-columns: minmax(0, 0.88fr) 540px;
    gap: 34px;
  }

  .cli-hero h1 {
    font-size: 52px;
  }

  .cli-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
}

@media (max-width: 980px) {
  .cli-hero {
    grid-template-columns: 1fr;
  }

  .cli-hero-copy {
    max-width: 720px;
  }

  .cli-terminal-visual {
    width: min(720px, 100%);
    margin: 0 auto;
    padding-left: 0;
  }

  .cli-result-rail {
    margin-right: 0;
    margin-left: 0;
  }

  .cli-workbench {
    grid-template-columns: 1fr;
  }

  .cli-workbench-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cli-hero h1 {
    font-size: 42px;
  }

  .cli-hero-facts {
    gap: 18px;
  }

  .cli-result-rail {
    gap: 12px;
    margin-right: 0;
    margin-left: 0;
  }

  .cli-workbench-nav,
  .cli-workbench-grid {
    grid-template-columns: 1fr;
  }

  .cli-workbench-tab {
    min-height: 72px;
  }

  .cli-code-pane {
    border-right: 0;
    border-bottom: 1px solid var(--cli-terminal-line);
  }

  .cli-code-pane,
  .cli-output-pane {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .cli-hero h1 {
    font-size: 34px;
  }

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

  .cli-hero-facts div {
    min-width: 0;
  }

  .cli-hero-facts dd {
    font-size: 12px;
  }

  .cli-terminal-visual {
    padding-top: 14px;
  }

  .cli-terminal-window {
    min-height: 0;
    border-radius: 12px;
  }

  .cli-terminal-titlebar {
    grid-template-columns: 62px 1fr 44px;
    padding: 0 12px;
    font-size: 10px;
  }

  .cli-terminal-body {
    padding: 18px 16px 20px;
  }

  .cli-terminal-body code {
    font-size: 11px;
  }

  .cli-result-rail {
    padding: 16px 6px;
  }

  .cli-result-rail::before {
    right: 16%;
    left: 16%;
  }

  .cli-result-rail span {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
  }

  .cli-result-rail b {
    margin-top: 0;
  }

  .cli-workbench {
    margin-top: 24px;
    padding: 8px;
    border-radius: 14px;
  }

  .cli-workbench-stage {
    padding: 18px 14px;
  }

  .cli-workbench-stage > header {
    display: block;
  }

  .cli-workbench-stage h3 {
    font-size: 20px;
  }

  .cli-live-status {
    margin-top: 14px;
  }

  .cli-code-pane,
  .cli-output-pane {
    min-height: 0;
    padding: 14px;
  }

  .cli-workbench-grid code {
    font-size: 11px;
  }
}
