/* NexeGo live demo: the core's own styles. Google Material 3, built from the website's own pieces (site.css: .card,
   .chip, .icon-badge, .overline, .mock, .bubble, .notice), so the demo looks like every other page of nexego.ai.
   One palette (Cobalt primary and its containers), white outlined cards, nothing under 13 px; the only gradients are
   the site's own (the hero's soft glow) and the loading shimmer.
   Every class starts with "demo-" and every rule sits under the page block (.demo). Each agent's own screen has its
   styles in assets/demo/looks/<id>.css. Inter Tight has no Devanagari or Telugu glyphs: those use the system's fonts. */
.demo { --demo-top: 64px; padding-bottom: 56px; }
.demo :lang(hi) { font-family: "Inter Tight", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Mangal", sans-serif; }
.demo :lang(te) { font-family: "Inter Tight", "Noto Sans Telugu", "Nirmala UI", "Kohinoor Telugu", "Gautami", sans-serif; }
.demo [hidden] { display: none !important; }
.demo .demo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The banner and the language switch, fixed under the site's top bar */
.demo .demo-bar { position: sticky; top: var(--demo-top); z-index: 30; background: var(--md-primary); color: var(--md-on-primary); }
.demo .demo-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; }
.demo .demo-banner { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.demo .demo-banner .icon { width: 18px; height: 18px; }
.demo .demo-lang { display: inline-flex; flex: none; border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-full); overflow: hidden; }
.demo .demo-lang button { min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-left: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; font: 600 .8125rem/1 var(--font); cursor: pointer; }
.demo .demo-lang button:first-child { border-left: 0; }
.demo .demo-lang button[aria-pressed="true"] { background: #fff; color: var(--md-primary); }
.demo .demo-lang button:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }

/* Hero: the site's hero, smaller */
.demo .demo-hero { padding: 40px 0 8px; background: radial-gradient(900px 420px at 85% 0%, rgba(0,172,238,.16), transparent 70%), var(--md-surface); }
@media (min-width: 840px) { .demo .demo-hero { padding: 72px 0 16px; } }
.demo .demo-hero .body-l { max-width: 560px; margin: 12px 0 24px; }
.demo .demo-biz { display: grid; gap: 12px; max-width: 640px; }
@media (min-width: 600px) { .demo .demo-biz { grid-template-columns: 1fr auto; align-items: start; } }
.demo .demo-biz-field { display: flex; gap: 8px; align-items: center; }
.demo .demo-biz-field input { flex: 1; min-width: 0; }
.demo .demo-biz-go { min-height: 56px; }
.demo .demo-note { display: flex; gap: 8px; margin: 12px 0 0; max-width: 640px; font-size: .8125rem; line-height: 1.5; color: var(--md-on-surface-variant); }
.demo .demo-note .icon { width: 16px; height: 16px; margin-top: 2px; }

/* Icon buttons: the dice (tonal) and send (filled), M3 48 px */
.demo .demo-dice, .demo .demo-send { flex: none; width: 48px; height: 48px; border: 0; border-radius: var(--r-full); display: grid; place-items: center; cursor: pointer; }
.demo .demo-dice { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.demo .demo-dice:hover { box-shadow: inset 0 0 0 24px rgba(27,42,79,.08); } /* the M3 hover state layer */
.demo .demo-send { background: var(--md-primary); color: var(--md-on-primary); }
.demo .demo-send:hover { background: #0d52b3; } /* the site's filled-button hover */
.demo .demo-dice .icon, .demo .demo-send .icon { width: 24px; height: 24px; }
.demo .demo-dice[disabled], .demo .demo-send[disabled] { opacity: .38; cursor: default; }
.demo .demo-roll .icon { animation: demo-roll .45s cubic-bezier(.2,0,0,1); }
@keyframes demo-roll { from { transform: rotate(-180deg) scale(.8); } to { transform: none; } }

/* The team: the site's section head and outlined cards */
.demo .demo-team-section { padding: 40px 0 8px; scroll-margin-top: 116px; }
.demo .demo-team-head { margin-bottom: 20px; }
.demo .demo-team-head .overline { margin-bottom: 8px; }
.demo .demo-team-h { margin: 0 0 4px; }
.demo .demo-heard { margin: 0; max-width: 720px; }
.demo .demo-heard:empty, .demo .demo-status:empty { display: none; }
.demo .demo-status { margin: 12px 0 0; }
.demo .demo-team { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .demo .demo-team { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .demo .demo-team { grid-template-columns: repeat(5, 1fr); } }
.demo .demo-team > li { display: flex; }
.demo .demo-member { display: flex; gap: 16px; align-items: flex-start; width: 100%; text-align: left; padding: 16px; border: 1px solid var(--md-outline-variant); border-radius: var(--r-l); background: var(--md-surface-lowest); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.demo .demo-member:hover { border-color: var(--md-primary); box-shadow: var(--e1); }
@media (min-width: 1000px) { .demo .demo-member { flex-direction: column; gap: 12px; padding: 20px; } }
.demo .demo-member-t { display: grid; gap: 2px; min-width: 0; }
.demo .demo-member-top { display: flex; align-items: center; gap: 8px; }
.demo .demo-member-name { font-size: 1.125rem; font-weight: 700; color: var(--md-on-surface); }
.demo .demo-member-role { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--md-primary); }
.demo .demo-member-intro { font-size: .9375rem; line-height: 1.5; color: var(--md-on-surface-variant); margin-top: 6px; overflow-wrap: anywhere; }
.demo .demo-ai { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--r-s); background: var(--md-surface-low); border: 1px solid var(--md-outline-variant); color: var(--md-on-surface-variant); font-size: .8125rem; font-weight: 600; }
.demo .demo-member-wait { cursor: default; pointer-events: none; }
.demo .demo-member-wait .demo-member-t { width: 100%; }
.demo .demo-member-wait .demo-member-name, .demo .demo-member-wait .demo-member-role, .demo .demo-member-wait .demo-member-intro { display: block; height: 12px; width: 60%; border-radius: var(--r-xs); color: transparent; background: linear-gradient(90deg, var(--md-surface-container), var(--md-surface-low), var(--md-surface-container)); background-size: 200% 100%; animation: demo-shimmer 1.4s infinite linear; }
.demo .demo-member-wait .demo-member-name { width: 40%; height: 16px; }
.demo .demo-member-wait .demo-member-intro { width: 100%; height: 36px; }
.demo .demo-member-wait .demo-ai { display: none; }
.demo .demo-pop { animation: demo-in .4s cubic-bezier(.2,0,0,1) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes demo-shimmer { to { background-position: -200% 0; } }
.demo .demo-drafts { display: flex; gap: 8px; margin: 16px 0 0; font-size: .875rem; color: var(--md-on-surface-variant); }
.demo .demo-drafts .icon { width: 18px; height: 18px; color: var(--md-primary); margin-top: 1px; }

/* Avatars: M3 avatar, the agent's Material icon on the primary container (the site's .icon-badge, round) */
.demo .demo-ava { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--md-primary-container); color: var(--md-on-primary-container); }
.demo .demo-ava .icon { width: 55%; height: 55%; }
.demo .demo-ava-s { width: 32px; height: 32px; }
.demo .demo-ava-m, .demo .demo-ava-l { width: 48px; height: 48px; }
.demo .demo-ava-ghost { background: var(--md-surface-container); }

/* Tabs: M3 filter chips with an avatar, one per member */
.demo .demo-stage-section { padding: 32px 0 0; }
.demo .demo-stage-section .wrap.narrow { max-width: 960px; } /* five tabs on one line on a laptop */
.demo .demo-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin: 0 -2px; scroll-margin-top: 124px; }
.demo .demo-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 840px) { .demo .demo-tabs { flex-wrap: wrap; overflow: visible; } }
.demo .demo-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 16px 4px 6px; border: 1px solid var(--md-outline-variant); border-radius: var(--r-s); background: var(--md-surface-lowest); color: var(--md-on-surface-variant); font: 600 .9375rem var(--font); cursor: pointer; }
.demo .demo-tab:hover { background: var(--md-surface-low); }
.demo .demo-tab[aria-selected="true"] { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; }
.demo .demo-tab[aria-selected="true"] .demo-ava { background: var(--md-primary); color: var(--md-on-primary); }
.demo .demo-tab-t { display: grid; text-align: left; line-height: 1.2; }
.demo .demo-tab-role { font-size: .8125rem; font-weight: 400; }

/* The stage: the site's conversation mock card */
.demo .demo-panel { background: var(--md-surface-lowest); border: 1px solid var(--md-outline-variant); border-radius: var(--r-xl); padding: 16px; display: grid; gap: 16px; }
@media (min-width: 600px) { .demo .demo-panel { padding: 24px; box-shadow: var(--e1); } }
.demo .demo-agent-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--md-outline-variant); }
.demo .demo-agent-ht { min-width: 0; }
.demo .demo-agent-name { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 700; color: var(--md-on-surface); line-height: 1.3; }
.demo .demo-agent-role { margin: 2px 0 0; font-size: .875rem; color: var(--md-on-surface-variant); }
.demo .demo-work { display: grid; gap: 12px; min-width: 0; }
.demo .demo-next { margin: 0; padding: 16px; border-radius: var(--r-m); background: var(--md-surface-low); text-align: center; }
.demo .demo-end { margin: 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--md-surface-low); font-size: .9375rem; text-align: center; }

/* The chat look (Nexa, Callie): the site's .bubble */
.demo .demo-chat { display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: min(56vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px; }
.demo .demo-bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo .demo-bubble.demo-agent { align-self: flex-start; background: var(--md-surface-container); color: var(--md-on-surface); border-bottom-left-radius: 6px; }
.demo .demo-bubble.demo-user { align-self: flex-end; background: var(--md-primary); color: var(--md-on-primary); border-bottom-right-radius: 6px; }
.demo .demo-owner-note { align-self: stretch; padding: 10px 14px; border-radius: var(--r-m); background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); font-size: .875rem; display: grid; gap: 2px; }
.demo .demo-owner-note-k { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.demo .demo-typing { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.demo .demo-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--md-outline); animation: demo-dots 1.2s infinite ease-in-out; }
.demo .demo-typing i:nth-child(2) { animation-delay: .2s; }
.demo .demo-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes demo-dots { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.demo .demo-saved { display: flex; flex-direction: column; gap: 8px; }
.demo .demo-saved-label { margin: 0; align-self: stretch; background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); border-radius: var(--r-m); padding: 10px 14px; font-size: .875rem; font-weight: 600; }
.demo .demo-sample-link { display: inline-block; margin: 2px; padding: 0 8px; border-radius: var(--r-s); background: var(--md-surface-lowest); color: var(--md-on-surface-variant); border: 1px solid var(--md-outline-variant); font-size: .875rem; font-weight: 600; cursor: not-allowed; }
.demo .demo-tool { align-self: stretch; }

/* The card look (owner agents): what was asked, then the result */
.demo .demo-out { display: grid; gap: 12px; min-width: 0; }
.demo .demo-asked { justify-self: end; max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 18px; border-bottom-right-radius: 6px; background: var(--md-primary); color: var(--md-on-primary); font-size: .9375rem; overflow-wrap: anywhere; }
.demo .demo-result { min-width: 0; }
.demo .demo-skel { height: 14px; border-radius: var(--r-xs); background: linear-gradient(90deg, var(--md-surface-container), var(--md-surface-low), var(--md-surface-container)); background-size: 200% 100%; animation: demo-shimmer 1.4s infinite linear; }

/* The composer: an M3 outlined field with the dice and send icon buttons */
.demo .demo-ask { display: flex; align-items: flex-end; gap: 8px; }
.demo .demo-ask textarea { flex: 1; min-width: 0; min-height: 48px; height: 48px; max-height: 132px; padding: 12px 14px; resize: none; line-height: 1.5; }
.demo .demo-ask textarea:focus { padding: 11px 13px; }
.demo .demo-ask-meta { display: flex; justify-content: space-between; gap: 8px; margin: -8px 0 0; font-size: .8125rem; color: var(--md-on-surface-variant); }

/* The one call to action */
.demo .demo-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin: 24px 0 0; text-align: center; font-weight: 600; color: var(--md-on-surface); }

@media (prefers-reduced-motion: reduce) {
  .demo .demo-typing i, .demo .demo-skel, .demo .demo-member-wait *, .demo .demo-pop, .demo .demo-roll .icon { animation: none !important; }
}
