/* =========================================================================
   Buzzabout — app preview (landing page snapshot)
   Self-contained, scoped under .ba-preview so it cannot leak into / collide
   with the host landing page's CSS. No framework, no build step.
   Colours are the app's real design tokens (OKLCH, light mode).
   ========================================================================= */

.ba-preview {
  /* --- design tokens (light mode, from the app's globals.css) --- */
  --ba-bg: #ffffff;
  --ba-sidebar: oklch(0.99 0 0);
  --ba-muted: oklch(0.97 0 0);
  --ba-border: oklch(0.93 0.002 247);
  --ba-surface-border: oklch(0.93 0 0);
  --ba-surface-subtle: oklch(0.965 0 0);
  --ba-text-primary: oklch(0.09 0 0);
  --ba-text-secondary: oklch(0.5 0 0);
  --ba-text-tertiary: oklch(0.62 0 0);
  --ba-primary: oklch(0.205 0 0);
  --ba-primary-fg: oklch(0.985 0 0);
  --ba-brand: oklch(0.5 0.2 260);
  --ba-chart-purple: #226ce6; /* LinkedIn series (kept var name for back-compat) */
  --ba-chart-teal: #b7d0f6; /* Reddit series */

  --ba-radius: 0.625rem;
  --ba-radius-lg: 0.625rem;
  --ba-radius-xl: 0.875rem;
  --ba-radius-card: 0.875rem;

  /* layout */
  --ba-sidebar-w: 260px;
  --ba-rightpanel-w: 332px;

  /* base */
  all: initial;
  /* iOS Safari inflates font sizes in narrow viewports ("text autosizing").
     The window is shrunk to fit via `zoom`, so inflated text would overflow
     its scaled-down rows and overlap. `all: initial` resets this back to
     `auto`, so pin it to 100% — text then scales 1:1 with the zoom. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  display: block;
  box-sizing: border-box;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ba-text-primary);
  background: transparent; /* embeds cleanly on any landing-section background */
  line-height: 1.5;
}

.ba-preview *,
.ba-preview *::before,
.ba-preview *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* isolate from the host page's global element styles (h1-h6/p leak in
     font-family + letter-spacing otherwise) */
  font-family: inherit;
  letter-spacing: normal;
}

.ba-preview svg {
  display: block;
}

/* The framed window the whole app sits inside. Cap height so it reads as a
   product shot, not a full-bleed page. */
.ba-preview .ba-window {
  display: flex;
  /* fixed design size — JS scales the whole window to fit smaller screens
     (transform: scale) so the internal layout never changes, just the size.
     Keep width/height in sync with DESIGN_W / DESIGN_H in app-preview.js. */
  width: 1192px;
  height: 720px;
  overflow: hidden;
  border: 1px solid var(--ba-border);
  border-radius: 16px;
  background: var(--ba-sidebar); /* grey app canvas (surface-secondary) — the card floats on it */
  box-shadow: 0 24px 60px -20px rgba(16, 18, 24, 0.18),
    0 8px 24px -12px rgba(16, 18, 24, 0.1);
  user-select: none;
}

/* ============================ SIDEBAR ================================= */
.ba-preview .ba-sidebar {
  flex: 0 0 var(--ba-sidebar-w);
  width: var(--ba-sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--ba-sidebar);
  padding: 8px; /* p-2 */
  gap: 4px;
}

.ba-preview .ba-sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 14px; /* header sits flush; logo/button carry their own 8px inset */
}
.ba-preview .ba-sb-top .ba-icon-btn {
  margin-right: 8px;
}
.ba-preview .ba-logo {
  margin-left: 8px; /* ml-2, aligns logo with nav-item content */
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ba-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-preview .ba-logo svg {
  width: 15px;
  height: auto;
}
.ba-preview .ba-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--ba-text-tertiary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.ba-preview .ba-icon-btn:hover {
  background: var(--ba-muted);
  color: var(--ba-text-secondary);
}
.ba-preview .ba-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ba-preview .ba-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ba-preview .ba-nav-item {
  display: flex;
  align-items: center;
  gap: 8px; /* gap-2 */
  height: 36px; /* h-9 */
  padding: 0 8px; /* px-2 */
  border-radius: 8px; /* rounded-md */
  font-size: 13px;
  color: var(--ba-text-primary);
  cursor: pointer;
  transition: background 0.12s;
}
.ba-preview .ba-nav-item:hover {
  background: var(--ba-muted);
}
.ba-preview .ba-nav-item svg {
  width: 17px;
  height: 17px;
  color: var(--ba-text-secondary);
  flex: 0 0 auto;
}

.ba-preview .ba-section {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
}
.ba-preview .ba-section-head {
  display: flex;
  align-items: center;
  gap: 2px; /* gap-0.5 */
  height: 36px; /* h-9 */
  padding: 0 8px; /* px-2 */
  color: var(--ba-text-secondary);
  font-size: 12px;
  font-weight: 500;
}
.ba-preview .ba-section-head .ba-chev {
  width: 14px;
  height: 14px;
}
.ba-preview .ba-section-head .ba-spacer {
  flex: 1;
}
.ba-preview .ba-section-head .ba-add {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  color: var(--ba-text-tertiary);
}
.ba-preview .ba-section-head .ba-add:hover {
  background: var(--ba-muted);
  color: var(--ba-text-secondary);
}
.ba-preview .ba-section-head .ba-add svg {
  width: 14px;
  height: 14px;
}

.ba-preview .ba-chat-list {
  overflow-y: auto;
  scrollbar-width: thin;
}
.ba-preview .ba-chat-item {
  display: flex;
  align-items: center;
  height: 36px; /* h-9 */
  padding: 0 8px; /* px-2 */
  border-radius: 8px; /* rounded-md */
  font-size: 13px;
  color: var(--ba-text-primary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s;
}
.ba-preview .ba-chat-item:hover {
  background: var(--ba-muted);
}
.ba-preview .ba-chat-item.is-active {
  background: var(--ba-muted);
}

.ba-preview .ba-sb-foot {
  margin-top: auto;
  padding-top: 8px;
}
.ba-preview .ba-user {
  display: flex;
  align-items: center;
  gap: 8px; /* gap-2 */
  height: 36px; /* h-9 */
  padding: 0 8px; /* px-2 */
  border-radius: 8px; /* rounded-md */
  cursor: pointer;
  transition: background 0.12s;
}
.ba-preview .ba-user:hover {
  background: var(--ba-muted);
}
.ba-preview .ba-avatar {
  width: 20px; /* h-5 w-5 */
  height: 20px;
  border-radius: 999px;
  background: #5d6fa3; /* pastel dark blue */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
}
.ba-preview .ba-user span {
  font-size: 13px;
  font-weight: 500;
}

/* ============================ MAIN ================================== */
.ba-preview .ba-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ba-bg);
  /* rounded "shelf" — the app's main content card (rounded-2xl border
     border-border/50), inset pt-2 pr-2 pb-2, flush-left to the sidebar */
  margin: 8px 8px 8px 0;
  border: 1px solid color-mix(in srgb, var(--ba-border) 55%, transparent);
  border-radius: 18px;
  overflow: hidden;
}

.ba-preview .ba-topbar {
  height: 48px; /* h-12 */
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px; /* px-5 */
}
.ba-preview .ba-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  min-width: 0;
}
.ba-preview .ba-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px; /* gap-2 */
}
.ba-preview .ba-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ba-text-primary);
  margin-left: 4px;
}

/* content row: thread + right panel */
.ba-preview .ba-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.ba-preview .ba-thread-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ba-preview .ba-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden; /* no scroll — content is simply cropped by the shelf height */
}
.ba-preview .ba-thread-inner {
  max-width: 768px; /* max-w-[768px] */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px; /* space-y-3 */
  padding: 24px 28px; /* roomier left/right gutters */
}

/* "Thought for ..." */
.ba-preview .ba-thought {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  font-size: 13px;
  color: var(--ba-text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.ba-preview .ba-thought:hover {
  background: var(--ba-muted);
}
.ba-preview .ba-thought svg {
  width: 15px;
  height: 15px;
}

/* dataset card */
.ba-preview .ba-dataset {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  width: 100%;
  padding: 16px; /* p-4 */
  border: 1px solid var(--ba-surface-border);
  border-radius: var(--ba-radius-xl); /* rounded-xl = 14px */
  background: #fff;
}
.ba-preview .ba-dataset-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px; /* rounded-lg */
  background: var(--ba-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ba-text-secondary);
}
.ba-preview .ba-dataset-ico svg {
  width: 18px;
  height: 18px;
}
.ba-preview .ba-dataset-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ba-preview .ba-dataset-meta b {
  font-size: 13px;
  font-weight: 500;
}
.ba-preview .ba-dataset-meta span {
  font-size: 12px;
  color: var(--ba-text-secondary);
}
.ba-preview .ba-dataset-link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--ba-text-primary);
  cursor: pointer;
  white-space: nowrap;
}
.ba-preview .ba-dataset-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* assistant message */
.ba-preview .ba-msg h3 {
  font-size: 20px; /* section heading — larger than 15px body */
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em; /* subtle, intentional tracking (not the host's -2.5px leak) */
  margin-bottom: 8px;
}
.ba-preview .ba-msg p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ba-text-primary);
}
.ba-preview .ba-msg ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ba-preview .ba-msg li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
}
.ba-preview .ba-msg li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--ba-text-tertiary);
}
.ba-preview .ba-msg li b {
  font-weight: 500;
}

/* typing caret used by the scripted typing line */
.ba-preview .ba-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--ba-text-primary);
  animation: ba-blink 1s step-end infinite;
}
@keyframes ba-blink {
  50% {
    opacity: 0;
  }
}

/* legend (shared by charts) */
.ba-preview .ba-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 16px; /* more breathing room between chart and legend */
}
.ba-preview .ba-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ba-text-secondary);
}
.ba-preview .ba-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

/* grouped bar chart */
.ba-preview .ba-barchart {
  position: relative; /* anchor for the hover tooltip */
  padding: 6px 0 2px;
}
.ba-preview .ba-bar-plot {
  position: relative;
  height: 156px;
}
.ba-preview .ba-grid {
  position: absolute;
  left: 28px;
  right: 4px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ba-preview .ba-grid > div {
  position: relative;
  border-top: 1px dashed var(--ba-surface-border);
}
.ba-preview .ba-grid > div span {
  position: absolute;
  left: -28px;
  top: -8px;
  width: 22px;
  text-align: right;
  font-size: 11px;
  color: var(--ba-text-tertiary);
}
.ba-preview .ba-bars {
  position: absolute;
  left: 28px;
  right: 4px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
}
.ba-preview .ba-bar-group {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}
.ba-preview .ba-bar {
  width: 15px;
  border-radius: 4px 4px 0 0; /* heights set inline — static, no grow animation */
  transition: filter 0.12s;
}
.ba-preview .ba-bar-group:hover .ba-bar {
  filter: brightness(1.07);
}
.ba-preview .ba-bar-labels {
  display: flex;
  padding: 10px 4px 0 28px;
}
.ba-preview .ba-bar-labels > div {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 3px;
}
.ba-preview .ba-bar-labels span {
  display: block;
  text-align: center;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ba-text-tertiary);
  text-wrap: balance; /* horizontal labels, balanced across (up to) two lines */
}

/* hover tooltip for chart bars */
.ba-preview .ba-bar-tip {
  position: absolute;
  z-index: 20;
  min-width: 108px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid var(--ba-surface-border);
  border-radius: 9px;
  box-shadow: 0 8px 22px -8px rgba(16, 18, 24, 0.18),
    0 2px 6px -2px rgba(16, 18, 24, 0.08);
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s, transform 0.12s;
}
.ba-preview .ba-bar-tip.is-visible {
  opacity: 1;
  transform: none;
}
.ba-preview .ba-tip-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ba-text-primary);
  margin-bottom: 5px;
  white-space: nowrap; /* keep long category names on one line — compact height */
}
.ba-preview .ba-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ba-preview .ba-tip-row + .ba-tip-row {
  margin-top: 3px;
}
.ba-preview .ba-tip-key {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ba-text-secondary);
}
.ba-preview .ba-tip-key i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.ba-preview .ba-tip-val {
  font-size: 11px;
  font-weight: 500;
  color: var(--ba-text-primary);
  font-variant-numeric: tabular-nums;
}

/* breakdown table */
.ba-preview .ba-table {
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--ba-surface-border);
  border-radius: 14px;
  background: #fff;
}
.ba-preview .ba-tr {
  display: grid;
  grid-template-columns: 1fr 150px 104px 84px; /* wider first (Use case) column */
  align-items: center;
  padding: 0 20px;
  height: 56px;
}
.ba-preview .ba-thead {
  height: 50px;
  color: var(--ba-text-secondary);
  font-size: 12px;
  font-weight: 500;
}
.ba-preview .ba-tbody .ba-tr {
  border-top: 1px solid var(--ba-surface-border);
  font-size: 14px;
  color: var(--ba-text-primary);
}
.ba-preview .ba-td-use {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-preview .ba-td-use > svg {
  width: 16px;
  height: 16px;
  color: var(--ba-text-tertiary);
  flex: 0 0 auto;
}
.ba-preview .ba-td-plat {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-preview .ba-td-plat svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.ba-preview .ba-tc {
  text-align: center;
}
.ba-preview .ba-tr-share {
  text-align: right;
}
.ba-preview .ba-table-toggle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ba-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ba-text-secondary);
  cursor: pointer;
}
.ba-preview .ba-table-toggle svg {
  width: 15px;
  height: 15px;
}

/* prompt chips */
.ba-preview .ba-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* gap-2 */
  margin-bottom: 8px; /* mb-2 */
  padding-left: 4px; /* pl-1 */
}
.ba-preview .ba-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* gap-1.5 */
  padding: 6px 12px; /* py-1.5 px-3 */
  border: 0.5px solid var(--ba-surface-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px; /* text-xs */
  font-weight: 500;
  color: var(--ba-text-secondary);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.ba-preview .ba-chip:hover {
  background: var(--ba-surface-subtle);
  color: var(--ba-text-primary);
}
.ba-preview .ba-chip svg {
  width: 14px;
  height: 14px;
  color: var(--ba-text-tertiary);
}

/* composer */
.ba-preview .ba-composer-wrap {
  flex: 0 0 auto;
  padding: 12px 16px; /* px-4 py-3 */
}
.ba-preview .ba-composer {
  max-width: 768px; /* max-w-[768px] */
  margin: 0 auto;
  background: #fff;
  border-radius: var(--ba-radius-xl); /* rounded-xl = 14px */
  box-shadow: 0 8px 48px 4px rgba(0, 0, 0, 0.06);
  padding: 16px; /* p-4 */
  display: flex;
  flex-direction: column;
  gap: 12px; /* gap-3 */
}
.ba-preview .ba-composer-input {
  font-size: 14px;
  color: var(--ba-text-tertiary);
  min-height: 24px;
  line-height: 24px;
  padding-left: 4px;
}
/* while the cycling typewriter is running, the typed query reads as real input */
.ba-preview .ba-composer-input.ba-typing {
  color: var(--ba-text-primary);
}
.ba-preview .ba-composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ba-preview .ba-composer-row .ba-icon-btn:hover {
  background: var(--ba-muted);
}
.ba-preview .ba-send {
  width: 30px;
  height: 30px;
  border-radius: 9px; /* rounded-lg, not a circle */
  background: #000; /* black */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.ba-preview .ba-send:hover {
  transform: translateY(-1px);
}
.ba-preview .ba-send svg {
  width: 15px;
  height: 15px;
}

/* ============================ RIGHT PANEL =========================== */
.ba-preview .ba-rightpanel {
  flex: 0 0 var(--ba-rightpanel-w);
  width: var(--ba-rightpanel-w);
  padding: 20px 20px 20px 0; /* py-5 pr-5 */
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ba-preview .ba-panel-card {
  border: 0.5px solid var(--ba-surface-border); /* border-[0.5px] */
  border-radius: var(--ba-radius-card); /* rounded-xl = 14px */
  background: #fff;
  overflow: hidden;
}
.ba-preview .ba-panel-section {
  padding: 16px 20px 20px; /* pt-4 px-5 pb-5 */
}
.ba-preview .ba-panel-section + .ba-panel-section {
  border-top: 1px solid var(--ba-surface-border);
}
.ba-preview .ba-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ba-preview .ba-panel-head b {
  font-size: 14px;
  font-weight: 500;
  color: var(--ba-text-primary);
}
.ba-preview .ba-panel-head svg {
  width: 16px;
  height: 16px;
  color: var(--ba-text-tertiary);
  cursor: pointer;
}
.ba-preview .ba-panel-sub {
  font-size: 12px;
  color: var(--ba-text-secondary);
  margin-top: 6px; /* gap-1.5 from title */
}
.ba-preview .ba-ds-card {
  display: flex;
  align-items: center;
  gap: 12px; /* gap-3 */
  margin-top: 12px; /* gap-3 section content */
  padding: 12px; /* p-3 */
  border: 1px solid var(--ba-surface-border);
  border-radius: 10px; /* rounded-lg */
  background: var(--ba-surface-subtle);
  cursor: pointer;
  transition: background 0.12s;
}
.ba-preview .ba-ds-card:hover {
  background: var(--ba-muted);
}
/* Datasets section card — no border, lighter background (per annotation) */
.ba-preview .ba-panel-section:nth-of-type(1) .ba-ds-card {
  border: none;
  background: oklch(0.985 0 0);
}
.ba-preview .ba-panel-section:nth-of-type(1) .ba-ds-card:hover {
  background: oklch(0.985 0 0);
}
/* Datasets icon — drop the framed box, keep just the icon (per annotation) */
.ba-preview .ba-panel-section:nth-of-type(1) .ba-ds-ico {
  background: transparent;
  border: none;
}
/* Assets section card — no border, no background, and no left padding so the
   icon lines up with the (full-bleed) Datasets frame's left edge above */
.ba-preview .ba-panel-section:nth-of-type(2) .ba-ds-card {
  border: none;
  background: transparent;
  padding-left: 0;
}
.ba-preview .ba-panel-section:nth-of-type(2) .ba-ds-card:hover {
  background: transparent;
}
.ba-preview .ba-ds-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ba-surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ba-brand);
}
.ba-preview .ba-ds-ico svg {
  width: 17px;
  height: 17px;
}
.ba-preview .ba-ds-ico--neutral {
  color: var(--ba-text-secondary);
}
.ba-preview .ba-ds-meta {
  display: flex;
  flex-direction: column;
  gap: 2px; /* gap-0.5 */
  min-width: 0;
}
.ba-preview .ba-ds-meta b {
  font-size: 13px;
  font-weight: 500;
}
.ba-preview .ba-ds-meta span {
  font-size: 12px;
  color: var(--ba-text-secondary);
}

/* page-load entrance animation intentionally removed — content is static
   (only the composer input keeps its typewriter animation) */
.ba-preview .ba-reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ba-preview * {
    animation: none !important;
    transition: none !important;
  }
  .ba-preview .ba-reveal {
    opacity: 1;
    transform: none;
  }
  .ba-preview .ba-bar {
    transition: none !important;
  }
}

/* Smaller screens: the whole window is scaled down via JS (transform: scale)
   — the layout itself never changes, so there are no responsive hide/reflow
   rules here. */
