/* Rich UI previews — полноценные визуалы в блоках */

/* ── Bento: preview panel вместо уголка ── */
.bento__card--viz {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
}
.bento__card--viz .bento__num,
.bento__card--viz h3,
.bento__card--viz p,
.bento__card--viz .bento__head {
  position: relative;
  z-index: 2;
}
.bento__card--viz > p {
  padding-inline: 1.25rem;
  margin-bottom: 0.85rem;
}
.bento__card--viz .bento__head {
  padding: 1.25rem 1.25rem 0;
}
.bento__card--viz .bento__num:not(.bento__head .bento__num) {
  padding: 1.25rem 1.25rem 0;
  display: block;
}
.bento__card--viz .bento__num + h3 {
  padding-inline: 1.25rem;
}

.bento-preview {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem;
  min-height: 110px;
  position: relative;
  overflow: hidden;
}
.bento__card--wide .bento-preview { min-height: 120px; }

/* hide old corner mini-ui */
.bento__card--viz .mini-ui { display: none; }

/* Web preview */
.bp-web__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.bp-web__bar i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.bp-web__bar i:first-child { background: #ff5f57; }
.bp-web__bar i:nth-child(2) { background: #febc2e; }
.bp-web__bar i:nth-child(3) { background: #28c840; }
.bp-web__bar span {
  flex: 1;
  height: 6px;
  margin-left: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0;
}
.bp-web__hero {
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,255,163,0.15), rgba(0,212,255,0.08));
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}
.bp-web__hero em {
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}
.bp-web__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.bp-web__card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
}
.bp-web__card i {
  display: block;
  aspect-ratio: 1.3;
  border-radius: 2px;
  background: rgba(0,255,163,0.1);
  margin-bottom: 3px;
}
.bp-web__card b {
  display: block;
  font-size: 0.48rem;
  color: var(--text-muted);
  font-weight: 400;
}
.bp-web__card strong {
  font-size: 0.52rem;
  color: var(--accent);
}

/* CRM preview */
.bp-crm {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1fr;
  gap: 4px;
  align-items: end;
}
.bp-crm__kpi {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 5px;
  text-align: center;
}
.bp-crm__kpi b {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  line-height: 1;
}
.bp-crm__kpi small {
  font-family: var(--mono);
  font-size: 0.42rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.bp-crm__chart {
  grid-column: span 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.bp-crm__chart i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(0,255,163,0.2));
  border-radius: 1px 1px 0 0;
  opacity: 0.75;
}

/* Telegram preview */
.bp-tg {
  background: linear-gradient(180deg, rgba(0,136,204,0.12), transparent);
  border-radius: 6px;
  padding: 0.5rem;
}
.bp-tg__head {
  font-size: 0.55rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--accent-2);
}
.bp-tg__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 0.4rem;
}
.bp-tg__prod {
  border: 1px solid rgba(0,136,204,0.25);
  border-radius: 6px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
}
.bp-tg__prod i {
  display: block;
  height: 22px;
  border-radius: 4px;
  background: rgba(0,212,255,0.12);
  margin-bottom: 3px;
}
.bp-tg__prod span { font-size: 0.48rem; color: var(--text-muted); display: block; }
.bp-tg__prod b { font-size: 0.52rem; color: var(--text); }
.bp-tg__btn {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.5rem;
  padding: 0.3rem;
  border-radius: 6px;
  background: rgba(0,136,204,0.25);
  color: var(--accent-2);
}

/* AI preview */
.bp-ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}
.bp-ai__nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.bp-ai__node {
  font-family: var(--mono);
  font-size: 0.45rem;
  text-align: center;
  padding: 0.35rem 0.2rem;
  border: 1px solid rgba(0,255,163,0.25);
  border-radius: 4px;
  color: var(--accent);
  background: rgba(0,255,163,0.05);
}
.bp-ai__node--core {
  grid-column: span 2;
  border-color: var(--border-hover);
  box-shadow: 0 0 12px rgba(0,255,163,0.1);
}
.bp-ai__term {
  font-family: var(--mono);
  font-size: 0.48rem;
  line-height: 1.65;
  color: var(--text-muted);
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #060608;
}
.bp-ai__term .k { color: var(--accent); }
.bp-ai__term .v { color: var(--gold); }

/* Automation preview */
.bp-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  padding: 0.25rem;
}
.bp-auto__node {
  font-family: var(--mono);
  font-size: 0.48rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
}
.bp-auto__node--ai { border-color: var(--border-hover); color: var(--accent); }
.bp-auto__arrow { color: var(--accent); opacity: 0.4; font-size: 0.55rem; }
.bp-auto__done {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  color: var(--accent);
}

/* Design preview */
.bp-design {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.bp-design__swatches {
  display: flex;
  gap: 3px;
}
.bp-design__swatches i {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.bp-design__swatches i:nth-child(1) { background: #00ffa3; }
.bp-design__swatches i:nth-child(2) { background: #00d4ff; }
.bp-design__swatches i:nth-child(3) { background: #050506; }
.bp-design__swatches i:nth-child(4) { background: #f0f0f2; }
.bp-design__ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bp-design__btn {
  font-size: 0.48rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  text-align: center;
}
.bp-design__btn--primary { background: var(--accent); color: #031a12; }
.bp-design__btn--ghost { border: 1px solid var(--border); color: var(--text-muted); }
.bp-design__type {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* SaaS preview */
.bp-saas {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}
.bp-saas__tiers {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bp-saas__tier {
  font-family: var(--mono);
  font-size: 0.45rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
}
.bp-saas__tier--on {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--accent-dim);
}
.bp-saas__mrr {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
}
.bp-saas__mrr small {
  font-family: var(--mono);
  font-size: 0.42rem;
  color: var(--text-muted);
  display: block;
}
.bp-saas__mrr b {
  font-size: 0.85rem;
  color: var(--accent);
}
.bp-saas__users {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-saas__user {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.45rem;
  color: var(--text-muted);
}
.bp-saas__user i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0,255,163,0.2);
  flex-shrink: 0;
}

/* Launch preview */
.bp-launch {
  padding: 0.25rem 0;
}
.bp-launch__track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.bp-launch__fill {
  height: 100%;
  width: 72%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: launchFill 3s var(--ease-soft, ease) infinite alternate;
}
@keyframes launchFill {
  from { width: 65%; opacity: 0.8; }
  to { width: 78%; opacity: 1; }
}
.bp-launch__steps {
  display: flex;
  justify-content: space-between;
}
.bp-launch__step {
  font-family: var(--mono);
  font-size: 0.45rem;
  color: var(--text-muted);
  text-align: center;
}
.bp-launch__step--done { color: var(--accent); }
.bp-launch__step--active { color: var(--accent-2); font-weight: 600; }

/* ── Showcase: rich mocks ── */
.mock--wide .mock__body {
  min-height: 260px;
  padding: 0.65rem;
}
.mock__body--rich {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* CRM rich */
.ui-crm {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.5rem;
  height: 100%;
}
.ui-crm__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ui-crm__nav i {
  height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
}
.ui-crm__nav i.on {
  background: var(--accent-dim);
  border-color: var(--border-hover);
}
.ui-crm__main { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ui-kpi {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
}
.ui-kpi label {
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}
.ui-kpi strong {
  font-size: 0.72rem;
  color: var(--accent);
}
.ui-kpi strong.down { color: #ff6b6b; }
.ui-chart-box {
  flex: 1;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.ui-chart-box i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
}
.ui-table { display: flex; flex-direction: column; gap: 3px; }
.ui-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
  font-size: 0.55rem;
}
.ui-row__av {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,255,163,0.3), rgba(0,212,255,0.2));
  font-size: 0;
}
.ui-row__name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row__sum { color: var(--accent); font-family: var(--mono); font-size: 0.52rem; }
.ui-badge {
  font-family: var(--mono);
  font-size: 0.42rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.ui-badge--hot { background: rgba(0,255,163,0.15); color: var(--accent); border: 1px solid rgba(0,255,163,0.3); }
.ui-badge--wait { background: rgba(212,175,106,0.12); color: var(--gold); border: 1px solid rgba(212,175,106,0.25); }
.ui-badge--new { background: rgba(0,212,255,0.12); color: var(--accent-2); border: 1px solid rgba(0,212,255,0.25); }

/* TG rich */
.ui-tg {
  background: linear-gradient(180deg, rgba(0,136,204,0.1), transparent);
  border-radius: 8px;
  padding: 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ui-tg__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ui-tg__top b { font-size: 0.65rem; }
.ui-tg__top span { font-family: var(--mono); font-size: 0.48rem; color: var(--text-muted); }
.ui-tg__catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  flex: 1;
}
.ui-prod {
  border: 1px solid rgba(0,136,204,0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.ui-prod__img {
  height: 44px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,255,163,0.08));
}
.ui-prod__info { padding: 0.35rem; }
.ui-prod__info span { font-size: 0.52rem; display: block; color: var(--text); margin-bottom: 2px; }
.ui-prod__info b { font-size: 0.58rem; color: var(--accent-2); }
.ui-tg__cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: rgba(0,136,204,0.2);
  font-size: 0.55rem;
}
.ui-tg__cart strong { color: var(--accent-2); font-family: var(--mono); }

/* Chat rich */
.ui-chat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  justify-content: flex-end;
}
.ui-chat__head {
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: auto;
}
.ui-chat__head em { color: var(--accent); font-style: normal; }

/* Landing rich */
.ui-land {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
}
.ui-land__headline {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.ui-land__headline em { color: var(--accent); font-style: normal; }
.ui-land__sub {
  font-size: 0.52rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.45rem;
}
.ui-land__quiz {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem;
  margin-bottom: 0.45rem;
}
.ui-land__quiz p { font-size: 0.55rem; margin-bottom: 0.35rem; }
.ui-land__opts { display: flex; flex-direction: column; gap: 3px; }
.ui-land__opt {
  font-size: 0.5rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
}
.ui-land__opt--sel { border-color: var(--border-hover); background: var(--accent-dim); color: var(--accent); }
.ui-land__feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ui-feat {
  text-align: center;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.45rem;
  color: var(--text-muted);
}
.ui-feat i {
  display: block;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 2px;
  font-style: normal;
}

/* SaaS rich */
.ui-saas {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem;
  height: 100%;
}
.ui-saas__nav span {
  display: block;
  font-family: var(--mono);
  font-size: 0.45rem;
  padding: 0.3rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.ui-saas__nav span.on { background: var(--accent-dim); color: var(--accent); }
.ui-saas__panel { display: flex; flex-direction: column; gap: 0.4rem; }
.ui-saas__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ui-saas__head b { font-size: 0.65rem; }
.ui-saas__head span { font-family: var(--mono); font-size: 0.48rem; color: var(--accent); }

/* n8n rich */
.ui-n8n {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 100%;
  padding: 0.5rem;
}
.ui-n8n__flow {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ui-n8n__node {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  text-align: center;
  background: rgba(255,255,255,0.03);
  min-width: 52px;
}
.ui-n8n__node i {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 2px;
  font-style: normal;
}
.ui-n8n__node span {
  font-family: var(--mono);
  font-size: 0.45rem;
  color: var(--text-muted);
}
.ui-n8n__node--ai {
  border-color: var(--border-hover);
  box-shadow: 0 0 16px rgba(0,255,163,0.1);
}
.ui-n8n__node--ai span { color: var(--accent); }
.ui-n8n__log {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.48rem;
  line-height: 1.6;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  background: #060608;
}
.ui-n8n__log .ok { color: var(--accent); }

/* Tab viz full */
.tab-viz--full {
  min-height: 220px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  justify-content: flex-start;
}
.tab-viz--full .bp-web__grid,
.tab-viz--full .bp-tg__products { gap: 6px; }
.tab-viz--full .ui-kpis { gap: 6px; }
.tab-viz--full .ui-chart-box { min-height: 70px; }

/* Principle visuals */
.principle-card {
  display: flex;
  flex-direction: column;
}
.principle-card__viz {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  min-height: 48px;
}
.pv-pipeline {
  display: flex;
  align-items: center;
  gap: 3px;
}
.pv-pipeline i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(0,255,163,0.15);
  border: 1px solid rgba(0,255,163,0.2);
}
.pv-pipeline i.on { background: var(--accent); opacity: 0.7; }
.pv-arch {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pv-arch i {
  height: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
}
.pv-arch i:first-child { width: 100%; background: rgba(0,255,163,0.2); }
.pv-arch i:nth-child(2) { width: 80%; margin-left: 10%; }
.pv-arch i:nth-child(3) { width: 60%; margin-left: 20%; background: rgba(0,212,255,0.15); }
.pv-ai-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--accent);
}
.pv-ai-bar__track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.pv-ai-bar__fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}
.pv-scale {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.pv-scale i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(0,255,163,0.15));
  border-radius: 2px 2px 0 0;
  opacity: 0.65;
}

/* Format card previews */
.format-card {
  display: flex;
  flex-direction: column;
}
.format-card__preview {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.fc-mvp {
  display: flex;
  gap: 4px;
}
.fc-mvp i {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.48rem;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.fc-mvp i.done { border-color: var(--border-hover); color: var(--accent); background: var(--accent-dim); }
.fc-eco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.fc-eco span {
  font-family: var(--mono);
  font-size: 0.45rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}
.fc-eco span.link { color: var(--accent); border-color: rgba(0,255,163,0.25); }
.fc-grow {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}
.fc-grow i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-2), rgba(0,212,255,0.1));
  border-radius: 2px 2px 0 0;
  opacity: 0.6;
}

/* ── Stack items — filled cards ── */
.stack-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}
.stack-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}
.stack-item__viz {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* Stack mini visuals */
.sv-design {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.sv-design i {
  flex: 1;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}
.sv-design span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 0.25rem;
}
.sv-design--sm i { height: 22px; }

.sv-code {
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.6;
  color: var(--text-muted);
  width: 100%;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #060608;
}
.sv-code .k { color: var(--accent); }
.sv-code--sm { font-size: 0.48rem; padding: 0.3rem 0.4rem; }

.sv-ai {
  display: flex;
  gap: 4px;
  width: 100%;
}
.sv-ai span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.45rem;
  padding: 0.35rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sv-ai span.on {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  color: var(--accent);
}

.sv-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.48rem;
}
.sv-auto em {
  font-style: normal;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}
.sv-auto i { color: var(--accent); opacity: 0.45; font-size: 0.55rem; }

.sv-tg {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0.35rem;
  border-radius: 6px;
  background: rgba(0,136,204,0.1);
  border: 1px solid rgba(0,136,204,0.2);
}
.sv-tg i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.2);
}
.sv-tg b {
  font-size: 0.55rem;
  color: var(--accent-2);
  margin-left: auto;
}

.sv-data {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 36px;
}
.sv-data i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent), rgba(0,255,163,0.15));
  border-radius: 2px 2px 0 0;
  opacity: 0.75;
}

/* ── Process step visuals ── */
.process-step {
  display: flex;
  flex-direction: column;
}
.process-step__viz {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-check {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: center;
}
.pv-check i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.45rem;
  font-style: normal;
  color: var(--text-muted);
}
.pv-check i.on {
  border-color: var(--border-hover);
  background: var(--accent-dim);
  color: var(--accent);
}
.pv-check span {
  font-family: var(--mono);
  font-size: 0.48rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* ── Cap spark chart ── */
.cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.cap__icon { flex-shrink: 0; }
.cap h4 {
  flex: 1 1 auto;
  min-width: 0;
}
.cap p {
  flex: 1 1 100%;
  padding-left: 1.85rem;
}
.cap__spark {
  flex: 1 1 100%;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  padding: 0.35rem 0 0 1.85rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 0.15rem;
}
.cap__spark i {
  flex: 1;
  max-width: 24px;
  height: var(--h);
  background: linear-gradient(180deg, rgba(0,255,163,0.5), rgba(0,255,163,0.08));
  border-radius: 2px 2px 0 0;
}

@media (max-width: 768px) {
  .bento-preview { min-height: 100px; padding: 0.65rem; }
  .mock--wide .mock__body { min-height: 240px; }
  .ui-row { font-size: 0.52rem; }
  .tab-viz--full { min-height: 180px; }
}
