/* Product-card thumbnails — built with CSS only, no AI slop SVGs.
   Same vocabulary across all 4 patterns so the business cards feel
   coherent. Patterns re-skin them (size, crop, frame) but the contents
   are identical. */

/* CatalogAI — search field + result rows */
.thumb-catalog {
  display: flex; flex-direction: column;
  background: var(--fb-bg);
  padding: 14px;
  gap: 10px;
}
.thumb-catalog .t-search {
  border: 1px solid var(--fb-line);
  padding: 6px 10px;
  font-family: var(--fb-mono); font-size: 10px;
  color: var(--fb-ink-2);
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
}
.thumb-catalog .t-search::before {
  content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%;
  margin-right: 8px;
}
.thumb-catalog .t-search-txt { flex: 1; }
.thumb-catalog .t-search-k { color: var(--fb-ink-4); font-size: 9px; }
.thumb-catalog .t-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.thumb-catalog .t-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
  align-items: center;
  padding: 6px 6px;
  border-bottom: 1px solid var(--fb-line);
  font-size: 10px;
}
.thumb-catalog .t-row:last-child { border-bottom: none; }
.thumb-catalog .t-chip {
  height: 22px; background: var(--fb-bg-3); border: 1px solid var(--fb-line);
}
.thumb-catalog .t-lines { display: flex; flex-direction: column; gap: 3px; }
.thumb-catalog .t-lines span {
  height: 4px; background: var(--fb-line); border-radius: 1px;
}
.thumb-catalog .t-lines span:nth-child(2) { width: 60%; background: var(--fb-line-2); }
.thumb-catalog .t-price {
  font-family: var(--fb-mono); font-size: 9.5px; color: var(--fb-ink-2);
}

/* DocAgent — form w/ extracted fields */
.thumb-doc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--fb-bg);
}
.thumb-doc .t-paper {
  background: #fff;
  border-right: 1px solid var(--fb-line);
  padding: 10px 8px;
  display: flex; flex-direction: column; gap: 5px;
  position: relative;
}
.thumb-doc .t-paper::before {
  content: "INVOICE"; font-family: var(--fb-mono); font-size: 8px;
  color: var(--fb-ink-3); letter-spacing: .1em;
}
.thumb-doc .t-paper span {
  height: 3px; background: var(--fb-line); border-radius: 1px;
}
.thumb-doc .t-paper span:nth-child(3) { width: 70%; }
.thumb-doc .t-paper span:nth-child(5) { width: 50%; }
.thumb-doc .t-paper .t-hl {
  background: oklch(0.92 0.03 95); outline: 1px solid oklch(0.75 0.08 85);
}
.thumb-doc .t-fields {
  padding: 10px 10px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--fb-mono); font-size: 9px;
  color: var(--fb-ink-2);
}
.thumb-doc .t-fields .f {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed var(--fb-line);
  padding-bottom: 3px;
}
.thumb-doc .t-fields .f b { color: var(--fb-ink); font-weight: 500; }

/* AX Platform — monthly progress chart */
.thumb-ax {
  display: flex; flex-direction: column;
  background: var(--fb-bg);
  padding: 14px;
  gap: 8px;
}
.thumb-ax .t-header {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--fb-mono); font-size: 9.5px; color: var(--fb-ink-3);
}
.thumb-ax .t-score { font-family: var(--fb-serif); font-size: 28px; color: var(--fb-ink); line-height: 1; }
.thumb-ax .t-score small { font-family: var(--fb-mono); font-size: 10px; color: var(--fb-ink-3); margin-left: 4px; }
.thumb-ax .t-bars {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px;
  align-items: end; height: 56px; margin-top: 4px;
}
.thumb-ax .t-bars span {
  background: var(--fb-ink-4); width: 100%;
}
.thumb-ax .t-bars span.active { background: var(--fb-ink); }
.thumb-ax .t-axis {
  display: flex; justify-content: space-between;
  font-family: var(--fb-mono); font-size: 8px; color: var(--fb-ink-4);
  border-top: 1px solid var(--fb-line); padding-top: 4px;
}

/* AI Training — chapter progression */
.thumb-train {
  background: var(--fb-bg);
  padding: 14px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.thumb-train .t-chars {
  display: flex; gap: -4px;
}
.thumb-train .t-chars i {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--fb-line-2);
  background: var(--fb-bg-3);
  font-family: var(--fb-serif);
  display: grid; place-items: center;
  font-style: normal; font-size: 11px; color: var(--fb-ink-2);
  margin-left: -6px;
}
.thumb-train .t-chars i:first-child { margin-left: 0; }
.thumb-train .t-chapters {
  display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px;
}
.thumb-train .t-chapters b {
  height: 16px; background: var(--fb-bg-3); border: 1px solid var(--fb-line);
  font-family: var(--fb-mono); font-size: 7px; font-weight: 400;
  color: var(--fb-ink-4);
  display: grid; place-items: center;
}
.thumb-train .t-chapters b.done {
  background: var(--fb-ink); border-color: var(--fb-ink); color: var(--fb-bg);
}
.thumb-train .t-caption {
  font-family: var(--fb-mono); font-size: 9px; color: var(--fb-ink-3);
  display: flex; justify-content: space-between;
}
