.tm-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.tm-stat {
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.tm-stat strong {
  display: block;
  font-size: 1.35rem;
  color: #0c1248;
}
.tm-stat span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tm-table-wrap {
  overflow-x: auto;
}
.tm-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.tm-matrix th,
.tm-matrix td {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.tm-matrix th {
  background: #0c1248;
  color: #fff;
  font-weight: 600;
}
.tm-rag {
  display: inline-block;
  min-width: 4.5rem;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tm-rag-green { background: #dcfce7; color: #166534; }
.tm-rag-amber { background: #fef3c7; color: #92400e; }
.tm-rag-red { background: #fee2e2; color: #991b1b; }
.tm-cell {
  display: inline-block;
  min-width: 4.2rem;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}
.tm-complete { background: #dcfce7; color: #166534; }
.tm-partial { background: #fef3c7; color: #92400e; }
.tm-missing { background: #fee2e2; color: #991b1b; }
.tm-none { background: #f1f5f9; color: #64748b; }
.tm-src {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.tm-src-dash { background: #e0e7ff; color: #3730a3; }
.tm-src-q { background: #ecfdf5; color: #047857; }
.tm-card-slot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tm-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
}
