:root {
  --vs-bg: #070912;
  --vs-panel: #0d1020;
  --vs-panel-strong: #111427;
  --vs-text: #f7f6ff;
  --vs-muted: #a5abc0;
  --vs-line: rgba(162, 171, 211, .15);
  --vs-violet: #9675ff;
  --vs-cyan: #61dff4;
  --vs-max: 1560px;
  --vs-header: 78px;
}

body.vs-shell-mounted {
  min-height: 100vh;
  padding-top: var(--vs-header) !important;
  background: var(--vs-bg) !important;
  color: var(--vs-text);
}

/*
 * Legacy landing pages still ship broad element selectors such as
 * `nav { height: 100% }`, `section { padding: 80px 0 }` and fixed `header`
 * rules. The ecosystem shell is an isolated UI boundary and must win those
 * collisions regardless of the order in which a legacy page loads CSS.
 */
body.vs-shell-mounted > .vs-shell-header {
  position: fixed !important;
  z-index: 10000 !important;
  display: block !important;
  width: 100% !important;
  height: var(--vs-header) !important;
  min-height: var(--vs-header) !important;
  max-height: var(--vs-header) !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.vs-shell-mounted > .vs-shell-sky { display: block !important; }

.vs-shell-header .vs-shell-nav,
.vs-shell-footer nav,
.vs-assistant .vs-assistant-modes {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
}

.vs-shell-footer .vs-footer-group {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vs-assistant .vs-assistant-panel {
  width: min(570px, calc(100vw - 32px)) !important;
  height: min(710px, calc(100vh - 108px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vs-shell-footer .vs-footer-group--directory { padding: 18px !important; }

.vs-assistant .vs-assistant-head {
  position: static !important;
  z-index: auto !important;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 20px !important;
}

body.vs-shell-mounted > .header,
body.vs-shell-mounted > header:not(.vs-shell-header),
body.vs-shell-mounted > nav.nav,
body.vs-shell-mounted > footer:not(.vs-shell-footer),
.vs-legacy-shell {
  display: none !important;
}

.vs-shell,
.vs-shell * {
  box-sizing: border-box;
}

.vs-shell a { text-decoration: none; }
.vs-shell button,
.vs-shell input,
.vs-shell textarea { font: inherit; }

.vs-shell-sky {
  position: fixed;
  z-index: -20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 83% 13%, rgba(113, 75, 218, .13), transparent 34%),
    radial-gradient(circle at 16% 47%, rgba(47, 166, 205, .07), transparent 32%),
    linear-gradient(180deg, #080a14, #070912 58%, #080a13);
}

.vs-shell-sky::before,
.vs-shell-sky::after {
  position: absolute;
  width: 74vw;
  height: 34vw;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(126, 94, 229, .11), rgba(73, 176, 218, .04) 38%, transparent 70%);
  filter: blur(35px);
  content: "";
  animation: vs-cloud-drift 28s ease-in-out infinite alternate;
}

.vs-shell-sky::before { top: 9%; left: -24%; }
.vs-shell-sky::after { right: -30%; bottom: 8%; animation-duration: 36s; animation-direction: alternate-reverse; }

.vs-shell-header {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--vs-header) !important;
  min-height: var(--vs-header) !important;
  max-height: var(--vs-header) !important;
  border-bottom: 1px solid var(--vs-line);
  background: rgba(7, 9, 18, .84);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  color: var(--vs-text);
}

.vs-shell-header__inner {
  display: grid;
  width: min(var(--vs-max), calc(100% - 40px));
  height: 100%;
  margin: auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.vs-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  font: 760 20px/1 Inter, system-ui, sans-serif;
  letter-spacing: -.03em;
}

.vs-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 13px rgba(128, 87, 255, .42));
}

.vs-brand em { color: var(--vs-violet); font-style: normal; }

.vs-shell-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.vs-shell-nav a,
.vs-header-signin {
  color: #aeb4c9 !important;
  font: 650 13px/1 Inter, system-ui, sans-serif;
  transition: color .2s ease;
}

.vs-shell-nav a:hover,
.vs-shell-nav a[aria-current="page"],
.vs-header-signin:hover { color: #fff !important; }

.vs-header-actions { display: flex; align-items: center; gap: 13px; }
.vs-header-cta {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(176, 151, 255, .5);
  border-radius: 12px;
  background: linear-gradient(125deg, #8a5ef0, #536ff2);
  box-shadow: 0 12px 35px rgba(100, 69, 221, .28);
  color: #fff !important;
  font: 760 13px/1 Inter, system-ui, sans-serif;
}

.vs-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--vs-line);
  border-radius: 11px;
  background: rgba(255,255,255,.03);
  color: white;
}

.vs-menu-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.vs-shell-footer {
  position: relative;
  z-index: 3;
  margin-top: 90px;
  padding: 60px max(24px, calc((100vw - var(--vs-max)) / 2)) 28px;
  border-top: 1px solid var(--vs-line);
  background: linear-gradient(180deg, rgba(10,12,23,.96), #070912);
  color: var(--vs-muted);
  font: 400 14px/1.55 Inter, system-ui, sans-serif;
}

.vs-footer-intro {
  display: flex;
  padding-bottom: 34px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--vs-line);
}

.vs-footer-intro p { max-width: 470px; margin: 0 auto 0 0; color: #b8bed2; }
.vs-socials { display: flex; gap: 8px; }
.vs-socials a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--vs-line);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
  color: #b8bed2 !important;
  font-weight: 800;
  transition: transform .2s, color .2s, border-color .2s;
}
.vs-socials a:hover { transform: translateY(-2px); border-color: rgba(151,119,255,.6); color: #fff !important; }

.vs-footer-grid {
  display: grid;
  padding: 44px 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px 28px;
}

.vs-footer-group h3 {
  margin: 0 0 16px;
  color: #f5f3ff;
  font: 800 10px/1.2 Inter, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vs-footer-group ul { display: grid; margin: 0; padding: 0; gap: 8px; list-style: none; }
.vs-footer-group a { color: #939bb2 !important; font-size: 12px; }
.vs-footer-group a:hover { color: #fff !important; }
.vs-footer-group--directory { padding: 18px; border: 1px solid var(--vs-line); border-radius: 15px; background: rgba(139, 98, 246, .045); }
.vs-footer-child a { padding-left: 9px; color: #788097 !important; }

.vs-footer-meta {
  display: flex;
  padding-top: 24px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--vs-line);
  font-size: 11px;
}
.vs-footer-meta nav { display: flex; flex-wrap: wrap; gap: 14px; }
.vs-footer-meta a { color: #858ca1 !important; }

.vs-assistant {
  position: fixed;
  z-index: 10100;
  right: 22px;
  bottom: 22px;
  color: var(--vs-text);
  font-family: Inter, system-ui, sans-serif;
}

.vs-assistant-launcher {
  display: flex;
  height: 64px;
  padding: 5px 17px 5px 6px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(151,119,255,.5);
  border-radius: 18px 999px 999px 18px;
  background: linear-gradient(120deg, rgba(13,16,31,.97), rgba(18,12,35,.95));
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 45px rgba(107,72,218,.24), inset 0 1px rgba(255,255,255,.08);
  color: white;
  cursor: pointer;
}

.vs-assistant-orb { position: relative; display: grid; width: 52px; height: 52px; place-items: center; }
.vs-assistant-orb img { position: relative; z-index: 2; width: 45px; height: 45px; border-radius: 50%; }
.vs-assistant-orb::before,
.vs-assistant-orb::after { position: absolute; inset: 0; border: 1px solid rgba(99,224,245,.47); border-radius: 50%; content: ""; animation: vs-orbit 5s linear infinite; }
.vs-assistant-orb::after { inset: 6px -3px; border-color: rgba(246,104,211,.42); animation-direction: reverse; animation-duration: 3.8s; }
.vs-assistant-launcher > span:nth-child(2) { display: grid; text-align: left; }
.vs-assistant-launcher small { color: #9488c0; font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.vs-assistant-launcher b { margin-top: 3px; font-size: 13px; }

.vs-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 75px;
  display: grid;
  width: min(470px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 120px));
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid rgba(151,119,255,.43);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(17,20,39,.985), rgba(8,10,20,.99));
  box-shadow: 0 40px 120px rgba(0,0,0,.72), 0 0 70px rgba(105,65,220,.21), inset 0 1px rgba(255,255,255,.09);
}

.vs-assistant-panel[hidden] { display: none; }
.vs-assistant-head { display: flex; padding: 20px; align-items: center; gap: 12px; border-bottom: 1px solid var(--vs-line); background: linear-gradient(105deg, rgba(138,94,240,.11), transparent); }
.vs-assistant-head img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 24px rgba(124,85,255,.42); }
.vs-assistant-head > span { display: grid; margin-right: auto; }
.vs-assistant-head em { color: #9183c4; font-size: 7px; font-weight: 850; letter-spacing: .14em; font-style: normal; }
.vs-assistant-head b { margin-top: 2px; font-size: 16px; }
.vs-assistant-close { width: 38px; height: 38px; border: 1px solid var(--vs-line); border-radius: 12px; background: rgba(255,255,255,.025); color: var(--vs-muted); cursor: pointer; }

.vs-assistant-modes { display: grid; padding: 12px 16px; grid-template-columns: repeat(3,1fr); gap: 7px; border-bottom: 1px solid var(--vs-line); }
.vs-assistant-modes button { padding: 9px 5px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #858da5; font-size: 10px; font-weight: 750; cursor: pointer; }
.vs-assistant-modes button.is-active { border-color: rgba(151,119,255,.38); background: rgba(151,119,255,.1); color: #fff; }
.vs-assistant-messages { overflow: auto; padding: 20px; }
.vs-message { display: flex; margin: 0 0 15px; gap: 10px; align-items: flex-start; }
.vs-message img { width: 28px; height: 28px; border-radius: 50%; }
.vs-message p { max-width: 85%; margin: 0; padding: 12px 14px; border: 1px solid var(--vs-line); border-radius: 4px 16px 16px; background: rgba(255,255,255,.035); color: #bdc3d4; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.vs-message--user { justify-content: flex-end; }
.vs-message--user p { border-color: rgba(151,119,255,.3); border-radius: 16px 4px 16px 16px; background: rgba(132,92,237,.13); color: #eeeaff; }
.vs-assistant-form { display: grid; padding: 13px 15px; grid-template-columns: 1fr 46px; gap: 9px; border-top: 1px solid var(--vs-line); }
.vs-assistant-form textarea { min-height: 46px; max-height: 110px; resize: none; padding: 13px 14px; border: 1px solid var(--vs-line); border-radius: 13px; outline: 0; background: rgba(255,255,255,.025); color: #fff; font-size: 12px; }
.vs-assistant-form textarea:focus { border-color: rgba(151,119,255,.55); box-shadow: 0 0 0 3px rgba(151,119,255,.08); }
.vs-assistant-form button { border: 0; border-radius: 13px; background: linear-gradient(135deg,#9d6cf3,#5f70ef); color: #fff; font-size: 20px; cursor: pointer; }
.vs-assistant-note { padding: 0 16px 13px; color: #666e86; font-size: 9px; text-align: center; }

@keyframes vs-cloud-drift { to { transform: translate3d(33vw, 10vh, 0) scale(1.16); } }
@keyframes vs-orbit { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .vs-shell-header__inner { grid-template-columns: auto auto 1fr; }
  .vs-menu-toggle { display: block; }
  .vs-shell-nav { position: fixed; top: var(--vs-header); right: 0; left: 0; display: none; padding: 18px 24px; align-items: stretch; flex-direction: column; gap: 0; border-bottom: 1px solid var(--vs-line); background: rgba(7,9,18,.98); }
  .vs-shell-nav.is-open { display: flex; }
  .vs-shell-nav a { padding: 13px 2px; border-bottom: 1px solid var(--vs-line); }
  .vs-header-actions { justify-self: end; }
  .vs-footer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  :root { --vs-header: 68px; }
  .vs-shell-header__inner { width: calc(100% - 24px); gap: 9px; }
  .vs-brand img { width: 39px; height: 39px; }
  .vs-brand { font-size: 17px; }
  .vs-header-signin { display: none; }
  .vs-header-cta { min-height: 38px; padding: 0 11px; font-size: 11px; }
  .vs-footer-intro { align-items: flex-start; flex-direction: column; }
  .vs-footer-intro p { margin: 0; }
  .vs-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 18px; }
  .vs-footer-group--directory { padding: 14px; }
  .vs-footer-meta { flex-direction: column; }
  .vs-assistant { right: 12px; bottom: 12px; }
  .vs-assistant-launcher { width: 58px; padding: 4px; border-radius: 18px; }
  .vs-assistant-launcher > span:nth-child(2) { display: none; }
  .vs-assistant-panel { right: -3px; bottom: 70px; height: min(650px, calc(100vh - 96px)); }

  /*
   * Older information pages inherited the desktop flex treatment for every
   * hero, leaving headings and supporting copy in narrow side-by-side columns
   * on phones. The canonical mobile shell stacks that opening story.
   */
  body.vs-shell-mounted .hero {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 18px !important;
    text-align: center !important;
  }
  body.vs-shell-mounted .hero > h1,
  body.vs-shell-mounted .hero > p {
    width: 100% !important;
    max-width: 680px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
  body.vs-shell-mounted .hero > .search-container {
    width: 100% !important;
    max-width: 600px !important;
  }

}

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

/* Unified glass assistant and footer clearance, August 2026. */
.vs-shell-footer { padding-bottom: 126px; }

.vs-assistant-launcher {
  position: relative;
  border-color: rgba(169,143,255,.42);
  border-radius: 999px;
  background: linear-gradient(112deg, rgba(10,13,28,.92), rgba(15,12,31,.84));
  box-shadow: 0 18px 55px rgba(0,0,0,.42), 0 0 34px rgba(112,83,230,.16), inset 0 1px rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  backdrop-filter: blur(18px) saturate(132%);
}

.vs-assistant-launcher::before,
.vs-assistant-launcher::after {
  display: none;
  content: none;
}

.vs-assistant-orb {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(178,155,255,.56);
  border-radius: 50%;
  clip-path: none;
  background: radial-gradient(circle,rgba(105,79,210,.28),rgba(6,9,21,.9) 72%);
  box-shadow: 0 0 0 3px rgba(94,215,242,.05), 0 0 24px rgba(116,87,239,.32), inset 0 0 18px rgba(94,215,242,.09);
}
.vs-assistant-orb::before { inset: 4px; border: 1px solid rgba(91,216,242,.2); clip-path: none; border-radius: 50%; background: transparent; animation: none; }
.vs-assistant-orb::after { display: none; }
.vs-assistant-orb img { width: 42px; height: 42px; border-radius: 50%; clip-path: none; }

.vs-assistant-panel {
  width: min(570px, calc(100vw - 32px));
  height: min(710px, calc(100vh - 108px));
  overflow: hidden;
  border: 1px solid rgba(164,144,231,.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 4%,rgba(67,201,239,.08),transparent 32%),
    radial-gradient(circle at 8% 2%,rgba(130,91,234,.13),transparent 35%),
    rgba(5,8,18,.78);
  box-shadow: 0 34px 100px rgba(0,0,0,.62), 0 0 52px rgba(102,72,212,.14), inset 0 1px rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(26px) saturate(132%);
  backdrop-filter: blur(26px) saturate(132%);
  isolation: isolate;
}
.vs-assistant-panel::before {
  display: none;
  content: none;
}
.vs-assistant-panel::after {
  display: none;
  content: none;
}
.vs-assistant-head,
.vs-assistant-modes,
.vs-assistant-form,
.vs-assistant-note {
  border-color: rgba(164,146,221,.18);
  background: rgba(5,8,18,.28);
  -webkit-backdrop-filter: blur(16px) saturate(132%);
  backdrop-filter: blur(16px) saturate(132%);
}
.vs-assistant-head { clip-path: none; }
.vs-assistant-messages { background: transparent; }
.vs-message p { border-color: rgba(169,150,226,.21); background: rgba(5,8,18,.34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vs-message--user p { background: rgba(99,62,187,.24); }
.vs-assistant-form textarea { background: rgba(5,8,18,.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

@media (max-width:760px) {
  .vs-shell-footer { padding-bottom: 108px; }
  .vs-assistant-panel { right: -2px; bottom: 70px; overflow: hidden; border-radius: 20px; }
  .vs-assistant-launcher { border-radius: 999px; }
}
