.agent-team-section { overflow: clip; background: #faf9f6; }
.agent-team-section .shell { max-width: 1296px; }
.agent-team-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.agent-team-heading h2 { margin: 0; color: #20222a; font-size: clamp(42px, 4.4vw, 66px); font-weight: 600; letter-spacing: -.055em; line-height: 1.1; }
.agent-team-heading > div:last-child > span { color: #747984; font-size: 10px; letter-spacing: .12em; }
.agent-team-heading > div:last-child > p { margin: 16px 0 0; color: #77797d; font-size: 15px; line-height: 1.85; }
.team-demo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.team-demo-case { min-width: 0; padding: 22px 20px 20px; border: 1px solid #e9e8e2; border-radius: 24px; background: #f1f0ed; overflow: hidden; }
.team-demo-intro { min-height: 112px; }
.team-demo-intro > span { color: #71716b; font-size: 11px; letter-spacing: .09em; }
.team-demo-intro h3 { margin: 9px 0 10px; color: #222; font-size: 21px; line-height: 1.4; font-weight: 560; letter-spacing: -.04em; }
.team-demo-intro p { max-width: 480px; margin: 0; color: #64645f; font-size: 13px; line-height: 1.8; }
.team-chat-window { display: grid; grid-template-rows: 38px minmax(0, 1fr); height: 548px; overflow: hidden; border: 1px solid #ddddd7; border-radius: 14px; background: #fdfdfc; color: #242424; box-shadow: 0 2px 5px #00000003; }
.team-chat-window button { font: inherit; cursor: pointer; }
.team-chat-window button:focus-visible, .team-chat-messages:focus-visible { outline: 2px solid #747da4; outline-offset: -2px; }
.team-chat-titlebar { display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid #eeedea; font-size: 11px; }
.team-chat-traffic { display: flex; gap: 5px; }
.team-chat-traffic i { width: 7px; height: 7px; border-radius: 50%; background: #ff6158; }
.team-chat-traffic i:nth-child(2) { background: #ffbc2f; }
.team-chat-traffic i:nth-child(3) { background: #29c740; }
.team-chat-titlebar > span { color: #555; }
.team-chat-titlebar em { margin-left: auto; color: #71716a; font-size: 10px; font-style: normal; }
.agent-demo-robot { position: relative; display: grid; place-items: center; width: var(--robot-size); height: var(--robot-size); flex: none; }
.agent-demo-robot svg { display: block; width: var(--robot-size) !important; height: auto; overflow: visible; }
/* The role colour belongs to the robot itself, including sidebar and messages. */
.agent-demo-robot[data-agent-role="chief"] { --robot-light: #49b59b; --robot-mid: #278975; --robot-deep: #176451; }
.agent-demo-robot[data-agent-role="intel"] { --robot-light: #e6b851; --robot-mid: #bf8c2a; --robot-deep: #8d601b; }
.agent-demo-robot[data-agent-role="leasing"] { --robot-light: #e89477; --robot-mid: #c56850; --robot-deep: #98432e; }
.agent-demo-robot[data-agent-role="operations"] { --robot-light: #b396db; --robot-mid: #8765b6; --robot-deep: #63428f; }
.agent-demo-robot[data-agent-role="finance"] { --robot-light: #72b5e6; --robot-mid: #438bc2; --robot-deep: #2b6195; }
.agent-demo-robot[data-agent-role] [id^="robot-surface-"] stop:first-child { stop-color: var(--robot-light); }
.agent-demo-robot[data-agent-role] [id^="robot-surface-"] stop:nth-child(2) { stop-color: var(--robot-mid); }
.agent-demo-robot[data-agent-role] [id^="robot-surface-"] stop:last-child { stop-color: var(--robot-deep); }
.agent-demo-robot[data-agent-role] [id^="robot-cape-"] stop:first-child { stop-color: var(--robot-light); }
.agent-demo-robot[data-agent-role] [id^="robot-cape-"] stop:not(:first-child) { stop-color: var(--robot-deep); }
.team-chat-messages { display: flex; flex-direction: column; gap: 16px; min-height: 0; height: 100%; overflow: auto; overscroll-behavior: contain; padding: 16px 12px 26px; scrollbar-width: thin; scrollbar-color: #bdbdb6 transparent; scroll-padding-bottom: 24px; }
.team-chat-timestamp { color: #72726b; font-size: 10px; line-height: 1.6; text-align: center; }
.team-chat-owner { display: flex; flex-direction: column; align-items: flex-end; align-self: flex-end; max-width: 92%; animation: team-message-in .24s ease-out both; }
.team-chat-owner > span { margin-bottom: 6px; color: #72726c; font-size: 11px; }
.team-chat-owner p { margin: 0; padding: 11px 13px; border-radius: 13px 13px 3px 13px; background: #171717; color: #fff; font-size: 13px; line-height: 1.75; }
.team-chat-message { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 8px; max-width: 100%; animation: team-message-in .24s ease-out both; }
.team-chat-message > .agent-demo-robot { margin-top: 2px; }
.team-chat-author { display: block; margin: 0 0 6px 2px; color: var(--agent-accent); font-size: 11px; line-height: 1.5; font-weight: 600; }
.team-chat-bubble { width: fit-content; padding: 10px 12px; border-radius: 3px 13px 13px; background: #f1f1ee; }
.team-chat-bubble p { margin: 0; color: #30312c; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.team-chat-bubble p b { color: #242424; font-weight: 620; }
.team-chat-work { margin-left: 38px; padding: 11px 12px; border: 1px solid #e3e3dc; border-radius: 12px; background: #fcfcf9; animation: team-message-in .24s ease-out both; }
.team-chat-work header { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 9px; font-size: 11px; color: #44483d; }
.team-chat-work header > i { width: 5px; height: 5px; border-radius: 50%; background: #77a995; }
.team-chat-work header > span { margin-left: auto; color: #6f7368; font-size: 10px; }
.team-chat-work p { display: grid; grid-template-columns: 45px 1fr 8px; gap: 7px; align-items: start; margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: #51554b; }
.team-chat-work p i { color: #4c7f62; font-style: normal; }
.team-chat-transfer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; color: #72746a; font-size: 11px; padding: 4px 0; }
.team-chat-transfer strong { font-weight: 500; }
.team-chat-file { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 10px; padding: 9px 10px; border: 1px solid #dfdfd8; border-radius: 9px; background: #fdfdfa; color: #42423b; text-align: left; transition: background .18s; }
.team-chat-file:hover { background: #e9eee8; }
.team-chat-file > span:first-child { display: grid; width: 28px; height: 34px; flex: none; place-items: center; color: #7d876d; }
.team-chat-file strong { display: block; color: #34382e; font-size: 12px; font-weight: 600; line-height: 1.6; }
.team-chat-file small { display: block; margin-top: 4px; color: #69705f; font-size: 10px; line-height: 1.5; }
.team-chat-file i { margin-left: auto; font-style: normal; }
.team-chat-routine { display: flex; justify-content: center; align-items: center; gap: 8px; padding-block: 8px; color: #6b8c78; animation: team-message-in .26s ease-out both; }
.team-chat-routine > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #eaf0e8; font-size: 12px; }
.team-chat-routine strong { font-size: 12px; font-weight: 550; }
.team-chat-routine p { margin: 4px 0 0; color: #667260; font-size: 11px; line-height: 1.5; }
.team-chat-footer { position: relative; z-index: 1; padding: 9px 10px 8px; border-top: 1px solid #efefea; background: #fdfdfc; }
.team-chat-playbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 3px 0 10px; border: 1px solid #e2e2db; border-radius: 24px; }
.team-chat-status { display: flex; align-items: center; gap: 7px; min-width: 0; color: #64685a; font-size: 11px; white-space: nowrap; }
.team-chat-playbar button { display: grid; width: 30px; height: 30px; padding: 5px; flex: none; place-items: center; border: 0; border-radius: 50%; background: #171717; color: white; }
.team-chat-playbar button:hover { background: #414141; }
.team-chat-playbar button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.team-chat-play-icon { fill: currentColor; stroke: none; }
.team-chat-typing { display: flex; align-items: center; gap: 3px; height: 12px; }
.team-chat-typing b { width: 3px; height: 3px; border-radius: 50%; background: #a2a69c; animation: team-typing 1.1s ease-in-out infinite; }
.team-chat-typing b:nth-child(2) { animation-delay: .14s; }
.team-chat-typing b:nth-child(3) { animation-delay: .28s; }
.team-chat-idle { width: 5px; height: 5px; border-radius: 50%; background: #a5b39f; }
.team-chat-controls { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 4px; }
.team-chat-controls nav { display: flex; gap: 2px; }
.team-chat-controls nav button { position: relative; min-width: 32px; min-height: 30px; padding: 5px 3px; border: 0; border-radius: 4px; background: none; color: #73766b; font-size: 11px; }
.team-chat-controls nav button[aria-current="step"] { color: #323a2c; font-weight: 600; }
.team-chat-controls nav button i { position: absolute; bottom: 0; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: transparent; }
.team-chat-controls nav button[aria-current="step"] i { background: #969e86; }
.team-chat-controls nav button:hover { color: #333; }
.team-chat-replay { min-height: 30px; padding: 4px 2px 4px 4px; flex: none; border: 0; background: none; color: #65695e; font-size: 11px !important; white-space: nowrap; }
.team-chat-replay:hover { color: #242424; }
.team-chat-plan { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 14px 18px 20px; background: #fdfdfb; scrollbar-width: thin; }
.team-chat-back { display: block; min-height: 30px; margin-bottom: 12px; padding: 0 3px; border: 0; background: none; color: #4e5f41; font-size: 12px !important; }
.team-chat-plan-label { color: #707867; font-size: 11px; }
.team-chat-plan h4 { margin: 7px 0 14px; font-size: 17px; font-weight: 550; color: #32362d; }
.team-chat-plan > article { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid #e9eae3; }
.team-chat-plan > article > span { color: #a0a396; font-size: 10px; }
.team-chat-plan article strong { display: block; font-size: 13px; font-weight: 600; }
.team-chat-plan article em { display: block; margin-top: 5px; color: #657354; font-size: 11px; font-style: normal; }
.team-chat-plan article p { margin: 7px 0 0; font-size: 12px; line-height: 1.8; color: #545d4b; }
.team-chat-plan-note { margin: 12px 0 0; color: #6b7461; font-size: 11px; line-height: 1.8; }
.team-chat-app { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 0; }
.team-chat-sidebar { display: flex; flex-direction: column; gap: 5px; min-height: 0; padding: 12px 6px 10px; border-right: 1px solid #e9e9e5; background: #f8f8f6; }
.team-chat-sidebar-label { display: flex; justify-content: space-between; padding: 0 7px 7px; color: #72746a; font-size: 10px; }
.team-chat-sidebar-label > span { color: #777c6e; }
.team-chat-sidebar > button { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 5px; min-height: 57px; padding: 7px 5px; border: 0; border-radius: 8px; background: transparent; text-align: left; transition: background .16s; }
.team-chat-sidebar > button[aria-pressed="true"] { background: #e4e7df; box-shadow: inset 2px 0 var(--agent-accent); }
.team-chat-sidebar > button:hover { background: #eeeee9; }
.team-chat-sidebar > button > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.team-chat-sidebar strong { color: #3e4537; font-size: 11px; font-weight: 600; white-space: nowrap; }
.team-chat-sidebar small { overflow: hidden; color: #777b70; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.team-chat-sidebar > button > i { position: absolute; top: 8px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.team-chat-sidebar > button[data-active="true"] > i { background: var(--agent-accent); }
.team-chat-sidebar-person { display: flex; align-items: center; gap: 6px; padding: 5px; margin-top: auto; color: #71796a; font-size: 10px; }
.team-chat-sidebar-person > span { display: grid; width: 23px; height: 23px; flex: none; place-items: center; border-radius: 50%; background: #e9ece4; }
.team-chat-thread { display: grid; grid-template-rows: 37px minmax(0, 1fr) 91px; min-width: 0; min-height: 0; }
.team-chat-thread-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-bottom: 1px solid #eeede9; font-size: 11px; color: #4a5240; }
.team-chat-thread-title > span:last-child { color: #707966; font-size: 10px; white-space: nowrap; }
.team-robot-intro { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 420px; border: 1px solid #e9e8e2; border-radius: 24px; background: #f1f0ed; }
.team-robot-intro-copy { padding: 44px 0 44px 44px; position: relative; z-index: 2; }
.team-robot-eyebrow { margin: 0 0 17px; color: #71736a; font-size: 11px; letter-spacing: .16em; }
.team-robot-intro-copy h2 { margin: 0 0 22px; color: #21221f; font-size: clamp(30px, 3vw, 44px); line-height: 1.22; letter-spacing: -.045em; font-weight: 550; }
.team-robot-intro-copy > p:not(.team-robot-eyebrow) { max-width: 510px; margin: 0 0 12px; color: #63695b; font-size: 15px; line-height: 1.85; }
.team-robot-intro-copy > a { display: inline-flex; min-height: 36px; gap: 22px; align-items: center; margin-top: 10px; color: #343f2c; font-size: 13px; text-decoration: none; }
.team-robot-intro-copy > a:hover { color: #8b6bc0; }
.team-robot-intro-visual { position: relative; display: grid; height: 420px; place-items: center; isolation: isolate; }
.team-robot-intro-visual > .agent-demo-robot { position: absolute; z-index: 1; top: -42px; left: 50%; transform: translateX(-50%); }
.team-robot-interactive { cursor: pointer; border-radius: 42%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.team-robot-interactive:focus-visible { outline: 2px solid #6a859b; outline-offset: 12px; }
.team-robot-interactive > svg { pointer-events: none; transform: perspective(650px) translateY(0) rotateX(0) rotateY(0) scale(1); transition: transform .22s ease-out, filter .22s ease-out; }
.team-robot-interactive[data-engaged="true"] > svg { transform: perspective(650px) translateY(-9px) rotateX(var(--robot-tilt-x, 0deg)) rotateY(var(--robot-tilt-y, 0deg)) scale(1.055); filter: drop-shadow(0 12px 18px #718aa52e); }
.team-robot-interactive [data-eye-emotion] { translate: var(--robot-look-x, 0px) var(--robot-look-y, 0px); transition: translate .12s ease-out; }
.team-robot-ribbons { position: absolute; inset: -20px 0 0; width: 100%; height: 94%; overflow: visible; pointer-events: none; opacity: .72; }
.team-robot-ribbons path { fill: none; stroke-width: 9; stroke-linecap: round; transform-origin: center; }
.team-ribbon-violet { stroke: #a28acb; }
.team-ribbon-green { stroke: #a9cc8c; }
.team-ribbon-blue { stroke: #8ebbc8; }
.team-robot-intro[data-running="true"] .team-robot-ribbons path { animation: team-ribbon-sway 7s ease-in-out infinite alternate; }
.team-robot-intro[data-running="true"] .team-ribbon-green { animation-delay: -2.5s; }
.team-robot-intro[data-running="true"] .team-ribbon-blue { animation-delay: -4.5s; }
.team-robot-expression { position: absolute; z-index: 2; bottom: 7px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; width: 230px; }
.team-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.team-conversations-heading { padding: 42px 0 24px; text-align: center; scroll-margin-top: 30px; }
.team-conversations-heading h3 { margin: 0 0 12px; color: #252620; font-size: 29px; line-height: 1.4; font-weight: 550; letter-spacing: -.035em; }
.team-conversations-heading p { margin: 0; color: #666d5e; font-size: 14px; line-height: 1.8; }

.team-chat-history { position: relative; min-height: 0; overflow: hidden; }
.team-chat-work p strong { display: block; font-size: 11px; font-weight: 550; }
.team-chat-work p small { display: block; color: #707467; font-size: 10px; line-height: 1.6; }
.team-chat-file svg { width: 24px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.team-chat-sidebar-person svg { width: 14px; height: 14px; fill: none; stroke: #78806f; stroke-width: 1.5; }
.team-chat-open-plan { min-height: 30px; padding: 3px 0 3px 6px; border: 0; background: none; color: #536447; font-size: 11px !important; white-space: nowrap; }
.team-chat-open-plan:hover, .team-chat-back:hover { color: #25371a; text-decoration: underline; text-underline-offset: 3px; }
.team-chat-latest { position: absolute; z-index: 2; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; min-height: 32px; padding: 6px 13px; border: 1px solid #d6dccc; border-radius: 20px; background: #fdfef9; box-shadow: 0 3px 10px #28331712; color: #47563a; font-size: 11px !important; white-space: nowrap; }
.team-chat-latest:hover { background: #e9eee2; }
.team-demo-hint { margin: 18px 0 0; color: #72786b; font-size: 12px; line-height: 1.7; text-align: center; }
.team-robot-expression-controls { display: flex; justify-content: center; align-items: center; gap: 6px; }
.team-robot-expression-controls button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #57614a; cursor: pointer; }
.team-robot-expression-controls button > i { width: 6px; height: 6px; border-radius: 50%; background: #9ca68d; transition: background .18s, box-shadow .18s; }
.team-robot-expression-controls button[aria-pressed="true"] > i { background: #535e42; box-shadow: 0 0 0 5px #dfe5d5; }
.team-robot-expression-controls button:hover { background: #e5e8df; }
.team-robot-expression-controls .team-robot-motion-toggle { margin-left: 6px; background: #e4e8dc; }
.team-robot-motion-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.team-robot-expression-label { min-height: 20px; color: #626d53; font-size: 11px; line-height: 20px; }
.team-robot-intro button:focus-visible, .team-robot-intro a:focus-visible, .team-chat-plan:focus-visible { outline: 2px solid #65764f; outline-offset: 3px; }

@keyframes team-ribbon-sway { from { transform: rotate(-5deg) translateY(-3px); } to { transform: rotate(7deg) translateY(4px); } }
@keyframes team-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes team-typing { 0%, 70%, 100% { opacity: .4; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 1100px) {
  .team-chat-app { grid-template-columns: 106px minmax(0, 1fr); }
  .team-chat-sidebar > button { gap: 2px; padding-inline: 2px; }
  .team-robot-intro-copy { padding: 30px 0 30px 30px; }
  .team-robot-intro-visual > .agent-demo-robot { transform: translateX(-50%) scale(.86); }
  .agent-team-heading { gap: 40px; }
  .team-demo-case { padding: 20px 16px 0; }
  .team-demo-pair { gap: 16px; }
  .team-demo-intro h3 { font-size: 19px; }
  .team-chat-members { padding-inline: 8px; }
  .team-chat-members > div { gap: 0; }
  .team-chat-members > div > span:last-child { font-size: 9px; }
}
@media (max-width: 820px) {
  .team-robot-intro { grid-template-columns: 1fr; overflow: hidden; }
  .team-robot-intro-copy { padding: 30px; }
  .team-robot-intro-visual { height: 325px; }
  .team-chat-app { grid-template-columns: 110px minmax(0, 1fr); }
  .team-chat-work { margin-left: 0; }
  .team-chat-work p { grid-template-columns: 42px minmax(0, 1fr) 8px; }
  .team-conversations-heading { padding-top: 38px; }
  .team-conversations-heading h3 { font-size: 25px; }
  .agent-team-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; }
  .team-demo-pair { grid-template-columns: 1fr; }
  .team-demo-intro { min-height: 124px; }
  .team-chat-window { height: 510px; }
}
@media (max-width: 480px) {
  .team-chat-app { grid-template-columns: 96px minmax(0, 1fr); }
  .team-chat-controls { flex-wrap: wrap; }
  .team-chat-controls nav { flex: 1; justify-content: space-between; }
  .team-chat-controls nav button { min-width: 24px; padding-inline: 1px; font-size: 10px; white-space: nowrap; }
  .team-chat-replay { font-size: 10px !important; }
  .team-chat-thread-title { gap: 4px; padding-inline: 8px; }
  .team-chat-thread-title > span:last-child { font-size: 9px; }
  .team-chat-open-plan { padding-left: 0; font-size: 10px !important; }
}
@media (max-width: 360px) {
  .team-chat-thread { grid-template-rows: 43px minmax(0, 1fr) 124px; }
  .team-chat-thread-title { flex-wrap: wrap; align-content: center; }
  .team-chat-status { white-space: normal; font-size: 10px; line-height: 1.4; }
  .team-chat-controls nav { flex-basis: 100%; }
  .team-chat-playbar { min-height: 38px; height: auto; padding-block: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-robot-interactive[data-engaged="true"] > svg { transform: none; filter: drop-shadow(0 0 8px #718aa54a); }
  .team-robot-interactive [data-eye-emotion] { translate: none; }
  .team-robot-intro *, .team-robot-intro *::before, .team-robot-intro *::after { animation: none !important; transition: none !important; }
  .team-chat-window *, .team-chat-window *::before, .team-chat-window *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
