/*
 * Browser Agent page system (zh + en features.html, loaded after browser-agent-content.css).
 *
 * 1. Tokens: one palette, radius, shadow and spacing scale for every section.
 * 2. Section system: one vertical rhythm, strictly alternating surfaces, and one eyebrow / heading / lead style for
 *    the custom ba-* sections and the Webflow sections alike.
 * 3. Product visuals: the parallel tab-group board and the private-session window, built in HTML/CSS in the same
 *    language as the LOCAL SHEET x LLM mock (tinted stage, white window, 9-13px interface text).
 */

/* ------------------------------------------------------------------ 1. tokens */
:root {
  --ba-ink: #17182a;
  --ba-body: #5f6275;
  --ba-muted: #8a8c9c;
  --ba-line: #e6e8f0;
  --ba-soft: #f6f7fb;
  --ba-accent: #4851ff;
  --ba-accent-2: #3d6bff;
  --ba-accent-soft: #f0f7ff;
  --ba-green: #2b8f7d;
  --ba-green-soft: #ebfaf6;
  --ba-radius-stage: 1.875rem;
  --ba-radius-card: 1.25rem;
  --ba-radius-small: 0.875rem;
  --ba-shadow-stage: 0 2rem 5rem rgba(30, 31, 58, 0.12);
  --ba-shadow-card: 0 0.875rem 2.125rem rgba(30, 31, 58, 0.07);
  --ba-y: 7rem;
  --ba-gap-head: 3.5rem;
  --ba-h2: clamp(2.125rem, 3.4vw, 3.125rem);
}

@media screen and (max-width: 991px) {
  :root { --ba-y: 5.5rem; --ba-gap-head: 2.75rem; }
}

@media screen and (max-width: 600px) {
  :root { --ba-y: 4.5rem; --ba-gap-head: 2.125rem; --ba-h2: clamp(1.75rem, 7.6vw, 2.125rem); }
}

/* ------------------------------------------------------------------ 2. section system */

/* One vertical rhythm. Webflow wrappers carried their own 36-220px paddings and margins. */
.ba-capabilities,
.ba-product-demo,
.ba-parallel,
.ba-stealth,
.ba-llm-sheet,
.ba-rpa {
  padding-top: var(--ba-y);
  padding-bottom: var(--ba-y);
}

.section-features {
  margin: 0;
  padding: var(--ba-y) 1.5rem;
  background: #fff;
}

.section-features .padding-global-4 {
  max-width: 78.75rem;
  margin: 0 auto;
  padding: 3.5rem;
  border: 1px solid var(--ba-line);
  border-radius: var(--ba-radius-stage);
  background: var(--ba-soft);
}

.section-features .padding-section-medium-3 {
  padding-top: 0;
  padding-bottom: 0;
}

.slider-section .container-19,
.section-46 .container-19 {
  padding-top: 0;
  padding-bottom: 0;
}

.slider-section .global-padding,
.section-46 .global-padding,
.section-47 .global-padding.cta {
  padding-top: var(--ba-y);
  padding-bottom: var(--ba-y);
}

.section-46.sticky-section {
  margin-top: 0;
}

#geo-product-faq.geo-faq-section {
  background: var(--ba-soft);
}

#geo-product-faq .geo-faq-shell {
  padding-top: var(--ba-y);
  padding-bottom: var(--ba-y);
}

/* Surfaces alternate strictly: white / soft. The page's dark bands (security, RPA, CTA card) keep their own. */
.ba-capabilities,
.ba-parallel,
.ba-llm-sheet {
  background: var(--ba-soft);
}

.ba-product-demo,
.ba-stealth {
  background: #fff;
}

.ba-capabilities::before,
.ba-capabilities::after,
.ba-product-demo::before,
.ba-product-demo::after,
.ba-parallel::before,
.ba-parallel::after,
.ba-stealth::before,
.ba-stealth::after,
.ba-llm-sheet::before,
.ba-llm-sheet::after {
  display: none;
}

/* Eyebrow: one pill everywhere (light sections), one on dark. */
.ba-capabilities-kicker,
.ba-product-demo-kicker,
.ba-parallel-kicker,
.ba-stealth-kicker,
.ba-llm-sheet-kicker {
  display: inline-flex;
  margin: 0 0 1.125rem;
  padding: 0.4375rem 0.875rem;
  align-items: center;
  border: 1px solid rgba(72, 81, 255, 0.18);
  border-radius: 62.4375rem;
  background: var(--ba-accent-soft);
  color: var(--ba-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: none;
}

.ba-rpa-kicker {
  display: inline-flex;
  margin: 0 0 1.125rem;
  padding: 0.4375rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 62.4375rem;
  background: rgba(255, 255, 255, 0.08);
  color: #c8e1ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* Section headings: one size, weight, tracking and colour; balanced lines, no split words. */
.ba-capabilities-heading h2,
.ba-product-demo-heading h2,
.ba-parallel-heading h2,
.ba-stealth-heading h2,
.ba-llm-sheet-copy h2,
.ba-rpa-heading h2,
.section-features .sectionfirsttiltle,
.section-46 .sectionfirsttiltle,
.slider-section .sectionwhitetitle,
.section-47 .whitebigtitle,
#geo-product-faq .geo-faq-title {
  margin-top: 0;
  font-size: var(--ba-h2);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.ba-capabilities-heading h2,
.ba-product-demo-heading h2,
.ba-parallel-heading h2,
.ba-stealth-heading h2,
.ba-llm-sheet-copy h2,
.section-features .sectionfirsttiltle,
.section-46 .sectionfirsttiltle,
#geo-product-faq .geo-faq-title {
  color: var(--ba-ink);
}

.ba-capabilities-heading h2,
.ba-product-demo-heading h2,
.ba-parallel-heading h2,
.ba-rpa-heading h2 {
  margin-bottom: 1.125rem;
}

.ba-stealth-heading h2,
.ba-llm-sheet-copy h2 {
  margin-bottom: 1.25rem;
}

/* One accent treatment for the highlighted phrase. */
.ba-parallel-heading h2 span,
.ba-stealth-heading h2 span {
  background: linear-gradient(90deg, var(--ba-accent-2) 10%, var(--ba-accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ba-rpa-heading h2 span {
  background: linear-gradient(90deg, #adb0ea, #cfe7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lead paragraphs: one size and colour, one measure. */
.ba-capabilities-heading > p,
.ba-product-demo-heading > p,
.ba-parallel-heading > p,
.ba-stealth-heading > p,
.ba-llm-sheet-lead,
.section-features .mg-bottom-24px {
  color: var(--ba-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: balance;
}

.ba-capabilities-heading > p,
.ba-product-demo-heading > p,
.ba-parallel-heading > p {
  max-width: 45rem;
  margin-right: auto;
  margin-left: auto;
}

/* One gap between a section's heading block and its content. */
.ba-capabilities-heading,
.ba-product-demo-heading,
.ba-parallel-heading,
.ba-rpa-heading {
  margin-bottom: var(--ba-gap-head);
}

/* Centred heading blocks share one measure (long headings stay on one line). */
.ba-capabilities-heading,
.ba-product-demo-heading,
.ba-parallel-heading,
.ba-rpa-heading {
  max-width: 61.25rem;
  margin-right: auto;
  margin-left: auto;
}

/* The Webflow use-case badge becomes the shared eyebrow pill. */
.section-46 .badge-background {
  display: inline-flex;
  padding: 0.4375rem 0.875rem;
  align-items: center;
  border: 1px solid rgba(72, 81, 255, 0.18);
  border-radius: 62.4375rem;
  background: var(--ba-accent-soft);
  background-image: none;
}

.section-46 .badge-icon {
  display: none;
}

.section-46 .badge {
  color: var(--ba-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: none;
}

/* Cards share one border, radius and shadow. */
.ba-parallel-benefit {
  border-color: var(--ba-line);
  border-radius: var(--ba-radius-small);
}

.ba-parallel-benefit {
  background: #fff;
  box-shadow: var(--ba-shadow-card);
}

.ba-parallel-benefits {
  margin-bottom: 2.5rem;
}

@media screen and (max-width: 600px) {
  /* Phones: a whole phrase can be wider than the screen, so headings wrap per character again (still balanced). */
  .ba-capabilities-heading h2,
  .ba-product-demo-heading h2,
  .ba-parallel-heading h2,
  .ba-stealth-heading h2,
  .ba-llm-sheet-copy h2,
  .ba-rpa-heading h2,
  .section-features .sectionfirsttiltle,
  .section-46 .sectionfirsttiltle,
  .slider-section .sectionwhitetitle,
  .section-47 .whitebigtitle,
  #geo-product-faq .geo-faq-title {
    word-break: normal;
    line-break: auto;
  }

  .section-features .padding-global-4 { padding: 1.75rem 1.125rem; border-radius: 1.375rem; }
  .ba-capabilities-heading > p,
  .ba-product-demo-heading > p,
  .ba-parallel-heading > p,
  .ba-stealth-heading > p,
  .ba-llm-sheet-lead,
  .section-features .mg-bottom-24px { font-size: 0.9375rem; }
}

/* ------------------------------------------------------------------ 3. product visuals */

/* Shared frame: tinted stage, white window, browser bar with tab groups. */
.ba-stage {
  position: relative;
  min-width: 0;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(35, 36, 61, 0.08);
  border-radius: var(--ba-radius-stage);
  background:
    linear-gradient(135deg, rgba(106, 112, 216, 0.08), rgba(58, 206, 183, 0.06)),
    #f4f6fb;
  box-shadow: var(--ba-shadow-stage);
}

.ba-stage::before,
.ba-stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.ba-stage::before {
  top: -5rem;
  right: -2.5rem;
  width: 15rem;
  height: 15rem;
  background: linear-gradient(145deg, rgba(106, 112, 216, 0.22), rgba(106, 112, 216, 0));
}

.ba-stage::after {
  bottom: -7.5rem;
  left: -5.625rem;
  width: 16.25rem;
  height: 16.25rem;
  background: linear-gradient(145deg, rgba(58, 206, 183, 0.16), rgba(58, 206, 183, 0));
}

.ba-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #e2e5ee;
  border-radius: var(--ba-radius-card);
  background: #fff;
  box-shadow: 0 1.25rem 3rem rgba(34, 35, 58, 0.1);
  font-size: 0.6875rem;
}

.ba-window-bar {
  display: flex;
  min-height: 3rem;
  padding: 0 1rem;
  align-items: center;
  gap: 0.875rem;
  border-bottom: 1px solid #eceef4;
  background: #f8f9fc;
}

.ba-dots {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.375rem;
}

.ba-dots i {
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: #ff8a80;
}

.ba-dots i:nth-child(2) { background: #ffcf6e; }
.ba-dots i:nth-child(3) { background: #6ad38a; }

.ba-tabstrip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.375rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.ba-tabgroup {
  display: inline-flex;
  flex: 0 0 auto;
  padding-bottom: 0.3125rem;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 2px solid var(--g);
}

.ba-chip {
  padding: 0.25rem 0.5625rem;
  border-radius: 0.4375rem;
  background: var(--g);
  color: #fff;
  font-size: 0.65625rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.ba-tab {
  display: inline-flex;
  max-width: 6.875rem;
  padding: 0.3125rem 0.5625rem;
  align-items: center;
  gap: 0.375rem;
  overflow: hidden;
  border-radius: 0.5rem;
  color: #656777;
  font-size: 0.65625rem;
  line-height: 1.3;
  white-space: nowrap;
}

.ba-tab::before {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.1875rem;
  background: #c9ccda;
  content: "";
}

.ba-tab.is-active {
  background: #fff;
  box-shadow: 0 1px 0 #e2e5ee, 0 0.25rem 0.75rem rgba(34, 35, 58, 0.06);
  color: #292a40;
  font-weight: 650;
}

/* Group colours (the browser's own tab-group palette). */
.ba-g-green { --g: #1e8e5a; --g-soft: #e8f6ef; }
.ba-g-teal { --g: #0f7f86; --g-soft: #e5f4f5; }
.ba-g-pink { --g: #d0307c; --g-soft: #fcebf3; }
.ba-g-orange { --g: #e0730f; --g-soft: #fdf1e6; }
.ba-g-indigo { --g: #4851ff; --g-soft: #f0f7ff; }

/* ---------- 3a. parallel tab-group board */
.ba-parallel-visual {
  width: 100%;
}

.ba-board {
  display: grid;
  padding: 1.125rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  background: #fbfcfd;
}

.ba-flow {
  display: flex;
  min-width: 0;
  padding: 0.875rem;
  flex-direction: column;
  gap: 0.625rem;
  border: 1px solid #e8eaf2;
  border-top: 0.1875rem solid var(--g);
  border-radius: var(--ba-radius-small);
  background: #fff;
}

.ba-flow-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.ba-flow-head strong {
  min-width: 0;
  overflow: hidden;
  color: #292a40;
  font-size: 0.78125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ba-state {
  display: inline-flex;
  margin-left: auto;
  padding: 0.1875rem 0.5rem;
  align-items: center;
  gap: 0.3125rem;
  border-radius: 62.4375rem;
  background: var(--g-soft);
  color: var(--g);
  font-size: 0.59375rem;
  font-weight: 700;
  white-space: nowrap;
}

.ba-state::before {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
  animation: ba-pulse 1.8s ease-in-out infinite;
}

.ba-flow-step {
  min-height: 1.75rem;
  margin: 0;
  color: var(--ba-muted);
  font-size: 0.625rem;
  line-height: 1.45;
}

.ba-preview {
  display: grid;
  min-height: 7.375rem;
  padding: 0.625rem;
  align-content: start;
  gap: 0.4375rem;
  border-radius: 0.625rem;
  background: #f7f8fc;
}

.ba-pv-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4375rem;
}

.ba-bar {
  display: block;
  height: 0.375rem;
  flex: 1 1 auto;
  border-radius: 6.1875rem;
  background: #e2e5ee;
}

.ba-bar.is-short { flex: 0 0 38%; }
.ba-bar.is-strong { background: #cfd3e2; }

.ba-price {
  flex: 0 0 auto;
  color: #292a40;
  font-size: 0.625rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.ba-pv-row.is-hit {
  margin: 0 -0.3125rem;
  padding: 0.1875rem 0.3125rem;
  border-radius: 0.375rem;
  background: var(--g-soft);
}

.ba-pv-row.is-hit .ba-price { color: var(--g); }

.ba-avatar {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #cfe7ff, #d7ebff);
}

.ba-pv-reply { padding-left: 1rem; }
.ba-pv-reply .ba-avatar { width: 0.8125rem; height: 0.8125rem; background: linear-gradient(145deg, #c7ece6, #e2f0ff); }

.ba-field {
  display: flex;
  height: 1.25rem;
  padding: 0 0.4375rem;
  align-items: center;
  gap: 0.4375rem;
  border: 1px solid #e2e5ee;
  border-radius: 0.375rem;
  background: #fff;
}

.ba-tick {
  position: relative;
  flex: 0 0 auto;
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  background: var(--g);
}

.ba-tick::after {
  position: absolute;
  top: 2px;
  left: 0.21875rem;
  width: 0.15625rem;
  height: 0.3125rem;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  content: "";
  transform: rotate(45deg);
}

.ba-thumb {
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(145deg, #cfe7ff, #e4f2ff);
}

.ba-spark {
  flex: 0 0 auto;
  width: 2.125rem;
  height: 0.875rem;
  fill: none;
  stroke: var(--g);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba-progress {
  height: 0.3125rem;
  overflow: hidden;
  border-radius: 6.1875rem;
  background: #eef0f5;
}

.ba-progress span {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--g);
}

.ba-flow-foot {
  display: flex;
  justify-content: space-between;
  color: #9799a8;
  font-size: 0.59375rem;
  font-variant-numeric: tabular-nums;
}

.ba-summary {
  display: grid;
  padding: 0.875rem 1.25rem;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  border-top: 1px solid #eceef4;
}

.ba-summary-lead {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ba-summary-icon {
  display: flex;
  flex: 0 0 auto;
  width: 2.125rem;
  height: 2.125rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: linear-gradient(145deg, #686ed8, #8b90e1);
  color: #fff;
}

.ba-summary-icon svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; }

.ba-summary strong,
.ba-summary small {
  display: block;
}

.ba-summary-lead strong { color: #292a40; font-size: 0.78125rem; }
.ba-summary small { margin-bottom: 0.1875rem; color: #9799a8; font-size: 0.59375rem; }

.ba-metric b {
  color: #292a40;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ba-metric b.is-accent { color: var(--ba-accent); }
.ba-metric b.is-green { color: var(--ba-green); }

/* ---------- 3b. private session window (sits in .ba-stealth's "visual" grid area) */
.ba-stealth-visual {
  grid-area: visual;
  align-self: center;
}

/* Same copy/visual proportions as the LOCAL SHEET x LLM section (the two left-copy sections match). */
@media screen and (min-width: 992px) {
  .ba-stealth-shell {
    width: min(73.75rem, 100%);
    grid-template-columns: minmax(21.25rem, 0.82fr) minmax(0, 1.28fr);
    column-gap: 4.375rem;
  }
}

.ba-private {
  display: grid;
  padding: 1.125rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.875rem;
  background: #fbfcfd;
}

.ba-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e8eaf2;
  border-radius: var(--ba-radius-small);
  background: #fff;
}

.ba-run-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ba-shield {
  display: flex;
  flex: 0 0 auto;
  width: 2.125rem;
  height: 2.125rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: linear-gradient(145deg, #686ed8, #8b90e1);
  color: #fff;
}

.ba-shield svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ba-run-head strong,
.ba-run-head small { display: block; }
.ba-run-head strong { color: #292a40; font-size: 0.78125rem; }
.ba-run-head small { margin-top: 2px; color: #9799a8; font-size: 0.59375rem; }

.ba-run-head .ba-state { --g: #2b8f7d; --g-soft: #ebfaf6; }

.ba-run-progress {
  display: flex;
  margin: 1rem 0 0.875rem;
  padding: 0.75rem;
  align-items: center;
  gap: 0.875rem;
  border-radius: 0.75rem;
  background: #f7f8fc;
}

.ba-ring {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ba-accent) calc(var(--p) * 1%), #ddeeff 0);
}

.ba-ring::before {
  position: absolute;
  inset: 0.4375rem;
  border-radius: 50%;
  background: #f7f8fc;
  content: "";
}

.ba-ring b {
  position: relative;
  color: #292a40;
  font-size: 0.8125rem;
  font-weight: 800;
}

.ba-run-progress div { min-width: 0; flex: 1 1 auto; }
.ba-run-progress strong { display: block; color: #292a40; font-size: 0.75rem; }
.ba-run-progress small { display: block; margin: 0.1875rem 0 0.5rem; color: #9799a8; font-size: 0.59375rem; }
.ba-run-progress .ba-progress { --g: var(--ba-accent); }

.ba-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.ba-steps li {
  display: grid;
  grid-template-columns: 0.875rem 2.125rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  color: #656777;
  font-size: 0.625rem;
}

.ba-steps time {
  color: #a3a5b3;
  font-size: 0.59375rem;
  font-variant-numeric: tabular-nums;
}

.ba-steps .ba-tick { --g: #40c5aa; width: 0.75rem; height: 0.75rem; }

.ba-steps li.is-now { color: var(--ba-accent); font-weight: 700; }

.ba-now {
  width: 0.625rem;
  height: 0.625rem;
  margin-left: 1px;
  border: 2px solid var(--ba-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0.1875rem rgba(72, 81, 255, 0.14);
  animation: ba-pulse 1.8s ease-in-out infinite;
}

.ba-settings h4,
.ba-settings h5 {
  margin: 0 0 0.5rem;
  color: #292a40;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.3;
}

.ba-settings h5 {
  margin-top: 0.875rem;
  color: #9799a8;
  font-size: 0.59375rem;
  letter-spacing: 0.04em;
}

.ba-set-row {
  display: flex;
  min-height: 1.625rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  border-bottom: 1px solid #f0f1f6;
  color: #656777;
  font-size: 0.625rem;
}

.ba-set-row b {
  color: #292a40;
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
}

.ba-switch {
  position: relative;
  width: 1.75rem;
  height: 1rem;
  border-radius: 6.1875rem;
  background: #40c5aa;
}

.ba-switch::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.ba-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  color: var(--ba-green);
  font-weight: 700;
}

.ba-live::before {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #40c5aa;
  content: "";
}

.ba-isolated {
  display: flex;
  margin-top: 0.875rem;
  padding: 0.5625rem 0.625rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  background: var(--ba-green-soft);
  color: var(--ba-green);
  font-size: 0.625rem;
  font-weight: 700;
}

.ba-isolated svg { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@keyframes ba-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- 3c. responsive */
@media screen and (max-width: 991px) {
  .ba-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-stage { padding: 1.25rem; }
}

@media screen and (max-width: 600px) {
  .ba-stage { padding: 0.75rem; border-radius: 1.375rem; }
  .ba-window { border-radius: 1rem; }
  .ba-board { padding: 0.75rem; grid-template-columns: 1fr; gap: 0.625rem; }
  .ba-board .ba-flow:nth-child(n + 3) { display: none; }
  .ba-preview { min-height: 6rem; }
  .ba-summary { padding: 0.75rem 0.875rem; gap: 0.75rem; }
  .ba-summary-lead { grid-column: 1 / -1; }
  .ba-private { padding: 0.75rem; grid-template-columns: 1fr; }
  .ba-window-bar { padding: 0 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-state::before,
  .ba-now { animation: none; }
}
