/* BAMSI Landing v1 — Hero + seamless onboarding transition */

:root {
  --blue: #165DFF;
  --blue-dark: #104BD6;
  --yellow: #ffd51f;
  --yellow-deep: #f2bd00;
  --ink: #0b0b0c;
  --muted: #66666d;
  --paper: #ffffff;
  --line: #e8e8ec;
  --soft: #f5f6f8;
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button, input { font: inherit; }

a { color: inherit; text-decoration: none; }

.page-shell { min-height: 100vh; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px clamp(24px, 4vw, 72px) 28px;
  isolation: isolate;
}

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  transition: opacity .2s ease, transform .2s ease;
}

.nav-links a:hover {
  opacity: .55;
  transform: translateY(-1px);
}

.nav-login {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
  align-items: center;
  gap: 32px;
  min-height: 710px;
}

.hero-copy {
  position: relative;
  z-index: 8;
  max-width: 860px;
  padding: 42px 0 48px;
  transition:
    opacity .4s ease,
    transform .6s cubic-bezier(.2,.8,.2,1),
    filter .4s ease;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-family: Impact, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(68px, 8.35vw, 142px);
  font-stretch: condensed;
  font-weight: 950;
  line-height: .80;
  letter-spacing: -0.042em;
  text-transform: none;
}

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

.hero-kicker {
  margin: 30px 0 0;
  font-size: clamp(24px, 2.3vw, 42px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 590px;
  margin: 22px 0 0;
  color: #35353a;
  font-size: clamp(17px, 1.18vw, 20px);
  line-height: 1.45;
  font-weight: 540;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px 24px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.primary-cta {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: min(100%, 440px);
  padding: 20px 24px 20px 27px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 13px 32px rgba(21, 87, 255, .20);
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .015em;
  transition:
    background .2s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.primary-cta:hover {
  transform: translateY(-3px);
  background: var(--blue-dark);
  box-shadow: 0 18px 38px rgba(21, 87, 255, .28);
}

.primary-cta:active { transform: translateY(0) scale(.985); }

.cta-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -10px -11px -10px 0;
  border-radius: 50%;
  color: #fff;
  background: #000;
  font-size: 25px;
  line-height: 1;
}

.trial-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.hero-art {
  position: relative;
  z-index: 4;
  align-self: stretch;
  min-height: 620px;
  display: grid;
  place-items: center;
  transition:
    opacity .5s ease,
    transform .7s cubic-bezier(.2,.8,.2,1);
}

.banana-tip,
.hero-footer {
  position: relative;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: #85858b;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Seamless start state */

.onboarding-card {
  position: absolute;
  z-index: 14;
  left: 0;
  top: 50%;
  width: min(760px, 56vw);
  padding: clamp(34px, 5vw, 70px);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(13, 18, 33, .13);
  border: 1px solid rgba(0, 0, 0, .055);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-42%) scale(.96);
  transition:
    opacity .45s ease,
    transform .65s cubic-bezier(.2,.8,.2,1);
}

.onboarding-card h2 {
  margin: 0;
  font-family: Impact, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(52px, 5.8vw, 95px);
  line-height: .83;
  letter-spacing: -.045em;
  font-weight: 950;
}

.onboarding-card > p:not(.eyebrow):not(.tiny-note) {
  max-width: 570px;
  margin: 25px 0 0;
  color: #3b3b40;
  font-size: 19px;
  line-height: 1.42;
}

.back-button {
  position: absolute;
  right: 25px;
  top: 24px;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 23px;
}

.business-form { margin-top: 34px; }

.business-form label {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.url-field {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dedfe3;
  padding: 0 6px 0 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.url-field:focus-within {
  border-color: #cfd1d6;
  box-shadow: none;
}

.url-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  color: #242428;
  font-size: 18px;
}

.url-field input::placeholder { color: #a6a8ad; }

.url-field button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1677f2;
  color: #fff;
  cursor: pointer;
  transition: opacity .16s ease, background-color .16s ease;
}

.url-field button:disabled {
  background: #9dc9fb;
  opacity: .52;
  cursor: default;
}

.url-send-icon {
  width: 25px;
  height: 20px;
  display: block;
  overflow: visible;
}

.url-send-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.75px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.tiny-note {
  margin: 16px 0 0;
  color: #86868d;
  font-size: 12px;
  line-height: 1.45;
}

body.starting .hero-copy {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(-22px) scale(.97);
  pointer-events: none;
}

body.starting .hero-art {
  transform: translateX(14%) scale(.78);
  opacity: .68;
}

body.starting .onboarding-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.future-anchor {
  height: 1px;
  width: 1px;
}

50% { transform: translate(5%, -3.2%) rotate(.55deg); }
}
  50% { transform: translate(5%, -3.2%) rotate(.55deg); }
}
  50% { transform: translate(5%, -3.2%) rotate(.55deg); }
}
  50% { transform: translate(5%, -1.5%) rotate(.6deg); }
}
50% { transform: translate(1%, 0%) rotate(1.4deg); }
}

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

@media (max-width: 960px) {
  .hero {
    padding: 20px 22px 22px;
  }

  .nav-links > a:not(.nav-login) { display: none; }

  .hero-stage {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 54px 0 26px;
  }

  .hero-copy {
    padding: 0;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(63px, 15.5vw, 118px);
    line-height: .8;
  }

  h1 span { white-space: normal; }

  .hero-description { max-width: 560px; }

  .hero-art {
    min-height: 430px;
    margin-top: -12px;
  }

  .onboarding-card {
    top: 50%;
    width: 100%;
    max-width: 700px;
  }

  body.starting .hero-art {
    transform: translate(18%, 18%) scale(.72);
    opacity: .24;
  }
}

@media (max-width: 620px) {
  .hero { min-height: 100svh; }

  .brand { font-size: 25px; }

  .nav-login {
    padding: 9px 15px;
    font-size: 13px;
  }

  .hero-stage {
    padding-top: 42px;
    gap: 10px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(58px, 18.5vw, 92px);
  }

  .hero-kicker {
    margin-top: 22px;
    font-size: 25px;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 25px;
    display: block;
  }

  .primary-cta {
    width: 100%;
    min-width: 0;
  }

  .trial-note {
    margin-top: 13px;
    text-align: center;
  }

  .hero-art {
    min-height: 300px;
    margin: -6px -18px 0;
  }

  .hero-footer {
    margin-top: 5px;
    font-size: 10px;
  }

  .hero-footer span:last-child { display: none; }

  .onboarding-card {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 50%;
    width: auto;
    padding: 30px 22px 26px;
    border-radius: 30px;
  }

  .onboarding-card h2 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .onboarding-card > p:not(.eyebrow):not(.tiny-note) {
    font-size: 16px;
  }
}


/* v2 hero refinements */
.hero-art::before {
  content: "";
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,213,31,.22), rgba(255,213,31,0) 66%);
  right: 4%;
  bottom: 0;
  z-index: -2;
}

.primary-cta {
  position: relative;
  overflow: hidden;
}

.primary-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.15) 52%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.primary-cta:hover::before {
  transform: translateX(120%);
}

@media (min-width: 961px) {
  .hero-copy { padding-top: 58px; }
  .hero-art { transform: translateY(10px); }
}

@media (max-width: 620px) {
  }


/* ===== Бамси Hero v4: accepted fixes ===== */

/* External font only; no font file is bundled. */
.hero-footer {
  display: none;
}

.hero-description {
  max-width: 560px;
}

.trial-note {
  color: #696970;
  font-weight: 620;
}

/* Arrow is deliberately black/white, never yellow. */
/* No yellow decorative circles/lines anywhere in Hero. */
.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
/* Shadow stays on the floor. Only the banana flies. */
@media (min-width: 961px) {
  .hero-stage {
    grid-template-columns: minmax(0, .94fr) minmax(500px, 1.06fr);
  }

  .hero-art {
    overflow: visible;
    transform: translateY(4px);
  }
}

@media (max-width: 960px) {
  }

@media (max-width: 620px) {
  }


/* ===== Бамси Hero v5 ===== */

/* Natural shadow breathes opposite to banana height. */
50% {
    transform: translateX(-50%) scaleX(.72) scaleY(.66);
    opacity: .38;
  }
}

/* Crisp sticker overlays the low-resolution baked sticker completely. */
/* Force CTA arrow to accepted black/white treatment. */
/* No decorative yellow artifacts. */
.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
@media (max-width: 960px) {
  }

@media (max-width: 620px) {
  }


/* ===== Бамси Hero v7 ===== */

/* No forced uppercase anywhere on the hero title. */
h1, h1 span {
  text-transform: none !important;
}

/* Old raster shadow was removed from PNG; this is the only shadow. */
50% {
    transform: translateX(-50%) scaleX(.68) scaleY(.58);
    opacity: .32;
  }
}

/* Crisp badge. Slightly larger with a white backing so it fully covers
   the old low-res sticker baked into the source image. */
/* Accepted CTA treatment. */
/* Align the note with the point where the rounded button edge ends /
   where the button text begins. */
.trial-note {
  margin-left: 28px !important;
}

/* No yellow decorative artifacts. */
.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
.orbit-two {
  display: none !important;
  content: none !important;
}

@media (max-width: 960px) {
  .trial-note {
    margin-left: 24px !important;
  }
}

@media (max-width: 620px) {
  .trial-note {
    margin-left: 20px !important;
  }
}


/* ===== Бамси Hero v9: clean fix ===== */

h1, h1 span {
  text-transform: none !important;
}

/* Only one live CSS shadow. */
50% {
    transform: translateX(-50%) scaleX(.66) scaleY(.58);
    opacity: .28;
  }
}

/* White cover completely hides the old baked sticker.
   The blue badge sits above it. No PNG inpainting. */
/* Note aligns with button text, not rounded edge. */
.trial-note {
  margin-left: 28px !important;
}

.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
.orbit-two {
  display: none !important;
  content: none !important;
}

@media (max-width: 960px) {
  .trial-note {
    margin-left: 24px !important;
  }
}

@media (max-width: 620px) {
  .trial-note {
    margin-left: 20px !important;
  }
}


/* ===== Бамси Hero v10 ===== */

/* Large white mask fully hides the old baked blue sticker.
   It is intentionally wider and shifted right compared with v9. */
/* Only visible sticker. */
/* CTA text is no longer bold-heavy. */
.primary-cta {
  font-weight: 600 !important;
}

/* Black circle remains; arrow itself is visually lighter/thinner. */
.primary-cta .cta-arrow {
  color: #fff !important;
  background: #0b0b0c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 300 !important;
  font-size: 27px !important;
  line-height: 1 !important;
}

/* Supporting line under button is regular weight. */
.trial-note {
  margin-left: 28px !important;
  font-weight: 400 !important;
}

/* No hidden decoration can reappear. */
.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
.orbit-two {
  display: none !important;
  content: none !important;
}

@media (max-width: 960px) {
  .trial-note {
    margin-left: 24px !important;
  }
}

@media (max-width: 620px) {
  .trial-note {
    margin-left: 20px !important;
  }
}


/* ===== Бамси Hero v11 ===== */

h1, h1 span {
  text-transform: none !important;
}

/* Single blue badge, no white rim or wrapper. */
/* Button text: normal case and lighter weight. */
.primary-cta {
  text-transform: none !important;
  font-weight: 500 !important;
}

/* Supporting note remains regular. */
.trial-note {
  font-weight: 400 !important;
}

/* Thin arrow look. */
.primary-cta .cta-arrow {
  color: #fff !important;
  background: #0b0b0c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 300 !important;
  font-size: 25px !important;
}

@media (max-width: 960px) {
  }

@media (max-width: 620px) {
  }


/* ===== Бамси Hero v12 ===== */

h1, h1 span {
  text-transform: none !important;
}

/* Clean HTML sticker. No white rim because banana PNG is now clean. */
/* Button: normal case and regular weight. */
.primary-cta {
  text-transform: none !important;
  font-weight: 500 !important;
}

/* Restore former arrow form; only slightly thinner. */
.primary-cta .cta-arrow {
  color: #fff !important;
  background: #0b0b0c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  transform: scaleX(.94);
}

/* Supporting text remains regular. */
.trial-note {
  font-weight: 400 !important;
  margin-left: 28px !important;
}

/* Never show decorative yellow elements. */
.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
.orbit-two {
  display: none !important;
  content: none !important;
}

@media (max-width: 960px) {
  .trial-note {
    margin-left: 24px !important;
  }
}

@media (max-width: 620px) {
  .trial-note {
    margin-left: 20px !important;
  }
}


/* ===== Бамси Hero v13: restore approved composition ===== */

/* Real banana: smaller and lifted back into the right column. */
.banana {
  position: relative;
  z-index: 3;
  width: min(84%, 640px);
  max-width: none;
  transform-origin: 50% 58%;
  animation: banana-float 5.5s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes banana-float {
  0%, 100% {
    transform: translate(11%, -1%) rotate(0deg);
  }
  50% {
    transform: translate(11%, -5%) rotate(.45deg);
  }
}

/* Natural live floor shadow: stationary in position, breathes with height. */
.banana-shadow {
  position: absolute;
  z-index: 1;
  left: 58%;
  bottom: 16.5%;
  width: min(42%, 315px);
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(24,19,11,.25) 0%,
    rgba(24,19,11,.14) 34%,
    rgba(24,19,11,.05) 58%,
    rgba(24,19,11,0) 78%
  );
  filter: blur(7px);
  transform-origin: center center;
  pointer-events: none;
  animation: banana-shadow-breathe 5.5s ease-in-out infinite;
}

@keyframes banana-shadow-breathe {
  0%, 100% {
    transform: translateX(-50%) scaleX(1.08) scaleY(1);
    opacity: .76;
  }
  50% {
    transform: translateX(-50%) scaleX(.70) scaleY(.60);
    opacity: .30;
  }
}

/* One clean blue sticker, attached visually to the banana. */
.banana-badge {
  position: absolute;
  z-index: 8;
  top: 32.5%;
  right: 7.5%;
  width: clamp(136px, 9.3vw, 164px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #165DFF;
  color: #fff;
  box-shadow: 0 12px 26px rgba(22,93,255,.18);
  transform: rotate(-3deg);
  text-align: center;
  pointer-events: none;
}

.banana-badge-number {
  display: block;
  margin-top: -3px;
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(49px, 3.7vw, 64px);
  line-height: .82;
  letter-spacing: -.04em;
  font-weight: 400;
}

.banana-badge-text {
  display: block;
  margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, .95vw, 16px);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Keep accepted button typography and original arrow geometry. */
.primary-cta {
  text-transform: none !important;
  font-weight: 500 !important;
}

.primary-cta .cta-arrow {
  color: #fff !important;
  background: #0b0b0c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  transform: scaleX(.97);
}

.trial-note {
  font-weight: 400 !important;
  margin-left: 28px !important;
}

/* No yellow decorative artifacts. */
.hero-copy::after,
.hero-art::before,
.yellow-orbit,
.orbit-one,
.orbit-two {
  display: none !important;
  content: none !important;
}

@media (max-width: 960px) {
  .banana {
    width: min(78vw, 590px);
  }

  .banana-shadow {
    left: 55%;
    bottom: 12%;
    width: min(43vw, 295px);
  }

  .banana-badge {
    top: 31%;
    right: 8%;
    width: 126px;
  }

  .trial-note {
    margin-left: 24px !important;
  }
}

@media (max-width: 620px) {
  .banana {
    width: 95vw;
    max-width: 520px;
  }

  .banana-shadow {
    left: 52%;
    bottom: 8%;
    width: 50vw;
    height: 16px;
  }

  .banana-badge {
    top: 28%;
    right: 5%;
    width: 102px;
  }

  .banana-badge-number {
    font-size: 41px;
  }

  .banana-badge-text {
    font-size: 10px;
  }

  .trial-note {
    margin-left: 20px !important;
  }
}


/* ===== Бамси Hero v15: ONLY arrow thickness ===== */

.primary-cta .cta-arrow {
  color: #fff !important;
  background: #0b0b0c !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 300 !important;
  transform: none !important;
}


/* ===== Бамси Hero v16: restore original arrow shape ===== */

/* Circle geometry remains exactly as before. */
.primary-cta .cta-arrow {
  color: #fff !important;
  background: #0b0b0c !important;
  transform: none !important;
  font-size: 0 !important;
}

/* Original arrow proportions from the first Hero:
   long shaft + large open chevron.
   Only stroke is reduced slightly (~1/3 mm visually). */
.cta-arrow-icon {
  width: 31px;
  height: 24px;
  display: block;
  overflow: visible;
}

.cta-arrow-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.75px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}


/* ===== Бамси Hero v17: mobile levitation only ===== */
@media (max-width: 620px) {
  .hero-art {
    min-height: 360px !important;
    margin: 12px -8px 0 !important;
    overflow: visible !important;
  }

  .banana {
    width: 82vw !important;
    max-width: 390px !important;
    animation: banana-float-mobile 5.2s ease-in-out infinite !important;
  }

  .banana-shadow {
    left: 63% !important;
    bottom: 25% !important;
    width: 38vw !important;
    max-width: 150px !important;
    height: 14px !important;
    filter: blur(6px) !important;
    animation: banana-shadow-breathe-mobile 5.2s ease-in-out infinite !important;
  }

  .banana-badge {
    top: 24% !important;
    right: 8% !important;
    width: 92px !important;
  }

  .banana-badge-number {
    font-size: 39px !important;
  }

  .banana-badge-text {
    font-size: 10px !important;
  }
}

@keyframes banana-float-mobile {
  0%, 100% {
    transform: translate(16%, -9%) rotate(0deg);
  }
  50% {
    transform: translate(16%, -15%) rotate(.55deg);
  }
}

@keyframes banana-shadow-breathe-mobile {
  0%, 100% {
    transform: translateX(-50%) scaleX(1.03) scaleY(1);
    opacity: .62;
  }
  50% {
    transform: translateX(-50%) scaleX(.74) scaleY(.62);
    opacity: .24;
  }
}

/* ===== Бамси Hero v18: mobile final composition only ===== */
@media (max-width: 620px) {
  /* CTA: clean flat blue, move button + note slightly lower as one block. */
  .hero-actions {
    margin-top: 34px !important;
  }

  .primary-cta {
    background: #165DFF !important;
    box-shadow: none !important;
  }

  .primary-cta:hover,
  .primary-cta:active {
    background: #165DFF !important;
    box-shadow: none !important;
  }

  /* Keep the whole banana visible inside the mobile viewport area. */
  .hero-art {
    min-height: 350px !important;
    height: min(41svh, 390px) !important;
    margin: 8px -8px 0 !important;
    overflow: visible !important;
  }

  /* Same banana asset, shape and tilt; only scale/position changes. */
  .banana {
    width: min(76vw, 350px) !important;
    max-width: none !important;
    animation: banana-float-mobile-v18 5.2s ease-in-out infinite !important;
  }

  .banana-shadow {
    left: 55% !important;
    bottom: 9% !important;
    width: min(34vw, 145px) !important;
    height: 13px !important;
    filter: blur(6px) !important;
    animation: banana-shadow-mobile-v18 5.2s ease-in-out infinite !important;
  }

  .banana-badge {
    top: 25% !important;
    right: 14% !important;
    width: 92px !important;
  }
}

@keyframes banana-float-mobile-v18 {
  0%, 100% { transform: translate(0, -3%) rotate(0deg); }
  50%      { transform: translate(0, -10%) rotate(.45deg); }
}

@keyframes banana-shadow-mobile-v18 {
  0%, 100% {
    transform: translateX(-50%) scaleX(1.05) scaleY(1);
    opacity: .58;
  }
  50% {
    transform: translateX(-50%) scaleX(.72) scaleY(.62);
    opacity: .22;
  }
}

/* ===== BAMSI local UX v30: VK -> real Test Chat ===== */
.demo-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  background: #f3f3f3;
  color: #2e2e31;
  font-family: Arial, Helvetica, sans-serif;
}

body.demo-active { overflow: hidden; }
body.demo-active .hero,
body.demo-active .future-anchor { display: none; }
body.demo-active .demo-screen { display: block; }

.demo-shell {
  min-height: 100svh;
  padding: 22px 32px 34px;
}

.demo-label {
  color: #b9b9b9;
  font-size: 24px;
  line-height: 1;
}

.demo-phone {
  width: min(650px, calc(100vw - 48px));
  height: min(690px, calc(100svh - 130px));
  min-height: 520px;
  margin: 105px auto 0;
  border: 2px solid #111;
  border-radius: 38px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.demo-phone.ready {
  border: 4px solid #168cf2;
}

.demo-chat {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 70px 54px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demo-loading {
  margin: auto;
  text-align: center;
  display: grid;
  gap: 9px;
  color: #777;
  font-size: 17px;
}
.demo-loading strong { color: #333; font-size: 22px; font-weight: 500; }

.demo-starters {
  margin-top: auto;
  display: grid;
  gap: 13px;
  padding-bottom: 8px;
}

.demo-starter {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #343438;
  text-align: left;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}
.demo-starter:hover { text-decoration: underline; }

.demo-message {
  max-width: 78%;
  font-size: 18px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.demo-message.user {
  align-self: flex-end;
  padding: 16px 24px;
  border-radius: 999px;
  background: #ededed;
}
.demo-message.ai { align-self: flex-start; }

.demo-form {
  flex: 0 0 auto;
  margin: 0 16px 16px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  border-radius: 999px;
  padding: 0 5px 0 18px;
  background: linear-gradient(100deg, #65a1ff 0%, #ae9ae9 48%, #ffad73 100%);
}
.demo-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 19px;
}
.demo-form input::placeholder { color: rgba(255,255,255,.94); }
.demo-form button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.demo-form button:disabled { opacity: .45; cursor: default; }

.demo-back {
  display: block;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 620px) {
  .demo-shell { padding: 18px 14px 20px; }
  .demo-label { font-size: 19px; }
  .demo-phone {
    width: 100%;
    height: calc(100svh - 90px);
    min-height: 0;
    margin-top: 28px;
    border-radius: 30px;
  }
  .demo-chat { padding: 42px 28px 20px; }
  .demo-message { max-width: 88%; font-size: 16px; }
  .demo-starter { font-size: 17px; }
  .demo-form { margin: 0 10px 10px; }
  .demo-form input { font-size: 17px; }
  .demo-back { display: none; }
}


/* ===== BAMSI local UX v35: approved demo chat polish ===== */
.demo-phone,
.demo-phone.ready {
  border: 1.5px solid #b8bcc2;
  box-shadow: none;
}

.demo-starters {
  gap: 12px;
  padding: 0 0 10px;
}

.demo-starter {
  color: #343438;
  font-size: 18px;
  line-height: 1.32;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.demo-message.user {
  width: fit-content;
  max-width: min(72%, 520px);
  padding: 14px 20px;
  border-radius: 30px;
  background: #ededed;
  overflow-wrap: anywhere;
}

.demo-form {
  min-height: 58px;
  grid-template-columns: 1fr 48px;
  border: 1px solid #dedfe3;
  background: #fff;
  padding: 0 6px 0 20px;
}

.demo-form input {
  color: #242428;
  font-size: 18px;
}

.demo-form input::placeholder {
  color: #a6a8ad;
}

.demo-form button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #1677f2;
  color: #fff;
  transition: opacity .16s ease, background-color .16s ease;
}

.demo-form button:disabled {
  background: #9dc9fb;
  opacity: .52;
  cursor: default;
}

.demo-send-icon {
  width: 25px;
  height: 20px;
  display: block;
  transform: rotate(-90deg);
  overflow: visible;
}

.demo-send-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.75px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 620px) {
  .demo-phone,
  .demo-phone.ready { border-width: 1px; }
  .demo-message.user { max-width: 82%; padding: 12px 17px; border-radius: 26px; }
  .demo-starter { font-size: 16px; }
  .demo-form { min-height: 54px; padding-left: 17px; }
  .demo-form button { width: 38px; height: 38px; }
}

/* ===== BAMSI local UX v36: compact centered demo ===== */
.demo-shell {
  min-height: 100svh;
  padding: 18px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

.demo-label {
  align-self: start;
  font-size: 18px;
}

.demo-phone {
  width: min(520px, calc(100vw - 40px));
  height: min(610px, calc(100svh - 105px));
  min-height: 430px;
  margin: 0 auto;
  border-radius: 26px;
}

.demo-chat {
  padding: 38px 28px 16px;
  gap: 14px;
}

.demo-loading {
  font-size: 14px;
  gap: 6px;
}
.demo-loading strong {
  font-size: 18px;
}

.demo-starters {
  gap: 9px;
  padding-bottom: 6px;
}
.demo-starter {
  font-size: 15px;
  line-height: 1.28;
}

.demo-message {
  font-size: 16px;
  line-height: 1.42;
}
.demo-message.user {
  max-width: min(72%, 390px);
  padding: 11px 16px;
  border-radius: 24px;
}

.demo-form {
  min-height: 50px;
  margin: 0 12px 12px;
  grid-template-columns: 1fr 40px;
  padding: 0 5px 0 16px;
}
.demo-form input {
  font-size: 16px;
}
.demo-form button {
  width: 34px;
  height: 34px;
}
.demo-send-icon {
  width: 22px;
  height: 17px;
}

.demo-back {
  align-self: end;
  margin: 8px auto 0;
  font-size: 13px;
}

@media (max-width: 620px) {
  .demo-shell {
    padding: 12px;
    grid-template-rows: auto 1fr;
  }
  .demo-label { font-size: 16px; }
  .demo-phone {
    width: min(100%, 500px);
    height: min(650px, calc(100svh - 54px));
    min-height: 0;
    margin: 0 auto;
    border-radius: 24px;
  }
  .demo-chat { padding: 30px 20px 14px; gap: 12px; }
  .demo-loading strong { font-size: 17px; }
  .demo-loading { font-size: 13px; }
  .demo-starter { font-size: 14px; }
  .demo-message { font-size: 15px; }
  .demo-message.user { max-width: 82%; padding: 10px 14px; border-radius: 22px; }
  .demo-form { min-height: 48px; margin: 0 9px 9px; padding-left: 14px; }
  .demo-form input { font-size: 15px; }
  .demo-form button { width: 34px; height: 34px; }
}

/* v40: backend-state progress + compact connect CTA */
.demo-progress {
  --demo-progress: 0;
  width: min(280px, 72%);
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e6e8;
}
.demo-progress span {
  display: block;
  width: 100%;
  transform: scaleX(var(--demo-progress));
  transform-origin: left center;
  will-change: transform;
  height: 100%;
  border-radius: inherit;
  background: #1677f2;
}

.demo-connect-cta {
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border: 1px solid #c8c9cc;
  border-radius: 24px;
  background: #fff;
  color: #171719;
  text-align: left;
  font: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}
.demo-connect-banana {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f7f7;
}
.demo-connect-banana img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.demo-connect-copy { min-width: 0; display: grid; gap: 3px; }
.demo-connect-copy strong { font-size: 16px; line-height: 1.15; font-weight: 700; }
.demo-connect-copy > span:not(.demo-connect-price) { font-size: 14px; line-height: 1.2; color: #929397; }
.demo-connect-price { margin-top: 7px; font-size: 12px; line-height: 1.2; color: #929397; }
.demo-connect-price b { margin-right: 7px; color: #55565a; font-size: 16px; font-weight: 500; }
.demo-connect-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #000;
}
.demo-connect-arrow svg { width: 23px; height: 18px; overflow: visible; }
.demo-connect-arrow path { fill: none; stroke: #fff; stroke-width: 2.75px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

@media (max-width: 620px) {
  .demo-progress { width: min(240px, 78%); }
  .demo-connect-cta { min-height: 96px; grid-template-columns: 72px minmax(0, 1fr) 32px; gap: 10px; padding: 9px; border-radius: 20px; }
  .demo-connect-banana { width: 72px; height: 72px; border-radius: 15px; }
  .demo-connect-banana img { width: 69px; height: 69px; }
  .demo-connect-copy strong { font-size: 14px; }
  .demo-connect-copy > span:not(.demo-connect-price) { font-size: 12px; }
  .demo-connect-price { margin-top: 4px; font-size: 10px; }
  .demo-connect-price b { display: block; margin: 0 0 2px; font-size: 14px; }
  .demo-connect-arrow { width: 30px; height: 30px; }
  .demo-connect-arrow svg { width: 19px; height: 15px; }
}

/* v41 — center demo progress bar */
.demo-progress {
  margin-left: auto;
  margin-right: auto;
}

/* v45 — thinking state + smooth reply/CTA entrance */
.demo-thinking {
  align-self: flex-start;
  display: inline-flex;
  align-items: baseline;
  color: #a7a8ad;
  font-size: 15px;
  line-height: 1.4;
  flex: 0 0 auto;
}
.demo-thinking-dots { display: inline-flex; margin-left: 1px; }
.demo-thinking-dots i {
  font-style: normal;
  opacity: .18;
  animation: bamsi-thinking-dot 1.05s ease-in-out infinite;
}
.demo-thinking-dots i:nth-child(2) { animation-delay: .16s; }
.demo-thinking-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes bamsi-thinking-dot {
  0%, 18%, 100% { opacity: .18; transform: translateY(0); }
  48% { opacity: .72; transform: translateY(-1px); }
}
.demo-message-enter {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .42s cubic-bezier(.22,.61,.36,1), transform .42s cubic-bezier(.22,.61,.36,1);
}
.demo-message-enter.is-visible { opacity: 1; transform: translateY(0); }
.demo-connect-cta-enter {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .42s cubic-bezier(.22,.61,.36,1), transform .42s cubic-bezier(.22,.61,.36,1);
}
.demo-connect-cta-enter.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .demo-thinking-dots i { animation: none; opacity: .5; }
  .demo-message-enter, .demo-connect-cta-enter { transition: none; transform: none; }
}


/* v47 — CTA: softer entrance and keep the offer visible while chat continues */
.demo-connect-cta {
  position: sticky;
  bottom: 10px;
  z-index: 4;
}
.demo-connect-cta-enter {
  opacity: 0;
  transform: translateY(12px) scale(.992);
  transition:
    opacity .58s cubic-bezier(.22,.61,.36,1),
    transform .58s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.demo-connect-cta-enter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* v48 — keep CTA pinned at the top of the visible chat once conversation continues */
.demo-connect-cta {
  top: 10px;
  bottom: auto;
}
.demo-connect-cta-enter {
  transition:
    opacity .78s cubic-bezier(.22,.61,.36,1),
    transform .78s cubic-bezier(.22,.61,.36,1);
}


/* v49 — persistent CTA dock outside the scrolling message history */
.demo-phone { position: relative; }
.demo-cta-dock {
  flex: 0 0 auto;
  padding: 0 54px 14px;
  background: #fff;
}
.demo-cta-dock[hidden] { display: none; }
.demo-cta-dock .demo-connect-cta {
  position: static;
  top: auto;
  bottom: auto;
  margin: 0;
}
.demo-cta-dock .demo-connect-cta-enter {
  opacity: 0;
  transform: translateY(10px) scale(.994);
  transition:
    opacity .92s cubic-bezier(.22,.61,.36,1),
    transform .92s cubic-bezier(.22,.61,.36,1);
}
.demo-cta-dock .demo-connect-cta-enter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (max-width: 620px) {
  .demo-cta-dock { padding: 0 28px 12px; }
}

/* v50 — floating translucent CTA: conversation remains visible underneath */
.demo-cta-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 66px;
  z-index: 8;
  padding: 0 54px;
  background: transparent;
  pointer-events: none;
}
.demo-cta-dock .demo-connect-cta {
  pointer-events: auto;
  background: rgba(255,255,255,.84);
  -webkit-backdrop-filter: blur(9px) saturate(115%);
  backdrop-filter: blur(9px) saturate(115%);
  box-shadow: 0 8px 24px rgba(0,0,0,.035);
}

@media (max-width: 620px) {
  .demo-cta-dock {
    bottom: 61px;
    padding: 0 16px;
  }
  .demo-cta-dock .demo-connect-cta {
    min-height: 88px;
    grid-template-columns: 64px minmax(0,1fr) 30px;
    gap: 9px;
    padding: 8px;
    border-radius: 19px;
  }
  .demo-cta-dock .demo-connect-banana {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(247,247,247,.72);
  }
  .demo-cta-dock .demo-connect-banana img {
    width: 62px;
    height: 62px;
  }
  .demo-cta-dock .demo-connect-copy { gap: 2px; }
  .demo-cta-dock .demo-connect-copy strong {
    font-size: 13px;
    line-height: 1.12;
  }
  .demo-cta-dock .demo-connect-copy > span:not(.demo-connect-price) {
    font-size: 11px;
    line-height: 1.15;
  }
  .demo-cta-dock .demo-connect-price {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.15;
  }
  .demo-cta-dock .demo-connect-price b {
    display: inline;
    margin: 0 5px 0 0;
    font-size: 13px;
  }
  .demo-cta-dock .demo-connect-arrow {
    width: 29px;
    height: 29px;
  }
}


/* v51 — CTA occupies its own row: chat content always ends above it */
.demo-cta-dock {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  flex: 0 0 auto;
  padding: 0 54px 12px;
  background: transparent;
  pointer-events: none;
}
.demo-cta-dock .demo-connect-cta {
  pointer-events: auto;
  position: static;
  margin: 0;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.demo-cta-dock .demo-connect-banana {
  background: transparent;
}
.demo-cta-dock .demo-connect-copy {
  gap: 5px;
}
.demo-cta-dock .demo-connect-price {
  margin-top: 0;
}

@media (max-width: 620px) {
  .demo-cta-dock {
    padding: 0 16px 10px;
  }
  .demo-cta-dock .demo-connect-cta {
    min-height: 76px;
    grid-template-columns: 58px minmax(0,1fr) 30px;
    gap: 9px;
    padding: 7px 9px 7px 7px;
    border-radius: 19px;
  }
  .demo-cta-dock .demo-connect-banana {
    width: 58px;
    height: 58px;
    border-radius: 0;
  }
  .demo-cta-dock .demo-connect-banana img {
    width: 58px;
    height: 58px;
  }
  .demo-cta-dock .demo-connect-copy strong {
    font-size: 13px;
    line-height: 1.12;
  }
  .demo-cta-dock .demo-connect-price {
    font-size: 9px;
    line-height: 1.15;
  }
  .demo-cta-dock .demo-connect-price b {
    display: inline;
    margin: 0 5px 0 0;
    font-size: 13px;
  }
}


/* v54 — compact registration with a calm veil over the demo */
.register-panel[hidden] { display: none !important; }
.register-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: inherit;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .38s cubic-bezier(.22,.61,.36,1), transform .38s cubic-bezier(.22,.61,.36,1), visibility .38s;
}
.register-panel[aria-hidden="false"] { opacity: 1; visibility: visible; transform: translateY(0); }
.register-card { width: min(100%, 356px); text-align: center; }
.register-card h2 { margin: 0 0 22px; font-size: 27px; line-height: 1.05; letter-spacing: -.035em; color: #111; }
.register-close {
  position: absolute; top: 18px; left: 20px; width: 38px; height: 38px; padding: 0;
  border: 1px solid rgba(17,17,17,.08); border-radius: 50%; background: rgba(255,255,255,.72);
  font: 400 21px/1 Arial,sans-serif; color: #77797d; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.register-form {
  min-height: 54px; display: grid; grid-template-columns: 1fr 40px; align-items: center; padding: 0 7px 0 17px;
  border: 1px solid #dedfe2; border-radius: 999px; background: rgba(255,255,255,.96);
}
.register-form input { min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: #111; }
.register-form input::placeholder { color: #a2a3a7; }
.register-form button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #111; cursor: pointer; }
.register-form button:disabled { opacity: .18; cursor: default; }
.register-form svg { width: 21px; height: 16px; }
.register-form path { fill: none; stroke: #fff; stroke-width: 2.75px; stroke-linecap: round; stroke-linejoin: round; }
.register-divider { display: flex; align-items: center; gap: 11px; margin: 15px 0; color: #aaa; font-size: 13px; }
.register-divider::before,.register-divider::after { content: ''; height: 1px; flex: 1; background: #e3e4e6; }
.register-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.register-providers button { min-height: 46px; border: 1px solid #dedfe2; border-radius: 15px; background: rgba(255,255,255,.94); color: #111; font-size: 15px; font-weight: 700; }
.register-providers button[aria-disabled="true"], .register-login[aria-disabled="true"] { cursor: default; }
.register-login { margin-top: 17px; padding: 4px; border: 0; background: transparent; color: #929397; font-size: 14px; }
.register-login strong { color: #111; font-weight: 600; }
@media (max-width: 620px) {
  .register-panel { padding: 20px; background: rgba(255,255,255,.89); }
  .register-card { width: min(100%, 326px); }
  .register-card h2 { margin-bottom: 20px; font-size: 25px; }
  .register-close { top: 14px; left: 14px; width: 36px; height: 36px; }
  .register-form { min-height: 52px; padding-left: 15px; }
  .register-divider { margin: 13px 0; }
  .register-providers button { min-height: 44px; border-radius: 14px; }
  .register-login { margin-top: 15px; }
}

/* v55 auth code */
.register-code-step[hidden],.register-form[hidden],.register-divider[hidden],.register-providers[hidden],.register-login[hidden],.register-code-form[hidden],.register-change[hidden],.register-error[hidden]{display:none!important}.register-code-step{text-align:center}.register-code-step p{margin:0 0 12px;color:#8f9094;font-size:14px}.register-code-form{min-height:54px;display:grid;grid-template-columns:1fr 40px;align-items:center;padding:0 7px 0 17px;border:1px solid #dedfe2;border-radius:999px;background:#fff}.register-code-form input{min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px}.register-code-form button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:#111}.register-code-form button:disabled{opacity:.18}.register-code-form svg{width:21px}.register-code-form path{fill:none;stroke:#fff;stroke-width:2.75;stroke-linecap:round;stroke-linejoin:round}.register-change{margin-top:12px;border:0;background:transparent;color:#929397;font-size:13px}.register-error{margin:10px 0 0;color:#9d3535;font-size:13px}

/* v56 — post-registration VK connection */
.vk-connect-step[hidden], .vk-connect-form[hidden], .vk-token-help[hidden], .vk-connect-note[hidden], .vk-connect-status[hidden] { display: none !important; }
.vk-connect-step { text-align: left; }
.vk-connect-step h2 { margin: 0 0 8px; text-align: center; font-size: 25px; line-height: 1.08; letter-spacing: -.035em; color: #111; }
.vk-connect-lead { margin: 0 0 18px; text-align: center; color: #8f9094; font-size: 14px; line-height: 1.35; }
.vk-token-help { margin: 0 0 14px; padding: 13px 15px; border: 1px solid #e2e3e5; border-radius: 16px; background: rgba(255,255,255,.72); }
.vk-token-help summary { cursor: pointer; color: #111; font-size: 14px; font-weight: 650; }
.vk-token-help ol { margin: 11px 0 0; padding-left: 19px; color: #737478; font-size: 13px; line-height: 1.45; }
.vk-token-help li + li { margin-top: 5px; }
.vk-connect-form { min-height: 54px; display: grid; grid-template-columns: 1fr 40px; align-items: center; padding: 0 7px 0 17px; border: 1px solid #dedfe2; border-radius: 999px; background: #fff; }
.vk-connect-form input { min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: #111; }
.vk-connect-form input::placeholder { color: #a2a3a7; }
.vk-connect-form button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #111; cursor: pointer; }
.vk-connect-form button:disabled { opacity: .18; cursor: default; }
.vk-connect-form svg { width: 21px; height: 16px; }
.vk-connect-form path { fill: none; stroke: #fff; stroke-width: 2.75px; stroke-linecap: round; stroke-linejoin: round; }
.vk-connect-note, .vk-connect-status { margin: 11px 4px 0; text-align: center; color: #929397; font-size: 12px; line-height: 1.35; }
.vk-connect-status { color: #333; font-size: 13px; }
@media (max-width: 620px) {
  .vk-connect-step h2 { font-size: 23px; }
  .vk-token-help { padding: 12px 13px; }
}


/* v57 — authenticated BAMSI platform shell */
.platform-screen[hidden] { display:none !important; }
.platform-screen { min-height:100vh; background:#f5f6f8; color:#151515; display:grid; grid-template-columns:250px 1fr; font-family:Arial,sans-serif; }
body.platform-active { overflow:auto; background:#f5f6f8; }
body.platform-active > main > .hero, body.platform-active .demo-screen { display:none !important; }
.platform-sidebar { position:sticky; top:0; height:100vh; box-sizing:border-box; padding:28px 18px 20px; background:#fff; border-right:1px solid #e6e7e9; display:flex; flex-direction:column; }
.platform-brand { font-size:28px; font-weight:900; letter-spacing:-.05em; margin:0 10px 28px; }
.platform-company { margin:0 10px 14px; font-size:12px; color:#96989d; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.platform-assistant { display:flex; gap:10px; align-items:center; padding:12px; background:#f3f4f6; border-radius:14px; margin-bottom:18px; }
.platform-assistant-dot { width:10px; height:10px; border-radius:50%; background:#2468ff; flex:0 0 auto; }
.platform-assistant strong,.platform-assistant small { display:block; } .platform-assistant strong{font-size:13px}.platform-assistant small{font-size:11px;color:#999;margin-top:2px}
.platform-nav { display:grid; gap:3px; } .platform-nav button { text-align:left; border:0; background:transparent; padding:10px 12px; border-radius:10px; font-size:13px; color:#555; cursor:default; } .platform-nav button.active{background:#111;color:#fff;font-weight:700}
.platform-trial { margin-top:auto; padding:12px; border:1px solid #e5e6e8; border-radius:12px; font-size:12px; color:#777; }
.platform-main { min-width:0; }
.platform-topbar { height:74px; box-sizing:border-box; padding:0 34px; display:flex; justify-content:space-between; align-items:center; background:rgba(255,255,255,.9); border-bottom:1px solid #e6e7e9; position:sticky; top:0; z-index:5; backdrop-filter:blur(16px); }
.platform-topbar div:first-child span,.platform-topbar div:first-child strong { display:block; }.platform-topbar span{font-size:11px;color:#999}.platform-topbar strong{font-size:15px;margin-top:3px}.platform-status{font-size:12px;color:#777;display:flex;align-items:center;gap:7px}.platform-status span{width:7px;height:7px;border-radius:50%;background:#c8c9cc}
.platform-content { max-width:1040px; margin:0 auto; padding:42px 34px 80px; }
.platform-onboarding { background:#2365f5; color:#fff; border-radius:24px; padding:34px 38px; position:relative; overflow:hidden; }
.platform-step { font-size:11px; font-weight:800; letter-spacing:.08em; opacity:.72; margin-bottom:16px; }.platform-onboarding h1{font-size:34px;line-height:1.04;letter-spacing:-.045em;margin:0 0 14px;max-width:700px}.platform-onboarding p{font-size:15px;line-height:1.5;max-width:720px;margin:0;opacity:.83}.platform-progress{height:4px;background:rgba(255,255,255,.25);border-radius:99px;margin-top:28px;overflow:hidden}.platform-progress span{display:block;width:20%;height:100%;background:#fff;border-radius:99px}
.knowledge-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:18px; margin-top:18px; }.knowledge-card{background:#fff;border:1px solid #e3e4e7;border-radius:20px;padding:26px;box-sizing:border-box}.knowledge-card-head{display:flex;justify-content:space-between;color:#999;font-size:12px;margin-bottom:26px}.knowledge-card-head b{color:#333}.knowledge-card h2{font-size:22px;letter-spacing:-.03em;margin:0 0 10px}.knowledge-card p{font-size:13px;line-height:1.5;color:#7d7f84;margin:0}.knowledge-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:22px}.knowledge-tags span{font-size:11px;padding:7px 9px;border-radius:99px;background:#f1f2f4;color:#555}
.vk-platform-card { display:grid; grid-template-columns:46px 1fr; column-gap:14px; }.vk-platform-icon{width:46px;height:46px;border-radius:13px;background:#1673ff;color:#fff;display:grid;place-items:center;font-size:15px;font-weight:900}.vk-platform-card details,.vk-platform-card form,.vk-platform-card .platform-vk-status{grid-column:1/-1}.platform-token-help{margin-top:22px;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:14px 0;font-size:13px}.platform-token-help summary{font-weight:700;cursor:pointer}.platform-token-help ol{color:#777;line-height:1.5;padding-left:20px}.platform-vk-form{margin-top:16px;display:grid;grid-template-columns:1fr 42px;align-items:center;border:1px solid #dfe0e3;border-radius:999px;padding:6px 7px 6px 16px}.platform-vk-form input{border:0;outline:0;font:inherit;font-size:13px;background:transparent;min-width:0}.platform-vk-form button{width:38px;height:38px;border:0;border-radius:50%;background:#111;display:grid;place-items:center}.platform-vk-form button:disabled{opacity:.16}.platform-vk-form svg{width:20px}.platform-vk-form path{fill:none;stroke:#fff;stroke-width:2.75;stroke-linecap:round;stroke-linejoin:round}.platform-vk-status{margin-top:12px!important;color:#333!important}
.platform-next { margin-top:18px; padding:24px 28px; border:1px dashed #d4d5d8; border-radius:18px; background:rgba(255,255,255,.45); }.platform-next span{font-size:10px;color:#999;text-transform:uppercase;letter-spacing:.08em}.platform-next strong{display:block;font-size:17px;margin:5px 0 7px}.platform-next p{font-size:12px;color:#888;line-height:1.45;max-width:680px;margin:0}
@media(max-width:760px){.platform-screen{grid-template-columns:1fr}.platform-sidebar{display:none}.platform-topbar{height:64px;padding:0 18px}.platform-status{font-size:10px}.platform-content{padding:18px 14px 60px}.platform-onboarding{padding:26px 22px;border-radius:20px}.platform-onboarding h1{font-size:27px}.platform-onboarding p{font-size:13px}.knowledge-grid{grid-template-columns:1fr}.knowledge-card{padding:21px}.vk-platform-card{grid-template-columns:42px 1fr}.vk-platform-icon{width:42px;height:42px}.platform-next{padding:20px}}

/* v58 — restrained product UI: less "AI", more working software */
.platform-screen[hidden]{display:none!important}
.platform-screen{min-height:100vh;background:#fff;color:#161616;display:grid;grid-template-columns:236px minmax(0,1fr);font-family:Arial,Helvetica,sans-serif}
body.platform-active{overflow:auto;background:#fff}
body.platform-active>main>.hero,body.platform-active .demo-screen{display:none!important}
.platform-sidebar{position:sticky;top:0;height:100vh;box-sizing:border-box;padding:24px 14px 18px;background:#f7f7f5;border-right:1px solid #e7e7e3;display:flex;flex-direction:column}
.platform-brand{font-size:25px;font-weight:900;letter-spacing:-.05em;margin:0 8px 24px}
.company-switcher{width:100%;display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #deded9;background:#fff;border-radius:7px;padding:9px 10px;font-size:12px;text-align:left;margin:0 0 24px;color:#222}.company-switcher span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-label{font-size:10px;color:#999;margin:0 9px 7px;text-transform:uppercase;letter-spacing:.06em}
.platform-assistant{display:flex;gap:9px;align-items:center;padding:9px 10px;background:transparent;border-radius:6px;margin-bottom:17px}.platform-assistant-dot{width:8px;height:8px;border-radius:50%;background:#b8b8b3;flex:0 0 auto}.platform-assistant strong,.platform-assistant small{display:block}.platform-assistant strong{font-size:12px}.platform-assistant small{font-size:10px;color:#999;margin-top:2px}
.platform-nav{display:grid;gap:1px}.platform-nav button{text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:6px;font-size:12px;color:#666;cursor:default}.platform-nav button.active{background:#e9e9e5;color:#111;font-weight:700}
.platform-trial{margin-top:auto;padding:10px 9px;border-top:1px solid #dfdfda;border-radius:0;font-size:11px;color:#777}.platform-trial strong,.platform-trial span{display:block}.platform-trial strong{color:#333;margin-bottom:3px}
.platform-main{min-width:0;background:#fff}.platform-topbar{height:58px;box-sizing:border-box;padding:0 28px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ececea;position:sticky;top:0;z-index:5;backdrop-filter:none}.platform-breadcrumb{font-size:11px;color:#777}.platform-breadcrumb span{color:#bbb;margin:0 5px}.platform-status{font-size:11px;color:#777;display:flex;align-items:center;gap:7px}.platform-status span{width:7px;height:7px;border-radius:50%;background:#bdbdb8}
.platform-content{max-width:820px;margin:0 auto;padding:52px 36px 90px}.page-heading{padding-bottom:31px;border-bottom:1px solid #e9e9e6}.page-heading h1{font-size:32px;line-height:1.1;letter-spacing:-.04em;margin:0 0 8px}.page-heading p{font-size:13px;line-height:1.5;color:#777;margin:0;max-width:600px}
.setup-block{padding:25px 0 29px;border-bottom:1px solid #e9e9e6}.setup-title{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}.setup-title strong{font-size:14px}.setup-title p{font-size:12px;line-height:1.45;color:#888;margin:5px 0 0;max-width:540px}.setup-title>span{font-size:11px;color:#999;white-space:nowrap}.setup-line{height:2px;background:#e7e7e4;margin:20px 0 10px}.setup-line i{display:block;width:25%;height:100%;background:#151515}.setup-steps{display:grid;grid-template-columns:repeat(4,1fr);font-size:10px;color:#aaa}.setup-steps span:nth-child(n+2){text-align:center}.setup-steps span:last-child{text-align:right}.setup-steps .current{color:#222;font-weight:700}
.knowledge-section,.connect-section{padding:30px 0;border-bottom:1px solid #e9e9e6}.section-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px}.section-heading h2{font-size:18px;letter-spacing:-.02em;margin:0 0 5px}.section-heading p{font-size:12px;line-height:1.45;color:#888;margin:0;max-width:590px}.section-heading>b{font-size:11px;font-weight:400;color:#888;white-space:nowrap}.business-record{border:1px solid #e2e2de;border-radius:8px;padding:17px 18px}.business-record-main strong{font-size:14px}.business-record-main p{font-size:12px;line-height:1.45;color:#777;margin:6px 0 0}.knowledge-tags{display:flex;flex-wrap:wrap;gap:13px;margin-top:15px}.knowledge-tags span{font-size:10px;padding:0;border-radius:0;background:none;color:#777}.knowledge-tags span:before{content:'✓';color:#222;margin-right:5px}
.vk-mark{width:32px;height:32px;border-radius:7px;background:#1673ff;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;flex:0 0 auto}.platform-token-help{margin:0 0 14px;border:0;padding:0;font-size:12px}.platform-token-help summary{font-weight:600;cursor:pointer;color:#333}.platform-token-help ol{color:#777;line-height:1.55;padding-left:18px;margin:10px 0 0}.platform-vk-form{margin-top:14px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:stretch;border:0;border-radius:0;padding:0}.platform-vk-form input{height:42px;box-sizing:border-box;border:1px solid #dcdcd7;border-radius:7px;outline:0;padding:0 12px;font:inherit;font-size:12px;background:#fff;min-width:0}.platform-vk-form input:focus{border-color:#999}.platform-vk-form button{width:auto;height:42px;border:0;border-radius:7px;background:#161616;color:#fff;padding:0 17px;font-size:12px;font-weight:700;display:block}.platform-vk-form button:disabled{opacity:.2}.platform-vk-status{margin:11px 0 0!important;color:#333!important;font-size:12px!important}
.research-preview{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:28px 0;color:#888}.research-number{font-size:10px;color:#aaa;padding-top:2px}.research-preview strong{font-size:13px;color:#333}.research-preview p{font-size:12px;line-height:1.5;margin:5px 0 0;max-width:620px}
@media(max-width:760px){.platform-screen{grid-template-columns:1fr}.platform-sidebar{display:none}.platform-topbar{height:54px;padding:0 16px}.platform-content{padding:32px 18px 60px}.page-heading h1{font-size:28px}.setup-steps{font-size:9px}.platform-vk-form{grid-template-columns:1fr}.platform-vk-form button{width:100%}.section-heading{gap:12px}}

/* v59 — BAMSI dark spatial dashboard. Matte graphite, no glass glare. */
body.platform-active{margin:0;overflow:auto;background:#18191b;color:#f4f4f2}
.platform-screen.bamsi-dark{min-height:100vh;background:#18191b;color:#f4f4f2;display:block;font-family:Arial,Helvetica,sans-serif;position:relative;padding:54px 54px 76px 132px;box-sizing:border-box}
body.platform-active>main>.hero,body.platform-active .demo-screen{display:none!important}
.spatial-stage{width:min(1280px,calc(100vw - 186px));margin:0 auto;position:relative}
.spatial-surface,.spatial-card{background:#353638;border:1px solid rgba(255,255,255,.025);box-shadow:0 16px 38px rgba(0,0,0,.20)}
.spatial-rail{position:fixed;left:42px;top:50%;transform:translateY(-50%);width:64px;height:590px;border:0;background:#343537;border-radius:32px;box-shadow:0 16px 36px rgba(0,0,0,.22);display:flex;flex-direction:column;align-items:center;padding:10px 0;box-sizing:border-box;z-index:20}
.rail-button{width:46px;height:46px;flex:0 0 46px;border:0;background:transparent;color:#f3f3f1;border-radius:50%;font-size:21px;display:grid;place-items:center;margin:5px 0;position:relative;cursor:default;font-family:Arial,sans-serif}.rail-button.active{background:#2468ff;color:#fff;box-shadow:0 5px 14px rgba(0,0,0,.18)}.rail-button.rail-core{background:#292a2c;box-shadow:inset 0 0 0 7px #3b3c3e;font-weight:900}.rail-button.rail-notify i{position:absolute;width:7px;height:7px;background:#f49a48;border-radius:50%;right:8px;top:8px}.rail-button.rail-down{margin-top:auto;color:#aaa;font-size:24px}
.spatial-topbar{height:44px;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:0 2px;background:transparent;border:0;box-shadow:none}.business-chip{appearance:none;border:0;background:transparent;color:#f4f4f2;display:inline-flex;align-items:center;gap:7px;padding:7px 8px;border-radius:12px;font:inherit;cursor:pointer}.business-chip:hover{background:#242527}.business-chip strong{font-size:14px;line-height:1;font-weight:700}.business-chevron{color:#8f9092;font-size:14px;line-height:1;transform:translateY(-1px)}.profile-dot{appearance:none;width:36px;height:36px;border:0;border-radius:50%;background:#353638;color:#f4f4f2;display:grid;place-items:center;font:700 12px/1 Arial,Helvetica,sans-serif;cursor:pointer;box-shadow:0 5px 14px rgba(0,0,0,.16)}.profile-dot:hover{background:#414244}
.spatial-dashboard{margin-top:16px;display:grid;grid-template-columns:1.35fr .92fr .92fr;grid-template-rows:300px 250px 205px;gap:14px}.spatial-card{border-radius:26px;padding:22px;box-sizing:border-box;overflow:hidden;position:relative}.module-head,.module-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.spatial-card small{font-size:9px;letter-spacing:.08em;color:#9b9c9e}.spatial-card h1,.spatial-card h2{margin:4px 0 0;letter-spacing:-.035em}.spatial-card h1{font-size:25px}.spatial-card h2{font-size:18px}.module-title button{border:0;background:#444547;color:#eee;width:32px;height:32px;border-radius:50%;font-size:17px}.state-pill{font-size:10px;color:#b9babc;background:#2b2c2e;padding:8px 10px;border-radius:16px}.state-pill i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#888;margin-right:5px}
.assistant-module{grid-row:1/3}.assistant-module>p{font-size:13px;color:#b9babc;line-height:1.45;max-width:280px;margin:15px 0}.assistant-visual{height:250px;position:relative;display:grid;place-items:center}.assistant-disc{position:absolute;border-radius:50%;background:#424345}.disc-one{width:210px;height:210px}.disc-two{width:155px;height:155px;background:#2d2e30}.disc-three{width:102px;height:102px;background:#2468ff}.assistant-center{width:54px;height:54px;border-radius:50%;background:#202123;display:grid;place-items:center;font-size:25px;font-weight:900;z-index:2}.assistant-stats{position:absolute;left:22px;right:22px;bottom:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.assistant-stats div{background:#2e2f31;border-radius:15px;padding:11px}.assistant-stats b,.assistant-stats span{display:block}.assistant-stats b{font-size:15px}.assistant-stats span{font-size:9px;color:#999;margin-top:3px}
.conversations-module{grid-column:2/4}.conversation-list{margin-top:18px}.conversation-list>div{height:53px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;border-top:1px solid #424345}.conversation-list>div:first-child{border-top:0}.person{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#5f6062;font-size:11px}.p1{background:#678be5}.p2{background:#7a6f62}.p3{background:#657d72}.conversation-list p{margin:0}.conversation-list b,.conversation-list small{display:block}.conversation-list b{font-size:12px}.conversation-list small{font-size:10px;color:#a2a3a5;margin-top:3px;letter-spacing:0}.conversation-list time{font-size:9px;color:#858688}
.knowledge-module{grid-column:2}.knowledge-business{margin-top:18px;padding:14px;background:#2e2f31;border-radius:15px}.knowledge-business b{font-size:12px}.knowledge-business p{font-size:10px;color:#a7a8aa;line-height:1.4;margin:5px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.knowledge-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.knowledge-tags span{font-size:9px!important;padding:5px 7px!important;background:#444547!important;color:#d6d6d4!important;border-radius:10px!important}.knowledge-tags span:before{display:none!important}.knowledge-meter{height:5px;background:#292a2c;border-radius:5px;margin-top:13px;overflow:hidden}.knowledge-meter span{display:block;height:100%;background:#2468ff;border-radius:5px}.knowledge-note{display:block;margin-top:8px;letter-spacing:0!important}
.connect-module{grid-column:3;background:#486d5b}.connect-module .vk-square{width:42px;height:42px;border-radius:13px;background:#2468ff;display:grid;place-items:center;font-weight:900;font-size:12px}.connect-copy{position:absolute;left:78px;top:22px;right:20px}.connect-copy small{color:rgba(255,255,255,.62)}.connect-copy p{font-size:10px;line-height:1.35;color:rgba(255,255,255,.72);margin:7px 0 0}.platform-token-help{margin-top:68px;border:0!important;padding:0!important;font-size:10px!important}.platform-token-help summary{color:#fff!important;font-weight:600!important}.platform-token-help ol{font-size:9px;color:rgba(255,255,255,.72)!important;margin:7px 0 0!important;line-height:1.4!important}.platform-vk-form{margin-top:10px!important;display:grid!important;grid-template-columns:1fr 38px!important;gap:7px!important;border:0!important;padding:0!important}.platform-vk-form input{height:38px!important;background:rgba(30,31,32,.45)!important;border:0!important;border-radius:19px!important;color:#fff!important;padding:0 13px!important;font-size:10px!important}.platform-vk-form input::placeholder{color:rgba(255,255,255,.48)}.platform-vk-form button{width:38px!important;height:38px!important;border-radius:50%!important;background:#2468ff!important;padding:0!important;color:#fff!important}.platform-vk-status{font-size:9px!important;color:#fff!important;margin:6px 0 0!important}
.calendar-module{grid-column:1;grid-row:3}.calendar-module .accent-button{background:#2468ff}.calendar-day{position:absolute;right:22px;top:66px;text-align:right}.calendar-day b{font-size:42px;line-height:1}.calendar-day span{display:block;font-size:9px;color:#999}.calendar-events{margin-top:20px;width:62%}.calendar-events div{display:grid;grid-template-columns:40px 8px 1fr;align-items:center;gap:8px;height:35px;border-top:1px solid #424345}.calendar-events time,.calendar-events span{font-size:10px}.calendar-events time{color:#999}.calendar-events i{width:7px;height:7px;border-radius:50%;background:#2468ff}.calendar-events div:nth-child(2) i{background:#57c98d}.calendar-events div:nth-child(3) i{background:#e88867}
.tasks-module{grid-column:2}.tasks-module label{display:flex;align-items:center;gap:8px;height:37px;border-top:1px solid #424345;font-size:10px}.tasks-module label:first-of-type{margin-top:15px}.tasks-module input{accent-color:#2468ff}.tasks-module .module-title>span{font-size:11px;background:#2468ff;border-radius:12px;padding:5px 8px}.pulse-module{grid-column:3;background:#4b5063}.pulse-value{font-size:54px;font-weight:700;letter-spacing:-.06em;margin-top:13px}.pulse-value span{font-size:18px;color:#a9aab0}.pulse-bars{height:42px;display:flex;align-items:end;gap:6px}.pulse-bars i{display:block;width:10px;background:#788098;border-radius:5px 5px 2px 2px}.pulse-bars i:nth-child(1){height:12px}.pulse-bars i:nth-child(2){height:19px}.pulse-bars i:nth-child(3){height:15px}.pulse-bars i:nth-child(4){height:27px}.pulse-bars i:nth-child(5){height:22px}.pulse-bars i:nth-child(6){height:35px}.pulse-bars i:nth-child(7){height:31px}.pulse-module p{font-size:9px;color:#b5b6bb;margin:8px 0 0}
.spatial-dock{position:absolute;left:50%;bottom:-56px;transform:translateX(-50%);height:54px;border-radius:27px;padding:5px;display:flex;align-items:center;gap:2px}.spatial-dock button{height:44px;border:0;background:transparent;color:#aaa;border-radius:22px;padding:0 17px;font-size:10px}.spatial-dock button.active{background:#4a4b4d;color:#fff}.spatial-dock .dock-plus{width:44px;padding:0;background:#2468ff;color:#fff;font-size:24px}
@media(max-width:980px){.platform-screen.bamsi-dark{padding:20px 16px 80px}.spatial-rail{display:none}.spatial-stage{width:100%}.spatial-topbar{height:66px}.business-chip{min-width:0}.business-chip small,.assistant-search{display:none}.spatial-dashboard{grid-template-columns:1fr;grid-template-rows:auto;}.spatial-card,.assistant-module,.conversations-module,.knowledge-module,.connect-module,.calendar-module,.tasks-module,.pulse-module{grid-column:1!important;grid-row:auto!important;min-height:220px}.assistant-module{min-height:500px}.spatial-dock{position:fixed;bottom:12px;z-index:30}.spatial-dock button:not(.active):not(.dock-plus){display:none}}

/* v71 — Research Report. Same matte spatial BAMSI language, no glass. */
.research-card-state{position:absolute;inset:0;padding:22px;background:#3f6654;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end}.research-card-state[hidden]{display:none}.research-mini-progress{height:6px;background:#2f5142;border-radius:6px;overflow:hidden;margin-bottom:16px}.research-mini-progress i{display:block;height:100%;width:0;background:#f4f4f2;border-radius:6px;transition:width .35s ease}.research-card-state b{font-size:18px}.research-card-state span{font-size:10px;color:rgba(255,255,255,.7);margin:6px 0 16px}.research-card-state button{border:0;background:#292a2c;color:#fff;border-radius:18px;height:36px;padding:0 14px;font-size:10px;align-self:flex-start}
.research-report{margin-top:16px;min-height:755px}.research-report[hidden]{display:none}.spatial-stage.research-open .spatial-dashboard{display:none}.research-report-head{display:flex;justify-content:space-between;align-items:flex-start;padding:28px 32px 24px}.research-report-head small{font-size:9px;letter-spacing:.1em;color:#8d8e90}.research-report-head h1{font-size:34px;letter-spacing:-.045em;margin:6px 0 7px;max-width:650px}.research-report-head p{font-size:11px;color:#999;margin:0}.research-report-head button{width:42px;height:42px;border:0;border-radius:50%;background:#353638;color:#ddd;font-size:25px}.research-progress-card{background:#353638;border-radius:28px;padding:28px 30px;margin:0 0 14px}.research-progress-top{display:flex;justify-content:space-between;align-items:flex-start}.research-progress-top small{font-size:9px;color:#8f9092;letter-spacing:.1em}.research-progress-top h2{font-size:23px;margin:5px 0}.research-progress-top strong{font-size:38px;letter-spacing:-.05em}.research-progress-track{height:10px;background:#292a2c;border-radius:10px;overflow:hidden;margin:22px 0 12px}.research-progress-track i{display:block;width:0;height:100%;background:#2468ff;border-radius:10px;transition:width .4s ease}.research-progress-meta{display:flex;justify-content:space-between;font-size:9px;color:#8e8f91}.research-results{display:grid;grid-template-columns:1.3fr .85fr .85fr;gap:14px}.research-results[hidden]{display:none}.research-hero-metric,.research-metric,.research-evidence,.research-action{border-radius:27px;padding:25px;box-sizing:border-box;background:#353638}.research-hero-metric{grid-row:span 2;min-height:330px;background:#4b5063}.research-hero-metric small,.research-metric small,.research-action small{font-size:9px;letter-spacing:.09em;color:rgba(255,255,255,.6)}.research-hero-metric strong{display:block;font-size:78px;letter-spacing:-.07em;margin-top:42px}.research-hero-metric h2{font-size:22px;margin:0}.research-hero-metric p{font-size:11px;color:#bbb;max-width:310px;line-height:1.45;margin-top:12px}.research-metric{min-height:158px}.research-metric strong{display:block;font-size:46px;letter-spacing:-.06em;margin:20px 0 4px}.research-metric p{font-size:10px;color:rgba(255,255,255,.72);line-height:1.35;margin:0}.rm-coral{background:#755247}.rm-blue{background:#315a8a}.rm-green{background:#486d5b}.rm-purple{background:#5a536d}.research-evidence{grid-column:1/3;min-height:250px}.research-evidence-list{margin-top:15px}.research-evidence-item{display:grid;grid-template-columns:1fr auto;gap:18px;padding:13px 0;border-top:1px solid #444547}.research-evidence-item:first-child{border-top:0}.research-evidence-item b{display:block;font-size:11px;margin-bottom:4px}.research-evidence-item p{font-size:10px;color:#aaa;line-height:1.4;margin:0}.research-evidence-item a{align-self:center;color:#fff;background:#454648;border-radius:17px;padding:9px 12px;font-size:9px;text-decoration:none}.research-action{grid-column:3;background:#2e2f31}.research-action h2{font-size:18px;line-height:1.25;margin:15px 0}.research-action p{font-size:10px;color:#999;line-height:1.5}
@media(max-width:980px){.research-report{min-height:auto}.research-report-head{padding:18px 4px}.research-report-head h1{font-size:27px}.research-results{grid-template-columns:1fr}.research-hero-metric,.research-metric,.research-evidence,.research-action{grid-column:1!important;grid-row:auto!important}.research-progress-meta{gap:15px;flex-direction:column}.research-hero-metric{min-height:280px}}

/* v71.2 — Research spatial UX + cache-safe polish */
.research-report{padding-bottom:92px}
.research-report-head{background:#2f3032;border-radius:28px;margin-bottom:14px;padding:24px 28px;align-items:center}
.research-report-head h1{font-size:30px;line-height:1.02;margin:5px 0 7px;max-width:560px}
.research-report-head button{flex:0 0 auto;cursor:pointer}
.research-results{align-items:stretch}
.research-hero-metric{position:relative;overflow:hidden}
.research-hero-metric:after{content:"";position:absolute;width:190px;height:190px;border:28px solid rgba(255,255,255,.06);border-radius:50%;right:-58px;bottom:-70px}
.research-hero-metric strong{position:relative;z-index:1}
.research-metric{display:flex;flex-direction:column;justify-content:space-between}
.research-metric strong{font-size:52px}
.research-evidence{overflow:hidden}
.evidence-hint{font-size:9px;color:#8e8f91;align-self:center}
.research-evidence-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 10px}
.research-evidence-tabs button{border:0;background:#292a2c;color:#9b9c9e;border-radius:18px;padding:9px 12px;font:inherit;font-size:9px;cursor:pointer}
.research-evidence-tabs button.active{background:#f0f0ee;color:#222}
.research-evidence-list{min-height:118px}
.research-evidence-item p{max-width:660px}
.research-action{display:flex;flex-direction:column;justify-content:flex-end;min-height:250px}
.research-action h2{font-size:21px}
.research-card-state{z-index:3;border-radius:inherit;overflow:hidden;padding:20px}
.research-card-state b{font-size:17px;line-height:1.1}
.research-card-state span{line-height:1.35;margin:5px 0 12px}
.research-card-state button{margin-top:0}
.spatial-stage.research-open .spatial-topbar{opacity:.58}
@media(max-width:980px){.research-report-head{margin:0 0 12px;padding:18px}.research-report-head h1{font-size:25px}.research-evidence-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.research-evidence-tabs button{white-space:nowrap}.research-action{min-height:220px}}

/* v72 — research meaning layer */
.research-share{display:block;margin-top:10px;font-size:10px;line-height:1.3;color:rgba(255,255,255,.58)}
.research-compare{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.10);display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:end}
.research-compare[hidden]{display:none}
.research-compare small{grid-column:1/-1;font-size:8px;letter-spacing:.08em;color:rgba(255,255,255,.5)}
.research-compare b{font-size:13px;line-height:1.1}
.research-compare span{font-size:10px;color:rgba(255,255,255,.7)}
.research-takeover{display:grid;gap:9px;margin:16px 0 20px}
.research-takeover span{display:block;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:11px;line-height:1.35;color:rgba(255,255,255,.72)}
.research-takeover b{font-size:16px;color:#f2f2ef;margin-right:4px}
.research-economics{margin-top:auto;padding:16px;border-radius:18px;background:#292a2c}
.research-economics small{display:block;font-size:8px;letter-spacing:.08em;color:#8f9092;margin-bottom:7px}
.research-economics b{display:block;font-size:15px;margin-bottom:6px}
.research-economics p{margin:0;font-size:9px;line-height:1.45;color:#929396}

.research-secondary{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.10);display:grid;gap:3px}.research-secondary>b{font-size:20px;line-height:1}.research-secondary>span{font-size:11px;opacity:.72}.research-secondary i{font-style:normal}.research-secondary .research-compare{margin-top:5px}

/* v72.2 — evidence uses only persisted redacted client text; no invented company reply. */
.research-evidence-copy{min-width:0}
.research-evidence-quote{max-width:760px!important;color:#f1f1ef!important;font-size:12px!important;line-height:1.55!important;margin:0 0 8px!important;white-space:pre-wrap;overflow-wrap:anywhere}
.research-evidence-finding{display:block!important;color:#aaa!important;font-size:10px!important;font-weight:500!important;line-height:1.4}
.research-evidence-empty{font-size:10px;color:#8f9092;line-height:1.5;margin:18px 0 0}

/* v73 — owner-facing Research, within the existing matte spatial interface. */
.research-report [hidden]{display:none!important}
.research-report{padding-bottom:100px;min-height:0}
.research-report-head{padding:28px 30px;background:transparent}
.research-report-head h1{font-size:clamp(27px,3vw,40px);line-height:1.08;max-width:770px;margin:12px 0 16px}
.research-report-head small,.research-results small{font-size:11px;letter-spacing:.09em;color:#c2c3c8}
.research-report-head p,.research-scope{font-size:13px;line-height:1.6;color:#b6b7bc}
.research-scope{display:block}
.research-results{display:flex;flex-direction:column;gap:22px}
.research-economic-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:16px}
.research-revenue-group{display:flex;flex-direction:column;gap:16px;min-width:0}
.research-revenue,.research-labor{border-radius:28px;padding:30px;min-width:0;display:flex;flex-direction:column}
.research-revenue{background:linear-gradient(145deg,#354d77 0%,#303d5a 60%,#353638 100%);position:relative;overflow:hidden}
.research-labor{background:#353638}
.research-results h2{font-size:25px;letter-spacing:-.025em;line-height:1.2;margin:12px 0 18px}
.research-revenue h2{max-width:420px}
.research-money{display:block;font-size:clamp(27px,3.4vw,48px);font-weight:650;letter-spacing:-.045em;line-height:1.2;margin:8px 0 10px;overflow-wrap:anywhere}
.research-revenue .research-money{font-size:clamp(32px,3.8vw,56px)}
.research-money.is-unavailable{font-size:26px;line-height:1.25}
.research-results p{font-size:14px;line-height:1.55;color:#c7c8cd;margin:9px 0}
.research-revenue .research-annual{color:#e0e1e6;max-width:410px}
.research-revenue .research-save-caption{font-size:15px;font-weight:500;line-height:1.4;color:#f7f7fb;margin:18px 0 0}
.research-revenue-foot{margin-top:auto;padding-top:25px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:#dddfe8}
.research-revenue-foot a{color:#fff;text-underline-offset:4px}
.research-labor-inputs{margin:15px 0 8px;border-top:1px solid #ffffff20}
.research-labor-inputs>div{display:flex;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #ffffff20;font-size:14px}
.research-labor-inputs b{font-weight:550;text-align:right}
.research-labor-details{margin-top:auto;padding-top:14px}
.research-results summary{cursor:pointer;font-size:14px;color:#e3e4e8}
.research-labor-details p{font-size:12px}
.research-calculation,.research-method{background:#2e2f31;border-radius:24px;padding:22px 28px;min-width:0}
.research-calculation>summary{display:flex;justify-content:space-between;align-items:center;gap:20px;list-style:none}
.research-calculation>summary::-webkit-details-marker{display:none}
.research-calculation>summary b{display:block;font-size:20px;margin:6px 0}
#research-calculation-summary{display:block;font-size:13px;line-height:1.5;color:#b8b9be}
.research-disclosure{font-size:28px;font-weight:300}
.research-calculation[open] .research-disclosure{transform:rotate(45deg)}
.research-calculation-body{padding-top:22px}
.research-table-scroll{overflow:auto}
.research-calculation table{width:100%;border-collapse:collapse;text-align:left;min-width:560px}
.research-calculation th,.research-calculation td{padding:15px 14px 15px 0;border-bottom:1px solid #ffffff15;font-size:14px;vertical-align:top}
.research-calculation th{font-size:12px;color:#b5b6bd;font-weight:500}
.research-calculation td small{display:block;font-size:11px;letter-spacing:0;line-height:1.4;margin-top:6px;max-width:190px}
.research-calculation-body>p{font-size:13px;max-width:860px;margin-top:17px}
.research-section-heading{padding:10px 4px 18px}
.research-section-heading h2{margin-bottom:10px}
.research-section-heading p{max-width:740px;color:#b0b1b7}
.research-problem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.research-metric{padding:24px;min-height:260px;justify-content:flex-start}
.research-metric strong{font-size:46px;margin:20px 0 8px}
.research-metric p{font-size:16px;color:#fff;line-height:1.35;max-width:270px}
.research-metric .research-share{font-size:12px;line-height:1.5;color:#e0e1e5;margin-top:8px}
.rm-slate{background:#4b5063}
.research-secondary{margin:16px 0 0}
.research-secondary>span{font-size:12px;line-height:1.5;opacity:1;color:#d3dce8}
.research-compare small{font-size:10px!important}
.research-compare b{font-size:15px}
.research-compare span{font-size:12px}
.research-example-link{background:none;border:0;border-top:1px solid #ffffff26;text-align:left;color:#fff;font:inherit;font-size:12px;padding:14px 0 0;margin-top:auto;cursor:pointer}
.research-metric .research-example-link{margin-top:20px}
.research-evidence{padding:28px;scroll-margin-top:24px}
.research-evidence .module-title{align-items:flex-start;gap:15px;flex-wrap:wrap}
.research-evidence .module-title h2{font-size:25px;margin:10px 0}
.research-evidence-tabs{gap:8px;margin:20px 0 8px}
.research-evidence-tabs button{font-size:12px;padding:11px 15px}
.research-evidence-item{gap:24px;padding:24px 0;border-color:#ffffff18}
.research-evidence-item a{font-size:12px;padding:12px 15px;white-space:nowrap}
.research-speaker{display:block;margin:0 0 8px;color:#b2b3ba!important;font-size:11px!important}
.research-evidence-quote{font-size:14px!important;line-height:1.65!important;margin:0 0 18px!important}
.research-evidence-finding{font-size:13px!important;color:#e6d9bc!important;line-height:1.5!important}
.research-results .research-evidence-empty{font-size:14px;line-height:1.5}
.evidence-hint{font-size:12px;color:#b0b1b7}
.research-action{padding:28px;min-height:0;display:block;background:#2e3833}
.research-takeover{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}
.research-takeover>div{display:flex;gap:16px;align-items:flex-start}
.research-takeover>div>small{padding-top:2px;color:#9ebba9}
.research-takeover b{font-size:16px;font-weight:550;line-height:1.4}
.research-takeover p{font-size:14px;color:#bacac0;margin:7px 0 0}
.research-link-button{display:inline-flex;align-self:flex-start;color:#f3f3ef;background:#454a46;padding:12px 17px;border:0;border-radius:18px;font:inherit;font-size:13px;cursor:pointer;text-decoration:none;margin-top:14px}
.research-link-button:disabled{opacity:.5;cursor:wait}
.research-method p{font-size:13px;max-width:870px}
.research-method summary{font-size:15px}
.research-progress-meta{font-size:13px;line-height:1.5;gap:15px}
.research-report :focus-visible{outline:2px solid #c1d6ff;outline-offset:5px}
@media(max-width:1100px){.research-economic-grid{grid-template-columns:1.15fr 1fr}.research-problem-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.research-revenue,.research-labor{padding:25px}.research-money{font-size:30px}}
@media(max-width:680px){.research-report-head{padding:16px 4px;gap:12px;align-items:flex-start}.research-report-head h1{font-size:28px}.research-report-head button{width:34px;height:34px}.research-economic-grid{grid-template-columns:1fr}.research-problem-grid{grid-template-columns:1fr}.research-results{gap:16px}.research-revenue,.research-labor,.research-calculation,.research-evidence,.research-action,.research-method{padding:23px;border-radius:23px}.research-revenue .research-money{font-size:38px}.research-money{font-size:33px}.research-money.is-unavailable,.research-revenue .research-money.is-unavailable{font-size:25px}.research-metric{min-height:0}.research-metric strong{margin-top:16px}.research-takeover{grid-template-columns:1fr}.research-evidence-item{grid-template-columns:1fr}.research-evidence-item a{justify-self:start}.research-evidence-tabs{flex-wrap:wrap;overflow:visible}.research-evidence-tabs button{white-space:normal;text-align:left}.research-results h2{font-size:23px}.research-progress-card{padding:23px}.research-progress-top strong{font-size:30px}.research-report{padding-bottom:90px}}
@media(prefers-reduced-motion:reduce){.research-report *{scroll-behavior:auto!important;transition:none!important}}

/* Keep comparison presentation hidden with its absent primary metric. */
#metric-next-step[hidden] ~ #compare-next-step{display:none!important}

/* ===== BAMSI pre-token express audit ===== */
.pretoken-audit{margin:22px 0 0;padding:30px;border-radius:28px;background:#f3f3ef;color:#171717}.pretoken-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:24px}.pretoken-head small,.pretoken-unlock small,.pretoken-signal small{font-size:10px;letter-spacing:.08em;color:#858585}.pretoken-head h1{font-size:34px;line-height:1.02;margin:7px 0 8px;max-width:720px}.pretoken-head p{margin:0;color:#666;font-size:13px}.pretoken-free{border:1px solid #d5d5cf;border-radius:999px;padding:9px 13px;font-size:11px;white-space:nowrap}.pretoken-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.pretoken-signal{min-height:170px;padding:18px;border-radius:18px;background:#fff;display:flex;flex-direction:column}.pretoken-signal>span{font-size:10px;color:#aaa;margin-bottom:24px}.pretoken-signal strong{font-size:20px;line-height:1.05;margin:7px 0 9px}.pretoken-signal p{font-size:11px;line-height:1.45;color:#777;margin:auto 0 0}.pretoken-signal.locked{background:#222;color:#fff}.pretoken-signal.locked small,.pretoken-signal.locked>span,.pretoken-signal.locked p{color:#9e9e9e}.pretoken-unlock{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;margin-top:12px}.pretoken-unlock-copy,.pretoken-connect{border-radius:20px;padding:24px;background:#fff}.pretoken-unlock-copy h2{font-size:26px;line-height:1.05;margin:8px 0 12px}.pretoken-unlock-copy p{font-size:13px;line-height:1.5;color:#666;max-width:620px}.pretoken-unlock-copy b{display:block;margin-top:18px;font-size:12px}.pretoken-connect{background:#2468ff;color:#fff}.pretoken-vk-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}.pretoken-vk-title>span{width:42px;height:42px;border-radius:12px;background:#fff;color:#2468ff;display:grid;place-items:center;font-size:12px;font-weight:900}.pretoken-vk-title div{display:grid;gap:3px}.pretoken-vk-title strong{font-size:16px}.pretoken-vk-title small{color:rgba(255,255,255,.7);letter-spacing:0;font-size:10px}.pretoken-connect .platform-token-help{margin:0 0 13px!important}.pretoken-connect .platform-vk-form{grid-template-columns:1fr auto!important}.pretoken-connect .platform-vk-form button{width:auto!important;border-radius:20px!important;padding:0 15px!important;font-size:10px!important}.pretoken-safe{font-size:10px;line-height:1.4;color:rgba(255,255,255,.7);margin:11px 0 0}.pretoken-connect .platform-vk-status{color:#fff!important}.pretoken-audit[hidden],.spatial-dashboard[hidden]{display:none!important}@media(max-width:900px){.pretoken-grid{grid-template-columns:1fr 1fr}.pretoken-unlock{grid-template-columns:1fr}.pretoken-head h1{font-size:28px}}@media(max-width:600px){.pretoken-audit{padding:18px;border-radius:20px}.pretoken-grid{grid-template-columns:1fr}.pretoken-head{display:block}.pretoken-free{display:inline-block;margin-top:14px}}

/* Pretoken 35% analysis gate */
.pretoken-progress{position:relative;height:34px;margin:-6px 0 18px;border-radius:999px;background:#deded8;overflow:hidden}.pretoken-progress i{position:absolute;inset:0 auto 0 0;width:35%;border-radius:999px;background:#2468ff}.pretoken-progress span{position:absolute;left:calc(35% - 42px);top:50%;transform:translateY(-50%);font-size:11px;font-weight:900;color:#fff}.pretoken-continue{margin-top:22px;border:0;border-radius:999px;background:#171717;color:#fff;padding:15px 22px;font-size:13px;font-weight:800;cursor:pointer}.pretoken-continue:hover{transform:translateY(-1px)}.pretoken-connect[hidden]{display:none!important}.pretoken-unlock:has(.pretoken-connect[hidden]){grid-template-columns:1fr}.pretoken-unlock:has(.pretoken-connect[hidden]) .pretoken-unlock-copy{max-width:none}.pretoken-progress-copy{max-width:780px}


/* v74 — complete owner-facing Research metrics and explicit no-data state. */
.research-empty-state{background:#353638;border-radius:28px;padding:32px}
.research-empty-state small,.research-overview small{font-size:11px;letter-spacing:.09em;color:#c2c3c8}
.research-empty-state h2{font-size:27px;margin:12px 0}
.research-empty-state p{max-width:760px}
.research-overview{background:#2e2f31;border-radius:28px;padding:28px}
.research-overview .research-section-heading{padding-top:0}
.research-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.research-overview-grid>div{background:#38393b;border-radius:20px;padding:20px;min-width:0}
.research-overview-grid strong{display:block;font-size:29px;letter-spacing:-.04em;margin:10px 0 4px}
.research-overview-grid p{font-size:12px;margin:0;color:#bfc0c5}
.research-response-distribution{margin-top:20px;padding-top:20px;border-top:1px solid #ffffff18}
.research-response-distribution>b{font-size:14px;font-weight:550}
#research-response-buckets{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#research-response-buckets span{display:flex;gap:12px;align-items:center;background:#38393b;border-radius:15px;padding:9px 12px;font-size:12px}
#research-response-buckets b{font-weight:500;color:#c7c8cd}#research-response-buckets i{font-style:normal;font-weight:650;color:#fff}
@media(max-width:900px){.research-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.research-overview,.research-empty-state{padding:23px;border-radius:23px}.research-overview-grid{grid-template-columns:1fr}}


/* v74 — final owner registration is an overlay above the platform shell. */
.register-panel.launch-registration {
  position: fixed;
  inset: 0;
  z-index: 10000;
  border-radius: 0;
}


/* ===== BAMSI toolbar — approved UX, 2026-10-06 =====
   Replaces the rejected prototype rail/dock only. The platform content and
   onboarding logic remain untouched. One surface widens on hover; icons never
   move and rows never receive a blue hover fill. */
.spatial-rail,.spatial-dock{display:none!important}
.bamsi-toolbar{
  position:fixed;
  left:42px;
  top:50%;
  transform:translateY(-50%);
  z-index:40;

  width:52px;
  padding:6px 0;
  box-sizing:border-box;
  overflow:hidden;

  display:flex;
  flex-direction:column;
  gap:3px;

  border:0;
  outline:0;
  border-radius:26px;

  background:rgba(58,59,62,.93);
  box-shadow:
    0 12px 28px rgba(0,0,0,.23),
    inset 0 1px 0 rgba(255,255,255,.035);

  -webkit-backdrop-filter:blur(13px) saturate(108%);
  backdrop-filter:blur(13px) saturate(108%);

  transition:width .24s cubic-bezier(.2,.72,.25,1);
}

.bamsi-toolbar:hover{
  width:164px;
  border-radius:26px;
}

.bamsi-toolbar-item{
  position:relative;
  z-index:1;

  width:164px;
  height:43px;
  flex:0 0 43px;

  margin:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;

  color:#c4c5c7;
  display:flex;
  align-items:center;
  text-align:left;

  font:500 13px/1 Arial,Helvetica,sans-serif;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.bamsi-toolbar-item:hover,
.bamsi-toolbar-item:focus-visible{
  background:transparent;
  color:#c4c5c7;
}

.bamsi-toolbar-icon{
  width:52px;
  height:43px;
  flex:0 0 52px;

  display:grid;
  place-items:center;

  color:#c4c5c7;
}

.bamsi-toolbar-item:focus-visible .bamsi-toolbar-icon svg{
  outline:2px solid #b3a2df;
  outline-offset:3px;
  border-radius:3px;
}

.bamsi-toolbar-icon svg{
  display:block;
  width:17px;
  height:17px;
  overflow:visible;
}

.bamsi-toolbar-item.active .bamsi-toolbar-icon{
  width:40px;
  height:40px;
  flex:0 0 40px;

  margin-left:6px;
  margin-right:6px;

  border-radius:50%;
  background:#2468ff;
  color:#fff;

  box-shadow:0 1px 4px rgba(0,0,0,.22);
}

.bamsi-toolbar-item.active .bamsi-toolbar-icon svg{
  width:21px;
  height:21px;
}

.bamsi-toolbar-item.active .bamsi-mark{
  transform:translateX(-1.5px);
}

.bamsi-toolbar-hover-shadow{
  position:absolute;
  z-index:0;
  pointer-events:none;

  left:5px;
  top:0;
  width:calc(100% - 10px);
  height:35px;

  border-radius:17.5px;
  opacity:0;

  background:rgba(31,32,34,.30);
  box-shadow:inset 0 0 13px rgba(0,0,0,.13);

  transform:translateY(0);

  transition:
    transform .34s cubic-bezier(.2,.78,.22,1),
    opacity .18s ease,
    width .24s cubic-bezier(.2,.72,.25,1);

  will-change:transform;
}

.bamsi-toolbar-hover-shadow.is-visible{
  opacity:1;
}

.bamsi-toolbar-label{
  white-space:nowrap;
  opacity:0;
  transform:translateX(-3px);
  pointer-events:none;

  font-size:13px;
  font-weight:500;

  transition:
    opacity .13s ease .04s,
    transform .18s ease .02s;
}

.bamsi-toolbar:hover .bamsi-toolbar-label{
  opacity:1;
  transform:translateX(0);
}

.bamsi-toolbar-item:hover .bamsi-toolbar-label,
.bamsi-toolbar-item.active .bamsi-toolbar-label{
  color:#f5f5f3;
}

@media(max-width:980px){
  .bamsi-toolbar{display:none}
}

/* ===== onboarding step 01 ===== */
.pretoken-audit.onboarding-stage{margin:22px 0 0;padding:0;border-radius:30px;overflow:hidden;background:#f3f3ef;color:#171717}
.onboarding-main{min-height:570px;display:grid;grid-template-columns:minmax(330px,.82fr) minmax(480px,1.18fr)}
.onboarding-copy{padding:54px 44px 42px;display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid rgba(20,20,20,.07)}
.onboarding-count{font-size:11px;letter-spacing:.08em;color:#8d8d88}.onboarding-copy small,.onboarding-object-head small,.onboarding-research small{display:block;font-size:10px;letter-spacing:.09em;color:#8a8a85}
.onboarding-copy h1{max-width:500px;margin:10px 0 16px;font-size:42px;line-height:.98;letter-spacing:-.045em}.onboarding-copy p{max-width:470px;margin:0;color:#686864;font-size:14px;line-height:1.55}
.onboarding-next{width:max-content;border:0;border-radius:999px;padding:14px 20px;background:#171717;color:#fff;font:650 13px/1 inherit;cursor:pointer}.onboarding-next:disabled{opacity:.45;cursor:default}
.onboarding-object{margin:36px;padding:26px;min-width:0;border-radius:25px;background:#fff;box-shadow:0 18px 55px rgba(0,0,0,.07);display:flex;flex-direction:column}.onboarding-object-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #ecece8}.onboarding-object-head strong{display:block;margin-top:6px;font-size:20px}.onboarding-object-head>span{padding:8px 11px;border-radius:999px;background:#f1f1ed;color:#656560;font-size:11px}
.onboarding-knowledge-list{flex:1;min-height:0;max-height:385px;overflow:auto;padding:12px 3px 4px 0;display:grid;align-content:start}.onboarding-knowledge-list .activation-fact{padding:14px 4px;background:transparent;border-radius:0;border-bottom:1px solid #eeeeea}.onboarding-knowledge-list .activation-fact b{color:#1c1c1b;font-size:13px}.onboarding-knowledge-list .activation-fact span{margin-top:5px;color:#74746f;font-size:12px;line-height:1.45}.onboarding-object-note{margin:14px 0 0;color:#969690;font-size:10px;line-height:1.45}
.onboarding-research{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:8px 14px;align-items:center;padding:20px 28px;background:#202123;color:#f7f7f4}.onboarding-research-orb{width:9px;height:9px;border-radius:50%;background:#2468ff;box-shadow:0 0 0 5px rgba(36,104,255,.12)}.onboarding-research strong{display:block;margin-top:3px;font-size:13px}.onboarding-research small{color:#85878c}.onboarding-research p{margin:5px 0 0;color:#9d9fa4;font-size:10px;line-height:1.4}.onboarding-research>b{font-size:12px;color:#bfc0c3}.onboarding-research-track{grid-column:2/4;height:4px;overflow:hidden;border-radius:999px;background:#36383c}.onboarding-research-track i{display:block;width:35%;height:100%;border-radius:inherit;background:#2468ff}.pretoken-audit.onboarding-stage>.pretoken-connect{display:none!important}
@media(max-width:1050px){.onboarding-main{grid-template-columns:1fr;min-height:0}.onboarding-copy{min-height:400px;border-right:0;border-bottom:1px solid rgba(20,20,20,.07)}.onboarding-object{margin:24px}}@media(max-width:650px){.onboarding-copy{padding:34px 24px;min-height:380px}.onboarding-copy h1{font-size:34px}.onboarding-object{margin:14px;padding:20px}.onboarding-research{padding:18px 20px}}


/* ===== BAMSI onboarding — knowledge intro ===== */
.spatial-topbar{
  width:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-left:12px;
  padding-right:12px;
}
.spatial-topbar .business-chip{margin-right:auto}
.spatial-topbar .profile-dot{margin-left:auto}

.pretoken-audit.knowledge-intro{
  margin:22px 0 0;
  padding:0;
  overflow:hidden;
  border-radius:30px;
  background:#f3f3ef;
  color:#171717;
}
.knowledge-intro-main{
  min-height:520px;
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(520px,1.1fr);
}
.knowledge-intro-copy{
  padding:72px 54px;
  display:flex;
  align-items:center;
  border-right:1px solid rgba(20,20,20,.07);
}
.knowledge-intro-copy h1{
  margin:0 0 18px;
  font-size:58px;
  line-height:.94;
  letter-spacing:-.055em;
}
.knowledge-intro-copy p{
  max-width:510px;
  margin:0;
  color:#686864;
  font-size:16px;
  line-height:1.55;
}
.knowledge-intro-categories{
  padding:54px 46px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-content:center;
}
.knowledge-intro-categories button{
  min-height:142px;
  padding:24px 24px 22px;
  border:1px solid #e7e7e2;
  border-radius:24px;
  background:#fff;
  color:#1b1b1a;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  text-align:left;
  font:650 18px/1.18 inherit;
  cursor:pointer;
  box-shadow:0 12px 35px rgba(0,0,0,.045);
  transition:transform .18s ease, box-shadow .18s ease;
}
.knowledge-intro-categories button:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 42px rgba(0,0,0,.075);
}
.knowledge-intro-categories button i{
  font-style:normal;
  font-size:16px;
  color:#9b9b96;
}
.research-gauge{
  min-height:210px;
  padding:24px 42px 20px 48px;
  display:grid;
  grid-template-columns:minmax(300px,1fr) 440px;
  align-items:center;
  gap:28px;
  background:#202123;
  color:#f6f6f3;
}
.research-gauge-copy small{
  display:block;
  margin-bottom:8px;
  color:#85878c;
  font-size:10px;
  letter-spacing:.09em;
}
.research-gauge-copy strong{
  display:block;
  font-size:18px;
  line-height:1.15;
}
.research-gauge-copy p{
  max-width:520px;
  margin:8px 0 0;
  color:#9d9fa4;
  font-size:12px;
  line-height:1.45;
}
.research-gauge-meter{
  position:relative;
  height:164px;
}
.research-gauge-arc{
  position:absolute;
  left:50%;
  bottom:25px;
  width:300px;
  height:150px;
  transform:translateX(-50%);
  overflow:hidden;
}
.research-gauge-arc:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:300px 300px 0 0;
  background:conic-gradient(from 270deg at 50% 100%, #32c9ff 0deg, #55df9a 63deg, #35373b 63deg 180deg, transparent 180deg 360deg);
  -webkit-mask:radial-gradient(circle at 50% 100%, transparent 0 104px, #000 106px 124px, transparent 126px);
  mask:radial-gradient(circle at 50% 100%, transparent 0 104px, #000 106px 124px, transparent 126px);
}
.research-gauge-arc span{
  position:absolute;
  left:24px;
  bottom:19px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 5px rgba(50,201,255,.35);
}
.research-gauge-value{
  position:absolute;
  left:50%;
  bottom:31px;
  transform:translateX(-50%);
  text-align:center;
}
.research-gauge-value small{
  display:block;
  margin-bottom:1px;
  color:#77797e;
  font-size:9px;
  letter-spacing:.08em;
}
.research-gauge-value b{
  font-size:43px;
  line-height:1;
  letter-spacing:-.04em;
}
.research-gauge-min,.research-gauge-max{
  position:absolute;
  bottom:8px;
  color:#77797e;
  font-size:9px;
}
.research-gauge-min{left:25px}
.research-gauge-max{right:20px}
.pretoken-audit.knowledge-intro>.pretoken-connect{display:none!important}
@media(max-width:1050px){
  .knowledge-intro-main{grid-template-columns:1fr}
  .knowledge-intro-copy{padding:50px 34px;border-right:0;border-bottom:1px solid rgba(20,20,20,.07)}
  .knowledge-intro-categories{padding:28px 34px 40px}
  .research-gauge{grid-template-columns:1fr;padding:28px 34px}
  .research-gauge-copy{text-align:center}
  .research-gauge-copy p{margin-left:auto;margin-right:auto}
  .research-gauge-meter{width:440px;max-width:100%;margin:auto}
}
@media(max-width:650px){
  .knowledge-intro-copy h1{font-size:44px}
  .knowledge-intro-categories{grid-template-columns:1fr}
  .knowledge-intro-categories button{min-height:96px}
}


/* ===== BAMSI knowledge cards/detail v5 ===== */
.knowledge-intro-right{position:relative;min-width:0}
.knowledge-intro-right .knowledge-intro-categories{height:100%;box-sizing:border-box}
.knowledge-intro-categories button{justify-content:flex-start;gap:14px}
.knowledge-intro-categories button span{max-width:290px}
.knowledge-intro-categories button small{margin-top:auto;color:#999993;font:500 11px/1.2 inherit}
.knowledge-detail{height:100%;box-sizing:border-box;padding:48px 46px;background:#f3f3ef;overflow:auto}
.knowledge-detail-back{border:0;background:transparent;padding:0;color:#777772;font:600 12px/1 inherit;cursor:pointer}
.knowledge-detail-head{margin-top:54px}
.knowledge-detail-head>small{color:#989892;font-size:10px;letter-spacing:.1em}
.knowledge-detail-head h2{max-width:560px;margin:9px 0 12px;font-size:34px;line-height:1.06;letter-spacing:-.04em}
.knowledge-detail-head p{max-width:540px;margin:0;color:#74746f;font-size:13px;line-height:1.5}
.knowledge-detail-list{display:grid;gap:10px;margin-top:30px}
.knowledge-detail-item{padding:16px 18px;border:1px solid #e5e5df;border-radius:16px;background:#fff}
.knowledge-detail-item b{display:block;font-size:13px;line-height:1.35}
.knowledge-detail-item span{display:block;margin-top:6px;color:#74746f;font-size:12px;line-height:1.5}
.knowledge-detail-empty{padding:24px;border:1px dashed #d2d2cc;border-radius:16px;color:#85857f;font-size:12px;line-height:1.5}


/* ===== BAMSI knowledge detail v6: stable right-pane swap ===== */
.knowledge-intro-right{min-height:520px}
.knowledge-intro-right>.knowledge-intro-categories{height:100%}
.knowledge-intro-right>.knowledge-detail{display:block;width:100%;height:100%;min-height:520px;box-sizing:border-box;padding:48px 46px;background:#f3f3ef;color:#171717;overflow:auto}
.knowledge-detail-back:hover{color:#171717}

/* ===== BAMSI knowledge rules v7: one inline autosave document ===== */
.knowledge-detail-rules .knowledge-detail-list{display:block;margin-top:26px}
.knowledge-rules-editor{display:block;width:100%;min-height:260px;box-sizing:border-box;resize:none;overflow:auto;border:1px solid #deded8;border-radius:18px;background:#fff;padding:22px 24px;color:#22221f;font:500 13px/1.62 inherit;outline:0;cursor:text;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.knowledge-rules-editor[readonly]{cursor:text}
.knowledge-rules-editor:hover{border-color:#c9c9c2;background:#fdfdfb}
.knowledge-rules-editor:focus{border-color:#a9a9a1;background:#fff;box-shadow:0 0 0 3px rgba(23,23,23,.045)}
.knowledge-rules-editor.is-saving{opacity:.82}
.knowledge-rules-editor.has-error{border-color:#b58a83}
.knowledge-rules-state{min-height:16px;margin:9px 4px 0;color:#999993;font-size:10px;line-height:1.35;letter-spacing:.01em}


/* ===== BAMSI onboarding layout v11 ===== */
.platform-screen.bamsi-dark{padding-top:18px!important;padding-bottom:18px!important}
.spatial-stage{width:calc(100% - 92px)!important;max-width:none!important;margin-left:92px!important;margin-right:0!important}
.spatial-topbar{width:100%!important;height:42px!important;padding:0!important;margin:0 0 10px!important}
.spatial-topbar .business-chip{margin-left:0!important}
.spatial-topbar .profile-dot{margin-left:auto!important;margin-right:0!important}

/* Compact future-dashboard component */
.business-analysis-widget{
  width:390px;max-width:calc(100% - 24px);box-sizing:border-box;margin:0 0 10px 0;padding:12px 14px 11px;
  border:1px solid #3a3b3e;border-radius:20px;background:#27282a;color:#f7f7f4;
  box-shadow:0 10px 24px rgba(0,0,0,.14)
}
.business-analysis-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.business-analysis-top small{display:block;margin-bottom:3px;color:#8d8f93;font-size:7px;letter-spacing:.1em}
.business-analysis-top strong{display:block;font-size:13px;line-height:1.08}
.business-analysis-top>span{padding:4px 7px;border:1px solid #46484c;border-radius:999px;color:#b7b9bd;font-size:7px;white-space:nowrap}
.business-analysis-percent{margin:6px 0 7px;font-size:31px;font-weight:750;line-height:.9;letter-spacing:-.055em}
.business-analysis-percent sup{margin-left:1px;color:#92949a;font-size:.48em;vertical-align:top;position:relative;top:.08em}
.business-analysis-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.business-analysis-progress:before{content:"";grid-column:1;grid-row:1;height:9px;border:1px solid #4b4d51;border-radius:999px;background:#393a3e}
.business-analysis-progress i{grid-column:1;grid-row:1;display:block;width:35%;height:9px;border-radius:999px;background:linear-gradient(90deg,#d8ff45 0%,#aaff74 28%,#a7f7d8 63%,#e5fbff 100%);box-shadow:0 0 12px rgba(216,255,69,.12)}
.business-analysis-progress>span{grid-column:2;grid-row:1;color:#9b9da2;font-size:7px;white-space:nowrap}
.business-analysis-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:8px}
.business-analysis-bottom p{max-width:245px;margin:0;color:#919398;font-size:7px;line-height:1.35}
.business-analysis-more{appearance:none;border:1px solid #515359;border-radius:999px;background:#2d2e31;color:#f4f4f1;padding:5px 9px;font:650 9px/1 inherit;cursor:pointer;white-space:nowrap}
.business-analysis-more:hover{background:#343539;border-color:#66686d}

.pretoken-audit.knowledge-intro{margin:0!important}
.knowledge-intro-main{min-height:0!important;height:calc(100vh - 42px - 10px - 137px - 10px - 36px)!important;max-height:640px!important;min-height:430px!important}
.knowledge-intro-copy{padding:clamp(36px,5vh,64px) 54px!important}
.knowledge-intro-categories{padding:clamp(30px,4vh,48px) 46px!important}
.knowledge-intro-categories button{min-height:clamp(112px,15vh,142px)!important}
.knowledge-intro-right{min-height:0!important}
.knowledge-intro-right>.knowledge-detail{min-height:0!important;height:100%!important}

@media(max-height:820px){
  .business-analysis-widget{width:360px;padding:9px 12px 8px;border-radius:17px}
  .business-analysis-percent{font-size:27px;margin:4px 0 5px}
  .business-analysis-progress:before,.business-analysis-progress i{height:8px}
  .business-analysis-bottom{margin-top:6px}
  .knowledge-intro-main{min-height:390px!important;height:calc(100vh - 42px - 10px - 119px - 10px - 36px)!important}
  .knowledge-intro-copy h1{font-size:50px!important}
  .knowledge-intro-categories button{min-height:108px!important;padding:19px 20px!important}
}
@media(max-width:1050px){
  .spatial-stage{width:calc(100% - 76px)!important;margin-left:76px!important}
  .business-analysis-widget{width:min(390px,72vw)}
  .knowledge-intro-main{height:auto!important;max-height:none!important;min-height:0!important}
}

/* ===== BAMSI onboarding layout v12 — balanced stage + reference analysis card ===== */
.platform-screen.bamsi-dark{
  padding:18px 44px 18px 132px!important;
  overflow:hidden;
}
.spatial-stage{
  width:min(1280px,calc(100vw - 220px))!important;
  max-width:1280px!important;
  margin:0 auto!important;
}
.spatial-topbar{
  width:calc(100% + 72px)!important;
  height:42px!important;
  margin:0 0 12px -36px!important;
  padding:0!important;
}
.spatial-topbar .business-chip{margin:0!important}
.spatial-topbar .profile-dot{margin:0 0 0 auto!important}

.business-analysis-widget{
  width:390px!important;
  max-width:390px!important;
  min-height:206px;
  margin:0 0 12px 0!important;
  padding:18px 20px 17px!important;
  border:1px solid #3d3f43!important;
  border-radius:28px!important;
  background:#292a2c!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
.business-analysis-top{align-items:center!important;justify-content:flex-start!important;gap:10px!important}
.business-analysis-top>div{display:flex;align-items:center;gap:10px;min-width:0}
.business-analysis-top small{display:none!important}
.business-analysis-top strong{font-size:20px!important;line-height:1!important;letter-spacing:-.025em}
.business-analysis-top strong:before{content:"✣";display:inline-block;margin-right:10px;color:#f5f5f2;font-size:17px;font-weight:400;vertical-align:1px}
.business-analysis-top>span{
  margin-left:0!important;padding:5px 9px!important;border-color:#47494d!important;
  color:#b9bbc0!important;font-size:9px!important
}
.business-analysis-percent{
  margin:18px 0 12px!important;font-size:52px!important;font-weight:700!important;
  line-height:.84!important;letter-spacing:-.065em!important
}
.business-analysis-percent sup{font-size:.46em!important;color:#9b9da3!important;top:.04em!important}
.business-analysis-progress{
  position:relative!important;display:block!important;height:34px!important;margin:0!important;
  overflow:visible!important;border:1px solid #505257!important;border-radius:999px!important;
  background:#3a3c40!important
}
.business-analysis-progress:before{display:none!important}
.business-analysis-progress i{
  position:absolute!important;left:-1px!important;top:-1px!important;width:35%!important;height:34px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#cfff45 0%,#8dff77 28%,#65f1c4 62%,#66e8f5 100%)!important;
  box-shadow:0 0 9px rgba(197,255,69,.34),0 0 18px rgba(102,232,245,.25)!important
}
.business-analysis-progress>span{
  position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;
  color:#d1d2d5!important;font-size:9px!important;font-weight:600!important;white-space:nowrap!important
}
.business-analysis-bottom{align-items:center!important;margin-top:15px!important;gap:14px!important}
.business-analysis-bottom p{max-width:230px!important;color:#989a9f!important;font-size:8px!important;line-height:1.4!important}
.business-analysis-more{
  margin-left:auto!important;min-height:32px!important;padding:6px 12px!important;
  border-color:#55585e!important;background:#2c2d30!important;color:#f4f4f2!important;
  font-size:10px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)
}

.pretoken-audit.knowledge-intro{margin:0!important}
.knowledge-intro-main{
  height:calc(100vh - 18px - 42px - 12px - 206px - 12px - 18px)!important;
  min-height:390px!important;max-height:610px!important
}
.knowledge-intro-copy{padding:clamp(34px,5vh,58px) 54px!important}
.knowledge-intro-categories{padding:clamp(28px,4vh,44px) 46px!important}
.knowledge-intro-categories button{min-height:clamp(104px,14vh,136px)!important}

@media(max-height:820px){
  .business-analysis-widget{width:360px!important;max-width:360px!important;min-height:178px!important;padding:14px 16px!important;border-radius:24px!important}
  .business-analysis-top strong{font-size:17px!important}
  .business-analysis-percent{font-size:43px!important;margin:13px 0 9px!important}
  .business-analysis-progress{height:28px!important}.business-analysis-progress i{height:28px!important}
  .business-analysis-bottom{margin-top:10px!important}
  .knowledge-intro-main{height:calc(100vh - 18px - 42px - 12px - 178px - 12px - 18px)!important;min-height:360px!important}
}
@media(max-width:1050px){
  .platform-screen.bamsi-dark{padding-left:92px!important;padding-right:24px!important;overflow:auto}
  .spatial-stage{width:100%!important;max-width:none!important}
  .spatial-topbar{width:100%!important;margin-left:0!important}
  .business-analysis-widget{width:min(390px,100%)!important;max-width:100%!important}
  .knowledge-intro-main{height:auto!important;max-height:none!important;min-height:0!important}
}

/* v12.1 — onboarding is primary, analysis is secondary */

/* Вся рабочая композиция */
.pretoken-audit{
  width:min(1360px, calc(100vw - 128px))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Основной белый onboarding — главный объект */
.knowledge-intro{
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Компактный вторичный виджет */
.business-analysis-widget{
  width:330px!important;
  min-height:0!important;
  padding:14px 16px!important;
  border-radius:20px!important;
  margin-bottom:14px!important;
  box-shadow:none!important;
}

/* Убираем декоративную иконку и badge */
.business-analysis-widget .analysis-widget-icon,
.business-analysis-widget .analysis-widget-status{
  display:none!important;
}

/* Верх виджета */
.business-analysis-widget .analysis-widget-head{
  display:block!important;
  position:relative!important;
  min-height:52px!important;
}

/* Заголовок ниже и спокойнее */
.business-analysis-widget .analysis-widget-title{
  font-size:15px!important;
  line-height:1.1!important;
  margin:22px 72px 0 0!important;
}

/* 35% уводим вправо */
.business-analysis-widget .analysis-widget-percent{
  position:absolute!important;
  top:14px!important;
  right:16px!important;
  margin:0!important;
  font-size:28px!important;
  line-height:1!important;
  font-weight:700!important;
}

.business-analysis-widget .analysis-widget-percent span{
  font-size:14px!important;
}

/* Progress становится вторичным */
.business-analysis-widget .analysis-widget-progress{
  height:14px!important;
  margin-top:10px!important;
  box-shadow:none!important;
}

.business-analysis-widget .analysis-widget-progress-fill{
  box-shadow:0 0 10px rgba(126,255,198,.22)!important;
}

/* Подпись внутри остатка полосы */
.business-analysis-widget .analysis-widget-progress-label{
  font-size:7px!important;
  font-weight:500!important;
}

/* Нижняя строка */
.business-analysis-widget .analysis-widget-footer{
  margin-top:11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}

/* Старое описание убираем */
.business-analysis-widget .analysis-widget-note{
  display:none!important;
}

/* "Подробнее" оставляем компактным */
.business-analysis-widget .analysis-widget-more{
  min-height:28px!important;
  padding:4px 10px!important;
  font-size:9px!important;
  border-radius:999px!important;
}

/* Белый блок — визуально по центру, содержимое выше */
.knowledge-intro-main{
  align-items:center!important;
}

.knowledge-intro-copy,
.knowledge-intro-categories{
  transform:translateY(-34px);
}

/* Немного больше места карточкам справа */
.knowledge-intro-main{
  grid-template-columns:46% 54%!important;
}

@media (max-height: 800px){
  .business-analysis-widget{
    width:310px!important;
    padding:11px 14px!important;
    margin-bottom:10px!important;
  }

  .business-analysis-widget .analysis-widget-title{
    margin-top:18px!important;
  }

  .knowledge-intro-copy,
  .knowledge-intro-categories{
    transform:translateY(-20px);
  }
}


/* ===== BAMSI widget final composition ===== */

/* Глобальная рабочая область: onboarding — центральный главный объект */
.spatial-stage{
  width:min(1360px,calc(100vw - 170px))!important;
  max-width:1360px!important;
  margin:0 auto!important;
}

/* Компания и аккаунт расходятся по краям рабочей области */
.spatial-topbar{
  width:calc(100% + 64px)!important;
  margin-left:-32px!important;
  margin-right:-32px!important;
  padding:0!important;
}

/* Белый onboarding — главный визуальный объект */
.pretoken-audit.knowledge-intro{
  width:100%!important;
  margin:12px auto 0!important;
}

.knowledge-intro-main{
  grid-template-columns:46% 54%!important;
}

.knowledge-intro-copy,
.knowledge-intro-categories{
  transform:translateY(-24px);
}

/* Анализ — маленький вторичный dashboard widget */
.business-analysis-widget{
  width:318px!important;
  max-width:318px!important;
  box-sizing:border-box!important;
  margin:8px 0 0!important;
  padding:13px 14px 12px!important;
  border:1px solid #393a3d!important;
  border-radius:18px!important;
  background:#27282a!important;
  color:#f7f7f4!important;
  box-shadow:0 8px 20px rgba(0,0,0,.10)!important;
}

/* Заголовок ниже, процент справа */
.business-analysis-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:12px!important;
  min-height:43px!important;
}

.business-analysis-head strong{
  align-self:end!important;
  padding-bottom:2px!important;
  font-size:14px!important;
  line-height:1.05!important;
  font-weight:700!important;
}

.business-analysis-percent{
  margin:0!important;
  font-size:27px!important;
  line-height:.9!important;
  font-weight:750!important;
  letter-spacing:-.055em!important;
  text-align:right!important;
}

.business-analysis-percent sup{
  margin-left:1px!important;
  color:#92949a!important;
  font-size:.47em!important;
  vertical-align:top!important;
  position:relative!important;
  top:.08em!important;
}

/* Progress остаётся характерной частью, но не доминирует */
.business-analysis-progress{
  position:relative!important;
  display:block!important;
  height:18px!important;
  margin-top:10px!important;
  overflow:hidden!important;
  border:1px solid #494b4f!important;
  border-radius:999px!important;
  background:#393a3e!important;
}

.business-analysis-progress:before{
  display:none!important;
}

.business-analysis-progress i{
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:35%!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#dfff45 0%,#9cff69 28%,#64ebbd 63%,#55d9ed 100%)!important;
  box-shadow:0 0 10px rgba(123,242,185,.20)!important;
}

.business-analysis-progress>span{
  position:absolute!important;
  top:50%!important;
  right:10px!important;
  transform:translateY(-50%)!important;
  color:#d0d1d2!important;
  font-size:7px!important;
  line-height:1!important;
  font-weight:600!important;
  white-space:nowrap!important;
}

/* Две реальные кнопки */
.business-analysis-bottom{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-top:10px!important;
}

.business-analysis-connect,
.business-analysis-more{
  appearance:none!important;
  min-height:27px!important;
  border:1px solid #4b4d51!important;
  border-radius:999px!important;
  background:#2d2e31!important;
  color:#f4f4f1!important;
  padding:5px 9px!important;
  font:650 8px/1 inherit!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}

.business-analysis-connect{
  border-color:#626469!important;
  background:#343538!important;
}

.business-analysis-connect:hover,
.business-analysis-more:hover{
  background:#3b3c40!important;
  border-color:#707277!important;
}

/* Старые части v11/v12 физически отсутствуют, но гасим возможные стили */
.business-analysis-top,
.business-analysis-widget small{
  display:none!important;
}

/* На невысоком экране ничего не должно выпадать */
@media(max-height:820px){
  .business-analysis-widget{
    width:300px!important;
    max-width:300px!important;
    padding:10px 12px!important;
  }

  .business-analysis-head{
    min-height:36px!important;
  }

  .business-analysis-percent{
    font-size:24px!important;
  }

  .business-analysis-progress{
    height:16px!important;
    margin-top:7px!important;
  }

  .business-analysis-bottom{
    margin-top:7px!important;
  }

  .pretoken-audit.knowledge-intro{
    margin-top:9px!important;
  }

  .knowledge-intro-copy,
  .knowledge-intro-categories{
    transform:translateY(-18px);
  }
}

@media(max-width:1050px){
  .spatial-stage{
    width:calc(100vw - 110px)!important;
    margin-left:92px!important;
    margin-right:18px!important;
  }

  .spatial-topbar{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}

/* ===== Analysis widget — dashboard component v2 ===== */

.business-analysis-widget{
  width:340px!important;
  max-width:340px!important;
  min-height:154px!important;
  padding:18px 18px 16px!important;
  margin-left:28px!important;

  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;

  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:24px!important;

  background:
    linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,0) 55%),
    #27282a!important;

  box-shadow:
    0 16px 40px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.035)!important;
}

/* Заголовок + процент */
.business-analysis-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:20px!important;
  min-height:auto!important;
}

.business-analysis-head strong{
  padding:3px 0 0!important;
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:650!important;
  letter-spacing:-.015em!important;
}

.business-analysis-percent{
  font-size:34px!important;
  line-height:.88!important;
  font-weight:700!important;
  letter-spacing:-.06em!important;
}

.business-analysis-percent sup{
  top:.05em!important;
  margin-left:2px!important;
  font-size:14px!important;
  color:#929499!important;
}

/* Progress — главный графический элемент карточки */
.business-analysis-progress{
  position:relative!important;
  height:25px!important;
  margin-top:18px!important;

  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:999px!important;

  background:#393b3f!important;
  box-shadow:
    inset 0 1px 4px rgba(0,0,0,.20)!important;
}

.business-analysis-progress i{
  width:35%!important;
  border-radius:999px!important;

  background:linear-gradient(
    90deg,
    #dfff45 0%,
    #a8ff63 24%,
    #72edac 56%,
    #52dbea 100%
  )!important;

  box-shadow:
    0 0 16px rgba(100,237,190,.32),
    8px 0 18px rgba(82,219,234,.16)!important;
}

.business-analysis-progress>span{
  right:13px!important;
  font-size:8px!important;
  font-weight:550!important;
  color:#c7c8ca!important;
}

/* Одна понятная CTA вместо панели кнопок */
.business-analysis-bottom{
  display:block!important;
  margin-top:16px!important;
}

.business-analysis-connect{
  width:auto!important;
  min-height:34px!important;

  padding:7px 15px!important;

  border:1px solid rgba(255,255,255,.20)!important;
  border-radius:999px!important;

  background:rgba(255,255,255,.055)!important;
  color:#f7f7f5!important;

  font-size:11px!important;
  line-height:1!important;
  font-weight:600!important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04)!important;

  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease!important;
}

.business-analysis-connect:hover{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.32)!important;
  transform:translateY(-1px)!important;
}

/* Подробнее больше не существует */
.business-analysis-more{
  display:none!important;
}

/* На низком экране сохраняем характер карточки */
@media(max-height:820px){
  .business-analysis-widget{
    width:326px!important;
    max-width:326px!important;
    min-height:140px!important;
    padding:15px 16px 14px!important;
  }

  .business-analysis-percent{
    font-size:31px!important;
  }

  .business-analysis-progress{
    height:22px!important;
    margin-top:14px!important;
  }

  .business-analysis-bottom{
    margin-top:13px!important;
  }
}


/* ===== BAMSI / Business analysis card — final visual pass ===== */
.business-analysis-widget{
  width:352px!important;
  max-width:352px!important;
  min-height:184px!important;
  box-sizing:border-box!important;
  margin-left:28px!important;
  padding:19px 18px 17px!important;
  position:relative!important;
  overflow:hidden!important;
  display:grid!important;
  grid-template-rows:auto 1fr auto!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:25px!important;
  background:
    radial-gradient(120% 90% at 10% 0%,rgba(255,255,255,.055),transparent 52%),
    linear-gradient(145deg,#292a2c 0%,#242527 100%)!important;
  box-shadow:0 18px 44px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
.business-analysis-widget:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(115deg,rgba(255,255,255,.025),transparent 38%);
}
.business-analysis-head{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  grid-template-rows:auto auto!important;
  align-items:start!important;
  gap:0 16px!important;
  min-height:70px!important;
  position:relative!important;
  z-index:1!important;
}
.business-analysis-head strong{
  grid-column:1!important;
  grid-row:1!important;
  margin:0!important;
  padding:2px 0 0!important;
  color:#f5f5f2!important;
  font-size:15px!important;
  line-height:1.1!important;
  font-weight:680!important;
  letter-spacing:-.018em!important;
}
.business-analysis-percent{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  align-self:end!important;
  margin:0 1px 1px 0!important;
  color:#fafaf7!important;
  font-size:46px!important;
  line-height:.82!important;
  font-weight:720!important;
  letter-spacing:-.065em!important;
  text-align:right!important;
}
.business-analysis-percent sup{
  position:relative!important;
  top:-.03em!important;
  margin-left:2px!important;
  color:#8f9196!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:650!important;
  letter-spacing:-.03em!important;
}
.business-analysis-progress{
  position:relative!important;
  z-index:1!important;
  width:100%!important;
  height:30px!important;
  margin:12px 0 0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#414348,#37393d)!important;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.business-analysis-progress i{
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:35%!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#d9ff49 0%,#a9ff68 25%,#71efaa 58%,#4ddff0 100%)!important;
  box-shadow:0 0 10px rgba(210,255,75,.26),8px 0 20px rgba(77,223,240,.34)!important;
}
.business-analysis-progress i:after{
  content:"";
  position:absolute;
  inset:1px 5px auto 10px;
  height:38%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,255,255,.24),rgba(255,255,255,.06));
  opacity:.6;
}
.business-analysis-progress>span{
  position:absolute!important;
  z-index:2!important;
  top:50%!important;
  right:12px!important;
  transform:translateY(-50%)!important;
  color:#d3d4d5!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:600!important;
  letter-spacing:-.01em!important;
  white-space:nowrap!important;
}
.business-analysis-bottom{
  position:relative!important;
  z-index:1!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:end!important;
  margin-top:15px!important;
}
.business-analysis-connect{
  appearance:none!important;
  width:auto!important;
  min-height:33px!important;
  margin:0!important;
  padding:7px 14px!important;
  border:1px solid rgba(255,255,255,.19)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  color:#f3f3f1!important;
  font:620 10px/1 Arial,Helvetica,sans-serif!important;
  letter-spacing:-.01em!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 5px 14px rgba(0,0,0,.09)!important;
  transition:transform .16s ease,border-color .16s ease,background .16s ease!important;
}
.business-analysis-connect:after{content:"  →";color:#cfd0d1}
.business-analysis-connect:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(255,255,255,.31)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.045))!important;
}
.business-analysis-more{display:none!important}
@media(max-height:820px){
  .business-analysis-widget{width:338px!important;max-width:338px!important;min-height:172px!important;padding:16px 16px 14px!important}
  .business-analysis-head{min-height:62px!important}
  .business-analysis-percent{font-size:42px!important}
  .business-analysis-progress{height:27px!important;margin-top:9px!important}
  .business-analysis-bottom{margin-top:12px!important}
}

/* ===== BAMSI business analysis — reference card geometry v2 ===== */
.business-analysis-widget{
  width:360px!important;
  max-width:360px!important;
  min-height:220px!important;
  margin-left:28px!important;
  padding:22px 24px 20px!important;
  display:block!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:28px!important;
  background:linear-gradient(145deg,#303133 0%,#27282a 100%)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.business-analysis-widget:after{display:none!important}
.business-analysis-head{
  display:block!important;
  min-height:0!important;
  position:relative!important;
}
.business-analysis-head strong{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#f5f5f3!important;
  font-size:18px!important;
  line-height:1.12!important;
  font-weight:560!important;
  letter-spacing:-.025em!important;
}
.business-analysis-percent{
  display:block!important;
  margin:17px 0 0!important;
  color:#fafaf7!important;
  font-size:53px!important;
  line-height:.82!important;
  font-weight:520!important;
  letter-spacing:-.065em!important;
  text-align:left!important;
}
.business-analysis-percent sup{
  position:relative!important;
  top:-.02em!important;
  margin-left:3px!important;
  color:#85878b!important;
  font-size:26px!important;
  line-height:1!important;
  font-weight:500!important;
}
.business-analysis-progress{
  position:relative!important;
  width:100%!important;
  height:31px!important;
  margin:17px 0 0!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:999px!important;
  background:#4a4c4f!important;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
.business-analysis-progress i{
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:65%!important;
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#caff4a 0%,#9cf26d 22%,#67e6ad 55%,#4edce9 100%)!important;
  box-shadow:0 0 14px rgba(202,255,74,.28),10px 0 24px rgba(78,220,233,.34)!important;
}
.business-analysis-progress i:after{
  content:""!important;
  position:absolute!important;
  inset:1px 6px auto 10px!important;
  height:40%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,.04))!important;
}
.business-analysis-progress>span{
  position:absolute!important;
  top:50%!important;
  right:13px!important;
  transform:translateY(-50%)!important;
  color:#f0f0ed!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:560!important;
  white-space:nowrap!important;
}
.business-analysis-bottom{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  margin-top:17px!important;
}
.business-analysis-connect{
  min-height:34px!important;
  margin:0!important;
  padding:7px 15px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.025)!important;
  color:#f5f5f2!important;
  font:520 11px/1 Arial,Helvetica,sans-serif!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
.business-analysis-connect:after{content:"  →"!important;color:#f5f5f2!important}
.business-analysis-connect:hover{background:rgba(255,255,255,.065)!important;transform:none!important}
@media(max-height:820px){
  .business-analysis-widget{width:340px!important;max-width:340px!important;min-height:204px!important;padding:19px 21px 17px!important}
  .business-analysis-head strong{font-size:17px!important}
  .business-analysis-percent{font-size:49px!important;margin-top:14px!important}
  .business-analysis-percent sup{font-size:23px!important}
  .business-analysis-progress{height:29px!important;margin-top:14px!important}
  .business-analysis-bottom{margin-top:14px!important}
}

/* ===== Layout restore: keep reference widget, return onboarding dominance ===== */
.business-analysis-widget{
  zoom:.74!important;
}

/* Button copy is the only content change; scene/card internals stay untouched. */

/* ===== Edge alignment: widget + symmetric topbar ===== */
/* Analysis widget: same left edge as the white onboarding scene. */
.business-analysis-widget{
  margin-left:0!important;
}

/* Company/account: symmetric to the viewport edges, same vertical line. */
.spatial-topbar{
  width:calc(100vw - 64px)!important;
  margin-left:calc((100vw - 100%) / -2 + 32px)!important;
  margin-right:0!important;
}
.spatial-topbar .business-chip{
  margin-left:0!important;
  padding-left:0!important;
}
.spatial-topbar .profile-dot{
  margin-left:auto!important;
  margin-right:0!important;
}

@media(max-width:1050px){
  .spatial-topbar{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}

/* TOPBAR POSITION ONLY — widget/stage/toolbar untouched */
.spatial-topbar{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding-left:84px!important;
  padding-right:54px!important;
  box-sizing:border-box!important;
}


/* ===== FINAL COMPOSITION — matched to approved screenshot ===== */
/* The white onboarding scene is the primary object. Widget and toolbar stay untouched. */
.spatial-stage{
  width:82.2vw!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Company/account belong to viewport edges, not to the centered scene. */
.spatial-topbar{
  width:calc(100vw - 64px)!important;
  max-width:none!important;
  margin-left:calc((100vw - 100%) / -2 + 32px)!important;
  margin-right:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
.spatial-topbar .business-chip{
  margin-left:0!important;
  padding-left:0!important;
}
.spatial-topbar .profile-dot{
  margin-left:auto!important;
  margin-right:0!important;
}

/* Keep the scene compact and completely visible in the viewport. */
.pretoken-audit.knowledge-intro{
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
.knowledge-intro-main{
  height:55vh!important;
  min-height:430px!important;
  max-height:520px!important;
}

@media(max-height:820px){
  .knowledge-intro-main{
    height:54.5vh!important;
    min-height:390px!important;
    max-height:452px!important;
  }
}

@media(max-width:1050px){
  .spatial-stage{
    width:calc(100vw - 110px)!important;
    margin-left:92px!important;
    margin-right:18px!important;
  }
  .spatial-topbar{
    width:calc(100vw - 40px)!important;
    margin-left:calc(-92px + 20px)!important;
  }
}

/* TOPBAR FINAL POSITION ONLY */
.spatial-topbar{
  padding-left:40px!important;
  padding-right:40px!important;
}


/* COMPANY POSITION ONLY — avatar untouched */
.spatial-topbar .business-chip{
  transform:translateX(-28px)!important;
}


/* COMPANY LEFT EDGE = TOOLBAR LEFT EDGE */
.spatial-topbar .business-chip{
  position:fixed!important;
  left:42px!important;
  transform:none!important;
}



/* ===== KB DETAIL ONLY v9 =====
   Scope is intentionally limited to .kb-detail-open.
   Normal knowledge screen, analysis widget, toolbar, topbar are untouched.
*/
.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-main{
  height:calc(100vh - 300px)!important;
  min-height:560px!important;
  max-height:650px!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-right{
  min-height:0!important;
  overflow:hidden!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail{
  position:relative!important;
  height:100%!important;
  min-height:0!important;
  padding:34px 46px 28px!important;
  overflow:hidden!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-back{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  z-index:2!important;
  width:32px!important;
  height:32px!important;
  margin:0 0 18px!important;
  font-size:22px!important;
  line-height:1!important;
  visibility:visible!important;
  opacity:1!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-head{
  margin-top:0!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-list{
  margin-top:22px!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-rules-editor{
  height:calc(100vh - 515px)!important;
  min-height:250px!important;
  max-height:390px!important;
  overflow:auto!important;
  resize:none!important;
}

@media(max-height:850px){
  .pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-main{
    height:calc(100vh - 270px)!important;
    min-height:500px!important;
    max-height:570px!important;
  }

  .pretoken-audit.knowledge-intro.kb-detail-open .knowledge-rules-editor{
    height:calc(100vh - 475px)!important;
    min-height:220px!important;
    max-height:330px!important;
  }
}


/* KB DETAIL ARROW — FINAL POSITION ONLY
   Content coordinates are untouched. */
.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail{
  position:relative!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-back{
  position:absolute!important;
  top:34px!important;
  left:10px!important;
  width:32px!important;
  height:32px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:10!important;
}

/* KB DETAIL ARROW — ABOVE TITLE ONLY */
.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-back{
  top:4px!important;
  left:46px!important;
}

/* /adminka BOOT FLASH ONLY */
body.adminka-boot .hero,
body.adminka-boot #demo-screen,
body.adminka-boot #platform-screen{
  visibility:hidden!important;
}


/* ===== KNOWLEDGE STEP POSITION v2 =====
   Only 1/3 and Skip are anchored to the full white scene.
   Existing content geometry is untouched.
*/
.pretoken-audit.knowledge-intro:not(.kb-detail-open) .knowledge-intro-main{
  position:relative!important;
}

.pretoken-audit.knowledge-intro:not(.kb-detail-open) .knowledge-step-count{
  position:absolute!important;
  top:24px!important;
  left:24px!important;
  z-index:3!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:600!important;
  color:rgba(17,17,17,.38)!important;
  letter-spacing:.01em!important;
}

.pretoken-audit.knowledge-intro:not(.kb-detail-open) .knowledge-skip{
  position:absolute!important;
  left:54px!important;
  bottom:34px!important;
  z-index:3!important;
  margin:0!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
  color:rgba(17,17,17,.58)!important;
  font:600 14px/1.2 inherit!important;
  cursor:pointer!important;
}

.pretoken-audit.knowledge-intro:not(.kb-detail-open) .knowledge-skip:hover{
  color:#111!important;
}

.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-step-count,
.pretoken-audit.knowledge-intro.kb-detail-open .knowledge-skip{
  display:none!important;
}

/* SKIP ARROW ONLY */
.knowledge-skip{
  display:flex!important;
  align-items:center!important;
  gap:22px!important;
}

.knowledge-skip::after{
  content:""!important;
  display:block!important;
  width:42px!important;
  height:18px!important;
  background:
    linear-gradient(#111,#111) left 50% / 40px 2px no-repeat!important;
  clip-path:polygon(
    0 45%, 76% 45%, 63% 10%,
    68% 6%, 100% 50%,
    68% 94%, 63% 90%, 76% 55%, 0 55%
  )!important;
  background-color:#111!important;
  flex:0 0 auto!important;
}

/* SKIP ARROW — EXACT SHAPE FIX ONLY */
.knowledge-skip::after{
  content:""!important;
  position:relative!important;
  display:block!important;
  width:52px!important;
  height:24px!important;
  flex:0 0 52px!important;

  background:linear-gradient(#111,#111) left 11px / 48px 2px no-repeat!important;
  clip-path:none!important;
}

.knowledge-skip::before{
  content:""!important;
  position:absolute!important;
  right:0!important;
  width:17px!important;
  height:17px!important;
  border-top:2px solid #111!important;
  border-right:2px solid #111!important;
  border-radius:1px!important;
  transform:rotate(45deg)!important;
  box-sizing:border-box!important;
}

/* SKIP ARROW — REFERENCE PROPORTIONS ONLY */
.knowledge-skip{
  gap:32px!important;
}

.knowledge-skip::after{
  content:""!important;
  position:relative!important;
  display:block!important;
  width:96px!important;
  height:28px!important;
  flex:0 0 96px!important;
  background:linear-gradient(#111,#111) left 13px / 94px 2px no-repeat!important;
  clip-path:none!important;
}

.knowledge-skip::before{
  content:""!important;
  position:absolute!important;
  right:0!important;
  width:20px!important;
  height:20px!important;
  border-top:2px solid #111!important;
  border-right:2px solid #111!important;
  border-radius:1px!important;
  transform:rotate(45deg)!important;
  box-sizing:border-box!important;
}

/* SKIP ARROW — FINAL SVG SHAPE ONLY */
.knowledge-skip::before{
  display:none!important;
}

.knowledge-skip::after{
  content:""!important;
  display:block!important;
  position:static!important;
  width:96px!important;
  height:28px!important;
  flex:0 0 96px!important;
  border:0!important;
  clip-path:none!important;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 28'%3E%3Cpath d='M2 14H89 M78 3L89 14L78 25' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:100% 100%!important;
}

/* SKIP ARROW — SIZE + COLOR ONLY */
.knowledge-skip::after{
  width:48px!important;
  height:14px!important;
  flex:0 0 48px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 28'%3E%3Cpath d='M2 14H89 M78 3L89 14L78 25' fill='none' stroke='%23777777' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}


/* ===== ONBOARDING STEP 2/3 ONLY ===== */
.knowledge-check-step[hidden]{display:none!important}

.knowledge-check-step{
  position:relative;
  height:55vh;
  min-height:430px;
  max-height:520px;
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(520px,1.1fr);
  background:#f3f3ef;
  color:#171717;
}

.knowledge-check-step .knowledge-step-count{
  position:absolute;
  top:24px;
  left:24px;
  z-index:3;
  margin:0;
  font-size:12px;
  line-height:1;
  font-weight:600;
  color:rgba(17,17,17,.38);
  letter-spacing:.01em;
}

.knowledge-check-copy{
  padding:72px 54px;
  display:flex;
  align-items:center;
  border-right:1px solid rgba(20,20,20,.07);
}

.knowledge-check-copy h1{
  margin:0 0 18px;
  font-size:58px;
  line-height:.94;
  letter-spacing:-.055em;
}

.knowledge-check-copy p{
  max-width:510px;
  margin:0;
  color:#686864;
  font-size:16px;
  line-height:1.55;
}

.knowledge-check-step .knowledge-check-skip{
  position:absolute!important;
  left:54px!important;
  bottom:34px!important;
  z-index:3!important;
  margin:0!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
  color:rgba(17,17,17,.58)!important;
  font:600 14px/1.2 inherit!important;
  cursor:pointer!important;
}

.knowledge-check-chat{
  min-width:0;
  padding:54px 46px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.knowledge-check-chat-log{
  height:300px;
  overflow:auto;
  padding:18px;
  border:1px solid #e0e0da;
  border-radius:24px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.knowledge-check-bubble{
  align-self:flex-start;
  max-width:82%;
  padding:10px 13px;
  border-radius:15px;
  background:#f0f0ec;
  font-size:14px;
  line-height:1.4;
  white-space:pre-wrap;
}

.knowledge-check-bubble.mine{
  align-self:flex-end;
  background:#2468ff;
  color:#fff;
}

.knowledge-check-chat-form{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.knowledge-check-chat-form input{
  min-width:0;
  flex:1;
  height:46px;
  padding:0 16px;
  border:1px solid #deded8;
  border-radius:16px;
  background:#fff;
  color:#171717;
  font:14px/1.2 inherit;
  outline:none;
}

.knowledge-check-chat-form button{
  width:46px;
  height:46px;
  border:0;
  border-radius:16px;
  background:#171717;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

@media(max-height:820px){
  .knowledge-check-step{
    height:54.5vh;
    min-height:390px;
    max-height:452px;
  }
  .knowledge-check-chat-log{height:245px}
}


/* ===== ONBOARDING 1/3 <-> 2/3 HORIZONTAL SCENE — ONLY ===== */
.pretoken-audit.knowledge-intro.knowledge-check-open,
.pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])){
  position:relative!important;
  height:55vh!important;
  min-height:430px!important;
  max-height:520px!important;
}

.pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])) .knowledge-intro-main,
.pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])) .knowledge-check-step{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  transition:transform 340ms cubic-bezier(.22,.8,.22,1), opacity 340ms ease!important;
}

.pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])) .knowledge-intro-main{
  transform:translateX(0)!important;
  opacity:1!important;
}
.pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])) .knowledge-check-step{
  transform:translateX(100%)!important;
  opacity:1!important;
}
.pretoken-audit.knowledge-intro.knowledge-check-open .knowledge-intro-main{
  transform:translateX(-100%)!important;
}
.pretoken-audit.knowledge-intro.knowledge-check-open .knowledge-check-step{
  transform:translateX(0)!important;
}

/* 2/3 uses the exact approved 1/3 grid and typography. */
.knowledge-check-step{
  grid-template-columns:minmax(360px,.9fr) minmax(520px,1.1fr)!important;
}
.knowledge-check-copy{
  padding:clamp(34px,5vh,58px) 54px!important;
}
.knowledge-check-copy h1{
  margin:0 0 18px!important;
  font-size:58px!important;
  line-height:.94!important;
  letter-spacing:-.055em!important;
}
.knowledge-check-copy p{
  max-width:510px!important;
  margin:0!important;
  font-size:16px!important;
  line-height:1.55!important;
}
.knowledge-check-chat{
  padding:clamp(28px,4vh,44px) 46px!important;
}

/* Back exists only on 2/3 and occupies the same quiet top-left zone as the counter. */
.knowledge-check-back{
  position:absolute!important;
  top:48px!important;
  left:54px!important;
  z-index:5!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  color:rgba(17,17,17,.52)!important;
  font:400 28px/1 inherit!important;
  cursor:pointer!important;
}
.knowledge-check-back:hover{color:#171717!important}

@media(max-height:820px){
  .pretoken-audit.knowledge-intro.knowledge-check-open,
  .pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])){
    height:54.5vh!important;
    min-height:390px!important;
    max-height:452px!important;
  }
}

/* ===== STEP 2/3 COSMETIC ALIGNMENT TO APPROVED 1/3 — ONLY ===== */
/* Same 46/54 column split as the approved 1/3 scene. */
.knowledge-check-step{
  grid-template-columns:46% 54%!important;
}

/* Keep the right-side object on the same vertical rhythm as the 1/3 cards. */
.knowledge-check-chat{
  transform:translateY(-24px)!important;
}

/* The 2/3 copy is shorter than 1/3, so compensate only for its height:
   its title starts on the same visual line as “База знаний”. */
.knowledge-check-copy{
  transform:translateY(-49px)!important;
}

/* Back control shares the left content axis and has its own quiet top zone. */
.knowledge-check-back{
  left:54px!important;
  top:48px!important;
}

@media(max-height:800px){
  .knowledge-check-chat{transform:translateY(-20px)!important;}
  .knowledge-check-copy{transform:translateY(-45px)!important;}
}

/* STEP 2/3 — MATCH APPROVED 1/3 VERTICAL GEOMETRY ONLY */
.knowledge-check-step{
  align-items:center!important;
}
.knowledge-check-copy,
.knowledge-check-chat{
  transform:translateY(-34px)!important;
}
@media(max-height:800px){
  .knowledge-check-copy,
  .knowledge-check-chat{
    transform:translateY(-34px)!important;
  }
}

/* ===== STEP 2/3 — EXACT VISUAL ALIGNMENT TO APPROVED 1/3 ===== */
/* Keep the same 46/54 grid, but draw the divider independently so its
   height/position no longer depends on the shorter Step 2 copy. */
.knowledge-check-step{
  grid-template-columns:46% 54%!important;
  align-items:center!important;
}
.knowledge-check-copy{
  position:relative!important;
  box-sizing:border-box!important;
  padding:clamp(34px,5vh,58px) 54px!important;
  border-right:0!important;
  transform:translateY(-34px)!important;
}
.knowledge-check-copy::after{
  content:""!important;
  position:absolute!important;
  right:0!important;
  top:50%!important;
  width:1px!important;
  height:240px!important;
  transform:translateY(-50%)!important;
  background:rgba(20,20,20,.07)!important;
}
/* Exact title/subtitle typography from Step 1. */
.knowledge-check-copy h1{
  margin:0 0 18px!important;
  font-family:Impact,"Arial Narrow","Helvetica Neue",Arial,sans-serif!important;
  font-size:58px!important;
  font-weight:400!important;
  line-height:.94!important;
  letter-spacing:-.055em!important;
}
.knowledge-check-copy p{
  max-width:510px!important;
  margin:0!important;
  color:#686864!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.55!important;
}
/* Match the title baseline to Step 1 despite the shorter Step 2 subtitle. */
.knowledge-check-copy > div{
  transform:translateY(24px)!important;
}
/* The complete Bamsi dialog object is centered in the right 54% cell. */
.knowledge-check-chat{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  padding:0 46px!important;
  margin:0!important;
  align-self:center!important;
  justify-self:center!important;
  transform:none!important;
}
@media(max-height:800px){
  .knowledge-check-copy{transform:translateY(-20px)!important;}
  .knowledge-check-copy > div{transform:translateY(24px)!important;}
  .knowledge-check-chat{transform:none!important;}
}

/* ===== STEP 2/3 — AUTHORITATIVE MATCH TO STEP 1/3 =====
   Step 1 and Step 2 now share the same left-column geometry and typography. */
.knowledge-intro-copy,
.knowledge-check-copy{
  box-sizing:border-box!important;
  padding:clamp(34px,5vh,58px) 54px!important;
  display:flex!important;
  align-items:center!important;
  align-self:center!important;
  border-right:1px solid rgba(20,20,20,.07)!important;
  transform:translateY(-24px)!important;
}

.knowledge-intro-copy h1,
.knowledge-check-copy h1{
  margin:0 0 18px!important;
  font-family:Impact,"Arial Narrow","Helvetica Neue",Arial,sans-serif!important;
  font-size:58px!important;
  font-weight:400!important;
  line-height:.94!important;
  letter-spacing:-.055em!important;
}

.knowledge-intro-copy p,
.knowledge-check-copy p{
  max-width:510px!important;
  margin:0!important;
  color:#686864!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.55!important;
}

/* Remove all earlier Step-2-only compensation and fake divider. */
.knowledge-check-copy::after{display:none!important;content:none!important;}
.knowledge-check-copy > div{transform:none!important;}

/* Exact same 46/54 split. */
.knowledge-check-step{grid-template-columns:46% 54%!important;align-items:center!important;}

/* Center the complete dialogue object in the right cell. */
.knowledge-check-chat{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 46px!important;
  align-self:center!important;
  justify-self:center!important;
  transform:none!important;
}

@media(max-height:800px){
  .knowledge-intro-copy,
  .knowledge-check-copy{transform:translateY(-20px)!important;}
  .knowledge-check-copy > div{transform:none!important;}
  .knowledge-check-chat{transform:none!important;}
}


/* ===== ONBOARDING STEP 3/3 — SAME APPROVED GEOMETRY AS 1/3 + 2/3 ===== */
.knowledge-connect-step[hidden]{display:none!important}
.knowledge-connect-step{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:46% 54%!important;
  align-items:center!important;
  background:#f3f3ef!important;
  color:#171717!important;
  transform:translateX(100%)!important;
  transition:transform 340ms cubic-bezier(.22,.8,.22,1),opacity 340ms ease!important;
}
.knowledge-connect-step .knowledge-step-count{
  position:absolute!important;top:24px!important;left:24px!important;z-index:3!important;
  margin:0!important;font-size:12px!important;line-height:1!important;font-weight:600!important;
  color:rgba(17,17,17,.38)!important;letter-spacing:.01em!important;
}
.knowledge-connect-back{
  position:absolute!important;top:48px!important;left:54px!important;z-index:5!important;
  border:0!important;padding:0!important;margin:0!important;background:transparent!important;
  color:rgba(17,17,17,.52)!important;font:400 28px/1 inherit!important;cursor:pointer!important;
}
.knowledge-connect-copy{
  box-sizing:border-box!important;padding:clamp(34px,5vh,58px) 54px!important;
  display:flex!important;align-items:center!important;align-self:center!important;
  border-right:1px solid rgba(20,20,20,.07)!important;transform:translateY(-24px)!important;
}
.knowledge-connect-copy h1{
  margin:0 0 18px!important;font-family:Impact,"Arial Narrow","Helvetica Neue",Arial,sans-serif!important;
  font-size:58px!important;font-weight:400!important;line-height:.94!important;letter-spacing:-.055em!important;
}
.knowledge-connect-copy p{
  max-width:510px!important;margin:0!important;color:#686864!important;
  font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:1.55!important;
}
.knowledge-connect-panel{
  width:100%!important;box-sizing:border-box!important;padding:0 46px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
.knowledge-connect-card{
  width:100%;max-width:560px;box-sizing:border-box;padding:30px;border:1px solid #e0e0da;
  border-radius:24px;background:#fff;
}
.knowledge-connect-vk{width:46px;height:46px;border-radius:14px;background:#2468ff;color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:22px}
.knowledge-connect-card h2{margin:0 0 8px;font:600 24px/1.1 Arial,Helvetica,sans-serif}
.knowledge-connect-card>p{margin:0;color:#777;font:400 14px/1.45 Arial,Helvetica,sans-serif}
.knowledge-connect-help{margin-top:22px;color:#686864;font:400 13px/1.45 Arial,Helvetica,sans-serif}
.knowledge-connect-help summary{cursor:pointer}
.knowledge-connect-help ol{margin:10px 0 0;padding-left:20px}
.knowledge-connect-form{display:flex;gap:8px;margin-top:22px}
.knowledge-connect-form input{min-width:0;flex:1;height:46px;box-sizing:border-box;padding:0 16px;border:1px solid #deded8;border-radius:16px;background:#fff;color:#171717;font:14px/1.2 Arial,Helvetica,sans-serif;outline:none}
.knowledge-connect-form button{width:46px;height:46px;border:0;border-radius:16px;background:#171717;color:#fff;font-size:20px;cursor:pointer}
.knowledge-connect-form button:disabled{opacity:.35;cursor:default}
.knowledge-connect-note{margin-top:12px!important;color:#999!important;font-size:12px!important}
.knowledge-connect-status{margin-top:12px!important;color:#555!important;font-size:12px!important}

.pretoken-audit.knowledge-intro.knowledge-connect-open .knowledge-check-step{transform:translateX(-100%)!important}
.pretoken-audit.knowledge-intro.knowledge-connect-open .knowledge-connect-step{transform:translateX(0)!important}

@media(max-height:800px){
  .knowledge-connect-copy{transform:translateY(-20px)!important}
  .knowledge-connect-card{padding:24px!important}
  .knowledge-connect-vk{margin-bottom:16px!important}
  .knowledge-connect-help,.knowledge-connect-form{margin-top:16px!important}
}


/* ===== STEP 3 TRANSITION — EXACT SAME SCENE MECHANICS AS 1/3 <-> 2/3 =====
   Keep the shared white scene geometry alive while 3/3 is visible.
   No visual/content changes.
*/
.pretoken-audit.knowledge-intro.knowledge-connect-open,
.pretoken-audit.knowledge-intro:has(.knowledge-connect-step:not([hidden])){
  position:relative!important;
  height:55vh!important;
  min-height:430px!important;
  max-height:520px!important;
}

.pretoken-audit.knowledge-intro:has(.knowledge-connect-step:not([hidden])) .knowledge-check-step,
.pretoken-audit.knowledge-intro:has(.knowledge-connect-step:not([hidden])) .knowledge-connect-step{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  transition:transform 340ms cubic-bezier(.22,.8,.22,1), opacity 340ms ease!important;
}

@media(max-height:820px){
  .pretoken-audit.knowledge-intro.knowledge-connect-open,
  .pretoken-audit.knowledge-intro:has(.knowledge-connect-step:not([hidden])){
    height:54.5vh!important;
    min-height:390px!important;
    max-height:452px!important;
  }
}

/* ===== ONBOARDING 2/3 -> 3/3 — FORCE THE SAME SLIDE AS 1/3 -> 2/3 =====
   Explicit transition state avoids interaction between knowledge-check-open and
   knowledge-connect-open. Visual layout/content is untouched. */
.pretoken-audit.knowledge-intro.step23-sliding .knowledge-check-step,
.pretoken-audit.knowledge-intro.step23-sliding .knowledge-connect-step{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  opacity:1!important;
  transition:transform 340ms cubic-bezier(.22,.8,.22,1),opacity 340ms ease!important;
}
.pretoken-audit.knowledge-intro.step23-sliding:not(.step23-go) .knowledge-check-step{transform:translateX(0)!important}
.pretoken-audit.knowledge-intro.step23-sliding:not(.step23-go) .knowledge-connect-step{transform:translateX(100%)!important}
.pretoken-audit.knowledge-intro.step23-sliding.step23-go .knowledge-check-step{transform:translateX(-100%)!important}
.pretoken-audit.knowledge-intro.step23-sliding.step23-go .knowledge-connect-step{transform:translateX(0)!important}


/* Post-token onboarding: local styles, independent of the approved slider. */
.activation-person-stage { width:100%; margin:12px 0 0; padding:48px 0; min-height:430px; border-radius:30px; background:#f3f3ef; color:#171717; display:grid; grid-template-columns:46% 54%; align-items:center; }
.activation-person-stage[hidden], .activation-person-stage [hidden] { display:none!important; }
.activation-person-stage .activation-head { padding:0 54px; }
.activation-person-stage .activation-back { min-height:0; padding:0; margin:0 0 28px; border:0; border-radius:0; background:transparent; color:#686864; font:400 28px/1 Arial,Helvetica,sans-serif; }
.activation-person-stage .activation-back:hover { color:#171717; }
.activation-person-stage h1 { margin:0 0 18px; font-family:Impact,"Arial Narrow","Helvetica Neue",Arial,sans-serif; font-size:58px; font-weight:400; line-height:.94; letter-spacing:-.055em; }
.activation-person-stage p { color:#686864; font-size:15px; line-height:1.55; margin:12px 0 20px; }
.activation-person-stage .activation-head>p { font-size:16px; max-width:460px; }
.activation-person-stage .activation-route { padding-left:21px; margin:30px 0 0; color:#73736e; font-size:13px; line-height:1.5; }
.activation-person-stage .activation-route li { padding:5px 0 5px 5px; }
.activation-person-stage .activation-route [aria-current="step"] { color:#171717; font-weight:600; }
.activation-person-stage .activation-steps { min-width:0; border-left:1px solid #deded8; padding:8px 46px; }
.activation-person-stage h2 { font-size:24px; line-height:1.2; letter-spacing:-.025em; margin:0 0 12px; }
.activation-person-stage button { min-height:46px; padding:12px 18px; border:1px solid #171717; border-radius:14px; background:#171717; color:#fff; font:600 14px/1.35 Arial,Helvetica,sans-serif; cursor:pointer; }
.activation-person-stage button:disabled { opacity:.5; cursor:wait; }
.activation-person-stage .activation-secondary { background:transparent; color:#686864; border-color:transparent; font-weight:400; }
.activation-person-stage .activation-secondary:hover { color:#171717; text-decoration:underline; }
.activation-person-stage .activation-choice { display:flex; flex-wrap:wrap; gap:8px; }
.activation-person-stage label { display:block; font-size:18px; font-weight:600; margin-bottom:14px; }
.activation-person-stage .activation-link-row, .activation-person-stage form { display:flex; gap:8px; }
.activation-person-stage input { width:100%; min-width:0; flex:1; padding:12px 14px; border:1px solid #d2d2cc; border-radius:14px; background:#fff; color:#171717; -webkit-text-fill-color:#171717; font:14px/1.4 Arial,Helvetica,sans-serif; }
.activation-person-stage #activation-invite-url { font-size:15px; }
.activation-person-stage #activation-notify-status { color:#345e40; margin:20px 0; }
.activation-person-stage #activation-test-status { font-size:13px; margin-bottom:0; }
.activation-person-stage .activation-chat-log { display:flex; flex-direction:column; gap:10px; max-height:160px; overflow:auto; margin:16px 0; }
.activation-person-stage .activation-chat-log:empty { display:none; }
.activation-person-stage .activation-bubble { max-width:90%; padding:10px 14px; border-radius:14px; background:#fff; font-size:14px; line-height:1.4; white-space:pre-wrap; overflow-wrap:anywhere; }
.activation-person-stage .activation-bubble.me { align-self:flex-end; background:#e5e5df; }
.activation-person-stage #activation-error { color:#a02e2e; }
.activation-person-stage #activation-knowledge-list { max-height:180px; overflow:auto; margin-bottom:16px; }
.activation-person-stage .activation-fact { padding:12px 0; border-bottom:1px solid #deded8; font-size:13px; }
.activation-person-stage .activation-fact b, .activation-person-stage .activation-fact span { display:block; }
.activation-person-stage .activation-fact span { margin-top:5px; color:#686864; line-height:1.5; }
.activation-person-stage :focus-visible { outline:2px solid #2468ff; outline-offset:3px; }
@media(max-width:760px) {
  .activation-person-stage { grid-template-columns:1fr; padding:30px 0; }
  .activation-person-stage .activation-head { padding:0 24px 24px; }
  .activation-person-stage .activation-steps { border-left:0; border-top:1px solid #deded8; padding:24px 24px 0; }
  .activation-person-stage h1 { font-size:44px; }
  .activation-person-stage .activation-link-row, .activation-person-stage form { flex-wrap:wrap; }
  .activation-person-stage input { flex-basis:100%; }
}

/* ONBOARDING BACK ARROWS — match the approved bottom Skip arrow; direction stays left. */
.knowledge-check-back,
.knowledge-connect-back,
.activation-person-stage .activation-back{
  width:30px!important;
  height:14px!important;
  min-width:30px!important;
  min-height:14px!important;
  overflow:hidden!important;
  padding:0!important;
  border:0!important;
  background-color:transparent!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 28'%3E%3Cpath d='M94 14H7 M18 3L7 14L18 25' fill='none' stroke='%23777777' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:100% 100%!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  cursor:pointer!important;
}

.knowledge-check-back:hover,
.knowledge-connect-back:hover,
.activation-person-stage .activation-back:hover{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 28'%3E%3Cpath d='M94 14H7 M18 3L7 14L18 25' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}


/* ===== Analysis widget position v18 — position only =====
   Lift the whole approved "Анализ бизнеса" card by ~0.5 cm (19px).
   Card internals, size and horizontal alignment are untouched. */
.business-analysis-widget{
  margin-top:-11px!important;
}


/* ===== Analysis widget position v19 — visual position only =====
   Move only the whole approved card upward; do not reflow onboarding below it. */
.business-analysis-widget{
  transform:translateY(-19px)!important;
}


/* ===== Business analysis compact v20 =====
   Remove CTA, make the card shorter, keep its approved left edge and visual bottom.
   v19 translateY(-19px) remains the positioning baseline. */
.business-analysis-bottom{
  display:none!important;
}
.business-analysis-widget{
  min-height:0!important;
  padding-bottom:20px!important;
}

/* The remaining part of the progress track now describes what is left. */
.business-analysis-progress>span{
  right:12px!important;
}


/* ===== Business readiness v23 =====
   One source of truth: JS updates --business-readiness from persisted business facts. */
.business-analysis-progress i{
  width:var(--business-readiness,35%)!important;
  transition:none!important;
  will-change:width;
}
.business-analysis-widget.readiness-motion-ready .business-analysis-progress i{
  transition:width .56s cubic-bezier(.22,.8,.22,1) .26s!important;
}
@media (prefers-reduced-motion:reduce){
  .business-analysis-progress i{transition:none!important}
}

/* ===== v29 — 100% handoff into the central BAMSI dashboard ===== */
body.bamsi-analysis-completing:before{
  content:"";position:fixed;inset:0;z-index:88;pointer-events:none;
  background:rgba(8,8,10,.76);backdrop-filter:blur(8px);
  opacity:1;transition:opacity .42s ease;
}
body.bamsi-analysis-completing .pretoken-audit{opacity:.12;filter:blur(3px);transition:opacity .42s ease,filter .42s ease}
.business-analysis-widget.analysis-completion-mode{
  position:relative!important;z-index:90!important;
  transform:translate(var(--analysis-center-x,0),var(--analysis-center-y,0)) scale(1.08)!important;
  transition:transform .52s cubic-bezier(.22,.8,.22,1),box-shadow .45s ease!important;
  box-shadow:0 34px 100px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.business-analysis-widget.analysis-completion-mode .business-analysis-progress i{
  transition:none!important;
}
.business-analysis-widget.analysis-energy .business-analysis-progress i{
  background:linear-gradient(90deg,#ff4a52 0%,#ff356f 24%,#e332b9 53%,#9b43ff 78%,#6e50ff 100%)!important;
  background-size:180% 100%!important;
  animation:bamsiEnergyFlow .72s linear infinite!important;
  box-shadow:0 0 18px rgba(255,53,111,.42),10px 0 30px rgba(155,67,255,.52)!important;
}
.business-analysis-widget.analysis-energy-hit{
  box-shadow:0 0 0 1px rgba(210,86,255,.22),0 28px 110px rgba(154,62,255,.36)!important;
}
.business-analysis-widget.analysis-energy-hit .business-analysis-progress i:after{
  opacity:1!important;animation:bamsiEnergyHit .62s ease-out 1!important;
}
@keyframes bamsiEnergyFlow{from{background-position:100% 50%}to{background-position:-80% 50%}}
@keyframes bamsiEnergyHit{0%{transform:translateX(-100%);opacity:0}35%{opacity:1}100%{transform:translateX(115%);opacity:0}}

.spatial-dashboard:has(.bamsi-dashboard-panel:not([hidden])){
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:calc(100vh - 118px)!important;padding:20px 22px 34px!important;box-sizing:border-box!important;
}
.bamsi-dashboard-panel{
  position:relative;width:min(1120px,92vw);height:min(690px,76vh);min-height:560px;
  padding:18px;box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:38px;
  background:linear-gradient(145deg,rgba(66,66,70,.96),rgba(37,38,42,.98));
  box-shadow:0 38px 100px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.07);
  overflow:hidden;opacity:0;transform:translateY(18px) scale(.985);
}
body.bamsi-dashboard-live .bamsi-dashboard-panel{opacity:1;transform:none;transition:opacity .58s ease,transform .72s cubic-bezier(.22,.8,.22,1)}
.bamsi-dashboard-grid{display:grid;width:100%;height:auto;grid-template-columns:minmax(0,1.12fr) minmax(0,.9fr) minmax(0,.9fr);grid-template-rows:auto;gap:12px}
.bamsi-dashboard-slot{min-width:0;min-height:0;border:1px solid rgba(255,255,255,.075);border-radius:27px;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.bamsi-dashboard-slot-analysis{grid-column:1;grid-row:1 / span 2;padding:18px;display:flex;align-items:flex-start;justify-content:flex-start}
.bamsi-dashboard-slot-wide{grid-column:span 2}
.bamsi-dashboard-slot-tall{grid-row:span 2}
.bamsi-dashboard-slot-analysis .business-analysis-widget{margin:0!important;width:100%!important;max-width:none!important;transform:none!important;box-shadow:none!important;background:transparent!important;border:0!important;padding:4px!important;min-height:170px!important}
.bamsi-dashboard-slot-analysis .business-analysis-bottom{display:none!important}
.bamsi-dashboard-replay{position:absolute;right:24px;bottom:20px;z-index:4;appearance:none;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(20,20,22,.42);color:#aaa;padding:8px 12px;font:600 9px/1 Arial,sans-serif;cursor:pointer;opacity:.56;transition:opacity .18s ease,background .18s ease}
.bamsi-dashboard-replay:hover{opacity:1;background:rgba(20,20,22,.72)}
@media(max-width:980px){.bamsi-dashboard-panel{width:100%;height:auto;min-height:620px}.bamsi-dashboard-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}.bamsi-dashboard-slot-analysis{grid-column:1 / -1;grid-row:1}.bamsi-dashboard-slot-wide{grid-column:span 2}.bamsi-dashboard-slot-tall{grid-row:span 1}}
@media(prefers-reduced-motion:reduce){.business-analysis-widget.analysis-completion-mode,.bamsi-dashboard-panel{transition:none!important;animation:none!important}}

/* ===== v30 — final handoff is one uninterrupted 0→100 energy transition ===== */
.business-analysis-widget.analysis-completion-mode{
  transition:transform 1.05s cubic-bezier(.22,.8,.22,1),box-shadow .45s ease!important;
}
/* Once the final analysis starts, the lime readiness identity is gone for good. */
.business-analysis-widget.analysis-energy .business-analysis-progress i,
.bamsi-dashboard-slot-analysis .business-analysis-widget.analysis-energy .business-analysis-progress i{
  background:linear-gradient(90deg,#ff4a52 0%,#ff356f 24%,#e332b9 53%,#9b43ff 78%,#6e50ff 100%)!important;
  background-size:180% 100%!important;
  box-shadow:0 0 18px rgba(255,53,111,.42),10px 0 30px rgba(155,67,255,.52)!important;
}

/* ===== v31 — smooth final analysis and guaranteed dashboard reveal ===== */
/* Dim only with opacity. backdrop-filter/filter were repainting the whole viewport and caused jank. */
body.bamsi-analysis-completing:before{
  background:rgba(8,8,10,.78)!important;
  backdrop-filter:none!important;
  opacity:1!important;
  transition:opacity .72s cubic-bezier(.22,.8,.22,1)!important;
}
body.bamsi-analysis-completing .pretoken-audit{
  opacity:.16!important;
  filter:none!important;
  transition:opacity .72s cubic-bezier(.22,.8,.22,1)!important;
}
/* During the handoff the card is viewport-fixed and moved only by a compositor transform. */
.business-analysis-widget.analysis-completion-mode{
  position:fixed!important;
  z-index:90!important;
  will-change:transform!important;
  transition:none!important;
  box-shadow:0 24px 70px rgba(0,0,0,.34)!important;
}
/* Keep the good static red→magenta→violet gradient. Remove all pulse/glow/flow animation. */
.business-analysis-widget.analysis-energy .business-analysis-progress i{
  width:100%!important;
  transition:none!important;
  background:var(--bamsi-research-gradient)!important;
  background-size:100% 100%!important;
  animation:none!important;
  box-shadow:none!important;
  will-change:transform!important;
}
.business-analysis-widget.analysis-energy .business-analysis-progress i:after,
.business-analysis-widget.analysis-energy-hit .business-analysis-progress i:after{
  display:none!important;
  animation:none!important;
}
.business-analysis-widget.analysis-energy-hit{box-shadow:0 24px 70px rgba(0,0,0,.34)!important}
/* Dashboard must visibly replace onboarding after the count reaches 100. */
.spatial-dashboard:has(.bamsi-dashboard-panel:not([hidden])){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.bamsi-dashboard-panel{
  opacity:0;
  transform:translate3d(0,18px,0) scale(.985)!important;
  will-change:opacity,transform;
}
body.bamsi-dashboard-live .bamsi-dashboard-panel{
  opacity:1;
  transform:translate3d(0,0,0) scale(1)!important;
  transition:opacity .62s ease,transform .82s cubic-bezier(.22,.8,.22,1)!important;
}

/* ===== v33 — deterministic final handoff ===== */
/* Real dashboard host exists in HTML; no dynamic missing-host state. */
#spatial-dashboard[hidden]{display:none!important}
/* During the flight old v19 transform must never win over the frame-driven transform. */
.business-analysis-widget.analysis-completion-mode{
  position:fixed!important;
  z-index:90!important;
  transition:none!important;
  will-change:transform!important;
}
/* Calm static final-analysis gradient only. */
.business-analysis-widget.analysis-energy .business-analysis-progress i{
  background:var(--bamsi-research-gradient)!important;
  background-size:100% 100%!important;
  animation:none!important;
  box-shadow:none!important;
}

/* ===== v34 — unclipped final flight + dashboard loss thesis + exact replay restore ===== */
body > .business-analysis-widget.analysis-completion-mode{
  position:fixed!important;
  z-index:2147483000!important;
  overflow:visible!important;
}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  min-height:170px!important;
}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card .business-analysis-head{
  display:block!important;
  width:100%!important;
}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card .business-analysis-head strong{
  display:block!important;
  font-size:14px!important;
  line-height:1.2!important;
  color:rgba(255,255,255,.78)!important;
  margin-bottom:12px!important;
}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card .business-analysis-percent{
  font-size:52px!important;
  line-height:.95!important;
  letter-spacing:-.055em!important;
  white-space:nowrap!important;
  color:#fff!important;
}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card .business-analysis-progress{
  display:none!important;
}
.business-loss-meta{
  margin-top:10px;
  font:500 11px/1.35 Arial,sans-serif;
  color:rgba(255,255,255,.48);
}
.business-loss-research{
  appearance:none;
  margin-top:auto;
  padding:0;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.82);
  font:600 11px/1.2 Arial,sans-serif;
  cursor:pointer;
}
.business-loss-research:hover{color:#fff}

/* ===== v35 — exact centre, full card body, visible 100% -> dashboard handoff ===== */
body > .business-analysis-widget.analysis-completion-mode{
  height:auto!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
/* Keep the compact badge as a badge inside the large analysis module. */
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card{
  width:300px!important;
  max-width:calc(100% - 36px)!important;
  min-height:154px!important;
  margin:0!important;
  padding:16px 18px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,rgba(47,48,52,.98),rgba(34,35,38,.98))!important;
  box-shadow:0 18px 48px rgba(0,0,0,.2)!important;
}


/* ===== v37 — one coordinate system for both completion flights ===== */
.business-analysis-flight{
  position:fixed!important;
  z-index:2147483000!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
  overflow:visible!important;
  transform:translate3d(0,0,0);
  transform-origin:0 0;
  will-change:transform;
}
.business-analysis-flight > .business-analysis-widget.analysis-completion-mode{
  position:absolute!important;
  left:0!important;
  top:0!important;
  margin:0!important;
  transform:none!important;
  /* keep the approved onboarding zoom; only the unscaled wrapper travels */
}
.business-loss-target-probe{
  visibility:hidden!important;
  pointer-events:none!important;
  flex:0 0 auto!important;
}
/* Research identity: retain one fragment of the completion energy gradient. */
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card .business-analysis-head strong{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card .business-analysis-head strong::before{
  content:"";
  display:block;
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-radius:50%;
  background:linear-gradient(135deg,#ff4a52 0%,#ff356f 28%,#df32b7 58%,#8f43ef 100%);
}

/* ===== v38 — immutable destination geometry ===== */
/* Measurement frame: panel is laid out at its exact final transform before reveal starts. */
body.bamsi-dashboard-measuring .bamsi-dashboard-panel{
  opacity:0!important;
  transform:translate3d(0,0,0) scale(1)!important;
  transition:none!important;
}

/* ===== v39 — clean dashboard glass surface; preserve v38 geometry/flight coordinates ===== */
/* Keep the grid in layout as the immutable coordinate system used by the v38 handoff,
   but remove every unfinished visual module from the finished dashboard. */
body.bamsi-dashboard-live .bamsi-dashboard-slot{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
.bamsi-dashboard-grid > .bamsi-dashboard-slot:not(.bamsi-dashboard-slot-analysis){
  display:none;
}
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
/* The temporary replay/debug strip is not part of the product dashboard. */
body.bamsi-dashboard-live .bamsi-dashboard-replay{display:none!important}

/* One continuous glass dashboard surface, closer to the approved material reference. */
body.bamsi-dashboard-live .bamsi-dashboard-panel{
  background:linear-gradient(145deg,rgba(70,70,75,.90),rgba(39,40,44,.94))!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:
    0 38px 100px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.14)!important;
}

/* Loss thesis remains a distinct glass object, without changing its measured box. */
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card{
  background:linear-gradient(145deg,rgba(45,46,50,.88),rgba(27,28,31,.94))!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:
    0 18px 48px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.16)!important;
  backdrop-filter:blur(18px) saturate(118%);
  -webkit-backdrop-filter:blur(18px) saturate(118%);
}

/* ===== v40 — durable completed dashboard + true viewport completion veil ===== */
/* The completion veil must cover the entire browser viewport, independent of
   onboarding/platform stacking contexts. The flying badge stays one layer above it. */
body.bamsi-analysis-completing::before{
  content:""!important;
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  z-index:2147482990!important;
  pointer-events:none!important;
  background:rgba(8,8,10,.94)!important;
  opacity:1!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.business-analysis-flight{z-index:2147483000!important}

/* ===== v43 — dashboard-only material system; onboarding and handoff geometry untouched ===== */
/* Home keeps the BAMSI mark throughout onboarding. The dashboard glyph exists only in the
   durable completed-dashboard state, so the toolbar cannot leak dashboard identity backwards. */
.bamsi-home-onboarding{display:none!important}
.bamsi-home-dashboard{display:block!important}

/* Reference material: dark semimatte physical shell, fine rim, shallow inner highlight.
   These rules are dashboard-live scoped so the 95→100 flight is measured against v42 geometry. */
body.bamsi-dashboard-live .bamsi-dashboard-panel{
  background:
    radial-gradient(ellipse at 0% 0%,rgba(255,255,255,.055),transparent 56%),
    linear-gradient(145deg,#25262a,#212226 52%,#1e1f22)!important;
  border:1px solid rgba(255,255,255,.155)!important;
  box-shadow:
    0 34px 78px rgba(0,0,0,.31),
    0 10px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.105),
    inset 1px 0 0 rgba(255,255,255,.025),
    inset 0 -1px 0 rgba(0,0,0,.24)!important;
}
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card{
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 30%),
    linear-gradient(145deg,rgba(43,44,48,.96),rgba(28,29,32,.985))!important;
  border:1px solid rgba(255,255,255,.105)!important;
  box-shadow:
    0 16px 34px rgba(0,0,0,.25),
    0 3px 9px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.085),
    inset 0 -1px 0 rgba(0,0,0,.20)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Toolbar geometry is frozen: same 52px rail, same rows, same spacing and hover width.
   Only dashboard-state surface depth and icon rendering change. */
body.bamsi-dashboard-live .bamsi-toolbar{
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 24%),
    linear-gradient(180deg,rgba(61,62,65,.97),rgba(47,48,51,.98))!important;
  box-shadow:
    0 15px 30px rgba(0,0,0,.27),
    inset 0 1px 0 rgba(255,255,255,.085),
    inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
body.bamsi-dashboard-live .bamsi-toolbar-item{
  color:#d4d5d6;
}
body.bamsi-dashboard-live .bamsi-toolbar-icon{
  color:#d4d5d6;
}
body.bamsi-dashboard-live .bamsi-toolbar-icon svg{
  width:19px;
  height:19px;
}
body.bamsi-dashboard-live .bamsi-toolbar-item.active .bamsi-toolbar-icon{
  background:linear-gradient(145deg,#3478ff,#1f61f2);
  box-shadow:
    0 0 0 5px rgba(27,28,31,.30),
    0 7px 14px rgba(0,0,0,.23),
    0 0 16px rgba(36,104,255,.16),
    inset 0 1px 0 rgba(255,255,255,.22);
}
body.bamsi-dashboard-live .bamsi-toolbar-item.active .bamsi-toolbar-icon svg{
  width:22px;
  height:22px;
}


/* ===== v44 — toolbar icon polish only; geometry/material/lower rail untouched ===== */
body.bamsi-dashboard-live .bamsi-toolbar-icon-main svg{
  width:20.5px;
  height:20.5px;
}
body.bamsi-dashboard-live .bamsi-toolbar-icon-main svg *{
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.bamsi-dashboard-live .bamsi-home-dashboard{
  width:21px!important;
  height:21px!important;
}

/* ===== v51 — permanent dashboard greeting left + loss card right ===== */
.bamsi-dashboard-greeting{grid-column:1 / span 2;grid-row:1;align-self:start;justify-self:start;box-sizing:border-box;padding:20px 18px 0 20px;max-width:620px;color:#f5f5f5}
.bamsi-dashboard-greeting-title{margin:0;font-family:Arial,Helvetica,sans-serif;font-size:34px;line-height:1.08;font-weight:700;letter-spacing:-1.15px;color:#f5f5f5}
.bamsi-dashboard-quote{margin:18px 0 0;max-width:560px;font:500 14px/1.5 Arial,Helvetica,sans-serif;color:rgba(255,255,255,.66)}
.bamsi-dashboard-quote-author{margin:7px 0 0;font:600 11px/1.35 Arial,Helvetica,sans-serif;color:rgba(255,255,255,.42)}
.bamsi-dashboard-slot-analysis{grid-column:3!important;grid-row:1!important;padding:18px!important;align-items:flex-start!important;justify-content:flex-end!important}
.bamsi-dashboard-slot-analysis .business-analysis-widget.business-loss-card{width:100%!important;max-width:none!important}
@media(max-width:980px){.bamsi-dashboard-greeting{grid-column:1 / -1;grid-row:1;padding:16px}.bamsi-dashboard-slot-analysis{grid-column:1 / -1!important;grid-row:2!important}}

/* ===== v52 — greeting typography only; loss-card coordinates are frozen ===== */
.bamsi-dashboard-greeting{padding-top:22px!important}
.bamsi-dashboard-greeting-title{
  font-size:27px!important;
  line-height:1.1!important;
  font-weight:650!important;
  letter-spacing:-.72px!important;
}
.bamsi-dashboard-quote{
  margin-top:16px!important;
  max-width:500px!important;
  font-size:13px!important;
  line-height:1.48!important;
  font-weight:450!important;
  color:rgba(255,255,255,.70)!important;
}
.bamsi-dashboard-quote-author{
  width:100%!important;
  max-width:500px!important;
  margin-top:8px!important;
  text-align:right!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:600!important;
  color:rgba(255,255,255,.46)!important;
}

/* Quote block — right aligned */
.bamsi-dashboard-quote{
  margin-left:auto!important;
  text-align:right!important;
}
.bamsi-dashboard-quote-author{
  margin-left:auto!important;
  text-align:right!important;
}


/* Quote block — align container with greeting, text left; author stays right */
.bamsi-dashboard-quote{
  margin-left:0!important;
  margin-right:auto!important;
  text-align:left!important;
}
.bamsi-dashboard-quote-author{
  margin-left:0!important;
  margin-right:auto!important;
  text-align:right!important;
}


/* BAMSI Research Modal v2: scoped to research only; preserve dashboard and toolbar. */
body.bamsi-research-modal-open{overflow:hidden}
body.bamsi-research-modal-open .spatial-stage.research-open .spatial-dashboard{display:grid}
#research-report:not([hidden]){position:fixed;inset:clamp(12px,3vh,36px) clamp(12px,4vw,72px);z-index:1000;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;max-width:1480px;margin:auto;padding:clamp(12px,2vw,30px) clamp(12px,2vw,30px) 40px;background:#25262b;color:#f6f6f8;border:1px solid rgba(255,255,255,.13);border-radius:30px;box-shadow:0 30px 110px rgba(0,0,0,.7)}
body.bamsi-research-modal-open::before{content:"";position:fixed;inset:0;z-index:999;background:rgba(8,9,14,.78);backdrop-filter:blur(9px)}
#research-report .research-report-head{position:sticky;top:-1px;z-index:2;background:#25262b;border-radius:18px;padding:18px 22px;border-bottom:1px solid rgba(255,255,255,.08)}
#research-report:focus{outline:none}
#research-report .research-report-head > div{padding-inline-end:32px}
#research-report #close-research{position:absolute;top:2px;right:0;width:28px;height:28px;padding:0;border-radius:6px;background:transparent;color:#c5c6ce;font:18px/1 Arial,sans-serif;cursor:pointer;transition:background-color .15s ease,color .15s ease}
#research-report #close-research:hover{background:rgba(255,255,255,.14);color:#fff}
@media(max-width:680px){#research-report:not([hidden]){inset:6px;border-radius:19px;padding:10px 10px 24px}#research-report .research-report-head{padding:12px 8px}}


/* fix04: Research card is a primary action; do not affect the sidebar. */
body.bamsi-dashboard-live .bamsi-state-widget{cursor:pointer}
body.bamsi-dashboard-live .bamsi-state-widget:hover{border-color:rgba(255,255,255,.22)}
body.bamsi-dashboard-live .business-loss-card .business-analysis-percent{font-size:clamp(15px,1.5vw,22px)!important;line-height:1.2!important;letter-spacing:-.03em!important;overflow-wrap:anywhere;white-space:normal!important}

/* Greeting: salutation + owner first name only (no illustration or quotations). */
body.bamsi-dashboard-live .bamsi-dashboard-greeting{min-height:0!important;padding-right:18px!important;overflow:visible!important}
body.bamsi-dashboard-live .bamsi-dashboard-greeting-artwork,body.bamsi-dashboard-live .bamsi-dashboard-quote,body.bamsi-dashboard-live .bamsi-dashboard-quote-author{display:none!important}


/* BAMSI toolbar approved appearance restored independently of dashboard state — 2026-10-12 */
/* Same approved dashboard appearance during onboarding and in the admin area.
   Geometry, labels, hover and all other components remain unchanged. */
.bamsi-toolbar{
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 24%),
    linear-gradient(180deg,rgba(61,62,65,.97),rgba(47,48,51,.98))!important;
  box-shadow:
    0 15px 30px rgba(0,0,0,.27),
    inset 0 1px 0 rgba(255,255,255,.085),
    inset 0 0 0 1px rgba(255,255,255,.035)!important;
}
.bamsi-toolbar-item,.bamsi-toolbar-icon{color:#d4d5d6}
.bamsi-toolbar-icon svg{width:19px;height:19px}
.bamsi-toolbar-item.active .bamsi-toolbar-icon{
  background:linear-gradient(145deg,#3478ff,#1f61f2);
  box-shadow:
    0 0 0 5px rgba(27,28,31,.30),
    0 7px 14px rgba(0,0,0,.23),
    0 0 16px rgba(36,104,255,.16),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.bamsi-toolbar-item.active .bamsi-toolbar-icon svg{width:22px;height:22px}
.bamsi-toolbar-icon-main svg{width:20.5px;height:20.5px}
.bamsi-toolbar-icon-main svg *{stroke-linecap:round;stroke-linejoin:round}
.bamsi-home-dashboard{width:21px!important;height:21px!important}

/* Research-first onboarding: isolated styles. */
.bamsi-unlock-card{display:flex;flex-direction:column;gap:16px;padding:30px!important}
.bamsi-unlock-tag{font:700 11px Arial,sans-serif;color:#2468ff;letter-spacing:.12em}
.bamsi-unlock-card h2{font-size:28px!important;line-height:1.1!important}
.bamsi-unlock-card button,.bamsi-research-entry button{border:0;border-radius:14px;background:#2468ff;color:#fff;padding:15px 18px;font:600 15px Arial,sans-serif;cursor:pointer}
.bamsi-research-entry{background:#303237;color:white;border-radius:22px;padding:24px;min-height:180px;box-sizing:border-box;width:100%}
.bamsi-research-entry small{color:#aeb8cc;font-size:10px;letter-spacing:.1em}
.bamsi-research-entry h2{font:600 23px Arial,sans-serif;margin:18px 0 10px}
.bamsi-research-entry p{font:14px/1.5 Arial,sans-serif;color:#b9bac1;margin-bottom:18px}
.bamsi-research-connect-overlay:not([hidden]){position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.72);display:grid;place-items:center;padding:20px;overflow:auto}
.bamsi-research-connect-overlay[hidden]{display:none!important}
.bamsi-research-connect-dialog{position:relative;background:#f5f5f2;border-radius:25px;padding:28px;max-width:600px;width:100%;max-height:90vh;overflow:auto;box-sizing:border-box;color:#171717}
.bamsi-research-connect-dialog>h2{font:700 27px Arial,sans-serif;margin:0 45px 10px 0}
.bamsi-research-connect-dialog>p{font:14px/1.5 Arial,sans-serif;color:#666}
.bamsi-research-connect-dialog>.knowledge-connect-card{max-width:none;padding:22px;margin-top:16px}
#bamsi-research-connect-close{position:absolute;right:22px;top:16px;background:transparent;border:0;font-size:30px;cursor:pointer}

/* BAMSI onboarding 3/3: single-column exact layout */
#knowledge-connect-step { grid-template-columns: 1fr !important; }
#knowledge-connect-step .knowledge-connect-copy {
  width: 100% !important; height: 100% !important; border-right: 0 !important;
  padding: 78px clamp(54px, 6vw, 116px) 42px !important;
  transform: none !important; align-items: center !important;
}
#knowledge-connect-step .knowledge-connect-copy > div { width: 100% !important; }
#knowledge-connect-step .knowledge-connect-copy h1 {
  max-width: none !important; font-size: clamp(37px, 3.5vw, 66px) !important;
  line-height: 1.02 !important; letter-spacing: -.045em !important;
}
#knowledge-connect-step .knowledge-connect-copy p { margin: 24px 0 22px !important; }
#knowledge-connect-step #bamsi-enter-platform {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: auto !important; min-width: 0 !important; max-width: none !important;
  padding: 13px 24px !important; margin: 0 !important;
  border: 0 !important; border-radius: 12px !important;
  background: #2965ff !important; color: white !important;
  font: 600 15px/1.2 Arial,Helvetica,sans-serif !important;
  cursor: pointer !important;
}
@media (max-width: 760px) {
  #knowledge-connect-step .knowledge-connect-copy { padding: 82px 25px 32px !important; }
  #knowledge-connect-step .knowledge-connect-copy h1 { font-size: clamp(26px, 5vw, 38px) !important; }
}

/* Completed dashboard: one scrolling viewport, content-sized panel and normal-flow widgets. */
body.bamsi-dashboard-live #spatial-dashboard:not([hidden]){
  position:fixed!important; inset:0!important; width:100%!important; height:100dvh!important;
  min-height:0!important; margin:0!important; padding:80px 92px 88px 112px!important;
  display:flex!important; align-items:flex-start!important; justify-content:center!important;
  box-sizing:border-box!important; overflow-x:clip!important; overflow-y:auto!important;
  overscroll-behavior:contain;
}
body.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel:not([hidden]){
  flex:0 1 1120px!important; width:100%!important; min-width:0;
  height:auto!important; min-height:0!important; max-height:none!important;
  overflow:visible!important; margin-block:auto;
}
body.bamsi-dashboard-live .spatial-stage > .business-analysis-widget{display:none!important}
@media(max-width:700px){
  body.bamsi-dashboard-live #spatial-dashboard:not([hidden]){padding:80px 12px 96px!important}
}

/* During onboarding steps 1/3–3/3, show only the onboarding panel.
   The controls return automatically when #pretoken-audit is hidden. */
body:has(#pretoken-audit:not([hidden])) #platform-screen .bamsi-toolbar,
body:has(#pretoken-audit:not([hidden])) #platform-screen .bamsi-toolbar-hover-shadow,
body:has(#pretoken-audit:not([hidden])) #platform-screen .spatial-topbar,
body:has(#pretoken-audit:not([hidden])) .bamsi-mc-launcher,
body:has(#pretoken-audit:not([hidden])) .bamsi-mc-frame {
  display: none !important;
}

/* Restore the original vertical position after hiding onboarding chrome. */
@media (min-height: 750px) {
  body:has(#pretoken-audit:not([hidden])) #platform-screen .spatial-stage {
    margin-top: 56px !important;
  }
}


/* 3/3 → platform: soft entrance. `translate` does not override existing transform/position. */
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel:not([hidden]) {
  animation: bamsi-enter-panel 2.05s cubic-bezier(.22,.65,.3,1) both !important;
}
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > * {
  animation: bamsi-enter-widget 1.35s cubic-bezier(.22,.65,.3,1) both;
}
/* The current dashboard mounts its real cards in a layer beside the grid. */
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets :is(.bamsi-starter-card, .bamsi-state-widget, .bamsi-image-widget) {
  animation: bamsi-enter-widget 1.35s cubic-bezier(.22,.65,.3,1) 2.59s both;
}
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter-card:first-child {animation-delay:2.47s}
/* Greeting enters before the dashboard widgets. */
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > .bamsi-dashboard-greeting {
  animation: bamsi-enter-widget 1.05s cubic-bezier(.22,.65,.3,1) 1.55s both;
}
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > :nth-child(2) {animation-delay:2.35s}
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > :nth-child(3) {animation-delay:2.47s}
body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > :nth-child(n+4) {animation-delay:2.59s}
body.bamsi-platform-entering.bamsi-dashboard-live .bamsi-toolbar {
  animation: bamsi-enter-toolbar 1.65s cubic-bezier(.25,.65,.25,1) .12s both !important;
}
body.bamsi-platform-entering.bamsi-dashboard-live .spatial-topbar .business-chip {
  animation: bamsi-enter-company 1.65s cubic-bezier(.25,.65,.25,1) .12s both !important;
}
body.bamsi-platform-entering.bamsi-dashboard-live .spatial-topbar .profile-dot {
  animation: bamsi-enter-avatar 1.65s cubic-bezier(.25,.65,.25,1) .12s both !important;
}
body.bamsi-platform-entering.bamsi-dashboard-live .bamsi-mc-launcher:not([hidden]) {
  animation: bamsi-enter-assistant 1.65s cubic-bezier(.25,.65,.25,1) .12s both !important;
}
@keyframes bamsi-enter-panel {
  0% {opacity:0;filter:brightness(.58)}
  45% {opacity:.72;filter:brightness(.84)}
  100% {opacity:1;filter:brightness(1)}
}
@keyframes bamsi-enter-widget {
  from {opacity:0;translate:0 10px}
  to {opacity:1;translate:0 0}
}
@keyframes bamsi-enter-toolbar {
  from {opacity:0;translate:-56px 0}
  to {opacity:1;translate:0 0}
}
@keyframes bamsi-enter-company {
  from {opacity:0;translate:-40px 0}
  to {opacity:1;translate:0 0}
}
@keyframes bamsi-enter-avatar {
  from {opacity:0;translate:40px 0}
  to {opacity:1;translate:0 0}
}
@keyframes bamsi-enter-assistant {
  from {opacity:0;translate:55px 0}
  to {opacity:1;translate:0 0}
}
@media (prefers-reduced-motion:reduce) {
  body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel:not([hidden]),
  body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > *,
  body.bamsi-platform-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets :is(.bamsi-starter-card, .bamsi-state-widget, .bamsi-image-widget),
  body.bamsi-platform-entering.bamsi-dashboard-live .bamsi-toolbar,
  body.bamsi-platform-entering.bamsi-dashboard-live .spatial-topbar .business-chip,
  body.bamsi-platform-entering.bamsi-dashboard-live .spatial-topbar .profile-dot,
  body.bamsi-platform-entering.bamsi-dashboard-live .bamsi-mc-launcher:not([hidden]) {animation:none!important}
}

/* BAMSI Risks widget — consolidated compact layout (replaces v1–v4 overrides). */
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis{
  align-self:start;
  height:155px;
  min-height:0;
  padding:0!important;
  border:0;
  background:transparent;
  box-shadow:none;
}
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis .bamsi-research-entry{
  box-sizing:border-box;
  width:100%;
  height:155px;
  min-height:0;
  padding:21px 24px 19px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:0;
  overflow:hidden;
  border-radius:27px;
  border:0;
  color:#f8f9ff;
  background:radial-gradient(ellipse at 0% 0%,#ffffff0d,transparent 72%),linear-gradient(145deg,#39383c,#2d2d32);
  box-shadow:0 16px 32px rgba(0,0,0,.20);
}
body.bamsi-dashboard-live .bamsi-research-entry h2{
  margin:0 0 8px;
  font:700 24px/1.12 Arial,sans-serif;
  letter-spacing:-.035em;
}
body.bamsi-dashboard-live .bamsi-research-entry p{
  margin:0 0 15px;
  max-width:none;
  font:13px/1.45 Arial,sans-serif;
  color:#bfc3ce;
}
body.bamsi-dashboard-live .bamsi-risk-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin:0;
  gap:0;
}
body.bamsi-dashboard-live .bamsi-research-entry button,
.bamsi-copilot-unlock button{
  border:0;
  border-radius:999px;
  padding:8px 16px;
  font:600 12px/1.25 Arial,sans-serif;
  white-space:nowrap;
  color:#fff;
  cursor:pointer;
  background:var(--bamsi-research-gradient);
  box-shadow:0 6px 16px rgba(173,55,156,.20),inset 0 1px 0 rgba(255,255,255,.20);
  transition:filter .2s ease,box-shadow .2s ease;
}
.bamsi-copilot-unlock button:hover{
  filter:brightness(1.1);
  box-shadow:0 9px 20px rgba(173,55,156,.28);
}
body.bamsi-dashboard-live .bamsi-research-entry button:focus-visible,
.bamsi-copilot-unlock button:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}
@media(max-width:980px){
  body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis{height:155px}
  body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis .bamsi-research-entry{height:155px}
}

/* VK research dialog — isolated visual redesign; onboarding untouched. */
.bamsi-research-connect-overlay:not([hidden]){background:rgba(7,8,12,.76);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.bamsi-research-connect-dialog{max-width:520px;padding:32px;background:linear-gradient(155deg,#38393e 0%,#27282d 70%,#24252a 100%);border:1px solid rgba(255,255,255,.13);border-radius:30px;box-shadow:0 28px 90px rgba(0,0,0,.48);color:#f7f7fa}
.bamsi-research-connect-dialog .bamsi-vk-brand{display:flex;align-items:center;gap:13px;margin:0 40px 23px 0;font:600 17px/1.2 Arial,Helvetica,sans-serif;color:#f5f5f7}
.bamsi-research-connect-dialog .bamsi-vk-brand svg{width:48px;height:48px;flex:none}
.bamsi-research-connect-dialog>h2{font:700 17px/1.35 Arial,Helvetica,sans-serif;letter-spacing:-.2px;margin:0 26px 0 0;color:#fff}
.bamsi-research-connect-dialog>.bamsi-vk-intro{font:400 15px/1.5 Arial,Helvetica,sans-serif;color:#b9bac3;margin:0}
.bamsi-research-connect-dialog>.knowledge-connect-card{padding:0;margin-top:25px;max-width:none;background:transparent;border:0;border-radius:0;box-shadow:none}
.bamsi-research-connect-dialog .knowledge-connect-help{margin:0 0 17px;color:#c5c6ce;font:400 14px/1.45 Arial,Helvetica,sans-serif}
.bamsi-research-connect-dialog .knowledge-connect-help summary{color:#c5c6ce}
.bamsi-research-connect-dialog .knowledge-connect-help ol{color:#c5c6ce}
.bamsi-research-connect-dialog .knowledge-connect-form{margin-top:0;gap:10px}
.bamsi-research-connect-dialog .knowledge-connect-form input{height:50px;border:1px solid rgba(255,255,255,.19);border-radius:999px;background:#202126;color:#fff;font-size:15px}
.bamsi-research-connect-dialog .knowledge-connect-form input::placeholder{color:#9698a3}
.bamsi-research-connect-dialog .knowledge-connect-form input:focus{border-color:#778dff;box-shadow:0 0 0 3px rgba(74,110,255,.15)}
.bamsi-research-connect-dialog .knowledge-connect-form button{height:50px;width:50px;border-radius:999px;background:#2868ff;color:#fff}
.bamsi-research-connect-dialog .knowledge-connect-form button:disabled{background:#777984;opacity:.45}
.bamsi-research-connect-dialog .knowledge-connect-status{color:#e7e7ec!important}
#bamsi-research-connect-close{color:#e8e8ee;font-size:29px;right:22px;top:18px;width:40px;height:40px;line-height:1}
@media(max-width:560px){.bamsi-research-connect-dialog{padding:26px 22px;border-radius:24px}}

/* Risk card: reuse the onboarding readiness gradient and show its final snapshot. */
body.bamsi-dashboard-live .bamsi-research-entry{position:relative;padding-top:37px}
body.bamsi-dashboard-live .bamsi-research-entry .bamsi-risk-readiness{
  position:absolute;top:28px;right:24px;
  color:#fff;font:700 25.5px/1 Arial,sans-serif;letter-spacing:-.025em;
}
/* Research connection ceremony: existing BAMSI dark UI, no redesign. */
.bamsi-research-ceremony{position:fixed;z-index:2147483001;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:176px;height:176px;border-radius:50%;background:linear-gradient(130deg,#c6f975,#63e5c4);color:#162822;font:800 58px/1 Arial,sans-serif;box-shadow:0 22px 90px rgba(0,0,0,.48);pointer-events:none}
.bamsi-research-entry-ready{cursor:pointer}
body.bamsi-dashboard-live .bamsi-research-entry-ready h2{color:#fff;font-size:clamp(15px, 2.8vw, 17px)}
@media(prefers-reduced-motion:reduce){.bamsi-research-ceremony{transition:none!important}}

/* Research flight starts from Risks card, not from the obsolete onboarding badge. */
.bamsi-research-flight{position:fixed!important;z-index:2147483001;pointer-events:none;box-sizing:border-box;margin:0!important;transform-origin:top left;visibility:visible!important;}
body.bamsi-dashboard-live .bamsi-research-entry-ready .bamsi-risk-readiness{display:none!important;}


/* Token-dialog → 0–100% badge → Risks slot; no old top-left source. */
.bamsi-vk-dialog-flight{position:fixed!important;z-index:2147483002!important;box-sizing:border-box!important;margin:0!important;overflow:hidden!important;pointer-events:none!important;display:grid;place-items:center;}
.bamsi-vk-dialog-flight .bamsi-vk-flight-badge{display:none;}
.bamsi-vk-dialog-flight.bamsi-vk-flight-compact{background:linear-gradient(130deg,#dfff45 0%,#72edac 55%,#52dbea 100%)!important;border:0!important;box-shadow:0 22px 90px rgba(0,0,0,.5);}
.bamsi-vk-dialog-flight.bamsi-vk-flight-compact>*:not(.bamsi-vk-flight-badge){display:none!important;}
.bamsi-vk-dialog-flight.bamsi-vk-flight-compact .bamsi-vk-flight-badge{display:block;font:800 48px/1 Arial,sans-serif;color:#17272a;}

/* Original BAMSI completion treatment: rounded rectangle, red-violet fill. */
.bamsi-research-rectangle-flight{
 position:fixed;z-index:2147483002;box-sizing:border-box;pointer-events:none;
 display:flex;flex-direction:column;justify-content:center;gap:16.15px;
 padding:22.1px 25.5px;border-radius:23px;overflow:hidden;
 border:1px solid rgba(255,255,255,.15);
 background:linear-gradient(145deg,#414247,#28292e);
 box-shadow:0 30px 100px rgba(0,0,0,.6);color:#fff;
}
.bamsi-research-rectangle-title{font:600 16.15px/1.25 Arial,sans-serif;white-space:nowrap}
.bamsi-research-rectangle-percent{font:700 32.3px/1 Arial,sans-serif}
.bamsi-research-rectangle-track{height:10.2px;width:100%;border-radius:999px;background:rgba(255,255,255,.15);overflow:hidden}
.bamsi-research-rectangle-track i{display:block;width:100%;height:100%;border-radius:inherit;transform:scaleX(0);transform-origin:left center;background:var(--bamsi-research-gradient)}

/* Research 100% rectangle morphs into the destination card, without a second entrance. */
.bamsi-research-rectangle-flight{isolation:isolate}
.bamsi-research-rectangle-flight > .bamsi-research-rectangle-title,
.bamsi-research-rectangle-flight > .bamsi-research-rectangle-percent,
.bamsi-research-rectangle-flight > .bamsi-research-rectangle-track{transition:opacity 600ms ease,transform 600ms ease}
.bamsi-research-morph-content{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:20px 24px;box-sizing:border-box;opacity:0;transform:translateY(6px);transition:opacity 650ms ease,transform 650ms ease;pointer-events:none}
.bamsi-research-morph-content h2{margin:0;font-size:21px;font-weight:700;line-height:1.2;color:#fff}
.bamsi-research-morph-content p{margin:0;font-size:14px;color:rgba(255,255,255,.75)}
.bamsi-research-morph-content .bamsi-risk-actions{margin-top:8px}
.bamsi-research-morph-action{display:inline-block;border-radius:12px;padding:10px 19px;background:linear-gradient(90deg,#dfff45,#72edac 56%,#52dbea);color:#17272a;font-weight:700}
.bamsi-research-morph-finish > .bamsi-research-rectangle-title,
.bamsi-research-morph-finish > .bamsi-research-rectangle-percent,
.bamsi-research-morph-finish > .bamsi-research-rectangle-track{opacity:0;transform:translateY(-6px)}
.bamsi-research-morph-finish .bamsi-research-morph-content{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.bamsi-research-morph-content,.bamsi-research-rectangle-flight > *{transition:none!important}}

/* Smooth token-dialog contraction and exact-size research landing. */
.bamsi-research-dialog-shell{position:fixed;z-index:2147483002;pointer-events:none;box-sizing:border-box;border-radius:30px;border:1px solid rgba(255,255,255,.13);background:linear-gradient(155deg,#38393e 0%,#27282d 70%,#24252a 100%);box-shadow:0 28px 90px rgba(0,0,0,.48);will-change:transform,opacity;transform-origin:center center}
.bamsi-research-rectangle-flight{will-change:transform,opacity;transform-origin:top left;backface-visibility:hidden}

/* Single-surface token-to-badge contraction: avoid two overlapping animated layers. */
.bamsi-research-rectangle-flight::before{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 border-radius:inherit;background:linear-gradient(155deg,#38393e 0%,#27282d 70%,#24252a 100%);
 opacity:0;transition:opacity 240ms ease;
}
.bamsi-research-rectangle-flight.bamsi-research-flight-contracting::before{opacity:1}
.bamsi-research-rectangle-flight > .bamsi-research-rectangle-title,
.bamsi-research-rectangle-flight > .bamsi-research-rectangle-percent,
.bamsi-research-rectangle-flight > .bamsi-research-rectangle-track{opacity:1}
.bamsi-research-rectangle-flight.bamsi-research-flight-contracting > .bamsi-research-rectangle-title,
.bamsi-research-rectangle-flight.bamsi-research-flight-contracting > .bamsi-research-rectangle-percent,
.bamsi-research-rectangle-flight.bamsi-research-flight-contracting > .bamsi-research-rectangle-track{opacity:0}
@media(prefers-reduced-motion:reduce){.bamsi-research-rectangle-flight::before{transition:none}}

/* Cinematic research scene: prevent legacy CSS transitions competing with WAAPI. */
.bamsi-research-rectangle-flight.bamsi-research-cinematic,
.bamsi-research-rectangle-flight.bamsi-research-cinematic > *,
.bamsi-research-rectangle-flight.bamsi-research-cinematic .bamsi-research-morph-content {transition:none!important;animation:none!important;}
.bamsi-research-rectangle-flight.bamsi-research-cinematic::before {transition:none!important;}
.bamsi-research-rectangle-flight.bamsi-research-cinematic.bamsi-research-flight-contracting::before {opacity:1;}
.bamsi-research-rectangle-flight.bamsi-research-cinematic:not(.bamsi-research-flight-contracting)::before {opacity:0;}
.bamsi-research-rectangle-flight.bamsi-research-cinematic .bamsi-research-morph-content {opacity:0;transform:translateY(6px);}

:root{--bamsi-research-gradient:linear-gradient(90deg,#ff4a52 0%,#ff356f 28%,#df32b7 58%,#8f43ef 100%)}

/* Original onboarding completion badge: exact 390 × 206 card geometry, 52px counter,
   34px energy track, original red→magenta→violet gradient. No travel. */
.bamsi-original-research-stage{position:fixed;inset:0;z-index:2147483003;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;pointer-events:none;background:rgba(8,8,12,.76);animation:bamsi-research-dim-in .5s ease both}
@keyframes bamsi-research-dim-in{from{background:rgba(8,8,12,0)}to{background:rgba(8,8,12,.76)}}
.bamsi-original-research-card{box-sizing:border-box;width:390px;max-width:calc(100vw - 40px);min-height:206px;padding:18px 20px 17px;border-radius:28px;border:1px solid #3d3f43;background:#292a2c;box-shadow:0 24px 70px rgba(0,0,0,.34);color:#fff;transform-origin:center center;will-change:transform}
.bamsi-original-research-card .business-analysis-head{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0}
.bamsi-original-research-card .business-analysis-head strong{font:700 20px/1 Arial,sans-serif;letter-spacing:-.025em}
.bamsi-original-research-card .business-analysis-head strong:before{content:"✣";display:inline-block;margin-right:10px;color:#f5f5f2;font-size:17px;font-weight:400}
.bamsi-original-research-card .business-analysis-percent{position:absolute;margin-top:49px;font:700 52px/.84 Arial,sans-serif;letter-spacing:-.065em;white-space:nowrap}
.bamsi-original-research-card .business-analysis-percent sup{font-size:.46em;color:#9b9da3;vertical-align:top}
.bamsi-original-research-card .business-analysis-progress{position:relative;display:block;height:34px;margin-top:92px;border:1px solid #505257;border-radius:999px;background:#3a3c40;overflow:visible}
.bamsi-original-research-card .business-analysis-progress:before{display:none!important}
.bamsi-original-research-card .business-analysis-progress i{position:absolute;display:block;left:-1px;top:-1px;width:calc(100% + 2px)!important;height:34px!important;border-radius:999px;transform-origin:left center;transform:scaleX(0);background:var(--bamsi-research-gradient)!important;box-shadow:none!important;transition:none!important;animation:none!important}
.bamsi-research-wait{min-height:18px;font:500 13px/18px Arial,sans-serif;color:#d6d5df;text-align:center}
.bamsi-original-research-finished{animation:bamsi-research-dim-out .75s ease forwards}
@keyframes bamsi-research-dim-out{from{opacity:1}to{opacity:0}}
.bamsi-research-entry.bamsi-research-just-ready{animation:bamsi-research-arrival-glow 2.4s ease-out both}
@keyframes bamsi-research-arrival-glow{0%{box-shadow:0 0 0 0 rgba(224,50,183,.7),0 16px 32px rgba(0,0,0,.2)}45%{box-shadow:0 0 0 7px rgba(224,50,183,.28),0 16px 32px rgba(0,0,0,.2)}100%{box-shadow:0 0 0 0 rgba(224,50,183,0),0 16px 32px rgba(0,0,0,.2)}}
@media(prefers-reduced-motion:reduce){.bamsi-original-research-stage,.bamsi-original-research-finished,.bamsi-research-entry.bamsi-research-just-ready{animation:none!important}}

/* Research ceremony v2: isolated layout, independent of dashboard readiness CSS. */
.bamsi-original-research-stage .bamsi-original-research-card{
  width:390px!important;max-width:calc(100vw - 32px)!important;
  height:206px!important;min-height:0!important;
  padding:20px 22px!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;gap:18px!important;position:relative!important;
  transform-origin:center center!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head{
  display:block!important;margin:0!important;flex:none!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head strong{
  display:block!important;font:700 20px/24px Arial,sans-serif!important;
  white-space:nowrap!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent{
  position:static!important;display:block!important;margin:0!important;
  font:700 52px/52px Arial,sans-serif!important;letter-spacing:-.055em!important;
  white-space:nowrap!important;flex:none!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent sup{
  position:static!important;display:inline!important;vertical-align:top!important;
  margin-left:3px!important;font:500 24px/30px Arial,sans-serif!important;
  color:#9b9da3!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress{
  display:block!important;position:relative!important;flex:none!important;
  width:100%!important;height:34px!important;margin:0!important;
  border:1px solid #505257!important;border-radius:999px!important;
  background:#3a3c40!important;overflow:hidden!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress i{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  transform-origin:left center!important;border-radius:999px!important;
  background:var(--bamsi-research-gradient)!important;
  box-shadow:none!important;transition:none!important;animation:none!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress i:after{content:none!important}
@media(max-width:440px){.bamsi-original-research-stage .bamsi-original-research-card{width:calc(100vw - 32px)!important}}

/* Compact research ceremony: 75% of previous card and all internal geometry. */
.bamsi-original-research-stage .bamsi-original-research-card{
  width:292.5px!important;height:154.5px!important;
  padding:15px 16.5px!important;gap:13.5px!important;
  border-radius:21px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head strong{
  font-size:15px!important;line-height:18px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head strong:before{
  content:none!important;display:none!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent{
  font-size:39px!important;line-height:39px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent sup{
  font-size:18px!important;line-height:23px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress{
  height:25.5px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress i{
  height:100%!important;
}
.bamsi-original-research-stage .bamsi-research-wait{font-size:11px;line-height:15px}

/* Ready research action: match the completed 100% research progress gradient. */
body.bamsi-dashboard-live .bamsi-research-entry-ready #bamsi-research-entry-button,
body.bamsi-dashboard-live .bamsi-research-entry-ready #bamsi-research-entry-button:hover{
  background:var(--bamsi-research-gradient);
  color:#fff;
  box-shadow:0 6px 16px rgba(173,55,156,.20),inset 0 1px 0 rgba(255,255,255,.20);
}


/* Research modal v3 — viewport portal, compact content, isolated from dashboard. */
.bamsi-research-backdrop[hidden]{display:none!important}
.bamsi-research-backdrop{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:center;justify-content:center;padding:22px;box-sizing:border-box;background:rgba(8,9,14,.76);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
body.bamsi-research-modal-open::before{content:none!important;display:none!important}
.bamsi-research-backdrop #research-report:not([hidden]){position:relative!important;inset:auto!important;z-index:auto!important;display:block!important;flex:0 1 960px;width:min(960px,100%)!important;max-width:960px!important;max-height:calc(100dvh - 44px)!important;min-height:0!important;margin:0!important;padding:18px 22px 26px!important;overflow-y:auto!important;overscroll-behavior:contain;border-radius:24px!important;background:#25262b;box-shadow:0 30px 110px rgba(0,0,0,.7)}
.bamsi-research-backdrop .research-report-head{position:sticky;top:-18px!important;z-index:3;margin:0 0 12px!important;padding:14px 4px 16px!important;border-radius:0!important;background:#25262b!important}
.bamsi-research-backdrop .research-report-head h1{font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(23px,2.6vw,30px)!important;margin:5px 0 8px!important;line-height:1.14!important}
.bamsi-research-backdrop .research-report-head p{font-size:12px!important;line-height:1.4!important}
.bamsi-research-backdrop .research-results{gap:12px!important}
.bamsi-research-backdrop .research-economic-grid{gap:12px!important}
.bamsi-research-backdrop .research-revenue-group{gap:12px}
.bamsi-research-backdrop .research-problem-grid{gap:10px!important}
.bamsi-research-backdrop .research-revenue,.bamsi-research-backdrop .research-labor,.bamsi-research-backdrop .research-calculation,.bamsi-research-backdrop .research-evidence,.bamsi-research-backdrop .research-action,.bamsi-research-backdrop .research-method{padding:18px!important;border-radius:18px!important;min-height:0!important}
.bamsi-research-backdrop .research-results h2{font-size:19px!important;margin:6px 0 10px!important}
.bamsi-research-backdrop .research-results p{font-size:12px!important;line-height:1.5!important}
.bamsi-research-backdrop .research-money{font-size:clamp(25px,3vw,36px)!important}
.bamsi-research-backdrop .research-revenue .research-money{font-size:clamp(28px,3.3vw,42px)!important}
.bamsi-research-backdrop .research-labor-inputs>div{padding:8px 0!important;font-size:12px!important}
.bamsi-research-backdrop .research-evidence-item{padding:13px 0!important;gap:12px!important}
@media(max-width:680px){.bamsi-research-backdrop{padding:10px}.bamsi-research-backdrop #research-report:not([hidden]){width:100%!important;max-height:calc(100dvh - 20px)!important;padding:12px 14px 20px!important;border-radius:18px!important}.bamsi-research-backdrop .research-economic-grid,.bamsi-research-backdrop .research-problem-grid{grid-template-columns:1fr!important}.bamsi-research-backdrop .research-report-head{top:-12px!important}}
@media(prefers-reduced-motion:no-preference){.bamsi-research-backdrop{animation:bamsiResearchFade .2s ease both}.bamsi-research-backdrop #research-report:not([hidden]){animation:bamsiResearchAppear .26s cubic-bezier(.2,.8,.2,1) both}}
@keyframes bamsiResearchFade{from{opacity:0}to{opacity:1}}
@keyframes bamsiResearchAppear{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Ready research card: 80% of previous dimensions, including contents. */
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis{
  width:min(100%,max(260px,80%)); min-height:124px; height:auto; justify-self:end; margin-left:auto;
}
body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis .bamsi-research-entry{
  height:124px; padding:17px 19.2px 15.2px; border-radius:21.6px;
}
body.bamsi-dashboard-live .bamsi-research-entry h2{
  font-size:19.2px; margin-bottom:6.4px;
}
body.bamsi-dashboard-live .bamsi-research-entry p{
  font-size:10.4px; margin-bottom:12px;
}
body.bamsi-dashboard-live .bamsi-research-entry button{
  font-size:9.6px; padding:6.4px 12.8px;
}
body.bamsi-dashboard-live .bamsi-research-entry .bamsi-risk-readiness{
  top:22.4px; right:19.2px; font-size:20.4px;
}
@media(max-width:980px){
  body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis,
  body.bamsi-dashboard-live .bamsi-dashboard-slot-analysis .bamsi-research-entry{height:124px}
}

/* Keep loader heading and counter on the same left edge, independent of dashboard text alignment. */
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head,
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head strong,
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent{
  text-align:left!important;
  align-self:stretch!important;
}

/* Research loader: geometry follows the measured ready widget, not fixed CSS sizes. */
.bamsi-original-research-stage .bamsi-original-research-card{
  box-sizing:border-box!important;min-height:0!important;
  max-width:calc(100vw - 32px)!important;
  padding:10px 15px!important;gap:7px!important;
  justify-content:center!important;align-items:stretch!important;
  border-radius:21.6px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head{
  display:flex!important;flex-direction:column!important;gap:4px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-head strong{
  font-size:15px!important;line-height:18px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent{
  margin:0!important;font-size:33px!important;line-height:36px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-percent sup{
  font-size:15px!important;line-height:19px!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress{
  margin:0!important;height:20px!important;flex-shrink:0!important;
}
.bamsi-original-research-stage .bamsi-original-research-card .business-analysis-progress i{
  height:100%!important;
}

/* Research dialog performance: no fullscreen backdrop blur, no sticky repaint while scrolling.
   One composited opacity/transform transition handles both entry and exit. */
.bamsi-research-backdrop{
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  background:rgba(7,8,13,.74);
  opacity:0;transition:opacity 220ms cubic-bezier(.2,.7,.2,1);
  animation:none!important;
}
.bamsi-research-backdrop.is-visible{opacity:1}
.bamsi-research-backdrop #research-report:not([hidden]){
  animation:none!important;
  transform:translate3d(0,12px,0) scale(.985);
  opacity:0;
  transition:transform 260ms cubic-bezier(.2,.8,.2,1),opacity 200ms ease;
  will-change:transform,opacity;
  contain:layout paint;
  -webkit-overflow-scrolling:touch;
}
.bamsi-research-backdrop.is-visible #research-report:not([hidden]){
  transform:translate3d(0,0,0) scale(1);opacity:1;
}
.bamsi-research-backdrop .research-report-head{
  position:relative!important;top:auto!important;
}
@media(prefers-reduced-motion:reduce){
  .bamsi-research-backdrop,.bamsi-research-backdrop #research-report:not([hidden]){
    transition:none!important;transform:none!important;
  }
}

/* BAMSI mobile v1.4: existing five-item toolbar becomes a floating bottom dock. */
@media(max-width:640px){
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar{
    display:flex!important;position:fixed!important;top:auto!important;left:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;transform:none!important;
    z-index:940!important;flex-direction:row!important;align-items:center!important;gap:1px!important;
    width:min(264px,calc(100vw - 88px))!important;height:52px!important;padding:4px!important;
    border-radius:28px!important;overflow:hidden!important;transition:none!important;
    background:rgba(37,39,46,.92)!important;backdrop-filter:blur(20px) saturate(130%)!important;-webkit-backdrop-filter:blur(20px) saturate(130%)!important;
  }
  .bamsi-toolbar:hover,.bamsi-toolbar:focus-within{width:min(264px,calc(100vw - 88px))!important}
  .bamsi-toolbar .bamsi-toolbar-item{width:auto!important;min-width:0!important;flex:1 1 0!important;height:44px!important;padding:0!important;display:grid!important;place-items:center!important;margin:0!important;border-radius:23px!important}
  .bamsi-toolbar .bamsi-toolbar-icon,.bamsi-toolbar .bamsi-toolbar-item.active .bamsi-toolbar-icon{width:40px!important;height:40px!important;flex:0 0 40px!important;margin:0!important;display:grid!important;place-items:center!important}
  .bamsi-toolbar .bamsi-toolbar-label,.bamsi-toolbar .bamsi-toolbar-hover-shadow{display:none!important}
  .bamsi-toolbar .bamsi-toolbar-icon svg{width:19px!important;height:19px!important}
  body:has(#platform-screen:not([hidden])) .spatial-stage{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:360px){
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar{left:9px!important;width:calc(100vw - 83px)!important}
  .bamsi-toolbar:hover,.bamsi-toolbar:focus-within{width:calc(100vw - 83px)!important}
}

/* v1.4.1: feedback for navigation placeholders; never steal dock clicks. */
.bamsi-toolbar-section-notice[hidden]{display:none!important}
.bamsi-toolbar-section-notice{position:fixed;z-index:945;left:50%;bottom:calc(86px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);max-width:calc(100vw - 32px);padding:10px 15px;border:1px solid #ffffff30;border-radius:16px;background:#242730;color:#f5f5fa;box-shadow:0 10px 30px #0008;font:500 13px/1.4 system-ui;text-align:center;pointer-events:none}

/* v1.4.19 — mobile dock geometry and home circle only. */
@media (max-width:640px) {
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar {
    left:50%!important;transform:translateX(-50%)!important;
    width:min(224.4px,calc(100vw - 108px))!important;
    height:44.2px!important;padding:3.4px!important;
    border-radius:24px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar:hover,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar:focus-within {
    width:min(224.4px,calc(100vw - 108px))!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-item {
    height:37.4px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-icon,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-item.active .bamsi-toolbar-icon {
    width:34px!important;height:34px!important;flex:0 0 34px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-icon svg {
    width:16.15px!important;height:16.15px!important;
  }
}
/* Home circle: darker than toolbar, across the platform. */
.bamsi-toolbar .bamsi-toolbar-item[aria-label="Главная"].active .bamsi-toolbar-icon {
  background:#1b1c20!important;
  box-shadow:0 1px 4px rgba(0,0,0,.22)!important;
}

/* v1.4.33: raise only the mobile client demo conversation panel. */
@media (max-width: 620px) {
  body.demo-active .demo-phone {
    transform: translateY(-19px);
  }
}

/* Mobile dock: 15% larger than v1.4.19; desktop and other UI unchanged. */
@media (max-width:640px) {
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar:hover,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar:focus-within {
    width:min(258.06px,calc(100vw - 108px))!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar {
    height:50.83px!important;
    padding:3.91px!important;
    border-radius:27.6px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-item {
    height:43.01px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-icon,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-item.active .bamsi-toolbar-icon {
    width:39.1px!important;height:39.1px!important;flex:0 0 39.1px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-icon svg {
    width:18.57px!important;height:18.57px!important;
  }
}

/* v1.4.38 — additional 15% mobile dock enlargement (relative to v1.4.37). */
@media (max-width:640px) {
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar:hover,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar:focus-within {
    width:min(296.77px,calc(100vw - 108px))!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar {
    height:58.45px!important;padding:4.50px!important;border-radius:31.74px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-item {
    height:49.46px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-icon,
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-item.active .bamsi-toolbar-icon {
    width:44.97px!important;height:44.97px!important;flex:0 0 44.97px!important;
  }
  body:has(#platform-screen:not([hidden])) .bamsi-toolbar .bamsi-toolbar-icon svg {
    width:21.36px!important;height:21.36px!important;
  }
}

/* Mobile onboarding 1/3–3/3: keep the scene inside the viewport.
   Scoped to the visible onboarding, without changing dashboard or demo. */
@media (max-width:650px){
  body:has(#pretoken-audit:not([hidden])) #platform-screen.bamsi-dark{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:16px 14px 32px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body:has(#pretoken-audit:not([hidden])) .spatial-stage{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  #pretoken-audit.knowledge-intro{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:12px 0 0!important;
    border-radius:22px!important;
  }
  #pretoken-audit .knowledge-intro-main,
  #pretoken-audit .knowledge-check-step,
  #pretoken-audit .knowledge-connect-step{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    min-width:0!important;
  }
  #pretoken-audit .knowledge-intro-main{
    height:auto!important;
    min-height:640px!important;
    max-height:none!important;
  }
  #pretoken-audit .knowledge-intro-copy,
  #pretoken-audit .knowledge-check-copy,
  #pretoken-audit .knowledge-connect-copy{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:76px 24px 18px!important;
    border-right:0!important;
    transform:none!important;
    align-self:stretch!important;
  }
  #pretoken-audit .knowledge-intro-copy h1,
  #pretoken-audit .knowledge-check-copy h1,
  #pretoken-audit .knowledge-connect-copy h1{
    font-size:clamp(34px,10vw,46px)!important;
    line-height:1!important;
    overflow-wrap:anywhere!important;
  }
  #pretoken-audit .knowledge-intro-copy p,
  #pretoken-audit .knowledge-check-copy p,
  #pretoken-audit .knowledge-connect-copy p{
    font-size:14px!important;
    line-height:1.5!important;
  }
  #pretoken-audit .knowledge-intro-right{min-width:0!important;width:100%!important;}
  #pretoken-audit .knowledge-intro-categories{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:14px 20px 90px!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  #pretoken-audit .knowledge-intro-categories button{
    min-width:0!important;
    min-height:92px!important;
    padding:18px!important;
    border-radius:16px!important;
    font-size:15px!important;
  }
  #pretoken-audit .knowledge-skip{left:24px!important;bottom:26px!important;}
  #pretoken-audit.knowledge-intro.knowledge-check-open,
  #pretoken-audit.knowledge-intro.knowledge-connect-open,
  #pretoken-audit.knowledge-intro:has(.knowledge-check-step:not([hidden])),
  #pretoken-audit.knowledge-intro:has(.knowledge-connect-step:not([hidden])){
    height:690px!important;
    min-height:690px!important;
    max-height:none!important;
  }
  #pretoken-audit .knowledge-check-step,
  #pretoken-audit .knowledge-connect-step{height:100%!important;min-height:0!important;max-height:none!important;}
  #pretoken-audit .knowledge-check-chat,
  #pretoken-audit .knowledge-connect-panel{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:12px 16px 72px!important;
  }
  #pretoken-audit .knowledge-check-chat-log{max-width:100%!important;min-width:0!important;}
  #pretoken-audit .knowledge-check-chat-form{max-width:100%!important;min-width:0!important;}
  #pretoken-audit .knowledge-connect-back,
  #pretoken-audit .knowledge-check-back{left:24px!important;}
}

/* Mobile onboarding refinement: only the three pre-token steps. */
@media (max-width:650px){
  /* Both slides keep one full-width column; no clipped right-hand pane. */
  #pretoken-audit.knowledge-intro{
    height:760px!important;
    min-height:760px!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  #pretoken-audit .knowledge-intro-main,
  #pretoken-audit .knowledge-check-step{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    align-items:stretch!important;
  }
  #pretoken-audit .knowledge-intro-copy,
  #pretoken-audit .knowledge-check-copy{
    display:block!important;
    align-self:auto!important;
    height:auto!important;
    padding:74px 24px 18px!important;
    border:0!important;
    transform:none!important;
  }
  #pretoken-audit .knowledge-intro-copy > div,
  #pretoken-audit .knowledge-check-copy > div{
    transform:none!important;
  }
  #pretoken-audit .knowledge-intro-copy h1,
  #pretoken-audit .knowledge-check-copy h1{
    font-size:clamp(32px,9vw,42px)!important;
    line-height:1.03!important;
    margin:0 0 14px!important;
  }
  #pretoken-audit .knowledge-intro-copy p,
  #pretoken-audit .knowledge-check-copy p{
    font-size:14px!important;
    line-height:1.45!important;
    margin:0!important;
  }
  #pretoken-audit .knowledge-intro-right{
    height:auto!important;
    min-height:0!important;
    overflow:auto!important;
    padding-bottom:72px!important;
  }
  #pretoken-audit .knowledge-intro-categories{
    height:auto!important;
    min-height:0!important;
    padding:12px 20px 14px!important;
    gap:10px!important;
  }
  #pretoken-audit .knowledge-intro-categories button{
    min-height:80px!important;
    padding:14px 16px!important;
  }
  #pretoken-audit .knowledge-check-chat{
    height:100%!important;
    min-height:0!important;
    padding:10px 20px 96px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:stretch!important;
    overflow:hidden!important;
  }
  #pretoken-audit .knowledge-check-chat-log{
    box-sizing:border-box!important;
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    width:100%!important;
  }
  #pretoken-audit .knowledge-check-chat-form{
    box-sizing:border-box!important;
    flex:0 0 auto!important;
    width:100%!important;
  }
  #pretoken-audit .knowledge-check-chat-form button{
    flex:0 0 46px!important;
  }
  #pretoken-audit .knowledge-check-skip{
    left:24px!important;
    bottom:26px!important;
  }
  /* 3/3: center the whole title, explanation and action block vertically. */
  #pretoken-audit #knowledge-connect-step{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  #pretoken-audit #knowledge-connect-step .knowledge-connect-copy{
    box-sizing:border-box!important;
    height:100%!important;
    min-height:0!important;
    padding:70px 24px 30px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    transform:none!important;
  }
  #pretoken-audit #knowledge-connect-step .knowledge-connect-copy > div{
    width:100%!important;
    transform:none!important;
  }
}

/* Mobile onboarding 1/3 only: lower content ~5 mm, bring footer up ~1 cm.
   Content-driven height avoids a clipped bottom on short viewports. */
@media (max-width:650px){
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open){
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open) .knowledge-intro-main{
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    transform:none!important;
    padding-bottom:66px!important;
  }
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open) .knowledge-intro-copy{
    flex:0 0 auto!important;
    padding:95px 22px 12px!important;
  }
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open) .knowledge-intro-right{
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open) .knowledge-intro-categories{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    padding:12px 20px 8px!important;
    transform:none!important;
  }
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open) .knowledge-intro-categories button{
    box-sizing:border-box!important;
    width:100%!important;
    min-height:78px!important;
  }
  #pretoken-audit.knowledge-intro:not(.knowledge-check-open):not(.knowledge-connect-open):not(.kb-detail-open) .knowledge-skip{
    left:22px!important;
    bottom:20px!important;
  }
}


/* Mobile 2/3 isolation: do not change the resting 1/3 or 3/3. */
@media (max-width:650px) {
  /* The first slide was made overflow:visible/position:relative on 1/3.
     Once 2/3 is open, take it completely out of the visible scene. */
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) {
    position:relative!important;
    overflow:hidden!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) > .knowledge-intro-main {
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateX(-100%)!important;
    transition:none!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) > .knowledge-check-step {
    position:absolute!important;
    inset:0!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    transform:none!important;
    transition:none!important;
    overflow:hidden!important;
  }
  /* One shared left/right axis inside the beige card. */
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-copy {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:74px 22px 18px!important;
    transform:none!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-copy p {
    max-width:100%!important;
    overflow-wrap:break-word!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-back {
    left:22px!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-chat {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:100%!important;
    padding:10px 22px 96px!important;
    transform:none!important;
    overflow:hidden!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-chat-log,
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-chat-form {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-chat-form input {
    min-width:0!important;
    width:0!important;
    flex:1 1 0%!important;
  }
  #pretoken-audit.knowledge-check-open:not(.knowledge-connect-open) .knowledge-check-chat-form button {
    flex:0 0 46px!important;
  }
}


/* Mobile KB category editor only: keep the input visible inside the beige card.
   The normal 1/3 overview and the 2/3, 3/3 slides are not affected. */
@media (max-width:650px) {
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-main {
    box-sizing:border-box!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:visible!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-copy {
    flex:0 0 auto!important;
    padding:48px 22px 12px!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-right {
    box-sizing:border-box!important;
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-intro-right > .knowledge-detail {
    box-sizing:border-box!important;
    height:auto!important;
    min-height:0!important;
    padding:42px 22px 28px!important;
    overflow:visible!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-back {
    top:0!important;
    left:22px!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-head h2 {
    font-size:clamp(26px,7vw,34px)!important;
    line-height:1.08!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-detail-list {
    margin-top:16px!important;
  }
  #pretoken-audit.knowledge-intro.kb-detail-open .knowledge-rules-editor {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:clamp(190px,29vh,280px)!important;
    min-height:190px!important;
    max-height:280px!important;
    padding:16px 18px!important;
    overflow:auto!important;
  }
}

/* Management chat: trusted navigation action (no other layout changes). */
.bamsi-mc-nav-action { display:block; margin:10px 16px 14px; padding:10px 16px; border:1px solid rgba(123,166,255,.45); border-radius:14px; background:#285dcc; color:#fff; font:inherit; cursor:pointer; text-align:left; }
.bamsi-mc-nav-action:focus-visible { outline:2px solid #fff; outline-offset:2px; }

/* Research title: readable wrapping on narrow mobile screens. */
@media(max-width:680px){
  .bamsi-research-backdrop .research-report-head{min-width:0!important}
  .bamsi-research-backdrop .research-report-head>div{min-width:0;flex:1 1 auto}
  .bamsi-research-backdrop .research-report-head h1{font-size:clamp(21px,5.3vw,28px)!important;line-height:1.2!important;letter-spacing:-.025em!important;overflow-wrap:break-word;white-space:normal}
}

/* Onboarding 2/3: same question starters as demo; no changes to chat geometry. */
#pretoken-audit .knowledge-check-suggestions:not([hidden]){
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  width:100%;
  box-sizing:border-box;
  margin-top:9px;
  flex:0 0 auto;
}
#pretoken-audit .knowledge-check-suggestion{
  max-width:100%;
  border:1px solid #dcdcd7;
  border-radius:14px;
  background:#fff;
  color:#555;
  padding:8px 11px;
  font:inherit;
  font-size:13px;
  line-height:1.3;
  text-align:left;
  cursor:pointer;
  overflow-wrap:anywhere;
}
#pretoken-audit .knowledge-check-suggestion:hover{border-color:#888;color:#171717;}
@media(max-width:700px){
  #pretoken-audit .knowledge-check-suggestions:not([hidden]){
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
  }
  #pretoken-audit .knowledge-check-suggestion{flex:0 0 auto;max-width:80%;font-size:12px;}
}


/* Restored /onboarding dashboard: two explicit phases, using ONLY the
   existing first-entry keyframes. The shell appears fully before its content.
   Scope is limited to the dashboard; toolbar/launcher/topbar are untouched. */
body.bamsi-platform-restored-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel:not([hidden]) {
  animation: bamsi-enter-panel 2.05s cubic-bezier(.22,.65,.3,1) both !important;
}
/* This stage is armed before the restored dashboard is made visible.
   Hide ALL direct children, including widgets added asynchronously. */
body.bamsi-dashboard-panel-first.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel:not([hidden]) > * {
  visibility: hidden !important;
}
/* Only after the shell has completed, reveal its content with the same
   bamsi-enter-widget keyframes used by the first-entry flow. */
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > *,
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-starter-card,
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-state-widget,
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-image-widget {
  animation: bamsi-enter-widget 1.35s cubic-bezier(.22,.65,.3,1) both !important;
}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > :nth-child(2),
/* Stagger each actual starter card, not its shared dynamic layer.
   The dashboard shell and the existing first-entry keyframes are unchanged. */
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-starter-card:nth-child(1) {animation-delay:.36s!important}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-starter-card:nth-child(2) {animation-delay:.54s!important}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > :nth-child(n+3),
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-starter-card:nth-child(3) {animation-delay:.72s!important}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-starter-card:nth-child(4) {animation-delay:.90s!important}
@media (prefers-reduced-motion:reduce) {
  body.bamsi-platform-restored-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel:not([hidden]),
  body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-grid > *,
  body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-starter-card,
  body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-state-widget,
  body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dashboard-panel .bamsi-image-widget {animation:none!important}
}

/* Restored onboarding: animate the actual starter cards, not their shared layer.
   The layer and its section are already in the dashboard panel DOM. */
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter > .bamsi-starter-card {
  animation-name: bamsi-enter-widget !important;
  animation-duration: 1.35s !important;
  animation-timing-function: cubic-bezier(.22,.65,.3,1) !important;
  animation-fill-mode: both !important;
}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter > .bamsi-starter-card:nth-child(1) {animation-delay:.36s!important}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter > .bamsi-starter-card:nth-child(2) {animation-delay:.54s!important}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter > .bamsi-starter-card:nth-child(3) {animation-delay:.72s!important}
body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter > .bamsi-starter-card:nth-child(4) {animation-delay:.90s!important}

/* Mobile: keep the account avatar within the viewport, independently of the
   oversized topbar layout. Do not change its entrance animation. */
@media (max-width:640px) {
  #platform-screen .spatial-topbar .profile-dot {
    position:fixed!important;
    right:max(12px,env(safe-area-inset-right))!important;
    left:auto!important;
    margin-left:0!important;
    margin-right:0!important;
    flex-shrink:0!important;
    z-index:31;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.bamsi-dashboard-content-entering.bamsi-dashboard-live #spatial-dashboard .bamsi-dynamic-widgets .bamsi-starter > .bamsi-starter-card {animation:none!important}
}

/* Research category monetary summary; uses existing metric styling. */
.research-risk-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}

/* Only the three monetary risk category cards; existing BAMSI palette. */
.research-risk-categories .research-risk-category{border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.045)}
.research-risk-categories .research-risk-category--speed{background:linear-gradient(145deg,#3c4659,#353638);border-color:rgba(139,170,229,.28)}
.research-risk-categories .research-risk-category--quality{background:linear-gradient(145deg,#3b514a,#353638);border-color:rgba(134,191,165,.27)}
.research-risk-categories .research-risk-category--sales{background:linear-gradient(145deg,#504459,#353638);border-color:rgba(190,151,208,.27)}
.research-risk-categories .research-risk-category--speed>small{color:#b9d0ff}
.research-risk-categories .research-risk-category--quality>small{color:#b9e4cf}
.research-risk-categories .research-risk-category--sales>small{color:#e0c6ed}

@media(max-width:760px){.research-risk-categories{grid-template-columns:1fr}}

/* BAMSI risk category totals match the Risks of Business total typography. */
.research-risk-categories .research-metric strong{
  font-size:clamp(32px,3.8vw,56px);
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.2;
  overflow-wrap:anywhere;
}
@media(max-width:680px){
  .research-risk-categories .research-metric strong{font-size:38px}
}
.bamsi-research-backdrop .research-risk-categories .research-metric strong{
  font-size:clamp(28px,3.3vw,42px)!important;
}

/* BAMSI VK duplicate notice style v1 — isolated to existing-community notice */
#bamsi-existing-vk-notice { box-sizing:border-box; padding:22px 24px; margin-top:16px; border:1px solid #e2e3e7; border-radius:22px; background:#fff; }
#bamsi-existing-vk-notice p { margin:0 0 18px; color:#24252a; font:500 16px/1.5 Arial,Helvetica,sans-serif; }
#bamsi-existing-vk-notice button { box-sizing:border-box; min-height:46px; padding:11px 22px; border-radius:999px; font:600 15px/1.3 Arial,Helvetica,sans-serif; cursor:pointer; transition:background .15s ease,border-color .15s ease; }
#bamsi-existing-vk-notice .bamsi-existing-vk-login { background:#1877f2; color:#fff; border:1px solid #1877f2; }
#bamsi-existing-vk-notice .bamsi-existing-vk-login:hover { background:#0865da; border-color:#0865da; }
#bamsi-existing-vk-notice .bamsi-existing-vk-support { margin-left:10px; background:#fff; color:#222; border:1px solid #d6d9e0; }
#bamsi-existing-vk-notice .bamsi-existing-vk-support:hover { background:#f5f6f8; }
#bamsi-existing-vk-notice button:focus-visible { outline:3px solid #80b4ff; outline-offset:3px; }
@media(max-width:540px) { #bamsi-existing-vk-notice { padding:18px; } #bamsi-existing-vk-notice button { width:100%; } #bamsi-existing-vk-notice .bamsi-existing-vk-support { margin:10px 0 0; } }

/* BAMSI account recovery */
#bamsi-existing-vk-notice .bamsi-recovery-form { display:grid; gap:10px; margin-top:10px; }
#bamsi-existing-vk-notice .bamsi-recovery-form input { width:100%; box-sizing:border-box; min-height:46px; border:1px solid #d6d9e0; border-radius:14px; padding:11px 15px; font:15px Arial,Helvetica,sans-serif; background:#fff; color:#222; }
#bamsi-existing-vk-notice .bamsi-recovery-form button { justify-self:start; }
#bamsi-existing-vk-notice .bamsi-recovery-result { font:13px/1.4 Arial,Helvetica,sans-serif; color:#a22; }
#bamsi-existing-vk-notice button[hidden] { display:none!important; }

/* Knowledge review: scoped to the existing knowledge panel. */
.bamsi-kb-issue-badge{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#ed8426;color:#fff;font-size:11px;font-weight:700;line-height:1;margin-left:7px;flex-shrink:0}
.bamsi-kb-issue{border:1px solid #ed8426!important;background:rgba(237,132,38,.06)!important}
.bamsi-kb-issue blockquote{margin:10px 0;padding-left:12px;border-left:2px solid #ed8426;white-space:pre-wrap}
.bamsi-kb-problem-fragment{background:rgba(237,132,38,.18);color:inherit;border-bottom:2px solid #ed8426;cursor:pointer}
.bamsi-kb-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
.bamsi-kb-issue .bamsi-kb-edit{margin-left:8px}


/* BAMSI toolbar current-page indicator 20261030 */
/* Same dark circular badge for whichever section is currently open. */
.bamsi-toolbar .bamsi-toolbar-item.active .bamsi-toolbar-icon {
  background:#1b1c20!important;
  color:#fff!important;
  border-radius:50%!important;
  box-shadow:0 5px 12px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.035)!important;
  transition:background .2s ease,box-shadow .2s ease;
}


/* BAMSI KB CLIENTS VISUAL 20261030 */
body .bamsi-kb-overlay {
  background:#17181b;
  padding:32px 42px 32px 116px;
}
body .bamsi-kb-overlay .bamsi-kb-shell {
  width:min(100%,1280px);
  background:#1b1c20;
  border:1px solid #34363d;
  border-radius:20px;
  box-shadow:none;
}
body .bamsi-kb-overlay .bamsi-kb-head {
  padding:30px 36px 20px;
  border-bottom:1px solid #32343a;
}
body .bamsi-kb-overlay .bamsi-kb-head h2 {
  font-size:30px;
  font-weight:650;
  letter-spacing:-.035em;
  color:#f2f2f3;
}
body .bamsi-kb-overlay .bamsi-kb-sub {
  padding:22px 36px 18px;
  color:#a0a2aa;
  font-size:14px;
}
body .bamsi-kb-overlay .bamsi-kb-content {
  padding:0 36px 26px;
}
body .bamsi-kb-overlay .bamsi-kb-tabs {
  gap:24px;
  margin-bottom:27px;
  border-bottom:1px solid #35363c;
  flex-wrap:wrap;
}
body .bamsi-kb-overlay .bamsi-kb-tab,
body .bamsi-kb-overlay .bamsi-kb-tab.active {
  position:relative;
  border:0;
  border-radius:0;
  background:transparent;
  color:#999ba4;
  padding:10px 0 16px;
  font-size:14px;
  font-weight:500;
  box-shadow:none;
}
body .bamsi-kb-overlay .bamsi-kb-tab:hover {
  color:#f0f0f2;
}
body .bamsi-kb-overlay .bamsi-kb-tab.active {
  color:#f3f3f4;
  font-weight:650;
}
body .bamsi-kb-overlay .bamsi-kb-tab.active::after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:#b7b8c0;
  border-radius:2px;
}
body .bamsi-kb-overlay .bamsi-kb-toolbar h3 {
  font-size:20px;
  font-weight:650;
}
body .bamsi-kb-overlay .bamsi-kb-item {
  background:#1b1c20;
  border:1px solid #35363d;
  border-radius:15px;
  padding:20px 22px;
  box-shadow:none;
}
body .bamsi-kb-overlay .bamsi-kb-item p {
  color:#aaacb5;
  font-size:13px;
  line-height:1.65;
}
body .bamsi-kb-overlay .bamsi-kb-edit,
body .bamsi-kb-overlay .bamsi-kb-primary {
  background:#26272d;
  color:#f1f1f2;
  border:1px solid #44464e;
  border-radius:10px;
  padding:10px 14px;
  font-size:13px;
  font-weight:600;
}
body .bamsi-kb-overlay .bamsi-kb-edit:hover,
body .bamsi-kb-overlay .bamsi-kb-primary:hover {
  background:#35363d;
}
body .bamsi-kb-overlay .bamsi-kb-foot {
  background:#1b1c20;
  border-top:1px solid #34363d;
  padding:17px 36px;
}
@media(max-width:640px) {
  body .bamsi-kb-overlay {
    padding:12px 12px 78px!important;
  }
  body .bamsi-kb-overlay .bamsi-kb-head {
    padding:22px 18px 17px;
  }
  body .bamsi-kb-overlay .bamsi-kb-content {
    padding:0 18px 20px;
  }
  body .bamsi-kb-overlay .bamsi-kb-tabs {
    gap:14px;
  }
  body .bamsi-kb-overlay .bamsi-kb-foot {
    padding:14px 18px;
  }
}


/* BAMSI KB CLIENTS FINISH V2 */

/* Убираем служебную надпись */
body .bamsi-kb-overlay .bamsi-kb-kicker {
  display: none !important;
}

/* Заголовок остаётся на своём месте */
body .bamsi-kb-overlay .bamsi-kb-head h2 {
  margin-top: 0 !important;
}

/* Фон содержимого — как в разделе «Клиенты» */
body .bamsi-kb-overlay .bamsi-kb-shell,
body .bamsi-kb-overlay .bamsi-kb-sub,
body .bamsi-kb-overlay .bamsi-kb-content,
body .bamsi-kb-overlay .bamsi-kb-foot,
body .bamsi-kb-overlay .bamsi-kb-list,
body .bamsi-kb-overlay .bamsi-kb-item {
  background: #191a1d !important;
}

/* Заголовок сохраняет собственный фон */
body .bamsi-kb-overlay .bamsi-kb-head {
  background: #191a1d !important;
}

/* Все кнопки полностью округлые */
body .bamsi-kb-overlay button:not(.bamsi-kb-tab),
body .bamsi-kb-overlay .bamsi-kb-edit,
body .bamsi-kb-overlay .bamsi-kb-primary {
  border-radius: 999px !important;
}

/* Вкладки остаются в стиле «Клиенты» */
body .bamsi-kb-overlay .bamsi-kb-tab {
  border-radius: 0 !important;
  background: transparent !important;
}

body .bamsi-kb-overlay .bamsi-kb-tab.active {
  background: transparent !important;
}


/* BAMSI KB EDITOR NEUTRAL 20261030 */
body .bamsi-kb-overlay .bamsi-kb-item textarea.bamsi-kb-field {
  display:block!important; width:100%!important; max-width:100%!important;
  background:#191a1d!important; color:#e6e6e9!important;
  border:1px solid #383a41!important; border-radius:12px!important;
  outline:none!important; box-shadow:none!important;
  padding:0!important; margin:0!important; resize:none!important;
  font:inherit!important; line-height:1.65!important;
  overflow:auto!important; transition:border-color .15s ease!important;
}
body .bamsi-kb-overlay .bamsi-kb-item textarea.bamsi-kb-field:focus {
  background:#191a1d!important; border-color:#555760!important;
  outline:none!important; box-shadow:none!important;
}


/* BAMSI KB INLINE EDITOR V1 */
body .bamsi-kb-overlay .bamsi-kb-rules-inline > .bamsi-kb-item-top > h3 { display:none!important; }
body .bamsi-kb-overlay .bamsi-kb-rules-inline > .bamsi-kb-item-top { min-height:0; margin:0; padding:0; display:flex; justify-content:flex-end; }
body .bamsi-kb-overlay .bamsi-kb-rules-inline .bamsi-kb-review-actions { margin:0 0 12px auto; }
body .bamsi-kb-overlay .bamsi-kb-rules-inline .bamsi-kb-review-actions .bamsi-kb-primary { background:#2778f6!important;border:1px solid #2778f6!important;color:white!important;border-radius:999px!important;box-shadow:none!important; }
body .bamsi-kb-overlay .bamsi-kb-rules-inline .bamsi-kb-review-actions .bamsi-kb-primary:hover { background:#1769e8!important; }
body .bamsi-kb-overlay .bamsi-kb-rules-inline textarea.bamsi-kb-rules-editor,
body .bamsi-kb-overlay .bamsi-kb-rules-inline textarea.bamsi-kb-rules-editor:focus { display:block!important;max-width:100%!important;width:100%!important; background:transparent!important; border:0!important; outline:0!important; box-shadow:none!important; border-radius:0!important; padding:0!important; margin:0!important; resize:none!important; overflow:auto!important; transition:none!important; }


/* BAMSI KB EDITOR SAME APPEARANCE V2 */

body .bamsi-kb-overlay .bamsi-kb-rules-inline {
  position: relative;
}

body .bamsi-kb-overlay .bamsi-kb-rules-inline > .bamsi-kb-item-top {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
}

body .bamsi-kb-overlay .bamsi-kb-rules-inline textarea.bamsi-kb-rules-editor,
body .bamsi-kb-overlay .bamsi-kb-rules-inline textarea.bamsi-kb-rules-editor:focus {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  letter-spacing: normal !important;
  color: #aaacb5 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: none !important;
}


/* BAMSI KB REMOVE DUPLICATE SECTION HEADINGS */
body .bamsi-kb-overlay .bamsi-kb-toolbar > h3 {
    display: none !important;
}


/* BAMSI KB HIDE SECTION COUNTERS */
body .bamsi-kb-overlay .bamsi-kb-toolbar > :last-child:not(:first-child) {
    display: none !important;
}


/* BAMSI KB HIDE REMAINING COUNTERS V2 */
body .bamsi-kb-overlay .bamsi-kb-toolbar > span,
body .bamsi-kb-overlay .bamsi-kb-toolbar > small {
    display: none !important;
}

/* BAMSI knowledge entry form: platform-native focus, no neon outline */
body .bamsi-kb-entry-dialog .bamsi-kb-field:focus { outline:none!important;box-shadow:none!important;border-color:#f1f1f2; }
body .bamsi-kb-entry-dialog .bamsi-kb-field { font-family:Arial,Helvetica,sans-serif!important; }


/* BAMSI about: click-to-edit, matching existing rules typography. */
body .bamsi-kb-overlay .bamsi-kb-about-display,
body .bamsi-kb-overlay .bamsi-kb-about-inline-editor {
  box-sizing:border-box;width:100%;min-height:245px;padding:18px;
  background:#242529;color:#e8e8eb;border:1px solid #3a3b42;
  border-radius:14px;font:inherit;font-size:15px;line-height:1.6;
  white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;
}
body .bamsi-kb-overlay .bamsi-kb-about-display:hover {background:#242529}
body .bamsi-kb-overlay .bamsi-kb-about-display:focus-visible,
body .bamsi-kb-overlay .bamsi-kb-about-inline-editor:focus {border-color:#f1f1f2;outline:none;box-shadow:none}
body .bamsi-kb-overlay .bamsi-kb-about-placeholder {color:#77777b}
body .bamsi-kb-overlay .bamsi-kb-about-inline-editor {display:block;height:245px;resize:vertical;margin:0 0 24px;background:#242529;border-color:#3a3b42}
body .bamsi-kb-overlay .bamsi-kb-about-save {background:#2778f6;color:#fff;border:1px solid #2778f6;border-radius:999px;padding:11px 18px;font:600 14px Arial,Helvetica,sans-serif;cursor:pointer}
body .bamsi-kb-overlay .bamsi-kb-about-save[hidden] {display:none!important}
body .bamsi-kb-overlay .bamsi-kb-about-save:disabled {opacity:.5;cursor:wait}


/* BAMSI rules/about shared editor surface — 2026-11-02 */
body .bamsi-kb-overlay .bamsi-kb-rules-inline {
  box-sizing:border-box!important;
  background:#242529!important;
  border:1px solid #3a3b42!important;
  border-radius:14px!important;
  box-shadow:none!important;
  min-height:245px;
  padding:18px!important;
}
body .bamsi-kb-overlay .bamsi-kb-rules-inline:hover {background:#242529!important}
body .bamsi-kb-overlay .bamsi-kb-rules-inline:focus-within {border-color:#f1f1f2!important}
body .bamsi-kb-overlay .bamsi-kb-rules-inline > p,
body .bamsi-kb-overlay .bamsi-kb-rules-inline textarea.bamsi-kb-rules-editor,
body .bamsi-kb-overlay .bamsi-kb-rules-inline textarea.bamsi-kb-rules-editor:focus {
  font-family:inherit!important;
  font-size:15px!important;
  font-weight:400!important;
  line-height:1.6!important;
  color:#a6a6ad!important;
  letter-spacing:normal!important;
}
body .bamsi-kb-overlay .bamsi-kb-rules-inline .bamsi-kb-rules-placeholder {color:#77777b!important}
body .bamsi-kb-overlay .bamsi-kb-list:has(> .bamsi-kb-about-display),
body .bamsi-kb-overlay .bamsi-kb-list:has(> .bamsi-kb-about-inline-editor) {position:relative}
body .bamsi-kb-overlay .bamsi-kb-about-save {
  position:absolute;
  top:48px;
  right:20px;
  z-index:2;
  margin:0;
  background:#2778f6!important;
  color:#fff!important;
  border:1px solid #2778f6!important;
  border-radius:999px!important;
  /* Same dimensions and typography as the Rules save button. */
  padding:10px 14px!important;
  font-size:13px!important;
  font-weight:600!important;
  font-family:inherit!important;
  line-height:normal!important;
  box-shadow:none!important;
}
body .bamsi-kb-overlay .bamsi-kb-about-save:hover {background:#1769e8!important}

/* BAMSI: consistent gray text for Rules and About in both modes. */
body .bamsi-kb-overlay .bamsi-kb-about-display:not(.bamsi-kb-about-placeholder),
body .bamsi-kb-overlay .bamsi-kb-about-inline-editor,
body .bamsi-kb-overlay .bamsi-kb-about-inline-editor:focus { color:#a6a6ad!important; }
body .bamsi-kb-overlay .bamsi-kb-rules-inline .bamsi-kb-review-actions .bamsi-kb-primary[hidden] { display:none!important; }

/* Align the fixed knowledge and channel views with the Kanban content area. */
body :is(.bamsi-kb-overlay, .bamsi-channels) {
  --section-top: 98px;
  --section-start: calc(8.9vw + 116px);
  --section-end: 32px;
  font-family: Arial, Helvetica, sans-serif;
}
body .bamsi-kb-overlay {
  justify-content: flex-start;
  padding: var(--section-top) var(--section-end) 28px var(--section-start);
}
body .bamsi-kb-overlay .bamsi-kb-shell {
  border: 0;
  border-radius: 12px;
  max-width: 856px;
}
body .bamsi-kb-overlay .bamsi-kb-head {
  padding: 0 0 8px;
  border-bottom: 0;
}
body .bamsi-kb-overlay .bamsi-kb-head h2,
body .bamsi-channels h1 {
  font: 700 23px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: -.035em;
}
body .bamsi-kb-overlay .bamsi-kb-sub { padding: 5px 0 20px; font-size: 13px; }
body .bamsi-kb-overlay .bamsi-kb-tabs { margin-inline: 0; min-height: 42px; }
body .bamsi-kb-overlay .bamsi-kb-content { padding: 8px 0 20px; }
body .bamsi-kb-overlay .bamsi-kb-foot { padding-inline: 0; }
body .bamsi-kb-overlay :is(.bamsi-kb-text-preview-field, .bamsi-kb-text-display) {
  font-size: 14px;
  line-height: 1.55;
}
body .bamsi-channels {
  inset-block-start: 76px;
  padding: calc(var(--section-top) - 76px) var(--section-end) 88px var(--section-start);
}
body .bamsi-channels-content { margin-inline: 0; }
body .bamsi-channels h1 { margin-bottom: 16px; }
body .bamsi-channels h2 { font-size: 18px; }
@media (max-width: 1050px) {
  body :is(.bamsi-kb-overlay, .bamsi-channels) { --section-start: 166px; }
}
@media (max-width: 640px) {
  body :is(.bamsi-kb-overlay, .bamsi-channels) {
    --section-top: 86px;
    --section-start: 18px;
    --section-end: 18px;
  }
  body .bamsi-kb-overlay {
    padding: var(--section-top) var(--section-end) 82px var(--section-start) !important;
  }
}

/* Let the page background show through the knowledge section chrome. */
body .bamsi-kb-overlay :is(.bamsi-kb-shell, .bamsi-kb-head, .bamsi-kb-sub, .bamsi-kb-tabs, .bamsi-kb-content, .bamsi-kb-list, .bamsi-kb-foot) {
  background: transparent !important;
}

.bamsi-dashboard-name-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.bamsi-dashboard-name-button:hover { text-decoration: underline; text-underline-offset: .15em; }
#bamsi-dashboard-name-dialog {
  width: min(390px, calc(100% - 32px));
  margin: auto;
  padding: 24px;
  box-sizing: border-box;
  border: 1.5px solid #b8bcc2;
  border-radius: 26px;
  background: #fff;
  color: #343438;
  font: 16px/1.42 Arial, Helvetica, sans-serif;
  color-scheme: light;
}
#bamsi-dashboard-name-dialog::backdrop { background: rgba(36, 36, 40, .24); }
#bamsi-dashboard-name-dialog h2 { margin: 0 0 16px; font-size: 22px; font-weight: 500; }
#bamsi-dashboard-name-dialog input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 14px;
  padding: 11px 16px;
  border: 1px solid #dedfe3;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
}
#bamsi-dashboard-name-dialog [role="alert"] { color: #b42318; }
.bamsi-dashboard-name-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bamsi-dashboard-name-actions button {
  padding: 8px 14px;
  border: 1px solid #dedfe3;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#bamsi-dashboard-name-dialog input:focus {
  outline: 2px solid #1677f2;
  outline-offset: 2px;
}
.bamsi-dashboard-name-actions button[type="submit"] {
  border-color: transparent;
  background: #1677f2;
  color: #fff;
}
.bamsi-dashboard-name-actions button[type="submit"]:disabled {
  background: #9dc9fb;
  color: #25364a;
  opacity: .65;
}
.bamsi-dashboard-name-actions button:disabled { opacity: .45; cursor: default; }

.bamsi-research-connect-overlay.bamsi-research-connect-anchored:not([hidden]) {
  display: block;
  padding: 0;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.bamsi-research-connect-anchored .bamsi-research-connect-dialog {
  position: absolute;
  left: var(--research-connect-x, 16px);
  top: var(--research-connect-y, 16px);
  width: var(--research-connect-width, 440px);
  max-height: var(--research-connect-height, calc(100dvh - 32px));
  overscroll-behavior: contain;
  pointer-events: auto;
  animation: bamsi-research-connect-reveal 320ms cubic-bezier(.22, .8, .28, 1) both;
  --research-connect-from-x: 0px;
  --research-connect-from-y: -12px;
}
.bamsi-research-connect-anchored[data-side="left"] .bamsi-research-connect-dialog {
  --research-connect-from-x: 14px;
  --research-connect-from-y: 0px;
}
.bamsi-research-connect-anchored[data-side="right"] .bamsi-research-connect-dialog {
  --research-connect-from-x: -14px;
  --research-connect-from-y: 0px;
}
.bamsi-research-connect-anchored[data-side="above"] .bamsi-research-connect-dialog {
  --research-connect-from-y: 12px;
}
@keyframes bamsi-research-connect-reveal {
  from { opacity: 0; transform: translate(var(--research-connect-from-x), var(--research-connect-from-y)); }
  to { opacity: 1; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bamsi-research-connect-anchored .bamsi-research-connect-dialog { animation: none; }
}

#research-report .research-action { background: #2e3833; }
#research-report .research-action > h2 { font-weight: 750; }
#research-takeover { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
#research-takeover .research-takeover-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; }
.research-takeover-row h3 { margin: 0; color: #f2f2f5; font-size: 16px; font-weight: 700; }
#research-takeover .research-takeover-row p { margin: 6px 0 0; color: #bacac0; font-weight: 400; }
.research-takeover-row details { margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.research-takeover-row summary { cursor: pointer; color: #d4d5dd; }
.research-takeover-row details a { display: block; width: fit-content; margin-top: 4px; color: #bdd2ff; }
.research-takeover-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
#research-report .research-takeover-footer p { margin: 0; color: #b7b8c1; font-size: 13px; }
#research-continue-setup { background: #2468ff; color: #fff; }
#research-continue-setup:hover:enabled { background: #3776ff; }
@media (max-width: 680px) {
  #research-takeover { grid-template-columns: 1fr; gap: 18px; }
}

.research-labor-prices { display: grid; gap: 4px; margin: 16px 0 12px; }
.research-labor-prices del { color: #b6b7bc; font-size: 18px; }
.research-labor-prices strong { color: #f2f2f5; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }

body.bamsi-dashboard-live .bamsi-research-entry-locked #bamsi-research-entry-button {
  background: linear-gradient(90deg,#dfff45 0%,#a8ff63 24%,#72edac 56%,#52dbea 100%);
  color:#17272a;
  box-shadow:0 6px 16px rgba(100,237,190,.18),inset 0 1px 0 rgba(255,255,255,.20);
}
.bamsi-research-entry [data-order-month] { margin-inline-start: 8px; }
.bamsi-monthly-research { width:min(560px,calc(100vw - 32px)); max-height:85dvh; overflow:auto; padding:24px; border:1px solid #ffffff29; border-radius:24px; background:#26272c; color:#f5f6f7; box-sizing:border-box; }
.bamsi-monthly-research::backdrop { background:#0009; }
.bamsi-monthly-research header { display:flex; align-items:center; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.bamsi-monthly-research h2 { margin:0; }
.bamsi-monthly-research button { padding:8px 12px; border:1px solid #ffffff29; border-radius:10px; background:#34353c; color:inherit; color-scheme:dark; }
.bamsi-monthly-research button { cursor:pointer; }
.bamsi-monthly-metrics dl { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
.bamsi-monthly-metrics dd { margin:0; text-align:right; }
.bamsi-monthly-metrics small { display:block; color:#b7bbc4; }
.bamsi-monthly-metrics p { color:#b7bbc4; }

/* Research actions use the same feedback in both plans. */
body.bamsi-dashboard-live .bamsi-research-entry button,
.bamsi-monthly-research button {
  transition: transform 160ms ease-out, filter 160ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  body.bamsi-dashboard-live .bamsi-research-entry button:enabled:hover,
  .bamsi-monthly-research button:enabled:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
  }
}
body.bamsi-dashboard-live .bamsi-research-entry button:enabled:active,
.bamsi-monthly-research button:enabled:active {
  transform: scale(.96);
  filter: brightness(.95);
  transition-duration: 80ms;
}
@media (prefers-reduced-motion: reduce) {
  body.bamsi-dashboard-live .bamsi-research-entry button,
  .bamsi-monthly-research button {
    transition: none;
  }
  body.bamsi-dashboard-live .bamsi-research-entry button:enabled:is(:hover, :active),
  .bamsi-monthly-research button:enabled:is(:hover, :active) {
    transform: none;
  }
}

.bamsi-monthly-order {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(245px, calc(100vw - 20px));
  box-sizing: border-box;
  padding: 14px;
  color: #f5f6f7;
  background: rgb(0 0 0 / .86);
  border: 1px solid #ffffff20;
  border-radius: 16px;
  box-shadow: 0 12px 30px #0006;
  backdrop-filter: blur(14px);
}
.bamsi-monthly-order h2 { margin: 0 0 8px; font-size: 16px; }
.bamsi-monthly-order button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: inherit;
  background: #ffffff0a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 100ms ease;
}
.bamsi-monthly-order button:disabled { opacity: .55; cursor: default; }
.bamsi-monthly-order button:enabled:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .bamsi-monthly-order button:enabled:hover {
    background: #ffffff16;
    box-shadow: inset 0 0 0 1px #ffffff13;
  }
}
.bamsi-month-current::after { content: '⌄'; float: right; color: #b7bbc4; }
.bamsi-month-options {
  display: grid;
  grid-auto-rows: 34px;
  max-height: 136px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  scrollbar-width: thin;
  scrollbar-color: #ffffff39 transparent;
  margin-top: 4px;
  padding-inline-end: 4px;
}
.bamsi-month-options[hidden] { display: none; }
.bamsi-month-options button { background: transparent; scroll-snap-align: start; }
.bamsi-month-options button[aria-pressed="true"] { background: #ffffff15; }
.bamsi-monthly-order .bamsi-month-submit { margin-top: 9px; text-align: center; font-weight: 600; }
.bamsi-month-status { margin: 7px 0 0; color: #d5d7de; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .bamsi-monthly-order button { transition: none; }
  .bamsi-monthly-order button:enabled:active { transform: none; }
}

.bamsi-monthly-research { width:min(760px,calc(100vw - 32px)); }
.bamsi-monthly-section { border-top:1px solid #ffffff20; padding:16px 0; }
.bamsi-monthly-section h3 { margin:0 0 12px; font-size:17px; }
.bamsi-monthly-section p { margin:8px 0; color:#c4c7d1; }
.bamsi-monthly-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }
.bamsi-monthly-kpi { background:#ffffff08; border-radius:12px; padding:12px; display:grid; gap:6px; align-content:start; }
.bamsi-monthly-kpi strong,.bamsi-monthly-total { font-size:22px; }
.bamsi-monthly-kpi small,.bamsi-monthly-note { color:#b7bbc4; }
.bamsi-monthly-chart { display:grid; gap:7px; margin-top:12px; }
.bamsi-monthly-chart-row { display:grid; grid-template-columns:65px minmax(0,1fr) 32px; align-items:center; gap:8px; }
.bamsi-monthly-funnel { display:grid; grid-template-columns:minmax(100px,1fr) minmax(50px,1fr) 30px; align-items:center; gap:8px; }
.bamsi-monthly-bar { display:flex; min-height:8px; border-radius:8px; overflow:hidden; background:#ffffff0c; }
.bamsi-monthly-segment-0 { background:#a4ebad; }
.bamsi-monthly-segment-1 { background:#8aaaff; }
.bamsi-monthly-segment-2 { background:#747988; }
.bamsi-monthly-section small[data-trend="up"] { color:#009903; }
.bamsi-monthly-section small[data-trend="down"] { color:#C30000; }
.bamsi-monthly-example { background:#ffffff08; border-radius:12px; padding:10px; margin:8px 0; }
.bamsi-monthly-example a { display:inline-block; margin:8px; color:#aebfff; }


/* Monthly report: BAMSI dark cards, readable hierarchy and responsive layout. */
.bamsi-monthly-research {
  width:min(1040px,calc(100vw - 48px));
  max-height:90dvh;
  padding:0;
  border:1px solid #ffffff24;
  border-radius:28px;
  background:#1b1c20;
  color:#f3f3f6;
  box-shadow:0 28px 100px #0009;
  font:400 14px/1.5 Arial,Helvetica,sans-serif;
  scrollbar-width:thin;
  scrollbar-color:#55565f transparent;
}
.bamsi-monthly-research::backdrop { background:#090a10b3; backdrop-filter:blur(6px); }
.bamsi-monthly-research > header {
  position:sticky; top:0; z-index:2;
  padding:24px 28px 20px;
  align-items:flex-start;
  background:#1b1c20f5;
  backdrop-filter:blur(16px);
  border-bottom:1px solid #ffffff0d;
}
.bamsi-monthly-eyebrow { margin:0 0 6px; font-size:12px; color:#aba6bc; }
.bamsi-monthly-research h2 { font-size:28px; line-height:1.2; letter-spacing:-.6px; }
.bamsi-monthly-research header [role="status"] { margin:8px 0 0; color:#b6b8c4; text-transform:capitalize; }
.bamsi-monthly-research header button { width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#ffffff0a; color:#c8cad3; font-size:24px; }
.bamsi-monthly-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:24px 28px 28px; }
.bamsi-monthly-section {
  grid-column:1 / -1;
  min-width:0; padding:22px;
  border:1px solid #ffffff08;
  border-radius:22px;
  background:linear-gradient(145deg,#ffffff05,transparent 75%),#26272d;
}
.bamsi-monthly-section h3 { margin:0 0 18px; font-size:18px; font-weight:600; letter-spacing:-.25px; line-height:1.35; }
.bamsi-monthly-section p { color:#b6b9c5; font-size:13px; line-height:1.6; }
.bamsi-monthly-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.bamsi-monthly-kpi { padding:16px; border-radius:16px; background:#1b1c206b; gap:10px; }
.bamsi-monthly-kpi > span { min-height:40px; font-size:13px; color:#c2c4cf; line-height:1.45; }
.bamsi-monthly-kpi strong { font-size:32px; line-height:1.1; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.bamsi-monthly-kpi small { font-size:11px; color:#9297a7; line-height:1.5; }
.bamsi-monthly-chart { gap:12px; margin-top:24px; }
.bamsi-monthly-chart h4 { margin:0; font-size:14px; font-weight:500; }
.bamsi-monthly-legend { display:flex; flex-wrap:wrap; gap:8px 16px; margin-bottom:4px; font-size:11px; color:#afb3c0; }
.bamsi-monthly-legend span::before { content:""; display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#747988; }
.bamsi-monthly-legend [data-series="0"]::before { background:#a4ebad; }
.bamsi-monthly-legend [data-series="1"]::before { background:#8aaaff; }
.bamsi-monthly-chart-row { grid-template-columns:72px minmax(0,1fr) 40px; font-size:12px; color:#adb2c0; }
.bamsi-monthly-bar { min-height:12px; background:#ffffff07; }
.bamsi-monthly-chart-row strong,.bamsi-monthly-funnel strong { text-align:right; color:#e4e6ee; font-variant-numeric:tabular-nums; }
.bamsi-monthly-metrics dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(135px,auto); gap:0; margin:16px 0 0; }
.bamsi-monthly-metrics dt,.bamsi-monthly-metrics dd { padding:13px 0; border-bottom:1px solid #ffffff0a; }
.bamsi-monthly-metrics dt { color:#c6c9d4; padding-right:16px; }
.bamsi-monthly-metrics dd { color:#f3f3f6; font-variant-numeric:tabular-nums; font-weight:500; }
.bamsi-monthly-metrics dd small { margin-top:3px; font-size:11px; font-weight:400; color:#9297a7; }
.bamsi-monthly-speed,.bamsi-monthly-handoffs { grid-column:span 1; }
.bamsi-monthly-speed p { padding:12px 0; border-bottom:1px solid #ffffff0a; margin:0; }
.bamsi-monthly-funnel { grid-template-columns:minmax(0,1fr) 32px; gap:6px 12px; padding:8px 0; }
.bamsi-monthly-funnel > span { grid-column:1; color:#c6c9d4; font-size:12px; }
.bamsi-monthly-funnel > strong { grid-column:2; grid-row:span 2; }
.bamsi-monthly-funnel .bamsi-monthly-bar { grid-column:1; grid-row:auto; }
.bamsi-monthly-money { background:radial-gradient(ellipse at 100% 0%,#a4ebad0c,transparent 70%),#262b2a; }
.bamsi-monthly-total { display:block; font-size:38px; line-height:1.2; letter-spacing:-1px; margin-bottom:12px; }
.bamsi-monthly-example { background:#1b1c206b; border-radius:14px; padding:16px; margin:12px 0 0; }
.bamsi-monthly-example p { margin:0 0 12px; color:#d0d2dc; }
.bamsi-monthly-example strong,.bamsi-monthly-example small { display:block; margin-bottom:8px; }
.bamsi-monthly-example button { border:1px solid #ffffff14; border-radius:999px; padding:9px 14px; background:#ffffff06; font-size:12px; margin:4px 8px 4px 0; }
.bamsi-monthly-example a { font-size:12px; margin:8px 12px 8px 0; text-underline-offset:3px; }
.bamsi-monthly-note { grid-column:1 / -1; font-size:11px; line-height:1.65; margin:0; color:#9095a3; }
.bamsi-monthly-research button:focus-visible,.bamsi-monthly-example a:focus-visible { outline:2px solid #aabfff; outline-offset:3px; }
@media(max-width:680px) {
  .bamsi-monthly-research { width:calc(100vw - 20px); max-height:94dvh; border-radius:22px; }
  .bamsi-monthly-research > header { padding:20px 18px 16px; }
  .bamsi-monthly-research h2 { font-size:24px; }
  .bamsi-monthly-metrics { padding:14px; gap:12px; }
  .bamsi-monthly-section { padding:16px; border-radius:18px; }
  .bamsi-monthly-section h3 { font-size:16px; margin-bottom:14px; }
  .bamsi-monthly-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .bamsi-monthly-kpi { padding:12px; }
  .bamsi-monthly-kpi strong { font-size:27px; }
  .bamsi-monthly-kpi > span { min-height:52px; font-size:12px; }
  .bamsi-monthly-speed,.bamsi-monthly-handoffs { grid-column:1 / -1; }
  .bamsi-monthly-metrics dl { grid-template-columns:minmax(0,1fr) minmax(95px,auto); font-size:12px; }
  .bamsi-monthly-total { font-size:32px; }
}


/* Preserve native touch/wheel scrolling and isolate nested scroll surfaces. */
:is(.bamsi-monthly-research,.bamsi-month-options,.bamsi-mc-messages,
.bamsi-mc-history,.bamsi-channel-dialog,.bk-drawer,.bk-column,#bc-modal) {
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
.bamsi-monthly-order .bamsi-month-options {
  scroll-snap-type:none;
}
.bamsi-monthly-research > header {
  background:#1d1e23;
  backdrop-filter:none;
}
@media (prefers-reduced-motion:no-preference) {
  .bamsi-monthly-research[open] {
    animation:bamsi-report-enter 220ms cubic-bezier(.22,1,.36,1) both;
  }
  .bamsi-monthly-research[open]::backdrop {
    animation:bamsi-report-dim 180ms ease-out both;
  }
  .bamsi-monthly-order:popover-open {
    animation:bamsi-report-enter 160ms cubic-bezier(.22,1,.36,1) both;
  }
  .bamsi-month-options:not([hidden]) {
    animation:bamsi-report-enter 150ms cubic-bezier(.22,1,.36,1) both;
  }
  .bk-drawer {
    animation:bamsi-drawer-enter 220ms cubic-bezier(.22,1,.36,1) both;
  }
}
@keyframes bamsi-report-enter {
  from { opacity:0; transform:translateY(7px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes bamsi-report-dim {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes bamsi-drawer-enter {
  from { opacity:0; transform:translateX(18px); }
  to { opacity:1; transform:translateX(0); }
}


/* Report shell stays stationary while only its contents scroll. */
.bamsi-monthly-research[open] {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  max-height:90dvh;
  box-shadow:0 16px 48px #0006;
  scrollbar-gutter:auto;
}
.bamsi-monthly-research::backdrop {
  background:#090a10b3;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.bamsi-monthly-research > header {
  position:relative;
  flex:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.bamsi-monthly-research .bamsi-monthly-metrics {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scroll-behavior:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:#55565f transparent;
}
@media (prefers-reduced-motion:no-preference) {
  .bamsi-monthly-research[open] {
    animation:bamsi-report-enter 150ms cubic-bezier(.22,1,.36,1) both;
  }
  .bamsi-monthly-research[open]::backdrop {
    animation:bamsi-report-dim 120ms ease-out both;
  }
}
@media (max-width:680px) {
  .bamsi-monthly-research[open] { max-height:94dvh; }
}


body.bamsi-dashboard-live .bamsi-research-entry button[data-order-month] {
  background:transparent;
  color:#b7bbc4;
  box-shadow:none;
  border:1px solid #ffffff20;
  font-weight:400;
}
@media (hover:hover) and (pointer:fine) {
  body.bamsi-dashboard-live .bamsi-research-entry button[data-order-month]:enabled:hover {
    background:#ffffff0a;
    color:#f3f3f6;
    box-shadow:none;
  }
}

.bamsi-risk-line { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.bamsi-risk-line strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.bamsi-monthly-research .bamsi-risk-more { width:auto; padding:6px 12px; margin-top:10px; border:1px solid #ffffff16; border-radius:999px; background:transparent; color:#b7bbc4; font-size:12px; }
.bamsi-risk-more[hidden] { display:none; }

.bamsi-monthly-research .bamsi-risk-price { cursor:pointer; border-radius:5px; }
.bamsi-risk-price:focus-visible { outline:2px solid #aabfff; outline-offset:4px; }
.bamsi-price-notice { position:absolute; z-index:5; width:max-content; max-width:min(300px,calc(100vw - 64px)); box-sizing:border-box; padding:12px 14px; border-radius:12px; background:rgba(0,0,0,.9); border:1px solid #ffffff16; box-shadow:0 8px 24px #0005; color:#e5e5ed; font:400 12px/1.5 Arial,sans-serif; }

.bamsi-monthly-total.bamsi-risk-price { width:fit-content; max-width:100%; }

/* Growth uses the same cards, amounts and actions as business risks. */
.bamsi-growth-subsection { margin-top:28px; padding-top:24px; border-top:1px solid #ffffff0d; }
.bamsi-growth-subsection h4 { margin:0 0 16px; font-size:18px; line-height:1.35; font-weight:600; }
.bamsi-growth-subsection > small { display:block; margin:10px 0 14px; color:#b7bbc4; }
.bamsi-report-actions-top { display:flex; justify-content:flex-end; margin-bottom:12px; }
.bamsi-monthly-research .bamsi-report-create-task { width:auto; margin:8px 8px 0 0; padding:7px 12px; font-size:12px; }
.bamsi-report-actions-top .bamsi-report-create-task { margin:0; }
@media(max-width:700px) { .bamsi-growth-subsection { margin-top:22px; padding-top:20px; } }

.bamsi-hypothesis-evidence { margin:12px 0; color:#b7bbc4; font-size:12px; }
.bamsi-hypothesis-evidence summary { cursor:pointer; }
.bamsi-hypothesis-evidence-item { padding:10px 0; border-bottom:1px solid #ffffff0a; }
.bamsi-hypothesis-evidence-item p { margin:0 0 8px; }

/* Keep the section heading on the report background, with separate inner cards. */
.bamsi-monthly-section.bamsi-monthly-growth { padding:10px 0 0; border:0; border-radius:0; background:none; }
.bamsi-monthly-growth > h3 { margin:0 0 14px; font-size:30px; line-height:1.2; letter-spacing:-.6px; }
.bamsi-monthly-growth > small { display:block; margin:0 0 24px; color:#b7bbc4; font-size:13px; line-height:1.5; }
.bamsi-monthly-growth .bamsi-growth-subsection { margin:16px 0 0; padding:22px; border:1px solid #ffffff08; border-radius:22px; background:linear-gradient(145deg,#ffffff05,transparent 75%),#26272d; }
.bamsi-monthly-research > header > div { flex:1; min-width:0; }
.bamsi-monthly-research > header h2 { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
@media(max-width:700px) {
  .bamsi-monthly-growth > h3 { font-size:26px; }
  .bamsi-monthly-growth .bamsi-growth-subsection { padding:18px; }
}

.bamsi-report-proposal { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:16px 0; flex-wrap:wrap; }
.bamsi-report-proposal > p { flex:1 1 180px; min-width:0; margin:0; }
.bamsi-monthly-research .bamsi-report-proposal > .bamsi-report-create-task { flex:0 0 auto; margin:0 0 0 auto; }

.bamsi-monthly-research .bamsi-report-reasons { width:fit-content; padding:5px 9px; margin-top:4px; font-size:11px; }

.bamsi-weekly-shares { grid-column:2 / -1; display:flex; flex-wrap:wrap; gap:6px 16px; padding:2px 0 6px; font-size:11px; line-height:1.45; color:#afb3c0; }
.bamsi-weekly-shares [data-series="0"] { color:#a4ebad; }
.bamsi-weekly-shares [data-series="1"] { color:#8aaaff; }
@media(max-width:700px) { .bamsi-weekly-shares { gap:5px 10px; font-size:10px; } }

.bamsi-monthly-chart-row.bamsi-weekly-two-roles { grid-template-columns:minmax(0,1fr) 40px; }
.bamsi-weekly-two-roles .bamsi-weekly-shares { grid-column:1 / -1; }

/* One reference-shaped arrow for every growth/decline indicator. */
.bamsi-trend { display:inline-flex; align-items:center; gap:4px; color:#9297a7; font-variant-numeric:tabular-nums; }
.bamsi-trend[data-favorable="true"] { color:#009903; }
.bamsi-trend[data-favorable="false"] { color:#C30000; }
.bamsi-trend-arrow { display:block; flex:0 0 auto; fill:none; }
.bamsi-monthly-kpi { position:relative; padding-top:44px; }
.bamsi-monthly-kpi .bamsi-kpi-trend { display:inline-flex; position:absolute; top:12px; left:16px; font-size:12px; line-height:18px; min-height:0; }
.bamsi-kpi-trend.bamsi-trend[data-favorable="true"] { color:#009903; }
.bamsi-kpi-trend.bamsi-trend[data-favorable="false"] { color:#C30000; }
.bamsi-kpi-trend.bamsi-trend[data-favorable="neutral"] { color:#9297a7; }
.bamsi-kpi-trend > span { min-height:0; font-size:inherit; color:inherit; }

.bamsi-month-status.is-analyzing { animation:bamsi-analysis-breathe 2.2s ease-in-out infinite; }
@keyframes bamsi-analysis-breathe { 0%,100% { opacity:1; } 50% { opacity:.6; } }
@media (prefers-reduced-motion:reduce) { .bamsi-month-status.is-analyzing { animation:none; } }

#bamsi-research-entry p.is-analyzing { animation:bamsi-analysis-breathe 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion:reduce) { #bamsi-research-entry p.is-analyzing { animation:none; } }
