| 1 |
/* Prompt box */ |
| 2 |
|
| 3 |
.ai-agent-demo-prompt__text { |
| 4 |
display: block; |
| 5 |
white-space: pre-wrap; |
| 6 |
word-break: break-word; |
| 7 |
color: var(--cs-color-text); |
| 8 |
line-height: 1.6; |
| 9 |
} |
| 10 |
|
| 11 |
.ai-agent-demo-prompt__placeholder { |
| 12 |
color: #8c8f94; |
| 13 |
} |
| 14 |
|
| 15 |
.ai-agent-demo-prompt.is-typing { |
| 16 |
border-color: var(--cs-color-accent); |
| 17 |
box-shadow: 0 0 0 1px var(--cs-color-accent); |
| 18 |
} |
| 19 |
|
| 20 |
.ai-agent-demo-prompt__caret { |
| 21 |
display: inline-block; |
| 22 |
inline-size: 2px; |
| 23 |
block-size: 1.1em; |
| 24 |
margin-inline-start: 1px; |
| 25 |
background: var(--cs-color-accent); |
| 26 |
vertical-align: text-bottom; |
| 27 |
animation: ai-agent-demo-caret 1s step-end infinite; |
| 28 |
} |
| 29 |
|
| 30 |
@keyframes ai-agent-demo-caret { |
| 31 |
0%, |
| 32 |
100% { |
| 33 |
opacity: 1; |
| 34 |
} |
| 35 |
|
| 36 |
50% { |
| 37 |
opacity: 0; |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
/* Cloud round trip */ |
| 42 |
|
| 43 |
.ai-agent-demo-transit { |
| 44 |
display: flex; |
| 45 |
align-items: center; |
| 46 |
gap: 12px; |
| 47 |
padding-block: 10px; |
| 48 |
padding-inline: 14px; |
| 49 |
border: 1px dashed var(--cs-color-border); |
| 50 |
border-radius: var(--cs-card-radius); |
| 51 |
background: var(--cs-color-surface); |
| 52 |
color: var(--cs-color-text-secondary); |
| 53 |
font-size: 13px; |
| 54 |
animation: ai-agent-fade-in 0.25s ease; |
| 55 |
} |
| 56 |
|
| 57 |
.ai-agent-demo-transit__endpoint { |
| 58 |
white-space: nowrap; |
| 59 |
} |
| 60 |
|
| 61 |
.ai-agent-demo-transit__track { |
| 62 |
position: relative; |
| 63 |
flex: 1; |
| 64 |
block-size: 2px; |
| 65 |
min-inline-size: 60px; |
| 66 |
border-radius: 2px; |
| 67 |
background: #dcdcde; |
| 68 |
overflow: hidden; |
| 69 |
} |
| 70 |
|
| 71 |
.ai-agent-demo-transit__pulse { |
| 72 |
position: absolute; |
| 73 |
inset-block: 0; |
| 74 |
inline-size: 40%; |
| 75 |
border-radius: 2px; |
| 76 |
background: var(--cs-color-accent); |
| 77 |
animation: ai-agent-demo-transit 1.4s ease-in-out infinite; |
| 78 |
} |
| 79 |
|
| 80 |
@keyframes ai-agent-demo-transit { |
| 81 |
from { |
| 82 |
inset-inline-start: -40%; |
| 83 |
} |
| 84 |
|
| 85 |
to { |
| 86 |
inset-inline-start: 100%; |
| 87 |
} |
| 88 |
} |
| 89 |
|
| 90 |
/* Closing panel */ |
| 91 |
|
| 92 |
// Sits below the agent rather than inside its thread, so it reads as the end |
| 93 |
// of the walkthrough rather than as another message. |
| 94 |
.ai-agent-demo__closing { |
| 95 |
margin-block-start: 24px; |
| 96 |
} |
| 97 |
|
| 98 |
/* Inert controls */ |
| 99 |
|
| 100 |
// The walkthrough drives the page, so the agent's own controls are disabled |
| 101 |
// rather than removed. They are drawn at full strength so the demo shows the |
| 102 |
// screen as it really looks. |
| 103 |
.ai-agent-demo { |
| 104 |
.ai-agent-examples__chip:disabled, |
| 105 |
.ai-agent-empty__chip:disabled { |
| 106 |
opacity: 1; |
| 107 |
cursor: default; |
| 108 |
color: var(--cs-color-text); |
| 109 |
} |
| 110 |
|
| 111 |
.ai-agent-history__open { |
| 112 |
cursor: default; |
| 113 |
} |
| 114 |
} |
| 115 |
|
| 116 |
@media (prefers-reduced-motion: reduce) { |
| 117 |
.ai-agent-demo-prompt__caret, |
| 118 |
.ai-agent-demo-transit__pulse, |
| 119 |
.ai-agent-typing__dots i { |
| 120 |
animation: none; |
| 121 |
} |
| 122 |
|
| 123 |
.ai-agent-plan, |
| 124 |
.ai-agent-result, |
| 125 |
.ai-agent-typing, |
| 126 |
.ai-agent-demo-transit { |
| 127 |
animation: none; |
| 128 |
} |
| 129 |
} |
| 130 |
|